04-25-2007 5:28 PM
I have a SAP xMII application that connects to a R/3 instance and creates a PI_PHCON message using BAPI_PROCESS_MESSAGE_CREATEMLT. This particular BAPI responds back with a "Message created successfully" OR else some error. Is there any way to find the status of this message after it was created in R/3, I mean can we find out if the created message was posted successfully OR was there any Error OR is it under process etc?
I am looking @ some standard functionality within R/3. The version I am interfacing with is 4.6c
I did try to explore BAPI_PROCESS_MESSAGE_CHK_EXIST ,which ,after looking @ the code, I thought would solve my problem, but unfortunately it return only if the message is created OR not found (even though the code talks about other statuses too!)
Any Input would be appreciated.
Thanks
Udayan
04-25-2007 5:46 PM
The other statuses "In Process"(sy-subrc = 2) and "Internal Error"(sy-subrc = 4 or others) are hard to capture as a message probably stays in "In Process" status for a very little time and getting an "Internal Error" is a very rare case.
04-25-2007 6:32 PM
Would a "terminated" status ("Red" on the message monitor) would that be an "Internal Error"?
If yes then is BAPI_PROCESS_MESSAGE_CHK_EXIST capable of capturing that?