Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using quote values w/ BAPI_SALESORDER_SIMULATE

Former Member
0 Likes
1,022

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
834

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 document

Let me know if it takes the price for this item from the quote instead.

4 REPLIES 4
Read only

Former Member
0 Likes
835

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 document

Let me know if it takes the price for this item from the quote instead.

Read only

0 Likes
834

i was missing the "B". i tried it, but it is still ignoring the quote.

Read only

0 Likes
834

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.

Read only

0 Likes
834

Let me try this in my system and let you know.