Skip to main content

PROD GLA Integration Guideline - SAP WO5 Import Protocol

Source document: IP016_PROD-GLA-Integration-Guideline.pdf
Version: 1
Effective date: 01-Jan-2022

Contents


1 WO5 import protocol

The main purpose of this section is to describe the Production Order data, batch information, download interface specifications.

This interface will replace the existing text file interface for SAP WO data download. The data structure will be similar but also includes more data than the existing interface.

SOAP web service technology will be used for GLA-SAP communication. The SAP system will be the server and GLA will be the client that connects to SAP and transfers the production order data.

2.1 Data to be Transferred to SAP

The following data is transferred to SAP as an input message.

Formatting note: The original PDF table contains merged headers and some OCR-fragmented text. The table below preserves the available extracted information in MDX-safe Markdown.

ParameterNameMandatory / OptionalDefault valueDescription
IV_APPLICATIONApplication NameMSF system identifier in the format GLA_<Plant ID>. Examples: GLADEP1 for Trier, GLAPLP2 for Poland GLA, MOM_PLP2 for Poland MOM
IV_WERKSPlant IDMFactory plant code. Example: TRP1, DEP1, PLP2, etc
IV_DATEFROMFrom dateOToday - 1Date from and Date to parameters are aimed to specify a time frame for analysis. In case of Production orders, they are used for release date, production start date, or production end date. In case of Purchase orders, they are used for purchase order date or PO delivery date. If the function is called with either IV_DATEFROM or IV_DATETO empty, default values for both IV_DATEFROM, yesterday, and IV_DATETO, today, will be applied
IV_DATETOTo dateOTodayEnd date of the analysis period

2.2 Return Data from SAP

SAP will return the following data.

The following new table will be created in GLA:

  • WorkorderBOM: stores material characteristics and their values

Formatting note: The original PDF contains a very large return-data table spanning many pages. Some rows are heavily fragmented by OCR. Rows that could be reliably reconstructed are converted below. Fragmented rows are preserved in notes where needed rather than silently corrected.

Material batch data

ParameterSAP / GLA FieldM/ODescription / Translation RulesData TypeSample Value
ET_MAT_BATCHCHARG / Workorder.SAP_BatchNumberMBatch number, including leading zerosCHAR(10)0009217614

Production order data

ParameterSAP / GLA FieldM/ODescription / Translation RulesData TypeSample Value
ET_PP_ORDERIGMNG / WorkorderBOMTotal confirmed quantity in GLADecimal150.00
ET_PP_ORDERGWEMG / Workorder.BatchDeliveryQuantityODelivery quantity0
ET_PP_ORDERFTRMI / Workorder.BatchActualReleaseDateMActual release dateDATE(10)42396
ET_PP_ORDERGSTRP / Workorder.SAP_Production_StartDate; set SAP_Production_StartTimeZone to +00:00; set SAP_Production_Start_Time to 00:00:00MBasic start date, AFKO-GSTRP, planned PO start dateDATE(10)42396
ET_PP_ORDERGLTRP / Workorder.BatchBasicFinishDateMBasic finish date, AFKO-GLTRP, planned PO end dateDATE(10)42396
ET_PP_ORDERGSTRI / Workorder.BatchActualStartDateOActual start date. This value should be understood as actual PO start date, when first confirmation was postedDATE(10)Empty
ET_PP_ORDERGLTRI / Workorder.BatchActualFinishDateOActual finish date. This value should be understood as actual PO end date, when last confirmation was posted, or today if production is ongoingDATE(10)Empty
ET_PP_ORDERKDAUF / Workorder.SAP_SalesOrderOReferenced Sales Order number, Make-to-Order productionCHAR(10)1010609195
ET_PP_ORDERKDPOS / Workorder.SAP_SalesOrderItemOSales order itemNUMERIC(6)10

Production order BOM data

