2009 Jan 30 4:25 PM
i am simulating an order with BAPI_SALESORDER_SIMULATE. When i enter the order via VA01, i get a popup that there is an open quote, and i can select thequote and get a specific price. I need to be able to, at the item level, either tell it to use any open quote price, or specify a quote number and item number.
I need to get the same price for the simulation that i get for VA01, somehow.
thanks for any help
2009 Jan 30 4:32 PM
This is really an interesting question!
You want to link the sales order item to a quote item and if a quote already exists you want to pull that price rather than repricing within the order simulation.
Can you try, passing the three reference document fields for preceding document within ORDER_ITEMS_IN table parameter, with REF_DOC = Quote, REF_DOC_IT = item and REF_DOC_CA = 'B' for quotation?
BAPI_SALESORDER_SIMULATE
Fields from TABLE: ORDER_ITEMS_IN
REF_DOC VGBEL CHAR 10 0 Document number of the reference document
REF_DOC_IT VGPOS NUMC 6 0 Item number of the reference item
REF_DOC_CA VBTYP_V CHAR 1 0 Document category of preceding SD documentLet me know if it takes the price for this item from the quote instead.
Let me try this in my system and let you know.
2009 Jan 30 4:32 PM
This is really an interesting question!
You want to link the sales order item to a quote item and if a quote already exists you want to pull that price rather than repricing within the order simulation.
Can you try, passing the three reference document fields for preceding document within ORDER_ITEMS_IN table parameter, with REF_DOC = Quote, REF_DOC_IT = item and REF_DOC_CA = 'B' for quotation?
BAPI_SALESORDER_SIMULATE
Fields from TABLE: ORDER_ITEMS_IN
REF_DOC VGBEL CHAR 10 0 Document number of the reference document
REF_DOC_IT VGPOS NUMC 6 0 Item number of the reference item
REF_DOC_CA VBTYP_V CHAR 1 0 Document category of preceding SD documentLet me know if it takes the price for this item from the quote instead.
2009 Jan 30 4:47 PM
i was missing the "B". i tried it, but it is still ignoring the quote.
2009 Jan 30 4:51 PM
you pointed me in the right direction, though. it turns out to be the VAL_CONTR and VAL_CON_I fields.
thanks for your help.
2009 Jan 30 5:09 PM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |