Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

/CWM/MAIN_QUAN_PRPSL - BAdI: Default Data Logic for Quantities in Different Application Components

/CWM/MAIN_QUAN_PRPSL - BAdI: Default Data Logic for Quantities in Different Application Components

General Data in Customer Master   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Use

Business Add-In (BAdI) /CWM/MAIN_QUAN_PRPSL_EHP5 is used for CW materials.

This BAdI provides a default data logic for:

  • The logistical and parallel pick quantity in the outbound and inbound delivery transactions
  • The logistical and parallel delivery quantity in the outbound and inbound delivery transactions
  • The disputed quantity or quantity to be returned in the quality notification
  • The entry of goods movements using transaction Goods Movement (MIGO)
  • The quantities in the transport transactions
  • The logistical and parallel quantities in subcontracting
  • The confirmation quantity in repetitive manufacturing
  • The entry of goods movements in production

The BAdI provides a fallback logic that can be overwritten by a customer implementation. As the BAdI contains several methods for different areas, you have to implement all of these methods with a customer implementation. This means that for areas (methods) that do not implement a customer logic, the logic from the fallback implementation has to be copied.

If no values are to be proposed, you have to create an empty implementation (methods without coding).

  • There is only a proposal if a pick quantity is specified.
  • There is only a proposal if there is no handling unit requirement for the storage location.
  • The quantities are only proposed if the logistical pick quantity or the parallel pick quantity has been changed by the user, and the logistical or parallel pick quantity is zero.
  • If the logistical pick quantity has been changed by the user, but not the parallel pick quantity, and the logistical pick quantity is other than zero, the parallel pick quantity is recalculated.
  • If the user has changed the logistical pick quantity and the parallel pick quantity, there is no conversion.
  • If the logistical pick quantity is zero and the parallel pick quantity other than zero, the logistical pick quantity is calculated. If the parallel pick quantity is zero and the logistical pick quantity other than zero, the parallel pick quantity is calculated.

The conversion factor is determined in unrestricted stock due to the relationship between the logistical and parallel quantity. The stock determination of the material is made depending on the available data at the lowest possible organizational level, meaning batch level, storage location level, or plant level.

In the following cases, the system uses the conversion factor from the material master for the calculation:

  • If no unrestricted-use stock can be determined
  • If negative stocks are determined
  • If the inventory calculated does not fall within the limits of the tolerance group of the material

  • There is only a proposal if a delivery quantity is specified.
  • The quantities are only proposed if the logistical delivery quantity or the parallel delivery quantity has been changed by the user, and the logistical or parallel delivery quantity is zero.
  • If the logistical delivery quantity has been changed by the user, but not the parallel delivery quantity, and the logistical delivery quantity is other than zero, the parallel delivery quantity is recalculated.
  • If the user has changed the logistical delivery quantity and the parallel delivery quantity, there is no conversion.
  • If the logistical delivery quantity is zero and the parallel delivery quantity other than zero, the logistical delivery quantity is calculated. If the parallel delivery quantity is zero and the logistical delivery quantity other than zero, the parallel delivery quantity is calculated.

The conversion factor is determined in unrestricted stock due to the relationship between the logistical and parallel quantity. The stock determination of the material is made depending on the available data at the lowest possible organizational level, meaning batch level, storage location level, or plant level.

In the following cases, the system uses the conversion factor from the material master for the calculation:

  • If no unrestricted-use stock can be determined
  • If negative stocks are determined
  • If the inventory calculated does not fall within the limits of the tolerance group of the material

  • There is only a proposal if a plant is specified.
  • Quantities are only proposed if the entry quantity or the parallel entry quantity has been changed, and the entry quantity or parallel entry quantity is zero.
  • If the entry quantity has been changed by the user, but not the parallel entry quantity, and the entry quantity is other than zero, the parallel entry quantity is recalculated.
  • If the entry quantity and the parallel entry quantity have been changed by the user and the entry quantity and the parallel entry quantity are other than zero, there is no conversion.
  • If the entry quantity is zero and the parallel entry quantity other than zero, the entry quantity is calculated. If the parallel entry quantity is zero and the entry quantity other than zero, the parallel entry quantity is calculated.

The conversion factor is determined from the material master.

  • There is only a proposal if an entry quantity is specified.
  • The quantities are only proposed if the logistical entry quantity or the parallel entry quantity has been changed by the user, and the logistical or parallel entry quantity is zero.
  • If the logistical entry quantity has been changed by the user, but not the parallel entry quantity, and the logistical entry quantity is other than zero, the parallel entry quantity is recalculated.
  • If the user has changed the logistical entry quantity and the parallel entry quantity, there is no conversion.
  • If the logistical entry quantity is zero and the parallel entry quantity other than zero, the logistical entry quantity is calculated. If the parallel entry quantity is zero and the logistical entry quantity other than zero, the parallel entry quantity is calculated.

The conversion factor is determined in unrestricted stock due to the relationship between the logistical and parallel quantity. The stock determination of the material is made depending on the available data at the lowest possible organizational level, meaning batch level, storage location level, or plant level.

In the following cases, the system uses the conversion factor from the material master for the calculation:

  • If no unrestricted-use stock can be determined
  • If negative stocks are determined
  • If the inventory calculated does not fall within the limits of the tolerance group of the material

