‎2008 May 22 9:08 AM
Hi Gurus all,
In a function module I have used "SUBMIT program" with the option "EXPORTING LIST TO MEMORY" followed by a call to function 'LIST_FROM_MEMORY" to catch the list.
This works very well if called in foreground mode, but in background mode, surprise, no list is returned.
The only visible difference is that in background mode my module is called in a different context (maybe deeper calls or something) .
Also another stange thing: in foreground mode 'LIST_FROM_MEMORY' works well as I said : but if I replace the call by the instruction it contains, directly in the program: (IMPORT ... FROM MEMORY ID '%_LIST') no list is returned.
Maybe some connexion ?
Any ideas about this,
or any tips on catching a list without sending it to the spool
are welcome
Thanks
James
‎2008 May 22 9:16 AM
hi check this code...for calling a report from a function module
submit TAW10_BASICS_CALL_FUNCTION
with pa_carr = wa_flight-carrid
pa_occ = wa_flight-seatsocc
pa_paysu = wa_flight-paymentsum
pa_curr = wa_flight-currency
and return .
hope it helps..
regards,
venkat
‎2008 May 22 9:16 AM
hi check this code...for calling a report from a function module
submit TAW10_BASICS_CALL_FUNCTION
with pa_carr = wa_flight-carrid
pa_occ = wa_flight-seatsocc
pa_paysu = wa_flight-paymentsum
pa_curr = wa_flight-currency
and return .
hope it helps..
regards,
venkat
‎2008 May 22 9:28 AM
Hi,
You can call executable programs from other ABAP programs using the following statement:
SUBMIT prog|(field) AND RETURN options.
You can either specify the name of the program you want to call statically by entering the program name in the code of the calling program, or dynamically by specifying the name of a field (in parentheses) containing the name of the program. If the system cannot find the specified executable program when trying to execute the SUBMIT statement, a runtime error occurs.
If you omit the AND RETURN addition, all data and list levels of the calling program (the entire internal session) are deleted. After the called executable program has finished, control returns to the level from which you started the calling program.
If you use AND RETURN, the system stores the data of the calling executable program and returns to the calling after processing the called program. The system resumes executing the calling program at the statement following the call.
Refer this link this will be helpful to you.
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm
Regards,
Raj.