11-05-2007 10:50 AM
Hi Friends,
i am using the command
SUBMIT report EXPORTING LIST TO MEMORY AND RETURN.
i am not write/diplay any values.
now i want the submit program internal table values to the current program.
how i get the internal table values.
Thanks & Regards,
Vallamuthu.M
11-05-2007 11:00 AM
Hi,
For this you have to use memory id concept.In the called program you have to export the output internal table to one memory id.After that,In your calling Program after submit statement you have to import the ITAB content to the Memory id.
Eg:
In Called program,
EXPORT ITAB to Memory id 'ABCD'.
In calling Program,
SUBMIT report AND RETURN.
Import ITAB From Memory id 'ABCD'.
Note:ITAB name and its structure should be same at Calling and called program .
11-05-2007 11:09 AM
11-05-2007 11:01 AM
Hi
REPORT report2.
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
AND RETURN.
U can use the SUBMIT report WITH SELECTION-TABLE itab.
Here itab needs to be of type rspar.
Itab has the structure:
SELNAME (length 8),
KIND (length 1),
SIGN (length 1),
OPTION (length 2),
LOW (length 45),
HIGH (length 45).
U fill the itab with the parameters or select-options of the report to be called and the corresponding values and then submit it.
11-05-2007 1:32 PM
DATA: wa_rspar TYPE rsparams.
DATA: t_rspar LIKE TABLE OF wa_rspar.
(I loaded idoc info previously to it)
CLEAR wa_rspar.
wa_rspar-selname = 'P_IDOC'.
wa_rspar-kind = 'P'.
wa_rspar-sign = 'I'.
wa_rspar-option = 'EQ'.
wa_rspar-low = wa_docnum-docnum.
APPEND wa_rspar TO t_rspar.
SUBMIT PROGRAMNAME WITH SELECTION-TABLE t_rspar AND RETURN
EXPORTING LIST TO MEMORY.
Please reward points if helpful.