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: 

submit syntex doubt

Former Member
0 Kudos

hi,

what is the purpose of this syntex could u plz explain

SUBMIT zreport USING SELECTION-SET 'VARIANT1'

6 REPLIES 6

Former Member
0 Kudos

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

0 Kudos

THANKS TO U

Former Member
0 Kudos

well it calls a specific program zreport, and tells it to use the stored variant 'VARIANT1'.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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