‎2007 Apr 05 8:37 AM
Hi All,
I have one function module whcih internally calling a submit report statement. That report statement giving output report. But the client dont want that report. The report which iam submitting is a standard SAP report(LQ02). what i need is the report program should process the records, But it should not display any report.
what are all the possibulities for this..? (other than copying into z program )
thanks
Raghu
‎2007 Apr 05 9:54 AM
Hi Raghu,
you can your the Addition <b>EXPORTING LIST TO MEMORY</b> from the SUBMIT Statement
Here the description from the online help
<u>Effect</u>
Does not display the output list of the called report, but saves it in ABAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. In addition, you must not assign a function code to the ENTER key in the current GUI status. The saved list is read from the SAP memory using the function module 'LIST_FROM_MEMORY' and can then be saved to the database using EXPORT, for example. You can process this list further with the function modules 'WRITE_LIST', 'DISPLAY_LIST' ... of the function group "SLST".
Hope this help.
Regards,
Stefan
‎2007 Apr 05 8:43 AM
Hi,
Copy the function module and report into Z function module and Z report respectively, now made the changes to the Z report that it should not display output. and call this Z report in function module.
Regards
‎2007 Apr 05 8:45 AM
Hi,
How can you eliminate the Write statements that are used to display the report in the Std program, which was submitted?
if you don't wants to copy that std report,
You have to copy the relavent code in that report without those writing part and paste in the function module and remove the submit statement.
reward if useful
regards,
Anji
‎2007 Apr 05 9:54 AM
Hi Raghu,
you can your the Addition <b>EXPORTING LIST TO MEMORY</b> from the SUBMIT Statement
Here the description from the online help
<u>Effect</u>
Does not display the output list of the called report, but saves it in ABAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. In addition, you must not assign a function code to the ENTER key in the current GUI status. The saved list is read from the SAP memory using the function module 'LIST_FROM_MEMORY' and can then be saved to the database using EXPORT, for example. You can process this list further with the function modules 'WRITE_LIST', 'DISPLAY_LIST' ... of the function group "SLST".
Hope this help.
Regards,
Stefan
‎2007 Apr 13 12:23 PM
Hi All,
EXPORTING LIST TO MEMORY memory is working fine. But now we want to know the log. That mean log for records are successful and unsucessful records.
please give me ur idea to capture the log..
‎2007 Apr 13 12:31 PM
Hi,
is this written into the joblog?
Then you can read the joblog with the FM <b>BP_JOBLOG_READ</b> like this:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/fa/096de9543b11d1898e0000e8322d00/frameset.htm">Copying a Job Log into an Internal Table</a>
Regards,
Stefan
‎2007 Apr 13 12:49 PM
i will explain entire scenario.. so that u can solve my prob...
our scenario starts with shippment transaction (VT70). Afer entering the shippment internally it will picks the VBELN. This VBELN wil pass to one custom FM. This function module internaly calling the LQ02 transaction.(So this FM will fetch the all i/p values required to run LQ02). Here we are submit LQ02 with the parameters and List to memory. Finally we r getting the output in VT70 scrren saying the process completed.
But we will run these output through background. So we need to know the log like which one are susccessful and which are unsusccessful.
i hope u understand the scenario...
‎2007 Apr 13 1:09 PM
I'm not sure if I understood your problem correctly.
Do you want to receive the list from memory and analyze it?
Then you can retrieve it with the FM <b>LIST_FROM_MEMORY</b> into an internal table.
Regards,
Stefan
‎2007 Apr 13 12:24 PM