I can already call MB51 from previously created method but still I need to add an implicit enhancement into RM07DOCS so I'll be able to export results from MB51 and leave the program without displaying ...
... its export parameters in FM 'CS_CL_S_MAT_BOM_CREATE_BY_COPY', which is doing copy of a header data. Once it's done we have to get source items from memory using 'CS_CL_P_ITM_PROVIDE', ...
...
set parameter id sin field sin_0.
"A call of which will set up parameter prog_indi_mode in FG SGUI
call function 'SAPGUI_PROGRESS_INDICATOR'
exporting
percentage = 100 ...
... as well as SALV. If you copy the code bellow and you'll have problems with excel export, then you'll have ot remove it or install to your SAP abap2xlsx classes which I used in this function. ...
... which I want (ALV kind) and MB51 would display its results on screen. That's why I need to export to memory some flags, first two must be set to be able to achieve form process_list in RM07DOCS and ...
... your coding here then your data should be displayed on the screen.
Do implicit enhancement in RM07DOCS to export results of MB51 to memory and read it in external program - and this path I've chosen ...
... SY-DATUM -> date for characteristics value
I_STRUCTURE TYPE REF TO CL_ABAP_STRUCTDESCR OPTIONAL -> structure of classification for reference data Exporting: ET_VALUES TYPE TT_API_VALI -> table with update ...
... with previously filled data by CTMS_DDB_SET_VALUE_INTERNAL then for multiple value characteristic I was always receiving one additional line to these which was passed by me in export parameters. The funny ...
... using dummy transaction codes MDC7 and MSC7. All you need to do is to prepare a table of type MDMWX, export it to memory 'START_MD07' and call dummy t-code. Bellow you can find an example of the ...
...
endloop.
"check if we changed something
if f_cond_changed is not initial.
"if yes then we set conditions
f_item->set_conditions( exporting im_conditions = ft_conditions[] ). ...
... MHTML excel (like in ALV->Export to Spreadsheet). In newest version we're able save the file directly to XLSX also. In a method shown bellow you can see that to create Excel file you need to only pass internal ...
... "parameter for IZArc to add file
"check sytem variables for program files
cl_gui_frontend_services=>environment_get_variable(
exporting
variable = 'PROGRAMFILES' ...
... zip all files into zip container Exporting: ET_FILES TYPE CVAPI_TBL_DOC_FILES -> Table with all files found in document
ET_XSTRING TYPE TT_XSTRING -> TT_XSTRING -> Table of xstrings (each file in separated ...