on 12-08-2014 1:44 PM
Hi Gurus,
Can anyone help me to save the updated price in sales order?
[Requirement]
Overwrite the condition amount with the amount which is determined and calculated outside of standard pricing procedure.
[What's been done so far]
- Implement a logic to overwrite XKOMV-KBETR in USEREXIT_NEW_PRICING_VBKD
- Implement a logic to overwrite XKOMV-KBETR in USEREXIT_NEW_PRICING_VBAP
Somehow it's been successful in debug mode.
But when I run through without debugging after we implement the logic, the price is updated according to the amount in the condition table.
Is there any other user exit where I have to take care of?
Your help would be much appreciated.
Best Regards,
Mari
Hi,
Can you please elaborate your requirement ?
as I am trying to understand but seems I am failing somewhere to complete my picture.
What do you mean by "Outside the pricing procedure"? does this condition type is a manual condition?
or will it be having some condition records?
Sorry but need the requirement again in clarity.
Thanks,
Sridhar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sridhar,
Thanks a lot for your reply.
Please let me explain a bit deeper;
[Requirement]
- Condition record is maintained for the condition type, normally it's retrieved from there.
- Only when there are multiple items with the same customer material, we need to sum up the quantities and check the scale price for the total quantity.
- If there is scale price found, overwrite the price from standard pricing procedure with the retrieved amount.
[Example]
SO#12345
Item#100 Customer Material: ABC, Quantity 200EA
Item#200 Customer Material: ABC, Quantity 100EA
Condition record for Customer Material ABC
base price: 10USD
200EA ~: 8USD
300EA ~: 6USD
In this case, the price for both item#100 and item#200 are to be 6USD.
We will sum up the quantity and it goes 300EA, then utilize CONDITION_RECORD_READ.
Retrieve KBETR based on 300EA.
[Issue]
Reading condition is working well, and it seems we are successful to overwrite XKOMV-KBETR with 6USD both in USEREXIT_NEW_PRICING_VBKD and USEREXIT_NEW_PRICING_VBAP.
But item #100 will be overwritten with 8USD and #200 with 10USD when the document is saved.
Your advice would be much appreciated.
Best Regards,
Mari
Hi Samier,
Thanks a lot for your feedback.
In fact, we've been unaware of group condition.
Thanks for giving us a light on it.
But since we are sharing the global template and the condition type is also used by other companies, we prefer to use userexit rather than customizing/routine.
And now we found FRM_KONDI_WERT_800 (RV64A800) where finally I was successful to update the price as I wanted.
Thanks a lot.
Best Regards,
Mari
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.