BAPI_ACC_DOCUMENT_POST giving Customer XXXXX is not defined in company code

@LevKushnir , @StefanSchnell ,
Hi Experts,

I am using UiPath accelerator called Bapi_ACC_DOCUMENT_POST for creating AR invoice in SAP ( T-code FB70) . I am getting error "Customer XXXX is not defined in company code "
This error i am getting for the data i mentioned in ACCOUNTGL sheet.
howver when i am not giving customer name in ACCOUNTGL sheet , i am able to create Invoice in SAP.
But i found Customer name we need to mentioned in order to get rite price in invoice.

Can you please suggest ?

below are the erorr in details

DateTime Status No SAP Message Exception
2024-12-24 09:29:17 E 1 Field= Id=RW LogMessageNumber=000000 LogNumber= Message=Error in document: BKPFF $ QS4CLNT110 MessageVariable1=BKPFF MessageVariable2=$ MessageVariable3=QS4CLNT110 MessageVariable4= Number=609 Parameter= Row=0 System=QS4CLNT110 Type=E
2024-12-24 09:29:17 E 1 Field= Id=F5 LogMessageNumber=000000 LogNumber= Message=Customer 106815420 is not defined in company code MessageVariable1=106815420 MessageVariable2= MessageVariable3= MessageVariable4= Number=102 Parameter= Row=0 System=QS4CLNT110 Type=E

regards
Pratik Mehta

@pmexilinx

as per error looks like there might be a sap mapping code for the customer code you have…can you check that…if there is any internal mapping

cheers

Hi,

Is it possible to register BAPI_ACC_DOCUMENT_POST in SAP’s T-code SE37 the way you want?
The BAPIActivity table should match this screen.
Please check if you can register it in SE37 first

Yes It is Register in Se37.

Found Solution. We had to use Extension 2 to get Address value by making some code change in BAPI.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.