Ansicht
Dokumentation

/SAPAPO/FOT_CALCULATE - FOT:Calculate conf / GM / ACTquantities for transactions

/SAPAPO/FOT_CALCULATE - FOT:Calculate conf / GM / ACTquantities for transactions

General Material Data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is called twice by /SAPAPO/FOT_MAIN_INT during an FOT (Flexible Order Transaction) .

There are three function modules called by this one (check their respective function module documentation for detailed functionality):

  • ,,/SAPAPO/FOT_CALCULATE_SPLIT:,,Split an order into multiple orders
  • ,,/SAPAPO/FOT_CALCULATE_MERGE:,,Merges multiple orders into one order
  • ,,/SAPAPO/FOT_CALCULATE_PRODCH:,,Changes the final product of an order

Example

CT_ORDERS is the main table which holds one entry per order in the current action. (One action can have multiple orders. For example, merging three orders into one will result in four order entries for this merge action).

CT_ORD_STATUS is the table which holds order status, and sets the STATUS field to 'P' in case of any errors.

CT_MAP is the table which holds the mapping information between the reporting points of Original and resulting orders.

  • ,,CT_MAP-ORDIDFR,,Order with MAIN_ORDER flag in CT_ORDERS = #X# (Parent in case of split, surviving in case of merge, and Original order in case of product change)

  • ,,CT_MAP-ORDIDTO,,Order with MAIN_ORDER flag in CT_ORDERS = blank (Child in case of split, merging in case of merge, and resulting order in case of product change)

  • ,,CT_MAP-RPFR,,,,Reporting point from order ORDIDFR

  • ,,CT_MAP-RPTO,,,,Reporting point from order ORDIDTO

SPLIT:

Field CT_ORDERS-MAIN_ORDER = 'X' AND

  • CT_ORDERS-ORD_STATUS = '01' or '10', ,
  • is Parent Order
  • CT_ORDERS-ORD_STATUS = '04', ,
  • is Parent Order after split

Field CT_ORDERS-MAIN_ORDER = ' ' AND

CT_ORDERS-ORD_STATUS = ' ' or '04', , , ,

  • is Child Order after split

MERGE:

Field CT_ORDERS-MAIN_ORDER = 'X' AND

CT_ORDERS-ORD_STATUS = '01' or '10'

  • is Surviving Order before merge

CT_ORDERS-ORD_STATUS = '04', ,

  • is Surviving Order after merge

Field CT_ORDERS-MAIN_ORDER = ' ' AND

CT_ORDERS-ORD_STATUS = ' 01' or '10'

  • is Merging Order

PRODUCT CHANGE:

Field CT_ORDERS-MAIN_ORDER = 'X' AND

CT_ORDERS-ORD_STATUS = '01' or '10'

  • is Original Order

Field CT_ORDERS-MAIN_ORDER = ' ' AND

CT_ORDERS-ORD_STATUS = ' ' or '04'

  • is Resulting Order

Notes

Further information





Parameters

CT_MAP
CT_ORDERS
CT_ORD_STATUS
ET_COPR
IS_GEN_DATA_INT

Exceptions

ACTION_INVALID
QUANTITY_ERROR
READ_ERROR
STATUS_INVALID
UNKNOWN_ERROR
WIPMOVE_INVALID

Function Group

APO/SAPLFOT_CALCULATION

ROGBILLS - Synchronize billing plans   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 3523 Date: 20240424 Time: 145253     sap01-206 ( 43 ms )