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: 

Force Recalculating of condition value

chin_yunonn
Explorer
0 Kudos

Hi All,

I have a requirement to calculate the condition value for certain condition type (eg : ZM00, ZM01, ZM02, etc) under T-code VA22.

I created a customize subroutine under VOFM and is assigned to the pricing condition already.

I have a customize field as duration(ZFIELD). I am suppose to get the condition value(XKOMV-KWERT) after the conversion done by SAP multiply by the duration(ZFIELD). This is because the amount(XKOMV-KBETR) enter by the user may be in different currency and SAP will done the conversion and I will get a converted condition value (XKOMV-KWERT).

All things are working fine except that when I go to the customize field to change the duration and come back to the line item. The line item does not recalculate the conversion because the amount or currency was not changed hence not calculating my duration as well (Its actually calculate, but in other words means that it is overwritten by the old value because it is not reconverting and not updating the buffer).

So if anyone could help me on this would be greatly appreciate.

I need a solution kind of like forcing the conversion to take action (even the amount or currency are not changed) once I enter the screen.

Thanks.

1 ACCEPTED SOLUTION

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Guess with include MV45AFZB, subroutines USEREXIT_NEW_PRICING_VBAP, USEREXIT_NEW_PRICING_VBKD.

Regards

Eduardo

3 REPLIES 3

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Guess with include MV45AFZB, subroutines USEREXIT_NEW_PRICING_VBAP, USEREXIT_NEW_PRICING_VBKD.

Regards

Eduardo

0 Kudos

Hey E_Hinojosa

Thanks Very Much.

I done in the user exit - USEREXIT_NEW_PRICING_VBAP

adding the condition to change the

NEW_PRICING = 'B'

and it will recalculate.

Thanks again.

Former Member
0 Kudos

i am newly work on CRM. can anyone tell where & what codes are writing.

  1. 1. A new field will be introduced in the quote line item screen showing the applicable pricing category derived from the custom table.  This field should be called, “Third Party Pricing” To derive the right pricing, the system should look for an entry in the custom table that holds the quote’s location account material id, and a validity to and from date range that is still active (e.g., current system date falls within the validity date range) AND the inhibit flag is unchecked. If no entry exists for the given location account OR if there is an entry but the third party pricing is no longer valid according to the PPL (pricing table), a third party pricing should be defaulted. This default should be one of the following:
    1. a. Non- Professional: If the location account has an attribute of “Non-Professional” and if the non-professional third party pricing is available for the product.  This non-professional attribute can be derived by pulling the customer’s organization type. Customers with an assigned organizational type of either “Academia” or “Retail” are considered Non-Professional. See Appendix 10.2.2 for the listing of organizational types. Note that the non-professional/professional attribute is NOT part of customer master but it is based on the organizational type value of the customer.  It will be derived by SAP CRM only when determining if a customer should receive a non-professional or educational discount during the quote process. This needs to be especially highlighted during user training.
    2. b. Standard: If customer is NOT a non-professional, then default to Standard. Standard will always have a 0% discount.