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.
Showing results for 
Search instead for 
Did you mean: 

MEASUREM_DOCUM_RFC_SINGLE_001 ( How to track Error message in BAPI_)

Former Member
0 Kudos

Hi Friends

For the crating Measure ment point i have use BAPI MEASUREM_DOCUM_RFC_SINGLE_001 But my problem is One order having 10 measuremntpoint. In that 6 creating successfull but four measurement point was error. But that BAPI no option to track error messages. Please let me know how to track message and any other way to fidn the messages.

Thanks in advance.

Prabu K


Former Member
0 Kudos


define itab for collecting errors of type BAPIRET2.

After the FM check sy-subrc and append the errors to itab.

IF sy-subrc <> 0.

ls_message-id = sy-msgid.

ls_message-type = sy-msgty.

ls_message-number = sy-msgno.

ls_message-message_v1 = sy-msgv1.

ls_message-message_v2 = sy-msgv2.

ls_message-message_v3 = sy-msgv3.

ls_message-message_v4 = sy-msgv4.

APPEND ls_message to et_return.

CLEAR ls_message.




Former Member
0 Kudos

Got the solution