Hi,
I have a BW process chain that runs an abap program in R3, through an event. Process chain has two process: START one and ABAP PROGRAM one.
The situation is that the process chain always stays in yellow status although R3 job is finished or terminated. How can I obtain "automatically" the real status of the job in the process chain?
I have read many threads but didn't get the answer yet:
https://scn.sap.com/message/13126607
http://scn.sap.com/thread/3316284
http://scn.sap.com/thread/3226736 (I have already create a new process type as suggested in this thread but didn't work)
http://scn.sap.com/thread/97784
http://scn.sap.com/thread/2059406
When I manually select the ABAP process status to Finished or Terminated, I get the following message but finally whole process chain status changes to the selected status:
There is no open run for variant ZABAP
Message no. RSPC053
Diagnosis
No active run exists for variant ZABAP. The most recent run has probably been flagged (manually) as complete.
System Response
The end of the process has not been registered with process chain management.
Procedure
Find out whether the end of the process has been registered manually or by an earlier run of the RSPC_ABAP_FINISH function module.
I don't want to do this manually but automatically. Is the following a solution you may suggest? From thread http://scn.sap.com/thread/2059406.
"If you want to automate it you can do that by creating a Z program which will read LOG ID and teh TYPE of process from table RSPCPROCESSLOG on the basis of variant name and the instance name of the process chain and the execute the function module RSPC_PROCESS_FINISH from inside the program."
Any suggestion will help.
Thanks in advance!
BR,
Ana