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

Error when posting document using BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
2,200

Hi Experts,

I am getting the following errror when trying to post the FB01 document through the BAPI 'BAPI_ACC_DOCUMENT_POST'.

1.Error in document: BKPFF $ C1DCLNT220

2.Posting keys for account determination for transaction 01 do not exist

3.Customer 171 is not defined in company code XAM1

4.Control indicators for controlling area HOLD do not exist

Can you please suggest why the errors are coming..

The posting key 01 exists in my system, and customer 171 is defined for the company code XAM1 too.

But I am still getting the errors.

Thanks

Prasanth

3 REPLIES 3
Read only

Former Member
0 Likes
930

Hi

You should post your code where you fill the parameters of the BAPI, probably the error for Customer Code is you're not transfering the correct code, i.e. without leading zero, you need to transfer the customer code fully (0000000171). Anway check in table KNB1 if that customer is assigned to the company code XAM1.

Max

Read only

0 Likes
930

The company code is resolved now.

Can you please tell me what needs to be passed to object type,object key and object sys .

Read only

0 Likes
930

Object Type = refer TTYP table to co-relate with what you're doing (e.g. 'IDOC' if you're trying to process from an IDOC)

Object Key = A unique reference key. This will go into the "Reference Key" field on the header record. Usually, the object key consists of a reference document number and a reference organizational unit.

Object Sys = Logging system (or logging user id e.g. user id of the system or user who is posting the FB01 through FM).