cancel
Showing results for 
Search instead for 
Did you mean: 

How execute infopackage with dynamic parameter

0 Kudos

Hi guru,

I am extracting data from a data source in HANA views.

These views have as input parameter the center(Werks), the value of the center is dynamic (obtained from a Z table).

I need in my chain of processes to execute the infopackage, as many times as there are centers in the table.

For clarifying I comment that the views receive 1 single center as a input parameter, and I have several centers, that is why I need to run the infopackage several times.

Can you tell us if is there any way of looping an internal table with the differents center values and trigger the infopackage once for each?

can you help us.

Accepted Solutions (1)

Accepted Solutions (1)

former_member186445
Active Contributor
0 Kudos

did this a long time ago, so not sure about the details, but general lines are these. you need to create a z program to execute the infopackages. so you process chain will only exist of a start and execution of a program.

in the program you read your z table into a itab. next step : loop over this itab. you get the first value of the center. adapt the variant of the infopackage (abap), and execute it (via Function module). and the loop will cover all entries.

M.

0 Kudos

Thank you very much,
Yes, I developed a program that reads from my table z and for each registry executes the following function modules:
'BAPI_IPAK_CHANGE': To modify the infopackage.
'BAPI_IPAK_START': To run the infopackage. ¿Do you know if these function modules work correctly or can you recommend us other.?

Regards.

former_member186445
Active Contributor
0 Kudos

I think these are the ones, but i did it at a previous client, so i can't access the system anymore. just try them out and in case they're not working as expected just let me know

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Javier,

You need to loop process chain execution via ABAP e.g. using

https://blogs.sap.com/2014/04/03/self-loop-of-process-chain/

Kind regards,

Andrey

former_member182970
Active Participant
0 Kudos

Hi, Do you required to have sequential run ? if not you can create a OLAP variable and assign it to Infopackge.

-

Regards,

Mgande.