14.12.10

SAP Note 13448 - Combining stock transfer orders into one delivery

Symptom:

Several orders made by the same plant are not combined into one delivery.

Reason and Prerequisites

This function is not provided up to and including Release 4.0B.

If required, you can use the attached modification.
As of Release 4.5A, combining orders is possible. It depends on the combination indicator in the customer master specific to sales and distribution. Since the indicator is related to the sold-to-party, the ship-to party in the stock transfer order must also be created in the sold-to party role.

Solution
You may combine several purchase orders in one delivery by making the following changes:

Include MV50SSAM:

FORM XKOMDLGN_FUELLEN.

...

MOVE-CORRESPONDING XEKPV TO XKOMDLGN.
XKOMDLGN-KZAZU = 'X'. <--- insert

...


Use the following user exit for old purchase orders that you created in a release earlier than Release 4.5 and that you want to process a delivery for in Release 4.6 using transactions VL10B, VL10D or VL10F:

You can enable the combination in the user exit by setting the column "kzazu" to value 'X' in internal table ct_komdlgn.

Include LV50R_VIEWF62
FORM USEREXIT_PREPARE_PACKAGES_CHAN
USING IX_LIST_PROFIL TYPE SHP_VL10_LIST_PROFIL
IT_POSTAB TYPE SHP_VL10_POSTAB_T
CHANGING CT_PACKAGES TYPE SHP_VL10_PACKAGE_T
CT_VORGABE_DATEN TYPE SHP_VORGABE_DATEN_T
CT_komdlgn TYPE SHP_komdlgn_T.

Field symbols: like line of ct_komdlgn. <--- insert
loop at ct_komdlgn assigning . <--- insert
-kzazu = 'X'. <--- insert
endloop. <--- insert

ENDFORM. " USEREXIT_PACKAGES_CREATE

Key word: Stock transfer

No comments:

Post a Comment