Application Development 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: 

How to get variant of SUBMIT program

Former Member
0 Kudos
118

Hi!

In my ZFRFI00R_PRINT_DOCUMENTS program i am using

SUBMIT zfrfi01

with p_comp = gw_bkpf_key-bukrs

with p_year = gw_bkpf_key-gjahr

with p_doc = gw_bkpf_key-belnr.

The selection screen for both the reports are different. Now my requirement is like when it calls the ZFRFI01 it should ask for variant.When i choose the variant with that the report ZFRFI01 should run.

Any suggestions appreciated

Thanks.

Raja

1 ACCEPTED SOLUTION

Former Member
0 Kudos
96

Hi

1. Before you submit the program call the FM "RS_PROGRAM_POPUP_VARIANT"

2. When user selects the variant - use this variant to submit the program

3. SUBMIT REPORT01

VIA SELECTION-SCREEN

USING SELECTION-SET 'VARIANT1'

AND RETURN.

Rewoard points if helpful

3 REPLIES 3

Former Member
0 Kudos
96

Submit it via the selection screen.

Rob

Former Member
0 Kudos
97

Hi

1. Before you submit the program call the FM "RS_PROGRAM_POPUP_VARIANT"

2. When user selects the variant - use this variant to submit the program

3. SUBMIT REPORT01

VIA SELECTION-SCREEN

USING SELECTION-SET 'VARIANT1'

AND RETURN.

Rewoard points if helpful

marcelo_ramos
Active Contributor
0 Kudos
96

Hi,

Try this way,

SUBMIT <report> WITH <p_parameter> EQ <value>

USING SELECTION-SET <variant>

AND RETURN.

Regards.

Marcelo Ramos