https://userapps.support.sap.com/sap/support/knowledge/en/2447527
2447527 - Using the Afaria Server to Capture a Return Code when using the Execute Program Event |...
How to use the Afaria server to capture and return the return code after an application is executed using the Execute Program event.