Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Checking for a Process Message Status

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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.

0 Kudos

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?