on 05-24-2017 11:56 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Do you required to have sequential run ? if not you can create a OLAP variable and assign it to Infopackge.
-
Regards,
Mgande.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.