05-08-2008 3:26 PM
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 .
05-08-2008 3:28 PM
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
05-08-2008 3:34 PM
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.
05-08-2008 4:08 PM
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
05-08-2008 4:13 PM
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
05-08-2008 4:20 PM
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