Skip to Content
avatar image
Former Member

SUBMIT statement using variant

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Nov 30, 2008 at 06:59 AM

    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

    Need information about SUBMIT statement

    Regards

    Neha

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

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 30, 2008 at 01:06 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 22, 2009 at 06:14 AM

    Thanks

    Add comment
    10|10000 characters needed characters exceeded