5.1.11

SAP Note 17009 - Conditions: Sales deal and promotion are not reset

Symptom:

Sales deal and promotion were transferred from copied record in transaction 'Create with reference'.

Cause and prerequisites

Missing code.

Solution
In MV13AF0K


FORM KONH_SELECT.
.
.
LOOP AT KONH_TMP.
XKONH = KONH_TMP.
* Anlegen mit Vorlage ?
IF ORIGINAL_AKTYP = AKTYP-MODEL.
....
* Promotion und Verkaufsaktion
CLEAR XKONH-KNUMA_PI.
CLEAR XKONH-KNUMA_AG.
...
ENDIF.
APPEND XKONH.
ENDLOOP.


FORM KONP_SELECT.
.
.
LOOP AT KONP_TMP.
MOVE-CORRESPONDING KONP_TMP TO XKONP.
* Anlegen mit Vorlage ?
IF ORIGINAL_AKTYP = AKTYP-MODEL.
* Promotion und Verkaufsaktion
CLEAR XKONP-KNUMA_PI.
CLEAR XKONP-KNUMA_AG.
ENDIF.
APPEND XKONP.
ENDLOOP.
ENDFORM.

No comments:

Post a Comment