SAP ABAP IMG Activity WORKORDER_GOODSMVT (BAdI: Automatic Goods Movements)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   PP-SFC (Application Component) Production Orders
     COBADI (Package) Development Class: Business Add-Ins
IMG Activity
ID WORKORDER_GOODSMVT BAdI: Automatic Goods Movements  
Transaction Code S_AC0_52000428   (empty) 
Created on 20050128    
Customizing Attributes WORKORDER_GOODSMVT   BAdI: Automatic Goods Movements 
Customizing Activity WORKORDER_GOODSMVT   BAdI: Automatic Goods Movements 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name WORKORDER_GOODSMVT    

Use

You can use this Business Add-In to manipulate the goods movements that are determined automatically during creation of a confirmation (backflush or automatic goods receipt). The BAdI only runs, however, for direct posting of the goods movement in dialog mode or in an update task. This Business Add-In does not run for posting flagged goods movements (using transaction CO1P or report CORUPROC).

You can also use the BAdI to manipulate the default data when creating a manual goods receipt for an order in Inventory Management.

  • BACKFLUSH method: By implementing this method, you can change the determined goods movement for backflush components.
    • Parameter I_ORDER_HEADER: Structure with order header data
    • Parameter IT_CONFIRMATIONS: Table with confirmations
    • Parameter CT_COMPONENTS: Table with goods movements that have already been determined for backflush components
    • Parameter CT_FAILED_COMPONENTS: Table with error information on the goods movements that have already been determined. This table contains information on errors that were determined before calling Inventory Management (preliminary errors).
    • Parameter CT_CONF_IND: Table with indicators to confirmation
  • Method GOODS_RECEIPT: By implementing this method, you can change an automatically determined goods receipt.
    • Parameter I_ORDER_HEADER: Structure with order header data
    • Parameter IT_CONFIRMATIONS: Table with confirmations
    • Parameter CT_GOODS_RECEIPT: Table with determined automatic goods receipts
  • Method MANUAL_GOODS_RECEIPT: By implementing this method, you can change the default data for a goods receipt for an order that has been created manually in Inventory Management (for example transaction MB31 or MIGO).
    • Parameter I_ORDER_HEADER: Structure with order header data
    • Parameter IT_ORDER_POSITION: Table with order items
    • Parameter CT_TRANSFER: Transfer table to Inventory Management
  • Method IM_CALLED: These methods run after calling Inventory Management. Here you can, for example, react to errors from Inventory Management.
    • Parameter I_IMSEG: Automatic goods movements
    • Parameter I_EMSEG: Error information from Inventory Management
  • PICKLIST method: This method is called before calling the goods movement overview in the pick list. This allows you to change goods movements beforehand.
    • Parameter CT_COMPONENTS: Table with goods issues
  • GM_SCREEN_LINE_CHECK method: This method is called line-by-line directly after an entry is made on the goods movement overview of the confirmation, picking, or postprocessing.
    • Parameter I_COWB_COMP: Goods movement for checking
  • GM_SCREEN_OKCODE_CHECK method: This method is called directly after executing a function on the goods movement overview of the confirmation, picking, or postprocessing. It can be used for checking authorizations or entries.
    • Parameter CT_COMP: Table with goods movement for checking
    • Parameter I_OKCODE: Executed function code
    • Parameter C_ERROR_FLG: Error indicator for canceling the function
  • COGI_AUTHORITY_CHECK: method: This method is executed directly after executing a function on the list screen of the postprocessing of erroneous goods movements (transaction COGI). It should be used directly for checking authorizations.
    • Parameter IT_AFFWB: Table with goods movements for checking
    • Parameter I_UCOMM: Executed function code
    • Parameter C_ERROR_FLG: Error indicator for canceling the function
  • COGI_POST method: This method is used in the postprocessing of erroneous goods movements (transaction COGI) after saving, and before calling inventory management. This makes it possible to check or change goods movements (goods movements or confirmations).
    • Parameter IT_IMSEG: Table with goods movements from cancellations
    • Parameter IT_AFFWB: Table with goods movements from cancellations
    • Parameter CT_IMSEG: Table with goods movements from confirmations
    • Parameter CT_AFFWB: Table with goods movements from confirmations

Warning

Determining and posting automatic goods movements for a confirmation is a sensitive area. Incorrect manipulation of the determined goods movements can, in some circumstances, cause irreparable data inconsistencies.

Standard settings

The Business Add-In is not active in the standard. The Business Add-In can be used multiple times.

Activities

To activate the Business Add-In, you must create an active implementation. Note that the BAdI can be used multiple times so all active implementations are called and run.

Further notes

Do not run any 'COMMIT_WORK' statements within the method since this would inevitably lead to data inconsistencies in the database.

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 WORKORDER_GOODSMVT 0 HLA0009525 O HLA0009761  
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20080506 
SAP Release Created in 600