on 11-12-2012 9:09 AM
Hello,
I have created a statistical condition ZBPR within my pricing procedure.
This condition ZBPR has a calculation rule as follows:
FORM FRM_KONDI_WERT_940.
data: i_kwert like xkomv-kwert.
if komp-kposn ne 0.
i_kwert = komp-brtwr.
if komp-rke_ww021 = 'foc'.
xkwert = i_kwert.
else.
xkwert = 0.
endif.
endif.
ENDFORM.
I now realized that when I step into item conditions value in ZBPR is fine.
When I go back and step into header conditions the calculation rule (FRM_KONDI_WERT_940) is called one more time.
Now in FRM_KONDI_WERT_940 kposn is '00010', but komp-rke_ww021 is initial. This will result in that ZBPR is set to 0 !!!
Is there a way to check within FRM_KONDI_WERT_940 whether system is on item conditions or header conditions, because I just want to execute the calculation rule on item conditions ?
Thanks for your responses
Wolf.
Dear Wolfgang
Please set requirement 002, with your condition type and then your calculation rule i.e.
FORM FRM_KONDI_WERT_940.
Now with your condition type please check:
maintain value D in the field manual entries in the changes which can be made box. Also check only item condition box is checked (header condition should be blank).Also Please check there is not any group condition.
And in the access sequence (V/07)
Please check there you have marked Exclusive, this will bring automatic conditions only one time (if they are not group conditions).
lastly when you see conditions twice on header come to line item and check the generation of the conditions i.e. via clicking analysis Button (may be they are coming from manual entry as well as condition record) and also do check with KOMK structure to avoid duplicity if above said things are maintained properly.
Thanking you
Ashish Mishra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.