Quantcast
Channel: SCN: Message List - Data Warehousing
Viewing all articles
Browse latest Browse all 3366

Re: RSPC_API_CHAIN_START in background how to get the e_logid

$
0
0

One way is to interrogate the latest records written to the RSPC_CHAIN_LOG (or similar, sorry don't have a session open at the moment), and find the most recent LOGID for the chain name. This is how SAP do it.

 

Another way is to create your own function module that runs in background. What it does is launch the chain using the standard CALL FUNCTION MODULE and retrieves the logid. Then write the logid and process chain name into your own table.

 

Another way that might work, not tried it, is to use CALL FUNCTION MODULE ... STARTING NEW TASK CALLING meth (PERFORMING form) . This allows you to WAIT until the FM is finished, and runs the method meth, or the FORM form, which RECEIVES the e_logid.


Viewing all articles
Browse latest Browse all 3366

Trending Articles