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

  • author's profile photo
    Former Member
    Oct 01, 2005 at 12:50 AM

    Hi

    There are two options . You can do it in INITIALIZATION or while maintaining variants ( Just click on selection variables check box in the attributes and then go and select an appropriate variable. You can see the following depending on the attributes of selection field -

    T: Table Variable from TVARVC

    D: Dynamic date calculation

    B: User-defined variables

    If you want a variable from table TVRVC , choose T and then select an appropriate variable . For dates you have additional options to choose from.

    Cheers

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 02, 2005 at 03:17 AM

    Hi Kevin,

    I think you have multiple posts with the same question and you have marked one of them as being answered. Could you please close all these other posts as well?

    Thanks,

    Srinivas

    Add comment
    10|10000 characters needed characters exceeded