Skip to Content
0

Triggering process chain from BW ABAP program

Feb 14, 2017 at 04:05 PM

53

avatar image

Dear experts

Situation: In the BW system 4 different process chains are triggered to process 4 different files (Header file, Item file, etc etc). Each process chain currently reads a file on the application server and performs reconciliation (match up with the database). Currently the BW associate is processing each file manually. He provides the file name to the process chain and executes it. Each file's file name has a specific prefix which is fixed followed by date and time stamp. For example ZMATCH_HEADER_20170101_042035.DAT.

The requirement: Automate this process using ABAP program that is run on the BW environment as a batch job. The program should read the files from the application server, pick them one by one and trigger the relevant process chain. When the process chain completes, the ABAP program should delete the file from the application server.

Now, I know the entire ABAP part of reading a file from app server, processing it, deleting it etc. However I need info on:

1) How to trigger the process chain and pass the the file name read by the program to the relevant process chain. If it needs to be done using FM call and which is the most suitable function module to call ?

2) Also I want the program to know when the process chain ends so that the file can be removed and the next file can be picked up for processing.

Thank you,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi Feb 14, 2017 at 06:14 PM
0

Did you look for RSPC_API_* function modules in SCN answers ?

Share
10 |10000 characters needed characters left characters exceeded