cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with SAP Exit

sankar_reddy19
Explorer
0 Kudos

Hi, My cube is updating 0CALDAY value based on Posting date. Some times posting date is equal to system date and some times not. On same cube we have build a query and using SAP Exit variable (Variable name is 0DAT) on 0CALDAY and refernce char also 0CALDAY. But query results showing system date for 0CALDATE insted of posting date. Please explain the reason behind this. For example if posting date (=0calday) is 4th Sept 2014 and sytem date is 5th sept SAP Exit resulting 5th sept insted of 4th sept

Thanks

Sankar

Accepted Solutions (0)

Answers (2)

Answers (2)

RafkeMagic
Active Contributor
0 Kudos

you may want to have a look at the code filling your variable

(function RREX_VARIABLE_EXIT)

* field with type DATS replaced by current date

       ELSEIF i_vnam = g_c_exitvnam-caldate

           or i_vnam = rro04_c_vnam-dat_input.

         l_s_range-low = sy-datum.

that highlighted line would be the reason your seeing system date

anshu_lilhori
Active Contributor
0 Kudos

I think the reason is that SAP exit is based on system date so by default it picks up the current date rather then checking the date which exists in your provider.

Regards,

AL