SAP ABAP IMG Activity W_MDS_0005 (BAdI: Control for Creating Follow-On Documents in Merchandise Distribution)
Hierarchy
BBPCRM (Software Component) BBPCRM
   LO-MDS (Application Component) Merchandise Distribution
     WFRM (Package) ISR: Cross-Docking and Floor-Ready Merchandise
IMG Activity
ID W_MDS_0005 BAdI: Control for Creating Follow-On Documents in Merchandise Distribution  
Transaction Code S_AL0_96000465   (empty) 
Created on 20011127    
Customizing Attributes W_MDS_0005   BAdI: Control for Creating Follow-On Documents in Merchandise Distribution 
Customizing Activity W_MDS_0005   BAdI: Control for Creating Follow-On Documents in Merchandise Distribution 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name WFRM_CRE_FOLLON_DOC    

Use

With this Business Add-In (BAdI) you can override the time for the (automatic) generation of follow-on documents in goods distribution.

As settings in Customizing for adjustment/delivery generation in the distribution profile for the plant act as a kind of constraint, the following situation could arise:

The following settings are made in Customizing (view V_TWFPFG):

1.    Time of adjustment: At goods receipt where the size of the deviation is checked

2.    Time of CD delivery generation: Goods receipt

If the difference in the goods receipt between the ordered and delivered quantity exceeds the size of the deviation, then the adjustment has to be carried out manually. Once the under/overdelivery has been adjusted, the cross-docking deliveries should be created automatically. However, this is prevented by the second setting in Customizing.

The BAdI is called immediately by the function module W_FRM_GET_CUSTOMIZING in transactions WF30 (goods distribution monitor) and WF50 (Adjust distribution) once the Customizing settings have been determined. You can then change the Customizing settings that have just been determined using your own logic in the BAdI.

Standard settings

The Business Add-In is activated in the standard system.

There is a default coding that is executed automatically (see example).

The BAdI cannot be used more than once and is not dependent on a filter.

Activities

Nach dem Aufrufen der IMG-Aktivität gelangen Sie zunächst auf ein Dialogfenster, in dem Sie einen Namen für die Implementierung eingeben.

Falls bereits Implementierungen zu diesem BAdI angelegt wurden, gelangen Sie auf ein Dialogfenster, in dem die existierenden Implementierungen angezeigt werden. Wählen Sie in diesem Dialogfenster Anlegen und fahren Sie wie folgt fort:

  1. Geben Sie im Dialogfenster im Feld Implementierung einen Namen für die Implementierung des BAdIs ein und wählen Sie danach Anlegen.

    Sie gelangen auf das Einstiegsbild zum Anlegen von BAdI-Implementierungen.

  2. Geben Sie in dem Einstiegsbild im Feld Kurztext zur Implementierung einen Kurztext für die Implementierung ein.
  3. Wählen Sie im Registerindex Interface.

    Auf der Registerkarte ist das Feld Name der implementierten Klasse automatisch gefüllt, da das System aufgrund des Namens Ihrer Implementierung einen Klassennamen vergibt.

  4. Sichern Sie Ihre Eingaben und nehmen Sie die Zuordnung zu einer Entwicklungsklasse vor.
  5. Positionieren Sie den Cursor jeweils auf der Methode und verzweigen Sie per Doppelklick in die Methodenbearbeitung.
  6. Geben Sie zwischen den Anweisungen method <Interface-Name>~<Name der Methode>. und endmethod. das von Ihnen gewünschte Coding zur Implementierung ein.
  7. Sichern und aktivieren Sie Ihr Coding und navigieren Sie zurück zum Bild Ändern Implementierung.
  8. Sichern Sie auf dem Bild Ändern Implementierung.

    Hinweis: Es ist ebenfalls möglich, für ein BAdI zunächst eine Implementierung anzulegen und diese später zu aktivieren. In diesem Fall schließen Sie die Bearbeitung zum jetzigen Zeitpunkt ab.

  9. Wählen Sie Aktivieren.

    Bei der Ausführung des Anwendungsprogramms wird jetzt das von Ihnen in der Methode hinterlegte Coding durchlaufen.

Example

To avoid the situation described in the Use section occurring, you can alter the Customizing settings using the BAdI so that the time of the CD delivery generation is no longer the goods receipt , but rather the adjustment time.

For further information, see the commentary on how to implement the example.

Documentation on the BAdI method DET_TP_CRE_FOLLOWON_DOC

Business Attributes
ASAP Roadmap ID 153   Design enhancements 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20011204 
SAP Release Created in 470