‎2009 Jan 21 5:51 AM
Hi Gurus;
I have a requirement in which i have to call the report and send it through email via attachement.
I called the report via "submit and export to memory and return". After the call i am also using the FM "List_from_memory" to process ahead. But i am facing the problem that whenever i called the calling program, my program stuck in the called program and never return to the calling program. What should i do.
‎2009 Jan 21 6:29 AM
Hi
can u give the code of your submit statemet.
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.
is the syntax.
reg
Ramya
‎2009 Jan 21 6:29 AM
Hi
can u give the code of your submit statemet.
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.
is the syntax.
reg
Ramya
‎2009 Jan 21 8:38 AM
I gave this code.
SUBMIT ZSK_PAYSLIP_EMAIL EXPORTING LIST TO MEMORY AND RETURN
WITH andruck = 'A'
WITH formular = 'ZPAY'
WITH pnppabrj = s_pabrj
WITH pnppabrp = s_pabrp
WITH pnppernr = itab-pernr
WITH pnptimra = 'X'
WITH pnpxabkr = 'Z1'
WITH rueckr = 'J'
WITH sort_rr = 1
WITH sprache = 'B'.
Actually this is remuneration slip report which i have to call in the called program and later email to individual employees having email address. This code call the report and display on the screen but not going forward or submitting it to memory. After that code i am calling FM call from memory.
Edited by: Sohail Alizai on Jan 21, 2009 9:38 AM
‎2009 Jan 21 9:06 AM
‎2009 Jan 21 9:29 AM
‎2009 Jan 21 9:20 AM
Hi,
Use following code...
SUBMIT zps507_copy_update_001
WITH SELECTION-TABLE seltab
EXPORTING LIST TO MEMORY
AND RETURN .
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = list_tab.
ENDIF.