06-17-2013 2:01 PM
Hello gurus,
i am developing a new report program. I want to submit the result of report "rm07mlbd". The table is (before alv displayed) "g_t_totals_flat". how can i pass this internal to my report ?
I use submit, but i dont know what to do after this...
BREAK-POINT.
SUBMIT rm07mlbd
WITH bukrs IN rt_bukrs
WITH datum IN rt_datum
WITH matnr IN rt_matnr
WITH werks IN s_werks
WITH pa_sumfl = 'X'
EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = lt_listobject
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
BREAK-POINT.
IMPORT l_t_totals_flat FROM MEMORY ID 'G_T_TOTALS_FLAT'.
ENDIF.
can anyone help ?
Thanks,
stratos
06-17-2013 2:27 PM
You could use class cl_salv_bs_runtime_info to get rm07mlbd internal data and prevent ALV display.
(Use search tool on this class and read some blogs/wiki documents like Gain Programmatic Access to Data of SAPGUI ALV Reports.)
Regards,
Raymond
06-17-2013 2:30 PM
Hi,
I did not get much of you but what i understood was that you needed to pass internal table to submit statement and got these for you -http://scn.sap.com/thread/1325043
& http://wiki.sdn.sap.com/wiki/display/ABAP/Passing+data+from+one+ABAP+program+to+another
Please ask further if needed.
BR.
06-17-2013 2:42 PM