cancel
Showing results for 
Search instead for 
Did you mean: 

bapi_customerqoutation_change

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

hi!

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

what is the 0010 and 0020 stand for?

regards

yifat

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Regards,

Ravi