SAP ABAP IMG Activity /CWM/GM_CREATE (BAdI: Deriving CWM-Relevant Quantity Fields from Entry Quantities)
Hierarchy
IS-CWM (Software Component) Industry Solution Catch Weight Management
   IS-CWM (Application Component) Industry Solution Catch Weight Management
     /CWM/APPL_MM (Package) Inventory Management
IMG Activity
ID /CWM/GM_CREATE BAdI: Deriving CWM-Relevant Quantity Fields from Entry Quantities  
Transaction Code /CWM/15000036   (empty) 
Created on 20050303    
Customizing Attributes /CWM/GM_CREATE   BAdI: Deriving CWM-Relevant Quantity Fields from Entry Quantities 
Customizing Activity /CWM/GM_CREATE   BAdI: Deriving CWM-Relevant Quantity Fields from Entry Quantities 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name /CWM/GM_CREATE    

Use

Business Add-In (BAdI) /CWM/GM_CREATE is used in the Catch Weight Management (IS-CWM) component.

You can use this BAdI when you call BAPI BAPI_GOODSMVT_CREATE, to obtain the quantity fields relevant for CWM from the entry quantities.

Requirements

If you transfer a goods movement for a CW material (for example, using an IDoc) from a system without Catch Weight Management to one that uses CWM, the receiving system must calculate the CW quantities in the parallel unit of measure from the entry quantities.

The system only calls BAdI /CWM/GM_CREATE if you used BAPI BAPI_GOODSMVT_CREATE to initiate the goods movement.

Standard settings

  • The BAdI is active in the standard system. Only example code is shipped.
  • The BAdI is not filter-dependent.
  • The BAdI is not designed for multiple use.

Activities

After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:

  1. In the dialog box, enter a name for the implementation of the Add-In and choose Create.
    The system displays the initial screen for creating Business Add-In implementations.
  2. On this screen, enter a short description for your implementation in the Implementation Short Text field.
  3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
  4. Save your entries and assign the Add-In to a package.
  5. To edit a method, double-click its name.
  6. Enter your implementation code between the method <Interface Name>~<Name of Method>. and endmethod. statements.
  7. Save and activate your code. Navigate back to the Change Implementation screen.
    Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step:
  8. Choose Activate.
    When the application program is executed, the code you created is run through.

See also:

Interfaces

Interface /CWM/IF_EX_GM_CREATE

Example

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG /CWM/GM_CREATE 0 /CWM/SO70000001 Industry Solution Catch Weight Management 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20050303 
SAP Release Created in 200