28.12.10

SAP Note 16253 - Condition base value with reference to subtotal = 0

Symptom:

If several billing documents are created in collective processing (VF01 or VF04), all condition base values as of the second billing document refering to a subtotal are zero. This effects, for example, the sales tax, which is displayed to be zero.
In particular, this means that the FI transfer does not take place because the tax amount transferred is zero.

Cause and prerequisites

A follow-up function carries out a refresh. The pricing program is not prepared for that.

Solution
Corrected in 2.2G/3.0B

Program LV61AF0K ( up to and including Release 2.2C )

FORM KONDITIONSVORSTEP USING INCL_ZUGRIFFSFOLGE.
.
.
.
PERFORM USEREXIT_PRICING_RULE.
ENDIF.

* Prüfen ob Vorstep auszuführen ist <------ insert
IF KOMK-IX_KOMT1_V NE 0. <------ insert
READ TABLE KOMT1 INDEX KOMK-IX_KOMT1_V. <------ insert
IF SY-SUBRC NE 0 OR KOMT1-KAPPL NE KOMK-KAPPL. <------ insert
KOMK-IX_KOMT1_V = 0. <------ insert
KOMK-IX_KOMT1_B = 0. <------ insert
ENDIF. <------ insert
ENDIF. <------ insert
* Vorstep ausführen
IF KOMK-IX_KOMT1_V = 0.


Program LV61AU10
.
.
.
CLEAR TKOMK. <------ insert
READ TABLE TKOMK INDEX 1. <------ insert
LOOP AT KOMT1 WHERE KAPPL = 'V '. <------ insert
EXIT. <------ insert
ENDLOOP. <------ insert
IF SY-SUBRC = 0 AND TKOMK-KAPPL NE 'V '. <------ insert
EXIT. <------ insert
ENDIF. <------ insert

LOOP AT KOMT1 WHERE KAPPL = 'KA'. <------ insert
EXIT. <------ insert
ENDLOOP. <------ insert
IF SY-SUBRC = 0 AND TKOMK-KAPPL NE 'KA'. <------ insert
EXIT. <------ insert
ENDIF. <------ insert

LOOP AT KOMT1 WHERE KAPPL = 'TX'.
EXIT.
ENDLOOP.
IF SY-SUBRC = 0.
CALL FUNCTION 'PRICING_REFRESH_TX'.
ENDIF.
.
.

After the billing document is released to accounting, the values are corrected. This also occurs when you branch to the header pricing screen. It is not necessary to carry out pricing again.
Make sure that you also install note 51126.

No comments:

Post a Comment