Application Development 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: 

How to get pricing conditions while creating Sales Order

Former Member
0 Kudos

Hi Guys,

When we create sales order using VA01, price is automatically determined using pricing condition configured.

My requirement is, I need to know what would be the price of a particular item.Say i put one item A with quantity x,can I get which price conditions will be applied and what value will come for them.I need this because I need to validate this price with some other price put in a file .

5 REPLIES 5

naimesh_patel
Active Contributor
0 Kudos

Try in subroutien USEREXIT_PRICING_PREPARE_TKOMP in include MV45AFZZ.

You will have internal table XKOMV with the current vales of the pricing condition.

Regards,

Naimesh Patel

0 Kudos

Thanks Naimesh for quick reply.

Actually I'm going to create order by bapi

BAPI _ SALESORDER _ CREAT EFROMDAT2 .

I would be getting header details and item details like material.This data would be in a file.Also price would be there.So before going to bapi I need to check the price.

0 Kudos

This routine will hit even if you crate sales order from BAPI.

If you want to validate the price before calling the BAPI than you need to go through access sequence for that pricing condition.

Regards,

Naimesh Patel

0 Kudos

Thanks Naimesh,

Actually I can't use that exit.Because then it will be applicable of all orders.This I need only for some orders.

Please tell me how to go through access sequence.Is there any function module for the same

0 Kudos

I would suggest to use the Exit because that will be less efforts and you can implment and debug it easily. Moreover, you can restrict it by any condition e.g. order type, order reason because all the internal tables are available at that point.

Whereas, accessing the access sequence is cumbersome process. You need to go to all the combinations (tables) in the access sequcen and try to find out the suitable match .

Regards,

Naimesh Patel