Application Development 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: 

Error LSMW BAPI

ratana_pouy
Participant
0 Kudos

Hi,

I use LSMW to post invoice receipt by using BAPI: BAPI_INCOMINGINVOICE_CREATE1

but there is an error message

Vendor master data already extended and table LFB1 existed.But error cann't be solved.

Please help...

Thanks,

Rtn

6 REPLIES 6

JL23
Active Contributor
0 Kudos

are you sure you have leading zeros for the vendor number in your IDOC

0 Kudos

This is my uploading file

Vendor doesn't leading with zero value

JL23
Active Contributor
0 Kudos

you could have tested it already by adding leading zeros.

Actually such technical refinements do not really belong into a source file as this is usually prepared by users who don't need to be bothered with such requirements, this is what consultants convert themselves with a little ABAP coding in the field mapping.

vinita_kasliwal
Active Contributor
0 Kudos

Can you check in XK03 that vendor actually exists for the company code and is nto blocked / deleted

Also as Jurgen stated try to prefix the vendor with leading Zero use FM CONVERSION_EXIT_ALPHA_INPUT that should work

I found a similar thread https://archive.sap.com/discussions/thread/1380853

where also the issue was same and got resolved when leading Zeros were used

let me know if that helps

ratana_pouy
Participant
0 Kudos

Method 1:

I add leading zero value in file:

Method 2:

Adding code:

Both of two methods get an error:

JL23
Active Contributor
0 Kudos

this screenshot is insufficient to know the reason for the dump.

Actually is a dump supposed to give you all the info that you need to solve the issue, just read the first 50 lines and look at the coding to know at which statement the program was when it dumped.

From the far distance I would just say both options you used for the vendor number just worked well, you got beyond your initial error and you are now in trouble with another field