2007 Aug 09 5:00 PM
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
2007 Aug 09 6:20 PM
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
2007 Aug 09 5:36 PM
2007 Aug 09 6:20 PM
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
2007 Aug 09 6:32 PM
Hi,
Try this way,
SUBMIT <report> WITH <p_parameter> EQ <value>
USING SELECTION-SET <variant>
AND RETURN.
Regards.
Marcelo Ramos