‎2010 Nov 11 12:49 PM
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
‎2010 Nov 11 1:13 PM
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
‎2010 Nov 12 7:05 AM
The company code is resolved now.
Can you please tell me what needs to be passed to object type,object key and object sys .
‎2010 Nov 12 4:06 PM
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).