Skip to Content
0

Error in BAPI_ACC_DOCUMENT_POST

Aug 17, 2017 at 05:57 AM

211

avatar image
Former Member

Issue: We have a program which transfers accounting data from an external system to SAP using PI module. In this program, postings were going through successfully and we are using this program from long time now without any problem.

After system upgrade and all SAP note changes related to GST moved to production system, this program is giving an error message '034052 Balancing field "Profit Center" in line item 002 not filled' when accounting data is being sent from external system.

In this function module, posting accounting document is done through using standard Function module "BAPI_ACC_DOCUMENT_CHECK" and "BAPI_ACC_DOCUMENT_POST".

  • We have tried posting accounting data directly in function module using t. code: SE37 and getting the same error '034052 Balancing field "Profit Center" in line item 002 not filled'. Line item 002 is vendor line item.
  • When we post manually using t. code: FB60 using the same data which is entered in function module, data gets post successfully without any error.

Any advice how can we correct this error which is occurring only in BAPI_ACC_DOCUMENT_POST and not giving any error in direct transaction.

This is only happening after GST upgrade.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Pablo Casamayor Aug 17, 2017 at 06:22 AM
0

Hi,

maybe this OSS Note might help:

2479100 - GST IN: Business area and Profit center error in J_1IG_INV

Best regards,

Pablo

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Aug 17, 2017 at 06:26 AM
0

Thank you Pablo, but this OSS is specific to J_1IG_INV transaction and STO process and we are not doing such postings via Interface. It is just a vendor Invoice posting.

We are not getting error in FB60 but even if we fill data in SE37 directly in BAPI_ACC_DOCUMENT_POST, we get the error.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi,

are you able to locate exactly in the code where the message is raised?

Best regards,

Pablo

0