Skip to Content
author's profile photo
Former Member

Can one field of a variant of an ABAP4 program takes value from a table ?

When I run an ABAP4 program, there is one input field called Time Stamp. If I run the program directly (without selecting a variant), this Time Stamp field is filled with a field value from a table called TVARVC, but if I select a variant of this program, this Time Stamp field is filled with another field value of the table TVARVC. It seems that the variant value can be filled with a value in system table, am I right? If this is the case, then how it is programmed?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 01, 2005 at 07:41 AM

    Hello Kevin,

    When you save the variant, you will be taken to a screen for variant maintenance. On that screen (that is actually an interactive list), aparty from the variant name and the variant description, there are a couple of checkboxes that you can see under <i>Field Attributes</i>. When you choose the Selection Variable, you will be asked to provide an entry from the table TVARV (By the way, there's no table called TVARVC). You can also hit the F1 button for that checkbox, which will give you the explanation.

    Regards,

    Anand Mandalika.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 01, 2005 at 07:48 AM

    Hi Anand,

    Sorry to interrupt your here. TVARVC is available as of WAS 610 . It was not there uptill BASIS release 46D.

    You can check OSS 557314.

    Cheers.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Kevin,

      46c or 46d or 47 are the versions of SAP.

      Similarly ABAP too has a version 620 or 640.

      And WAS has a version too like 610, 620 and the latest version is 640.

      Regards,