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: 

BAPI_ACC_GL_POSTING_POST - Post to Customer Number

Former Member
0 Kudos

I am trying to work on the above BAPI in XI 3.0 and R/3 Enterprise.

We wish to pass a customer number instead off a GL Account for one line of the posting, but I get the following error:

Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL

If I use the Customer GL Account, I get this error:

Account 2840 in company code 1000 cannot be directly posted to

Is it possible to change the posting key so we can post to Customer number without a GL Account?

If you need any further information, do not hesitate to ask!

5 REPLIES 5

Former Member
0 Kudos

Barry - I think you have to fill the structure accountreceivable for the customer items.

Rob

0 Kudos

Rob

Thnaks for your response. That structure relates to a different BAPI and it is now looking like I will need to use that one instead.

Regards

Barry

0 Kudos

Sorry - I guess I missed that. I think BAPI_ACC_DOCUMENT_POST is more general.

Rob

0 Kudos

Hi,

You can use BAPI_ACC_BILLING_POST too.

Regards

PabloX.

Tammie
Participant
0 Kudos

Hi Barry,

How do you determine the Customer GL Account? Are you reading it from the customer master (table KNB1), or are you calling function module FI_SPECIAL_GL_TRANSACT_DATA?

Regards,

Tammie