FuBa A - Reading a Production Order

This function module reads the production order data for orders with status EROF, FREI TRÜC and TABG from the ERP system for the associated plant. This also includes the information about the packing instruction as well as the header material. The transfer parameters determine which type of orders (status) are to be requested, for this purpose the header data of the order are read out. Only data of a single production order are sent. If an order with the suitable criteria was found automatically immediately a new inquiry is placed, until no more orders with the suitable characteristics are present. If this is the case, the call of the function block is acknowledged with an error. To keep the order information up to date, a query is automatically started every 5 seconds.

Variable Name Type Content
General
IF_AUSTS String order status (z.B. FREI, TABG, EROF)
IF_WERK String plant number

[Hesse&Nicolai][✓ hesse, 2022-03-29]Ggf. mal prüfen ob man das ein oder andere nicht genauer erklären kann-->z.B. Folge?

Variable Name Type Content
General
EV_Error String X=error occurred
Object HEADER
ORDER_NUMBER String order number
PRODUCTION_PLANT String plant
MATERIAL String material number
FINISH_DATE String corner deadline (date)
START_DATE String key launch date (date)
TARGET_QUANTITY Decimal total order quantity
CONF_NO String confirmation number of the operation
CONF_CNT String internal counter
FINISH_TIME String corner deadline (time)
START_TIME String key launch date (time)
SYSTEM_STATUS String system status, describes the current state of a job
CONFIRMED_QUANTITY Decimal confirmed quantity after ATP test
Object ITEM
ORDER_NUMBER String order number
ORDER_ITEM_NUMBER String number of the order item
QUANTITY Decimal position quantity order
MATERIAL String order material number
BATCH String batch number
BASE_UNIT String base unit of quantity measure
MATERIAL_TEXT String short material description
Object OPERATION
ORDER_NUMBER String order number
ROUTING_NO String plan number for operations in the order
COUNTER String general counter of the order
SEQUENCE_NO String sequence (field with sequential number from ERP)
CONF_NO String confirmation number of the operation
CONF_CNT String counter of the response
OPERATION_NUMBER String transaction number
PROD_PLANT String plant
DESCRIPTION String short procedure description
UNIT String operation unit of measure
QUANTITY Decimal operation quantity
WORK_CENTER String work center
WORK_CENTER_TEXT String short description work center
SYSTEM_STATUS String system status describes the current state of an operation
Object COMPONENT
RESERVATION_NUMBER String reservation number
RESERVATION_ITEM String position number of the reservation
MATERIAL String material number
PROD_PLANT String plant
BATCH String batch number
BASE_UOM String base unit of measure
ORDER_NUMBER String order number
ITEM_NUMBER String number of the BOM item
SEQUENCE String sequence (field with sequential number from ERP)
OPERATION String transaction number
MATERIAL_DESCRIPTION String short material description
Object PACKPO
ORDER_NUMBER String order number
PACKNR String unique internal packing object number
PACKITEM String position number
PAITEMTYPE String packing object position category
MATNR String material number of a packaged good or packaging material
SUBPACKNR String unique internal packing object number
TRGQTY Decimal target quantity
MINQTY Decimal minimal quantity
RNDQTY Decimal rounding quantity
BASEUNIT String base unit of measure
PIID String ID of the packing instruction
CONTENT_PIID String short description of the packaging object
MTART String material type
CONTENT String description of the packing object

The return value is AA_FEHLERTEXT, a variable of data type String. It contains more detailed information about the error in case of an error. If EV_ERROR does not show an error, other status messages can also be located here. Therefore EV_ERROR must be evaluated for error checking and not only AA_FEHLERTEXT.