Ansicht
Dokumentation

/SAPAPO/FOT_GET_SOURCE - FOT - Get source data

/SAPAPO/FOT_GET_SOURCE - FOT - Get source data

Addresses (Business Address Services)   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function reads a three-level nested table in the format of /SAPAPO/FOT_ORD_NESTED_TAB with product data, verifies data fills the first level data from product, location, production version, and/or sales order. It loops the table and :

-,,If this is the main order, gets the material, location and production version.

-,,Checks that the order status ORD_STATUS is initial (= blank).

-,,Gets material ID from material number

-,,Get s location ID from location number

-,,Checks authorization of location ID and material ID combination for creation by calling /SAPAPO/RRP_AUTH_CHECK_MATLOC.

-,,Reads table /SAPAPO/TRPROD with material ID, location ID, and PPENA and gets TRPID.

-,,If sales order is available, gets order ID, calls /SAPAPO/RRP_LC_ORDER_GET_DATA to get tables LT_ORDKEYS, LT_ORDERS, and LT_INPUTS and get value of fields PEGID, INACT, POSITION_NO, LINE_NO, QUANT.

-,,Otherwise, calls function /SAPAPO/DM_MATERIAL_GET_PEGID and gets PEGID.

-,,Calls function /SAPAPO/RRP_SOURCES_GET to get data of structure SOURCE.

-,,If UNIT is missing, calls function /SAPAPO/DM_MATID_GET_MATERIAL to get UNIT.

-,,Changes order status ORD_STATUS to GC_FOT_CREATED.

Updates status of table ORD_STATUS during above processing.

Example

Notes

Further information





Parameters

CT_ORD_NESTED_TAB
IT_RP_MAP_INT
IV_SIMSESSION

Exceptions

AUTH_CHECK_MATLOC_FAILED
CONVERSION_NOT_FOUND
LOCATION_NOT_ALLOWED
LOCATION_NOT_FOUND
MATERIAL_NOT_FOUND
MATKEY_NOT_FOUND
PEGID_NOT_FOUND
SALES_ORDER_NOT_FOUND
SOURCE_NOT_FOUND

Function Group

APO/SAPLFOT_READING

CPI1466 during Backup   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 1956 Date: 20240426 Time: 113252     sap01-206 ( 28 ms )