cancel
Showing results for 
Search instead for 
Did you mean: 

Simulate Sales Order pricing based on quotation and with varianty configuration

Former Member
0 Kudos

Dear Comunitty,

I'm in ECC 6.0 and I need to simulate a Sales Order Pricing with the following requirements: - copying a quotation (Header, Item and Variant Configuration data);

- using variant configuration to calculate pricing

- add some manual prices and see the effects on pricing calculation Can you please indicate the best BAPI or FM to use in this case and a list of the mandatory fields to get these results. And example is very welcome too.

- good response time (performance) is a requirement too.

Thanks in advance by your support. Best regards,

Accepted Solutions (0)

Answers (2)

Answers (2)

VeselinaPeykova
Active Contributor

I don't wish to discourage you, but a true copying of sales documents with a BAPI is not fully supported as explained in note 370988 - BAPIs in SD: Creation with reference. In the same note it is described what are the possible options: 1) make an exact full copy and then adjust the result or 2) replicate in your program what copy controls do (VTAA). There is even some code example in the same note how to do this. It is for a different BAPI, but as a developer you should be able to figure out the concept and apply it to your case.

The second option mentioned there is probably closer to what you want, but speaking from personal experience, it is difficult to support such solution, because you have to adjust the code every time when customizing is changed.

As to mandatory fields and how to use them - besides the example in the note, transaction BAPI and the FM documentation provides some information how to fill the data. In addition. for filling configuration data, notes 1896387 - How to fill the configuration structure of the BAPI_SALESORDER_CHANGE and 481102 - BAPI_SALESORDER_CREATEFROMDAT2 & configuration are good starting points. There are many people who have worked on BAPI+configuration, make sure to do a Google search if you encounter problems.

Edit: Please show the results of what you read and tried when you ask for help in the future. While spec dumping is not strictly forbidden here, it decreases significantly your chances of receiving useful replies and sometimes it leads to content rejection by a moderator, because similar questions have been asked before and you forgot to explain why none of them were helpful in any way.

Former Member
0 Kudos

Very good information, tks.

I did a different approach as in my requirement I don't need to save the Sales Order, so I did a sequence of RFC calls:

VC_I_GET_CONFIGURATION to get pricing relevant characteristics values;

PRICING_LOAD_VARIANT_KEYS to send these values to memory;

PRICING to calculate pricing;

We're testing now, but so far is giving us the required results...

Former Member
0 Kudos

Tks by your inputs...

I'll have a look in these notes. I couldn't find them in my first research.