Skip to Content
avatar image
Former Member

Error LSMW BAPI

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Aug 19, 2017 at 08:35 AM

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

    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • Aug 23, 2017 at 03:50 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 23, 2017 at 09:24 AM

    Method 1:

    I add leading zero value in file:

    Method 2:

    Adding code:

    Both of two methods get an error:

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 23, 2017 at 11:03 AM

    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

    Add comment
    10|10000 characters needed characters exceeded