cancel
Showing results for 
Search instead for 
Did you mean: 

Populating the value of Sel Screen Parameter in the Free Characrtistic

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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