Skip to Content
avatar image
Former Member

How execute infopackage with dynamic parameter

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    May 29, 2017 at 12:00 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • May 29, 2017 at 06:21 AM

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

    -

    Regards,

    Mgande.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 29, 2017 at 11:35 AM

    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

    Add comment
    10|10000 characters needed characters exceeded