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

Submit Report

Former Member
0 Likes
1,001

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

8 REPLIES 8
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
949

check suppress dialog.

Read only

0 Likes
949

Hi Sandeep,

can u please provide the sample code.

Thanks Anurodh

Read only

0 Likes
949

muralikrishna has told the idea...go with that ...

Read only

Former Member
0 Likes
949

Hi ,

If you want output of rep2. From Rep1 submit the program REP2 and don't write RETURN.

Don't submit the REP1.

Regards,

Read only

Former Member
0 Likes
949

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

Read only

Former Member
0 Likes
949

This message was moderated.

Read only

former_member585060
Active Contributor
0 Likes
949

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

Read only

Former Member
0 Likes
949

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.