11-30-2008 6:30 AM
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
11-30-2008 6: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
Regards
Neha
Edited by: Neha Shukla on Nov 30, 2008 12:46 PM
Edited by: Neha Shukla on Nov 30, 2008 3:22 PM
11-30-2008 1: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
09-08-2013 7:18 PM
06-22-2009 7:14 AM