cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with OLAP variable in DTP

venkatsk_kalla
Explorer
0 Kudos

Hi All,

I am trying to include OLAP variable in DTP to get the values from the source which are greater than or equal to current month.

For this I have created one customer exit variable on 0CALMONTH object and written the exit in the include ZXRSRU01.

Now, when I checked in the debug the values or populating correctly, but when I triggered the display button in the DTP for OLAP variable it is saying that "Error for variable  in customer enhancement".

I didn't understand the issue, below is my code.

if i_step = 0

   and i_iobjnm eq '0CALMONTH'.

   DATA: i_date like sy-datum,

         month(6).

     CASE i_vnam.

     when 'ZCURRENT_MONTH'.

       CLEAR L_S_RANGE.

       L_S_RANGE-SIGN = 'I'.

       L_S_RANGE-OPT = 'GE'.

       i_date = sy-datum.

       month = i_date+0(6).

       l_s_range-low = month.

       APPEND L_S_RANGE TO e_t_range.

     ENDCASE.

endif.


Could you please advice me if there is anything wrong in the  code and error screen shot has been attached.


Thanks & Regards

Venkat


     

Accepted Solutions (0)

Answers (1)

Answers (1)

yasemin_kilinc
Active Contributor
0 Kudos

Hi Venkat,

Can you please check if the variable you have defined is checked or not as ready for input. The setting should be unchecked.

Hope it helps

Regards

Yasemin...