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: 

Postings For FB50 using BAPI's

Former Member
0 Kudos

Hi All,

I have one doubt, i am doing batch upload for transaction fb50.

1)My requirement is that from the flat file i have to check if corresponding

to one refrence number if the line items in the flat file are more then 999

then the internal table should break and those 999 line items should get posted.

And the line items which are after those 999th line item should also get

posted for that same reference number.

2)And how will i assure that those 999 line items which are getting posted

after breakage have the debit and credit amount equal so as them to get

posted using bapi's and same for the line items after that 999th line item.

The bapi's i am using are:

BAPI_ACC_GL_POSTING_CHECK

BAPI_ACC_GL_POSTING_POST

BAPI_TRANSACTION_COMMIT

Kindly help.

Regards

Mansi

1 REPLY 1

Former Member
0 Kudos

Hi Mansi,

For ur requirement u need to build a logic where for each 999 lines u need to check the debit and credit total and then insert a new line at the 999th position. The amount for the 999th line will be the difference of the total of the debit and total of the credit till 998th line and line type will debit if credit total till 998th line is greater than the debit total till the same number and vice versa..

Hope this gives u some idea on how to approach this requirement.

Regards,

Nikhil Kayal