ParameterSAP / GLA FieldM/ODescription / Translation RulesData TypeSample Value
ET_PP_BOMUNIT_TO_ISO / WorkorderBOM.BaseUOM_To_ISOCodeBase unit of measure in ISO codeCHAR(3)
ET_PP_BOMVALUE_CHAR_LONG / WorkorderBOM.ValueCharLongCharacter field, length 70CHAR(70)
ET_PP_BOMVALUE_NEUTRAL_LONG / WorkorderBOM.ValueNeutralLongCharacter field, length 70CHAR(70)

Purchase order data

ParameterSAP / GLA FieldM/ODescription / Translation RulesData TypeSample Value
ET_PO_ORDERMATNR / Workorder.SAP_SKUNumberMMaterialCHAR(18)
ET_PO_ORDERCHARG / Workorder.WorkorderID; SAP_BatchNumberMBatchCHAR(10)
ET_PO_ORDEREBELN / Workorder.SAPPOrder; Workorder.SAPPONumber; Workorder.SAP_PO; Workorder.WorkorderIDMPO orderCHAR(10)
ET_PO_ORDEREBELP / Workorder.PurchaseOrderItemNumberMPO itemNUMERIC(5)
ET_PO_ORDERPSTYP / Workorder.PurchaseOrderItemCategoryMPO item category, subcontract 3CHAR(1)
ET_PO_ORDERLOEKZ / Workorder.PurchaseOrderItemDeletedOItem deletion indicatorCHAR(1)
ET_PO_ORDERWERKS / Workorder.SAP_PlantCodeMReceiving plantCHAR(4)
ET_PO_ORDERMENGE / Workorder.SAP_PO_QuantityMQuantityDECIMAL(13,3)
ET_PO_ORDERMEINS / Workorder.SAP_POQuantityUOMMUnit of measureCHAR(3)
ET_PO_ORDEREINDT / Workorder.PurchaseOrderPlannedDeliveryDateMDate of planned delivery. This value should be understood as planned delivery date for co-packing Purchase OrderDATE(10)
ET_PO_ORDERLIFNR / Workorder.SAP_VendorIDMVendorCHAR(10)
ET_PO_ORDERNAME / Workorder.SAP_VendorNameMNameCHAR(35)
ET_PO_ORDERLAND1 / Workorder.SAP_VendorCountryCodeMCountry keyCHAR(3)
ET_PO_ORDERVAT / Workorder.SAP_VendorVATOVAT Registration NumberCHAR(255)
ET_PO_ORDEREOID / Workorder.SAP_VendorEOIDOEconomic Operator ID codeCHAR(255)
ET_PO_ORDERCITY / Workorder.SAP_VendorCityOCityCHAR(25)
ET_PO_ORDERSTRAS / Workorder.SAP_VendorAddressOHouse name and streetCHAR(30)

Purchase order BOM data

ParameterSAP / GLA FieldM/ODescription / Translation RulesData TypeSample Value
ET_PO_BOMEBELN / WorkorderBOM.WorkorderIDMPO orderCHAR(10)
ET_PO_BOMEBELP / WorkorderBOM.PurchaseOrderItemNumberMPO itemNUMERIC(5)
ET_PO_BOMMATNR / WorkorderBOM.SAP_SKUNumberMComponent materialCHAR(18)
ET_PO_BOMMATKL / WorkorderBOM.SAP_MatGroupMMaterial Group of ComponentsCHAR(9)
ET_PO_BOMCHARACT / WorkorderBOM.MaterialCharacteristicID; MaterialCharacteristic.MaterialCharacteristicIDCharacteristic name. Multiple values are possible. Insert new characteristic if it does not exist in GLACHAR(30)
ET_PO_BOMVALUE_CHAR / WorkorderBOM.CharacteristicValueCharacteristic valueCHAR(30)

Return message data

ParameterSAP / GLA FieldM/ODescription / Translation RulesData TypeSample Value
ET_RETURNMProgram return message structure with different message type. The table will be used to return success or failure feedback to GLA

