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_ACC_GL_POSTING_CHECK

Former Member
0 Likes
781

Is there anyway to know the line item number from the return parameter of the bapi so that i can delete the line after the check and post the remaining lines.

thanks in advance.

6 REPLIES 6
Read only

suresh_datti
Active Contributor
0 Likes
695

Hi,

Pl see the Documentation of this BAPI from SE37.. the values available in the RETRUN Table rea detailed in there.

Regards,

Suresh Datti

Read only

Former Member
0 Likes
695

i did check the documentation. I would like to know if anyone had ever checked for the line number for error and deleted the line from the internal table before posting. As there are different types of error and some give the item number in message_v2 (eg : error with type KI and message number 235) and some errors dont have the row numbers( eg : error with type F5 and message number -808). i did check the BAPI to see how the errors are populated and its different for different types of errors. Please do let me know if there is a way to check for errors and delete the line items.

Appreciate any comments.

thanks in advance.

Read only

Former Member
0 Likes
695

An FI document has to net to zero. If you remove one or more items, you will also have to adjust the total debits and or credits.

Some errors are specific to the header - invalid posting date for example. You could remove all of the items and still have this error.

Rob

Read only

Former Member
0 Likes
695

Hi DP,

I think it's impossible to delete one line of a document and post the rest lines. Once a line is found error, the whole document should be skipped, otherwise there would be balance left.

Rgds

Luis

Read only

Former Member
0 Likes
695

thanks for the replies. I had tried the delete the line item with error KI and balance the document again and post it successfully. But the problem stands for other type of errors as there are no line item numbers.

To my understanding there is no single way to find out the type of error and if it has an line item number in a bapi. So either the whole document has to be posted or the whole document will be an error and then depending on the return parameters we have to check for cleaning the document. Please let me know if i am on the right path.

Just want to make sure before i change the logic.

thanks in advance.

Read only

0 Likes
695

That's the way I would do it.

Rob