Skip to Content
avatar image
Former Member

bapi_customerqoutation_change

hi!

i have created a quataion using VA21.

i would like to use this bapi in order to add items to the qoutation.

when i run the bapi i get error item 100 doesnt exist ( if i use updateflag = 'U' (update) if i use updateflag = 'I' (insert), i get erro that i cant use I in field updateflag.

is it possible to add items to the qoutation or only change exist items?

regards

yifat

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Apr 27, 2006 at 09:14 AM

    Your line items usually are 00010, 00020 - looks like you are trying to change the line item 00100, which does not exist.

    Regards,

    Ravi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2006 at 09:20 AM

    hi!

    thanks for your answer, but i didnt understand exactly what you mean.

    what is the 0010 and 0020 stand for?

    regards

    yifat

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I am talking about the line item numbers. Can you look into the table / document and see if you are dealing with the right line item numbers?

      Regards,

      Ravi

  • avatar image
    Former Member
    Apr 27, 2006 at 09:26 AM

    Hi,

    You will have to use the flag 'U' or 'I' based on whether particular line item exisst in your document.

    e.g. If you want to change/insert a line item 00050 , then thro' coding make sure it exists by reading existing item data.

    (If you try to change this line item 00050, which does not exists, then you will get error- Line item 00050 does not exists.)

    If it does not exists, you can use number 00050 and using flag 'I' , can insert the line item data.

    Hope this helps.

    Regards,

    Akshay

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2006 at 10:18 AM

    Hello Yifat,

    What u need to do is FILL as follows...

    SALESDOCUMENT

    QUOTATION_HEADER_IN : SALES ORG/DISTR CHAN/DIVI

    QUOTATION_HEADER_INx:UPDATEFLAG = U AND FILL X FOR SALES ORG/DIST/DIVI.

    QUOTATION_ITEM_IN: ITM_NUMBER/MATERIAL/QTY AND MARK X FOR QUOTATION_ITEM_INX AND MARK UPDATEFLAG AS 'I'

    and should create item.

    Add comment
    10|10000 characters needed characters exceeded