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 statement using variant

Former Member
0 Kudos

Hi Gurus,

i am trying to use execute a variant , and that variant has to be submitted in memory.(i.e i have three variants A,B,C whenever i run the report using variant A then that fields only has to be passed to memory) , but instead of that , even if i am using varinat B , but by defaul it is taking another variant which contains all the fields.I think my issue is clear.i am using this submit statement.

SUBMIT (sy-repid)

AND RETURN

EXPORTING LIST TO MEMORY

WITH SELECTION-TABLE i_selscr.

pleasehelp me regarding this ASAP.

Thanks and regards,

Rajeshwar

4 REPLIES 4

Former Member

Hi Rajeshwar

You can submit it by using variant name also:

Submit <Report> USING SELECTION-SET variant .

Check this link:

http://sapdevelopment.co.uk/reporting/rep_submit.htm

http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm

http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm

Regards

Neha

Edited by: Neha Shukla on Nov 30, 2008 12:46 PM

Edited by: Neha Shukla on Nov 30, 2008 3:22 PM

Former Member

Try this:

SUBMIT [Program_name] USING SELECTION-SET '[Variant_name]' WITH [par] = '[par_value]' AND RETURN.

This allows you define variant, selection parameters, select-options and whatever you like dynamically.

Regards,

Rebeka

0 Kudos

This message was moderated.

Former Member
0 Kudos

Thanks