Showing results for 
Search instead for 
Did you mean: 

InfoPackage with Variable Input

Former Member
0 Kudos

I would like to run an InfoPackage on a regular basis, but use variable selection criteria, based on the run date. Can I attach ABAP to an InfoPackage? Would I need to include it in a Process Chain, or can I run I run the InfoPackage stand-alone?

Can someone please educate me?


Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Jerry,

In case for 0CALMONTH or any month infoobject you can write ABAP.

In your Infopackage go to Select Data Tab.

Put 6 (abap routine) in "Type" coloumn for calmonth.

Create routine by pressing next coloumn (Detail on type 6).

read table l_t_range with key fieldname = <name of your current month


l_idx = sy-tabix.

l_t_range-low = sy-datum(6). <get current month part from sy-datum>.

l_t_range-high = sy-datum(6). <get current month part from sy-datum>.

l_t_range-option = 'BT'.

modify l_t_range index l_idx.

p_subrc = 0.

Hope this helps


Active Contributor
0 Kudos

Hi Jerry,

You can do a selection based on an ABAP routine in your InfoPackage. On the Data Selection tab, click column Type and select option 6 (ABAP routine). You can then put in your routine code.

You can run an InfoPackage as a standalone too. Just depends on what other processes follow it. If you have to activate the data in the ODS, or may be run an aggregation job, or activate the master data, it is a good idea to put in a process chain with all the processes.

Hope this helps...

Former Member
0 Kudos

Thanks, Bhanu. Mine were grayed out until I removed the values in there. Now I see. I'll be sure to give you points on your helpful answer!