Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9041

Re: Find out Chain ID and LogID of Process Chain run in process type ABAP

$
0
0

Hi Pavan,

 

what I did in the end was: I created an own process type ZABAP which I could modify and enhance the method IF_RSPC_EXECUTE~EXECUTE by code to write the chain log ID to memory:

 

export rspcchainlogid = l_s_log-log_id to memory id 'RSPCCHAINLOG'.

     submit (l_program) using selection-set l_progvari

                        to sap-spool without spool dynpro

                        line-size 255

                        spool parameters l_pripar

                        archive parameters l_arcpar

                        and return.

 

In the executed program (l_program) which is the one the process step calls, I then can fetch the logid from memory.

 

import rspcchainlogid = l_logid from memory id 'RSPCCHAINLOG'.

 

This solution is not perfect of course as assume two perfectly simultaneously executed chains could mess up the information. But I reckon this to be so unlikely that I took the risk.

 

Regards

Cornelius


Viewing all articles
Browse latest Browse all 9041

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>