cancel
Showing results for 
Search instead for 
Did you mean: 

Variables are not pulling data ?

Former Member
0 Kudos

Hi,

Here is scenerio please go through it and answer my doubt.

Actually there is query in Bex.That query is having a structure in the columns.That structure is having 3 selection .

Each selections are having one characterstic and the selection relevant to it,one key figure and one date field.These date fields are having variable which is made as less than or equal to.THere is a exit fir this which automatically pops up all of these variables to current system date.

Now my all the other values should be the date field less than or equal to current system date.

But I am not getting that date. I am getting the greater than the system date also.

Please help me

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vasu,

1.Probably first of all u have to check the code what for the customer exit variables you have written.

2. Then check the operator that you have put down in the restriction.

System automatically dont gives the wrong output, whatever we create we get.

Please check thoroly..in fact for current date you can use SAP exit that wil be much better.

You can paste ur code as well if its a customer exit.

Thanks

Dipika

Former Member
0 Kudos

Hi Please find the code in the cmod

when 'Zxyz'.

clear: l_s_range.

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

l_s_range-low = sy-datum.

append l_s_range to e_t_range.

Former Member
0 Kudos

Can any one please take a look at it?

Former Member
0 Kudos

I think the offset is not defined correctly.

Former Member
0 Kudos

Hi Vasu,

Please use the below code. Although it's same as urs but sometime little things make big differneces.

l_s_range-sign = 'I'.

l_s_range-opt = 'BT'.

l_s_range-low = sy-datum.

l_s_range-high = sy-datum.

append l_s_range to e_t_range.

Another thing u need to check what option u have used in variable that is, is it a single value entry or selection-option or interval variable.

If still dont seems to work then put Break-points in the code, and debug ur report using TCODE RSRT.

Thanks

Dipika

Answers (0)