10-11-2007 2:39 PM
hi,
what is the purpose of this syntex could u plz explain
SUBMIT zreport USING SELECTION-SET 'VARIANT1'
10-11-2007 2:42 PM
This is to get variant of submit program
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
AND RETURN.
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.
Effect
Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00.
Message was edited by:
Vasu G
10-11-2007 2:53 PM
10-11-2007 2:42 PM
well it calls a specific program zreport, and tells it to use the stored variant 'VARIANT1'.
10-11-2007 2:43 PM
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.
Effect
Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00.
10-11-2007 2:48 PM
hi,
The SUBMIT statement executes a report from within a report. i.e. you could have a drill-down which calls another report. Can only execute reports of type '1'.
<b>
SUBMIT zreport USING SELECTION-SET 'VARIANT1' </b>
USING SELECTION-SET <var>This option tells the system to start the called program with the variant <var>.
follow this link for more information along with sample code...
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/content.htm
http://www.sapdevelopment.co.uk/reporting/rep_submit.htm
regards,
AshokReddy
10-11-2007 3:01 PM
Hi.
Variant1 is the varaint of the calling program.IN selection screen of the program, you can save a varaint accordingly so that same variant's value will be used.
Regards
Sudheer