21.2.11

SAP Note 22935 - Bonus payment: Additional condition types

Symptom:

Although special condition types have been specified for the rebate in the pricing procedure (for example, condition type DIFF for rounding), only the conditions that are relevant for rebate and taxes are determined.

Cause and prerequisites

Only rebate and tax condition types are determined (and allowed) for rebate payment.

Solution
************************************************************************
Caution: Do not use this note. Instead, use Note 66152!!
************************************************************************

Until it becomes available, only an advance correction is possible:

Edit program LV61AF0K

.
.
.

FORM KONDITIONSVORSTEP USING INCL_ZUGRIFFSFOLGE.
.
.
.
* Allow only rebate and tax conditions during rebate calculation
IF KOMK-KNUMA IS INITIAL.
IF KOMT1-KOUPD = 'X'.
CLEAR: KOMT1-KAEND_MEH, "Unit of measure not changable
KOMT1-KAEND_RCH. "calc. rule not changable
ENDIF.
APPEND KOMT1.
IF KOMK-IX_KOMT1_V = 0.
KOMK-IX_KOMT1_V = SY-TABIX.
ENDIF.
KOMK-IX_KOMT1_B = SY-TABIX.
ELSE.
IF KOMT1-KOAID CA 'CD' OR "Rebate, Taxes <-- Change
KOMT1-KSCHL = 'DIFF'. <-- New
* Automatic pricing: contains only taxes

.
.
.

In this example, condition type "DIFF" is also allowed for rebate payment.

Edit program LV14AU14

.
.
.
* Rounding according to table T001R ?
* IF VALUE_ROUNDING NE SPACE. <-- Change
* IF T001R-REINH NE 0. <-- Change
* BONUS_VALUE = BONUS_VALUE * ( 1000 / T001R-REINH ) <-- Change
* / 1000 * T001R-REINH. <-- Change
* ENDIF. <-- Change
* ENDIF. <-- Change

ENDFUNCTION.
.
.
.

No comments:

Post a Comment