Skip to Content
0
Former Member
Aug 18, 2008 at 08:16 AM

How to retrieve line item number in BAPIRET2 along with error messages?

687 Views

Hi all

How to retrieve back the line item number along with the error messages in the bapireturn tables? am using BAPI_SALESORDER_CHANGE..for that matter, in any bapis, it seems that only error messages are being returned in the table, but not line item numbers...am calling the bapi only once with all the info. not for each and every line item..if am calling the same for each and every line item, i believe i could get the error messages, and have it for the current item in the loop, but again calling for each item affects severly the performace.

is there any workaround on this where we can get the detailed error message with line item number? because it's a bit irrrevalant to have the error message, but give it without the item number.

can we use CL_RECA_MESSAGE_LIST or any other message collector class or something else to retrieve the desired info, am not sure how to use this, if at all it can be used..please guide

fyi : i have seen quite a few posts related to this, but nothing gives me an answer

Regards

Sathish