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

Call Program from another Program using varient

Former Member
0 Likes
5,206

Hi...

How to call program from program with varient....?

i have used submit but how to pass varient dynamically.

Regards,

Chintan

1 ACCEPTED SOLUTION
Read only

Former Member
2,221

Hi,

Use the FM SUBMIT_REPORT

OR

SUBMIT <Program Name> VIA SELECTION-SCREEN
                                  USING SELECTION-SET <VARIANT>
                                  AND RETURN.

5 REPLIES 5
Read only

Former Member
2,222

Hi,

Use the FM SUBMIT_REPORT

OR

SUBMIT <Program Name> VIA SELECTION-SCREEN
                                  USING SELECTION-SET <VARIANT>
                                  AND RETURN.

Read only

0 Likes
2,221

Hi Avinash,

THANX A LOT its working but i have to run that program ( second - child ) again with pressing F8. but i want to run that program automatically when i call it from source program with varient.

Please help me.

Regards,

Chintan.

Read only

2,221

HI,

Use this Code..

SUBMIT <Report Name USING SELECTION-SET <VARIANT>
                                  AND RETURN.
" Don't specify the  VIA SELECTION-SCREEN statement

If you are using FM SUBMIT_REPORT pass 'X' to SKIP_SELSCREEN parameter

Read only

Former Member
0 Likes
2,221

u can pass all the values that you intend to pass to the program in the SUBMIT statement.

submit report2 with p_test eq 's_text '

and return

-> p_test is a selection scr parameter in report2 passing the selection screen parameter of report 1 to this.

Read only

Former Member
0 Likes
2,221

REPORT ZPROGRAM1.

SUBMIT Zprogram USING SELECTION-SETS OF PROGRAM 'ZPROGRAM1'

WITH PYPERNR = PYPERNR " parameter1

WITH P_PAYDT = P_PAYDT " parameter2

WITH P_CHK = P_CHK " parameter2

WITH MODE = MODE " Mode 'X' for background Mode ' ' for forground