Workorder calculation fields

Some of the Workorder calculation fields are listed below.

FieldRule / Comment
SAP_Description50Same as SAP_Prod_Description
SAP_IsCartonTrackingRequiredIf SAP_TTProdIdent is 4, 5, 6, or 7, then IsCartonTrackingRequired is 1
SAP_IsPackTrackingRequiredIf T&T ID is 6 or 7, then IsPackTrackingRequired is 1
SAP_IsTrackingRelevantIf T&T ID is 2 or 3, then SAP_IsTrackingRelevant is 1, master case tracking
SAP_LineDescriptionThe PDF asks whether a field should be added into the Workcenter table
SAP_MRPNot used, not required
SAP_OuterImageLeftCharacteristic
SAP_OuterPriceImprintCharacteristic
SAP_PrackPriceImprintCharacteristic
SAP_PurchaseOrder_1Same as SAP_PO
SAP_ShelfLifeDurationUse default value 365
SAP_SubMarket_DescriptionMarket type characteristic's value
SAP_SubMarketCodeMarket type characteristic's value
ShelfLifeDurationUOMUse default value D

3.1 Error Handling

A new field SAPReturnData shall be included in the Workorder table to store the success or failure SAP return data in concatenation format.

SAP return message will also include the following success or failure status data.

ParameterNameMandatory / OptionalDescription
TYPEReturn Success or ErrorMIf confirmation is successful, it will return S. If there is an error, it will return E
IDExtracted without full description
NUMBERError codeError code
MESSAGEError or warning message textError or warning message text
LOG_NOExtracted without full description

3.2 Error/Success codes with description

Formatting note: The original PDF table was fragmented across pages. The following entries preserve the extracted error and warning information available from the document.

Error descriptions

#DescriptionError number and message
2If user does not have authorization for object C_AFKO_AWK, company code. Review user's authorizations534 - No authorization for plant, Order type. Auth.Obj: C_AFKO_AWK
3If user does not have authorization for object M_BEST_WRK, company code. Review user's authorizations535 - No authorization for plant. Auth.Obj: M_BEST_WRK
4If application parameter is not filled. Fill that parameter501 - IV_APPLICATION parameter is empty
5If value of IV_PLANT parameter is not a Plant code in SAP502 - IV_PLANT parameter does not exist or incorrect
6If value of IV_MATNR parameter is not a material code in SAP511 - IV_MATNR parameter is incorrect
7If any value of IT_MATKL table parameter is not a material group code in SAP527 - Material group incorrect IT_MATKL
8If date from is bigger than date to. Modify input date parameters532 - Invalid date interval. DATE FROM higher than DATE TO
9If date to is filled and date from is empty. Modify date from or date to input parameters533 - Only DATE TO is filled. Please, fill in DATE FROM parameter
10If no production order and no purchase order are selected508 - No data selected
19If any conversion error is generated when creating unified characteristic table in method set_charact_output553 - Not all fields for Material & and Characteristic & are correctly shown

Warning descriptions

#DescriptionError number and message
01If any problem arises in email sending process558 - Problem sending email. Exception &.
02If no data is found for values Model, Serial, OEM, equipment and work center525 - No Model, Serial, OEM, equipment and arbpl have been selected

If the interface returns an error code, then log this error into the ErrorLog table and send an email notification message to ErrorReportingUser defined in the SetupParameter.

4.1 Interface Triggering

The new work order web service interface will be run by GLA periodically.

At the beginning, by default, the GLA interface scheduler will be configured to run every minute.

The default values of web service input parameters shall be configured or updated by the GLA admin.

The interface can be run manually at any time with given input parameters. These given input parameters will not overwrite existing interface scheduler input parameters.

4.2 WSDL File

The WSDL file is published in the source document, but the extracted content available here did not provide a usable WSDL URL.