Quantcast
Channel: SCN : All Content - SAP Business Explorer (SAP BEx)
Viewing all articles
Browse latest Browse all 3763

OLAP Variable on Valid From field

$
0
0

Hi Guys please suggest,

I have a scenario where i have Valid From field in my DTP.

This field need to have filter value which is 'Last day of last month based on the Load_Date field'.

 

So i created a exit code as below: In include there were already existing variables so i just had to write the code as below in between:

 

   ELSEIF i_vnam = 'R0_C_089'.
        l_s_range-low = l_date.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'LE'.

 

 

L_Date is load date which is populated with other code in include.

 

The I_STEPS defined for these variables are :

   IF    i_step = 2
       OR i_step = 0.

 

I then created a customer exit variable on Valid_from in query designer with Single value and Mandatory entry. and have unchecked the ready for input.

I ten included the Valid from in filters and restricted with this variable in query.

 

Then i assigned this variable to valid from in DTP.

When i execute the DTP i get error message Error for variable in customer enhancement...

 

not sure whats going wrong where.

 

I see similar variables being created on 0calday, fiscper with OPT=EQ and used in same code piece and they are working fine.

Not sure if i can use Valid from field or LE range for this scenario...

 

I cant use 0calday as already it is being used in same DTP and has variable assigned.

 

please suggest

 

regards

zabi


Viewing all articles
Browse latest Browse all 3763

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>