/SAPAPO/FOT_CALCULATE_SPLIT - Function module with Split algorithm

Vendor Master (General Section)   General Data in Customer Master  
This documentation is copyright by SAP AG.

Functionality

Split One order into several orders.

There are three ways to Split an order,-- distinguished from the field LS_FOTMOD-WIPMOVE in the subroutine: SPLIT_SOFT_MAPPING.

  1. HARD split:,,No WIP allowed at a RP which does not have a mapping.
  2. Soft UP :,,If SPLIT quantity from a reporting point is greater than the WIP available at that RP, theextra WIP from next non-mapped RPs is added to this RP: The mapping for non-mapped RPs is added to accomplish this task.
  3. Soft DOWN:,,If SPLIT quantity from a reporting point is greater than the WIP available at that RP, theextra WIP from previous non-mapped RPs is added to this RP: The mapping for non-mapped RPs is added to accomplish this task.

DIFFERENT UNITS OF MEASURE HANDLING:

This function module takes care of the unit of measure changes between the orders, as well as the reporting point quantities in the order in the following manner:

  • The parent order header quantity is used as the base unit of measure (BASEUNIT) in the order.
  • All the quantities in the order are converted to the base unit before calculations. The unit ofmeasure conversion must be defined in the original order's material master or in the configuration.If configuration also has the conversion factor defined for the two units in question, then the material master conversion factor will be over-written by the one defined in the configuration.
  • If child order header unit is different from the parent order header unit (different material), the conversion factor defined in the two material masters must be same, otherwise the transaction will abort.
  • If there are different units of measure used in the child order reporting points, their conversionfactor to the parent order header unit must be defined either in the parent material master, or the configuration.
  • All the quantities are calculated after converting the quantities in baseunit, and then the calculated quantities are converted back to their respective units of measures.
  • The WIP transfer quantities (WIPQUANT in CT_MAP) may also have a different unit than the parentorder header unit, but the same restriction applies here as well: the conversion factor must be defined either in the parent material master or the configuration.

The information of the Original (parent) order and Resulting (child) orders is sent in the table CT_ORDERS.

CT_ORDERS has nested RP (reporting point) structure CT_ORDERS-RP_TAB

  • RP_TAB has nested:
  • GM (Goods Movement) for particular RP

  • ACT (Activity / resource utilization) for a particular RP

CT_ORDERS-MAIN_ORDER = 'X' identifies the Parent order (Original / Main resulting)

CT_ORDERS-MAIN_ORDER = ' ' identifies the Child orders (resulting)

CT_ORDERS-ORD_STATUS = Determines the level of the transaction

Example

Scenario example:

Mapping Table Parent Order
FR--TOWIPQUANT RPWIP
A1--B118 A118
A2--B110 A217
A2--C24 A355
A3--B45 
A3--C318
Child order1 Child Order2 New Parent Order
ORDER_B ORDER_C ORDER_A
RPWIPRPWIPRPWIP
B128C1 A10
B2 C24A23
B3 C318A332
B45 

Note:

The Components and Resources attached to particular reporting points will also be transferred to theChild orders based on the mapping table information and the quantities proportionately. The WIP transferquantities in the mapping table are used to calculate the proportional GM/ACT quantities at reportingpoints. If the algorithm determines that some of the GR quantity is also to be transferred to child orders, the GR transfer quantity is used to calculate the GM/ACT transfer quantities.

Notes

The logic uses following temporary internal tables :

LT_PARENT,,to store Original (Parent) order structure

LT_CHILD,,to store resulting (child) order structures

During the processing, these two tables are used to calculate WIP transfer quantities, new confirmation quantities and GM / ACT transfer quantities.

Further information


Parameters

CT_COPR
CT_MAP
CT_ORDERS
IS_GEN_DATA_INT

Exceptions

QUANTITY_ERROR
READ_ERROR
STATUS_INVALID
UNKNOWN_ERROR
WIPMOVE_INVALID

Function Group

APO/SAPLFOT_CALCULATION

General Material Data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.


Length: 7077 Date: 20120525 Time: 023338     triton ( 193 ms )