Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error: "Vendor not found in company code XXXX" on calling BAPI from Portal

Hi ABAP Gurus,

I am a Enterprise Portal guy and need your help.

I am trying to create a PO Based Invoice by calling a BAPI from my portal using Java Connections(JCos).

I provide these details manadatory details:

<b>Heater Level detals</b>

Company code , Document date, Inv number, Workflow id, Currency, fiscal year, gross amount

<b>Item level details</b>

Material Number, Price Netprice, Quantity, PO Number.

When I run the BAPI in R/3 with test data it runs fine.

When I execute it through Portal with same test data I get the following error:

<b>"Vendor not defined in company code XXXX"</b>

Please tell me what to do?

Can u please tell me the ABAP side reason for this error.




Since you are not passing the vendor ID, it is probably derived from the PO and you are passing company code and the combination of the two is what is invalid. In the backend, go to SE16, enter EKKO as table, give the PO number, and execute. You will get the vendor id in the field LIFNR. Take this vendor id, and the company code and now in SE16 enter LFB1 as the table name and enter these two values and see if you get any record.

This sounds very much like a data issue rather than formatting issue. If you use the correct data, it should be fine.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question