Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 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.