Ansicht
Dokumentation
/SAPAPO/EOGL_LC_GET_RESULT - LOP: Call Result of Length Calculation and Length Plan
PERFORM Short Reference Addresses (Business Address Services)This documentation is copyright by SAP AG.
Functionality
You use this function module to reexecute the length calculation and to make the results available in internal tables. At the same time, the system creates a length plan that documents how the individual lengths of a production order are determined. You can also call this function module from an external system by using Remote Function Call.
Example
You can call the function module from an ERP system that is connected to SAP SCM. By transferring the number of the production order, this function module returns the results of the length calculation that was reexecuted in SAP SCM, in the form of internal tables (ct_apolc and ct_apolp). You can then output the data of these internal tables into a formula you program yourself, and integrate the data in the print output for the production order.
Notes
Note that the length calculation is initially executed by a relevant heuristic when you create the planned order or during planning. The individual steps of this length calculation are not document nor are they updated in any kind of table. As a result, when you use this function module to call the length calculation, you cannot access the results of the length calculation that were relevant at the time of the planning or creation of the production order, because the length calculation is reexecuted.
Also note that the system accesses data from the Production Data Structure (PDS) that is valid at the time you call the function module, and not the data from the PDS that was valid at the time you created the production order. The system does not check whether the data from the PDS has changed between the time you created the production order and the time you call the function module. If relevant data from the PDS has changed, this can lead to incorrect results.
The function module only works in connection with PDS; working with production process models (PPM) is not supported.
In earlier releases, this function module was capable of handling only production orders (IV_R3OBJ = 6). From SAP SCM 7.0 Enhancement Package 2 onwards, it has been enhanced to handle planned orders (IV_R3OBJ = 5) also. You can develop a Z report and call this function module for planning of planned orders.
Further information
Description of Parameters
Import Parameter | Name |
---|---|
iv_logsys | Logical System (Connected OLTP System) |
iv_delnr | Order number from the connected OLTP system |
iv_r3obj | Type of OLTP object (with default value 6 for production order) |
Table Parameters | Name |
---|---|
ct_apoord | Table of data from order header |
ct_apoopr | Table of operations for an order |
ct_apoinp | Table of input nodes for an order |
ct_apoout | Table of output nodes for an order |
ct_apolc | Table for structure of length calculation |
ct_apolp | Table for structure of length calculation and length plan |
Exception Parameters | Name |
---|---|
order_not_found | Order not found |
order_type_failed | Incorrect order type in liveCache |
no_explosion_allowed | Explosion not allowed |
explosion_failed | Explosion failed |
no_pds | No valid PDS found |
error_lc | Error during length calculation |
More Information
The internal table ct_apolc can be evaluated as follows:
Column | Name |
---|---|
oprnr | Transaction |
pos_counter | Item |
bomid | Component |
factor | Individual length factor |
indlength | Individual length |
srapquan | Scrap quantity for each individual length |
unit | Unit |
The values of the fields from_oprnr, from_oprcounter, from_pos, and from_length are not filled in this table. These are available in the table ct_apolp.
The internal table ct_apolp can be evaluated as follows:
Column | Name |
---|---|
oprnr | Transaction |
pos_counter | Item |
length_counter | Factor ID (what length for item) |
bomid | Component |
from_oprnr | Previous operation |
from_pos | Previous item (item for length from which this length was created) |
from_length | Previous factor ID (length from which this length was created) |
Parameters
CT_APOINPCT_APOLC
CT_APOLP
CT_APOOPR
CT_APOORD
CT_APOOUT
CT_MESG
IV_DELNR
IV_LOGSYS
IV_R3OBJ
Exceptions
ERROR_LCEXPLOSION_FAILED
NO_AUTHORITY
NO_EXPLOSION_ALLOWED
NO_LPP
NO_PDS
ORDER_NOT_FOUND
ORDER_TYPE_FAILED
Function Group
APO/SAPLEOGLTXBHW - Original Tax Base Amount in Local Currency BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 7783 Date: 20240424 Time: 090353 sap01-206 ( 88 ms )