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

Populating the value of Sel Screen Parameter in the Free Characrtistic

Hi ,

The requirement is that we have 2 dates - Touched Date and Created on Date .

The Touched date is present in the Selection Screen .

Now we need to use th value entered for the Touched Date as default value of the created on Date in the Free Characteristics.

Please provide inputs on the same .

Regards

Edited by: Garima on Dec 10, 2010 4:07 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2010 at 12:08 AM

    Garima,

    If i understand what your saying you want te enter a value in a variable for "Touched date" and at the sametime want "Created on Date" to be restricted to that date aswell.

    You can doe this by using an "User exit variable".

    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d09d4588-3832-2c10-e185-f778d9dbea85?quicklink=index&overridelayout=true]

    Make a normal variabele for "touched date" and then a user exit for "Created on Date". In the user exit ( ABAP ) you can copy the entered value from the "touched date"-variable and set it to "Created on Date".

    I hope this helpes you

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2010 at 11:55 AM

    As you said touched date is present in selection screen, you might be having a manula i/p variable for it. Right?

    Now create a cust exit variable for "created on Date".

    In cmod transaction use the following code to populate values from touched date to created on date.

    when '+Variable name of created on date+'.
     
        loop at i_t_var_range into lwa_var_rng where vnam = +'variable name of touched date'+.
    
          lwa_range-low  = lwa_var_rng-low.
          lwa_range-high = lwa_var_rng-high.
          lwa_range-sign = 'I'.
          lwa_range-opt  = 'EQ'.
          append lwa_range to e_t_range.
          clear lwa_range.
        endloop.

    This code u should write inside if i_step = 2. condition.

    Now the cmod variable of created on date will have the same values of the touched date populated.

    Now u can use the filter as cmod variable of created on date and use created on date in ur free characteristics.

    Hope this helps. Revert back for any queries.

    Rgds,

    Guru

    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.