Skip to Content
0

Error LSMW BAPI

Aug 19, 2017 at 04:54 AM

71

avatar image
Former Member

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

vendor-error.png (21.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Jürgen L
Aug 19, 2017 at 08:35 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

This is my uploading file

Vendor doesn't leading with zero value

0

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.

0
Vinita Kasliwal Aug 23, 2017 at 03:50 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Aug 23, 2017 at 09:24 AM
0

Method 1:

I add leading zero value in file:

Method 2:

Adding code:

Both of two methods get an error:


Share
10 |10000 characters needed characters left characters exceeded
Jürgen L
Aug 23, 2017 at 11:03 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded