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: 

ECC 6.0 saving dynamic program variant

Former Member
0 Kudos

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

3 REPLIES 3

dhirendra_pandit
Active Participant
0 Kudos

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

Former Member
0 Kudos

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.

andrea_olivieri
Contributor
0 Kudos

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