Situation:
You are using several alternative cost conditions in the pricing procedure. All these conditions are defined as statistical prices and use the subtotal = 'B', that is, the last condition not equal to zero determines stock value KOMP-WAVWR.
Problem:
When you use formula 018 to display the profit margin as subtotal (profit margin in percent), the display on the header condition screen of the document is incorrect.
Standard behavior.
Solution by using new condition value formulas, for example, 900 or 901 as follows:
* Verrechnungswert
FORM FRM_KONDI_WERT_900.
XKWERT = KOMP-WAVWR.
ENDFORM.
* Deckungsbeitrag in %
FORM FRM_KONDI_WERT_901.
XKWERT = KOMP-NETWR - KOMP-KZWI5.
XKOMV-KRECH = 'A'.
CHECK: KOMP-NETWR NE 0.
XKOMV-KBETR = XKWERT * 100000 / KOMP-NETWR.
ENDFORM.
Create a new condition type ZZVP (analog to NETW) and include it after the cost conditions with calculation formula 900 and subtotal = '5' (providing it is not already used somewhere else).
All cost conditions coming before that receive subtotal = 'B'.
The next subtotal for the profit margin receives calculation formula 901.
Example in the pricing procedure:
Condition type Frm To Manu Obl Stat Print SbTot Cond Form
VPRS Cost 1 X B 4
ZVPR Cost 2 X B
ZZVP Stock value X 5 900
Profit margin 901
Please refer also to Note 381348.
No comments:
Post a Comment