‎2009 Jul 22 7:46 AM
Hi,
I have two report: rep 1 and rep2.
Now in Rep2 i have used submit rep1 with (data) and return.
means i am calling rep1 in rep2 . but when i call rep1 it displays the output of rep1 and then rep2.
i want to supress the output of rep1.
Thanks
Anurodh
‎2009 Jul 22 7:50 AM
‎2009 Jul 22 8:05 AM
Hi Sandeep,
can u please provide the sample code.
Thanks Anurodh
‎2009 Jul 22 8:08 AM
‎2009 Jul 22 7:55 AM
Hi ,
If you want output of rep2. From Rep1 submit the program REP2 and don't write RETURN.
Don't submit the REP1.
Regards,
‎2009 Jul 22 7:55 AM
Hi,
If you want rep1 to run in background then use,
SUBMIT ztest123 VIA JOB g_job
NUMBER g_jobcount
USING SELECTION-SCREEN
WITH SELECTION-TABLE gt_rspar
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS gs_params
AND RETURN.
Without the AND RETURN addition, the internal session of the program accessed replaces the internal session of the calling program in the same position in the call sequence. Once program access is completed, the system returns to before the position from which the calling program was started.
As of Release 6.10, the content of the system field sy-calld at SUBMIT is copied by the calling program without AND RETURN. Before 6.10, the system entered the value "X", which was incorrect when the program was accessed from the first program in a call sequence.
The addition AND RETURN starts the executable program in a new internal session. The session for the calling program is retained. Once program access is completed, program execution for the calling program continues after the SUBMIT statement
Thanks and regards,
ShreeMohan
Edited by: ShreeMohan Pugalia on Jul 22, 2009 8:57 AM
‎2009 Jul 22 7:57 AM
‎2009 Jul 22 7:58 AM
Hi,
Use the variante EXPORTING LIST TO MEMORY with SUBMIT statement.
SUBMIT ZZZZZZZZ
WITH pm_idnrk = p_comp "COMPONETE/SUB ASSEMBLY
WITH pm_werks = p_werks "PLANT
WITH pm_datuv = p_fdate "VALIDITY DATE
WITH pm_mehrs = 'X' "MULTILEVEL CHECK
EXPORTING LIST TO MEMORY
AND RETURN.Regards
Bala Krishna
‎2009 Jul 22 7:59 AM
you can do one thing. export a parameter from report 2. catch it (import) in report 1. if that value is what you set in Rep2 do not execute the display part.