Skip to Content
author's profile photo Former Member
Former Member

ECC 6.0 saving dynamic program variant

Hi,

I have a sap std program, on the selection screen i have an account field.

now when i select a variant for this program i want the variant to pick up the value dynamically from a FM or a table..

Is this possible.. if yes then how..

Thanks for the response..

All responses will be highly appreicaited

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on May 20, 2011 at 05:36 PM

    Hi Abhishek,

    You can use the table update VARID, its containing the variant parameter.

    If you are using any job just make report before to update this table with dynamic variant value details and your job will run with new variant parameter.

    For changing variant parameter you can use function module FASU_RS_CHANGE_CREATED_VARIANT.

    Regards

    Dhirendra Pandit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 20, 2011 at 06:03 PM

    When Saving the variant, Check the "Selection variable" for the field for which you want to get the dynamic value and in the Selection variables screen , choose the available options "Table variable from TVARVC", "Dynamic date calculation" or "User define variables" based on your requirement.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 21, 2011 at 10:38 PM

    Hi,

    check the online documentation [Defining Selection Varables|http://help.sap.com/erp2005_ehp_05/helpdata/EN/25/c966398ae5c13ae10000000a114084/frameset.htm] and the SCN articles:

    [ABAP: Dynamic Variant Processing with STVARV|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f05b0f0a-db27-2e10-b4a4-a0272a80f833]

    [Automate Period Opening in SAP|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a006e1f7-1901-2e10-5cb5-822c4fc9450f]

    Regards,

    Andrea

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.