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