cancel
Showing results for 
Search instead for 
Did you mean: 

Pricing procedure

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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


Former Member
0 Kudos

Checked everything you mentioned. Was setup identical.

Problem was that field komp-rke_ww021 is initial when moving to header conditions.

Maybe something wrong in SAP standard?

I took another field from struct komp and now it works fine!

Thanks a lot!!!

Former Member
0 Kudos

Dear Wolfgang!

Great!

So you know what you won't find KOMP-RKE_WW021 in SE11.

Good to see that you gone one step beyond and resolved it..Keep it up.

Thanking you!

Ashish Mishra



Answers (0)