cancel
Showing results for 
Search instead for 
Did you mean: 

Vendor is not defined in company code <company code>

Former Member
0 Kudos
20,477

hi all,

i'm getting the following message while trying to create a invoice using BAPI_INCOMINGINVOICE_CREATE from java code

message : Vendor is not defined in company code <company code>

i have checked the same for many company codes.

please, can anyone help to resolve this issue.

Thank in advance,

Praneeth

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mohan ,

Maintain the vendor for the specified company code in XK02.

You can find whether it is maintained for the particular company code in the table LFB1.

Regards

Ramesh Ch

Former Member
0 Kudos

hi,

thank you for reply.

i have checked the vendor for my company code in XK02. there are vendors for that company code.

but still, i'm getting the same error.

regards,

Praneeth

Former Member
0 Kudos

Hi Mohan ,

Once again check the table LFB1.

There is no other way as the error clearly indicates that vendor is not maintained for company code.

Finally in the invoice u can check whether the Company code is the same as that in Table LFB1.

Regards

Ramesh Ch

Answers (4)

Answers (4)

Former Member
0 Kudos

data: l_vendor TYPE numc10.

UNPACK gt_data-newko to l_vendor.

accountpayable-vendor_no = l_vendor.

leading zeros solve my problem. try it.

JL23
Active Contributor
0 Kudos

If you are doing BAPI, then you should be familiar with debugging

Find the place in your BAPI where the check is made that triggers the message you got.

See with what values vendor number, company code the check is carried out.

Former Member
0 Kudos

Dear,

i thinck ur vendor is not create for that company code 1st check in xk03 give ur vendor number and press f4 at company code it will give the all company code that the vendor belongs.now Extend the vendor to ur company code with FK01 or XK01

in refrance field of xk01 give ur vendor numbeer ,referance company code and purchas org and give same vendor number at vendor field or give ur pur.org...

Regards

venu gopal

former_member581212
Active Contributor
0 Kudos

check whether the Vendor master is defined for the same company code for which you are entering in the BAPI...

Regards

Priyanka.P