Process Chain FM API

RSPC_API_GET_CHAINS (Popup to select Process Chain)

RSPC_CHAIN_START (To start Process Chain of type API)

Sample program with PC selection and scheduling

REPORT ZBW_PC_MANAGER.

data: l_t_chains type standard table of RSPCCHAINT.
data: l_s_chains type RSPCCHAINT.
data: l_logid type rspc_logid.

CALL FUNCTION ‘RSPC_API_GET_CHAINS’
EXPORTING
I_WITH_DIALOG = ‘X’
* I_SEL_CHAIN =
* I_SEL_TXTLG =
TABLES
E_T_CHAINS = l_t_chains
EXCEPTIONS
FAILED = 1
OTHERS = 2
.
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

loop at l_t_chains into l_s_chains.
CALL FUNCTION ‘RSPC_CHAIN_START’
EXPORTING
I_CHAIN = l_s_chains-chain_id
* I_T_VARIABLES =
* I_SYNCHRONOUS =
* I_SIMULATE =
I_NOPLAN = ‘W’
* I_DONT_WAIT =
IMPORTING
E_LOGID = l_logid

Leave a Reply