2/11/25, 11:50 PM Status of Process chain execution using FM RSPC_AP...
- SAP Community
m
m
Products and Technology Groups Partners Topics Events What's New Get Started
u
ni
t
y
SAP Community Products and Technology Technology Technology Q&A
Status of Process chain execution using FM RSPC_AP...
Q&A What are you looking for today?
Optio
Status of Process chain execution using FM
RSPC_API_CHAIN_START
former_member726451 Participant
on 2012 Jan 16
0 Kudos 3,303
SAP Managed Tags: BW (SAP Business Warehouse)
Hi,
I have executed a Process chain using the FM RSPC_API_CHAIN_START:
CALL FUNCTION 'RSPC_API_CHAIN_START'
EXPORTING
i_chain = 'ZPC_TEST'
I_T_VARIABLES =
https://community.sap.com/t5/technology-q-a/status-of-process-chain-execution-using-fm-rspc-api-chain-start/qaq-p/8435364 1/12
2/11/25, 11:50 PM Status of Process chain execution using FM RSPC_AP... - SAP Community
i_synchronous = 'X'
I_SIMULATE =
I_NOPLAN =
I_DONT_WAIT = 'X'
I_POLL =
IMPORTING
e_logid = v_logid
EXCEPTIONS
failed = 1
OTHERS = 2.
I need know when this process chain have finished in order to populate the log by
screen. I was using other function RSPC_API_CHAIN_GET_STATUS into a loop in order
to give the status. This FM return A = Active, G = Green, R = Red OR X = Aborted.
WHILE v_status ne 'G' or v_status NE 'R'.
CALL FUNCTION 'RSPC_API_CHAIN_GET_STATUS'
EXPORTING
i_chain = 'ZPC_TEST'
i_logid = v_logid
https://community.sap.com/t5/technology-q-a/status-of-process-chain-execution-using-fm-rspc-api-chain-start/qaq-p/8435364 2/12
2/11/25, 11:50 PM Status of Process chain execution using FM RSPC_AP... - SAP Community
I_DONT_UPDATE =
I_DONT_POLL =
IMPORTING
e_status = v_status.
ENDWHILE.
the variable should be updated with the current status of the execution but if i execute
this code the execution not finish (infinite loop).
Please, how could I know the correct status of the PC?
Thx in advance!
Know the answer? Need more details?
Help others by sharing your knowledge. Request clarification before
answering.
Answer
Comment
Comments (0)
Accepted Solutions (0)
Answers (5)
Former Member
2012 Jan 17
https://community.sap.com/t5/technology-q-a/status-of-process-chain-execution-using-fm-rspc-api-chain-start/qaq-p/8435364 3/12
2/11/25, 11:50 PM Status of Process chain execution using FM RSPC_AP... - SAP Community
0 Kudos
Hi,
I think the approach suggested by Anshual is simple and good enough to know the
process chain status information, simply check the status in RSPCPROCESSLOG.
You can go even one step further and know the status of each process in the chain.
Regards,
Durgesh.
You must be a registered user to add a comment. If you've already
registered, sign in. Otherwise, register and sign in.
Comment
Comments (1)
former_member726451
Participant
2012 Jan 17
0 Kudos
Thanks to all!
I'm using the table RSPCPROCESSLOG and checking that all the process have
finished correctly. I think that the other options of the colleages are good too, but i will
use this table (I think that is more simple )
Thanks to all again
https://community.sap.com/t5/technology-q-a/status-of-process-chain-execution-using-fm-rspc-api-chain-start/qaq-p/8435364 4/12
2/11/25, 11:50 PM Status of Process chain execution using FM RSPC_AP... - SAP Community
Former Member
2012 Jan 17
0 Kudos
Hi,
i can think of below solution:
create 2 custom program : Z_START_PC and Z_GET_STATUS
in Z_START_PC start the process chain using the start FM and then call FM to create a
batch job to schedule Z_GET_STATUS is background.
in Z_GET_STATUS call FM 'RSPC_API_CHAIN_GET_STATUS' ( not in LOOP )and get the
status
if the status is "process chains still running" then create a batch job to schedule
Z_GET_STATUS after say 15 mins again. This will again run Z_GET_STATUS in bkgd after
15 mins.
if the status is "other then process chain running" then fill log accordingly.
goto SE37 and put * batch * to get the FMs to create batch jobs for programs.
Regards,
Neeraj.
https://community.sap.com/t5/technology-q-a/status-of-process-chain-execution-using-fm-rspc-api-chain-start/qaq-p/8435364 5/12
2/11/25, 11:50 PM Status of Process chain execution using FM RSPC_AP... - SAP Community
You must be a registered user to add a comment. If you've already
registered, sign in. Otherwise, register and sign in.
Comment
Comments (0)
Former Member
2012 Jan 16
0 Kudos
While using FM "WHILE v_status ne 'G' or v_status NE 'R'", what is this v_status...
if i correctly understand your question you want to know the status of the Process Chain
which is run by FM 'RSPC_API_CHAIN_START.....
this can be achieved by using select statement on table RSPCPROCESSLOG......there is
a field 'status' in the table by which you can get the status of PC......
You must be a registered user to add a comment. If you've already
registered, sign in. Otherwise, register and sign in.
Comment
Comments (0)
KamalMehta
Product and Topic Expert
https://community.sap.com/t5/technology-q-a/status-of-process-chain-execution-using-fm-rspc-api-chain-start/qaq-p/8435364 6/12
2/11/25, 11:50 PM Status of Process chain execution using FM RSPC_AP... - SAP Community
2012 Jan 16
0 Kudos
Hi ,
Please use
When v_status CA 'AX'
CALL FUNCTION 'RSPC_API_CHAIN_GET_STATUS'
EXPORTING
i_chain = 'ZPC_TEST'
i_logid = v_logid
I_DONT_UPDATE =
I_DONT_POLL =
IMPORTING
e_status = v_status.
ENDWHILE.
This should resolve your issue .
Hope it helps .
Thanks
https://community.sap.com/t5/technology-q-a/status-of-process-chain-execution-using-fm-rspc-api-chain-start/qaq-p/8435364 7/12
2/11/25, 11:50 PM Status of Process chain execution using FM RSPC_AP... - SAP Community
Kamal Mehta
You must be a registered user to add a comment. If you've already
registered, sign in. Otherwise, register and sign in.
Comment
Comments (1)
former_member210615
Contributor
2012 Jan 16
0 Kudos
hi,
i think the above code will also go in infinite loop as the chain will be still running, the
while condition according to me shoul be
WHILE v_status ne 'A'
your code should work fine in this scenario
hope it helps
regards
laksh
Former Member
https://community.sap.com/t5/technology-q-a/status-of-process-chain-execution-using-fm-rspc-api-chain-start/qaq-p/8435364 8/12
2/11/25, 11:50 PM Status of Process chain execution using FM RSPC_AP... - SAP Community
2012 Jan 16
0 Kudos
check RSPCPROCESSLOG table
You must be a registered user to add a comment. If you've already
registered, sign in. Otherwise, register and sign in.
Comment
Comments (0)
Ask A Question
Type your question here...
Continue
Recommendations
Repeat Process Variant of Process Chain using ABAP...
2015 Jun 09
Overall Status Yellow/Red with Remote Process Chai...
2015 Nov 12
Process Chain display
2014 Aug 12
Process chain error.
2012 Jul 27
https://community.sap.com/t5/technology-q-a/status-of-process-chain-execution-using-fm-rspc-api-chain-start/qaq-p/8435364 9/12
2/11/25, 11:50 PM Status of Process chain execution using FM RSPC_AP... - SAP Community
Process chain got stuck
2019 Nov 17
Related Content
Elevate Your SAC Dashboards: Unleash the Power of Custom R Visualizations!
in Technology Blogs by Members 4 hours ago
Simplifying deployment of SAP Application for your landscape using Launch Wizard
and Service Catalog
in Technology Blogs by Members 4 hours ago
From User Exits to RAP: Adopting a Clean Core Approach in S/4HANA
in Technology Blogs by Members 4 hours ago
Datasphere - Populating Dynamic Default Values in Analytical Model Variables
in Technology Blogs by Members 4 hours ago
SAP User Experience Q1/2025 Update – Part 1: Many New Innovations Available (AI,
Joule and More)
in Technology Blogs by SAP yesterday
Top Q&A Solution Author
SAPSupport 54
Sankara1 10
Sandra_Rossi 8
MioYasutake 8
raymond_giuseppi 5
https://community.sap.com/t5/technology-q-a/status-of-process-chain-execution-using-fm-rspc-api-chain-start/qaq-p/8435364 10/12
2/11/25, 11:50 PM Status of Process chain execution using FM RSPC_AP... - SAP Community
Ryan-Crosby 5
paula_augedahl 5
Dan_Wroblewski 5
DonWilliams 5
WouterLemaire 4
View all
Latest Posts
Change column (Generic property of a dimension) he...
Re: Syntax error There must be a space or equivale...
Syntax error There must be a space or equivalent c...
Re: SAPUI5 & OData: Multiple service calls vs sing...
Re: How to add days to an existing date via advanc...
View all
https://community.sap.com/t5/technology-q-a/status-of-process-chain-execution-using-fm-rspc-api-chain-start/qaq-p/8435364 11/12
2/11/25, 11:50 PM Status of Process chain execution using FM RSPC_AP... - SAP Community
Privacy Terms of Use
Copyright Legal Disclosure
Trademark Support
Cookie Preferences
Follow
https://community.sap.com/t5/technology-q-a/status-of-process-chain-execution-using-fm-rspc-api-chain-start/qaq-p/8435364 12/12