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

Clarification on variant

Hi all,,,

I shall explain the scenario. Please let me know how to proceed on this.

The user has given this scenario:

when creating the variant, this will set up as a selection variable and the value will be pulled from z_sysdt entry found in TVARV table.

This explanation was given for a field date.

explain me on this..

should i need to manually add code for this.. or would it be settings on variant..

pls explain.

thanks in advance..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 05:55 AM

    1. Which version of SAP you are on ?

    TVARV table are changed to TVARVC from ECC5.

    TVARV will still exist but should not be used from ecc5.

    2. z_sysdt already available in tvarv ?

    Normal functionality is :

    a. Make an entry in TVARV table.

    b. in any report when you go to save varient button,

    you have option of "maintain Sel.variable" which takes you to TVARV table to select already created fields.

    c. When you call this program in batch job using that saved varient, it will dynamically pick up value of z_sysdt from TVARV & execute that report.

    d. So whenever you run that program in batch job, you have a predefined value to pass.

    e. Normally all companies Run one Batch program everyday, before running any other batch job. That program updates all TVARV records as per logic written in it.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi ,

      If you do not have the authorization for TVARVC table. then follow as below.

      after executing your report, try to save the Variant ( just press save button for the selection screen values , then it will take you to give the name for the variant ).

      in the same screen , you will get the options like protect field , hide field.... and selection variable .

      select selection variable and press F4 it will ask you to select either 'T' or 'D' .

      Select 'T' i.e. Table maintained values.

      now If you try to save this variant then it will ask you to maintain 'Variable name '.

      now go to 'Environment -> Main.Sel.Variables.

      here you try to give the name for the variable eg., 'ZTEST' and give the value 'may be the date value/what ever the value you planned for selection screen. Parameter'.

      save it and go back to the previous screen , here you assign the 'ZTEST' to the variant option 'Name of Variable (input only using F4 option ). ( which is next to ‘Selection Variable column )

      that means , you have selected the option 'T' for selection variable

      and assigned a name (i.e. Selection variable name ) for your selection screen parameter.

      so when you run your program and if you select the variant name then it will prompt with the value maintained.

      For next time , if you change the value in TVARVC table then it will pick that value for selection screen parameter.

      Hope it is clear for you.

      Kind Regards,

      Ravi Sankar.Z

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.