Sales deal and promotion were transferred from copied record in transaction 'Create with reference'.
Cause and prerequisitesMissing code.
SolutionIn 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