Application Development and Automation 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: 
Read only

SUBMIT statement using variant

Former Member
0 Likes
34,575

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
Read only

Former Member
12,773

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

Read only

Former Member
12,773

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

Read only

0 Likes
12,773

This message was moderated.

Read only

Former Member
0 Likes
12,773

Thanks