The system calls the BAdI with method MIGO_CALC_QUANTITY_PROPOSAL if there is no customer implementation in BAdI /CWM/DEFAULT_MIGO already used, or if a new customer implementation exists in BAdI /CWM/MAIN_QUAN_PRPSL_EHP5.

  • The default for materials is based on the relationship between the actual inventory in the base unit of measure in the parallel unit of measure in the storage location.
  • The default for materials managed in batches is based on the relationship between the base unit of measure and the parallel unit of measure of these particular batches in the storage location.
  • The following activities result in a recalculation of the quantity in parallel unit of measure:
  • The user changes the quantity in base unit of measure; without change to the quantity in parallel unit of measure; the quantity in the base unit of measure is not equal to zero.

  • The user changes the difference quantity between the actual and the target quantity in the base unit of measure; without change to the quantity in the parallel unit of measure.

  • The user changes the base unit of measure; without change to the quantity.

  • There is only a default for the quantity in base unit of measure if this quantity is equal to zero.
  • The default logic does not differentiate between the stock putaway and removal processes. There is a default for the quantity in both processes based on the existing inventory.
  • If a transport order contains handling units, the proposal of the quantities in base unit of measure and parallel unit of measure relates to the handling unit quantities. If the user changes these values, there is no new default for the quantity.

  • There is only a proposal if a quantity is specified.
  • The quantities are only proposed if the logistical quantity or the parallel quantity has been changed by the user, and the logistical or parallel quantity is zero.
  • If the logistical quantity has been changed by the user, but not the parallel quantity, and the logistical quantity is other than zero, the parallel quantity is recalculated.
  • If the user has changed the logistical quantity and the parallel quantity, there is no conversion.
  • If the logistical quantity is zero and the parallel quantity other than zero, the logistical quantity is calculated. If the parallel quantity is zero and the logistical quantity other than zero, the parallel quantity is calculated.

The conversion factor is determined in unrestricted stock due to the relationship between the logistical and parallel quantity. The stock determination of the material is made depending on the available data at the lowest possible organizational level, meaning batch level, storage location level, or plant level.

In the following cases, the system uses the conversion factor from the material master for the calculation:

  • If no unrestricted-use stock can be determined
  • If negative stocks are determined
  • sofern der berechnete Bestand nicht in den Grenzen der Toleranzgruppe des Materials liegt

  • Quantities are only proposed if the confirmation quantity or the parallel confirmation quantity has been changed, and the confirmation quantity or parallel confirmation quantity is zero.
  • If the confirmation quantity has been changed by the user, but not the parallel confirmation quantity, and the confirmation quantity is other than zero, the parallel confirmation quantity is recalculated.
  • If the confirmation quantity and the parallel confirmation quantity have been changed by the user and the confirmation quantity and the parallel confirmation quantity are other than zero, there is no conversion.
  • If the confirmation quantity is zero and the parallel confirmation quantity other than zero, the confirmation quantity is calculated. If the parallel confirmation quantity is zero and the confirmation quantity other than zero, the parallel confirmation quantity is calculated.

The conversion factor is determined from the material master.

  • Quantities are only proposed if the quantity or the parallel quantity has been changed, and the quantity or parallel quantity is zero.
  • If the quantity has been changed by the user, but not the parallel quantity, and the quantity is other than zero, the parallel quantity is recalculated.
  • If the quantity and the parallel quantity have been changed by the user and the quantity and the parallel quantity are other than zero, there is no conversion.
  • If the quantity is zero and the parallel quantity other than zero, the quantity is calculated. If the parallel quantity is zero and the quantity other than zero, the parallel quantity is calculated.

The conversion factor is determined from the material master.

Note
This default data logic applies for all CWM enhanced dynpros when processing material movements in production. This affects both the first dynpro call and also each manual quantity change. You can implement different default logic in production (for example, depending on the order category) using a customer implementation taking into account the transferred control parameters.

The default data logic is not executed in display mode. The default data logic is only executed for CW materials.

  • The Business Add-In is not active in the standard system. A fallback implementaton is available.
  • The Business Add-In cannot be used multiple times.
  • The Business Add-In is not filter-dependent.

Once you have called the IMG activity, procede as follows:

  1. In the Implementation field in the following dialog box, enter a name for the implementation of theBAdI, and choose Transfer.
  2. If you have already created implementations for the BAdI, a dialog box is displayed with the existing implementations. Choose Create.
  3. Enter a short text for the implementation in the appropriate field.
  4. Choose the Interface tab.
  5. The name of the class being implemented is generated by the system based on the name of your implementation. You can change this name if you need to.
  6. Save you entries, and assign a package.
  7. Position the cursor on a method. Call the Class Builder by double-clicking.
  8. Between the instructions Method <Interface Name>~<Name of Method> and End Method., enter the coding for the implementation you require.
  9. Save and activate your coding.
  10. Navigate back to the Change Implementation screen, and save your entries.,,
    Note:
    You can create an implementation for a BAdI first, and activate it later. In this case, close the processing now.
  11. Choose Activate.
  12. When you execute the application program, the coding you created is run.





General Data in Customer Master   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 15990 Date: 20211129 Time: 084543     sap01-206 ( 225 ms )