cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering process chain from BW ABAP program

Former Member
0 Kudos

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,

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor
0 Kudos

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

Answers (0)