cancel
Showing results for 
Search instead for 
Did you mean: 

InfoPackage ABAP Routine for Date Range - Only Start Date Extracted

Former Member
0 Kudos

I am using an ABAP Routine in an InfoPackage to select data for a 2 year period. The routine converts SY-DATUM into the Current Fiscal Year and Period, and then calculates the Starting and Ending Fiscal Year / Period of a 24 month period. The Start and End values are passed to the InfoPackage as l_t_range-low and l_t_range-high.

The Source and Target are both Basic Infocubes.

The InfoPackage executes successfully, and the Selection values on the Header tab of the monitor reflect a 24 month period. Unfortunately, on closer review of the data in the cube, only data for the first month appears to have been loaded. I’m guessing that the extract was only performed with the From value, even though a To value was also provided.

I created a simple Infopackage and manually input the selection parameter values just to be sure I wasn’t overlooking something. The InfoPackage performed as expected, loading more data which spanned the selection time period.

I can provide the code if it helps, but the fact that the monitor reflects a Start and End value suggests that the problem is with the InfoPackage, not the ABAP routine.

Has anybody ever experienced this before ? Any ideas would be greatly appreciated ?

Thanks,

Lyle

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

We can write ABAP routine in Infopackage with a range of values (From & To). Make sure you fill all the following information while building the final range information as below,

l_s_range-sign = 'I'.

l_s_range-option = 'BT'.

l_s_range-low = lowvalue.

l_s_range-high = highvalue.

MODIFY l_t_range FROM l_s_range INDEX l_idx.

As you can see the key is passing the "BT" information for capturing range.

Hope it helps..

thanks

Kumar

Former Member
0 Kudos

Kumar,

THAT DID IT ! I had the low and high, but needed the sign and option logic - THANKS ! Points are yours.

Lyle

Answers (0)