Ansicht
Dokumentation
/SAPAPO/FOT_GET_RPTID_FR - FOT - Get RP data of 'From' fields. For Merge, also get data for 'To'
CL_GUI_FRONTEND_SERVICES - Frontend Services PERFORM Short ReferenceThis documentation is copyright by SAP AG.
Functionality
This function module reads tables in the format of /SAPAPO/FOT_RP_MAP_EXT_TAB, copies fields to /SAPAPO/FOT_RP_MAP_INT_TAB, and gets the order ID and RP of 'From' fields. For Merge, it also gets fields for 'To' fields. Then it checks for missing goods receipt RPs.
-,,Loops at table RP_MAP_EXT_TAB,
o Copies fields to RP_MAP_INT_TAB
o Collects FROM order number, perform forms GET_ORD_RP to get order ID and RP ID of these orders and put them in table LT_ORD_RP.
o In case of Merge, collects TO order number, perform forms GET_ORD_RP to get order ID and RP ID of these orders and put them in table LT_ORD_RP.
-,,Loops at table RP_MAP_INT_TAB,
o Reads table LT_ORD_RP by matching order number and RP number to FROM fields and get s order ID and RP ID.
§ Reads table ORD_NESTED_TAB with order ID and get s order UNIT for field BASEUNIT.
o When RP name is blank, loops at table ORD_NESTED_TAB to get the corresponding order ID then get all RPs of this order by calling /SAPAPO/PPC_GET_ORDER_RPTID_IN to get RP table LT_RPTID_QUNT_INF. Loops at table LT_RPTID_QUNT_INF, in case of Merge, takes the first RP name and ID, otherwise, takes the RP name and ID with the first non-zero WIP. During the loop, if the current unit is different from the previous unit, does the conversion by calling subroutine CONVERT_QUANTITY in program /SAPAPO/SAPLFOT_CALCULATION.
o For Merge only, reads table LT_ORD_RP by matching order number and RP number to 'To' fields and gets order ID and RP ID.
o For Merge only, if RP name of 'To' field is blank, loops at table ORD_NESTED_TAB to get the corresponding order ID, then gets all RPs of this order by calling /SAPAPO/PPC_GET_ORD_RPTID_IN to get RP table LT_RPTID_QUNT_INF. Loops at table LT_RPTID_QUNT_INF to take the RP name and ID with the first non-zero WIP.
- Calls function /SAPAPO/FOT_GR_RP_MAPPING to add possible missing goods receipt RP entry.
Example
Notes
Further information
Parameters
CT_RP_MAP_INTIT_ORD_NESTED_TAB
Exceptions
CONVERSION_NOT_FOUNDORDER_NOT_FOUND
ORD_IN_MAP_NOT_FOUND_IN_NESTED
ORD_RP_COMB_NOT_FOUND
RP_NOT_ALLOWED
RP_NOT_FOUND
Function Group
APO/SAPLFOT_READINGSUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 2549 Date: 20240419 Time: 140034 sap01-206 ( 54 ms )