Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

list from memory

Former Member
0 Likes
708

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
677

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

5 REPLIES 5
Read only

Former Member
0 Likes
678

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

Read only

0 Likes
677

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

Read only

Former Member
0 Likes
677

This message was moderated.

Read only

0 Likes
677

Your answer is also available in the following two threads:

Reported to SCN for further investigation.

pk

Read only

Former Member
0 Likes
677

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.