Application Development and Automation 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:Ā 
Read only

BAPI Return Errors

Former Member
0 Likes
977

I am using BAPI_ACC_DOCUMENT_CHECK/POST to post to fb01.

there are some cases in which this bapi returns error with no PARAMATER or ROW.this make it difficult to identify which exact line item is causing error.

1-is there any way to identify exact ;line items in such cases

2)--is there any way to get list of all errors return by this BAPI.i was thinking if we can filter by ID/NUM of error messages can atleast identify such messages?

4 REPLIES 4
Read only

ThomasZloch
Active Contributor
0 Likes
708

Not all errors are specific to an item, there is header data checks and there are checks on the complete document, e.g. a zero balance.

Not sure what you mean with 2), please clarify.


Thomas

Read only

0 Likes
708

hello,

check the message class used in the BAPI and it includes. From that you will know the errors/warnings.

best regards,

swanand

Read only

0 Likes
708

Agree with header checks and zero balance which is overall document issue.

But say one of my line items has a GL account ,whose fieldstatus configuration has marked profit centre has mandatory.

then if i dont pass it through BAPI, then

its returning me an error  saying

Field Profit Ctr is a required field for G/L account 0100 190’

and this partciular error comes without any line number.

So this is a case where error returns with no line number although it is not header data /zero balance case.

So i need to know the generic nature of just messages.what causes them to produce no line number.or list of message ids?

Read only

0 Likes
708

Well, to find out why that particular check is not returning the ROW number you would have to dive into the code. It is even possible that some messages are condensed before RETURN is being filled, so that you don't see so many identical messages, e.g. when the same G/L account is concerned and used in many items.

Thomas