{"audience":"Goods receipt and warehouse teams, quality control and production logistics.","authorization_objects":[{"note":"Material document display authorization by plant","object":"M_MSEG_WMB"},{"note":"Authorization to print on the label printer (output device)","object":"S_SPO_DEV"}],"components":[],"countries":[],"effort_days_max":7,"effort_days_min":4,"effort_size":"M","faq":[{"a":"Yes. The label can be created in the printer's own command language and sent as a raw spool request; this gives the fastest and sharpest barcode. The same design can also be printed on a laser printer with a Smart Form or Adobe Form.","q":"Does it work with thermal label printers?"},{"a":"Yes. The barcode content (EAN, batch, quantity, expiry date, order) and its order are kept in a settings table. Since the handheld screens decode the same structure, both sides are updated together.","q":"Can the barcode structure be changed?"},{"a":"Yes. MKPF and MSEG are read as compatibility views in S/4HANA. The output can be triggered by classic message control or by S/4HANA output management; the label design does not change.","q":"Does it work on S/4HANA?"}],"features":[{"code":"test_run","label":"Test mode (check without posting)","note":"Labels are previewed without printing."},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"background","label":"Runs as a background job","note":"Printed automatically with the goods receipt through an output condition."}],"functions":[{"name":"SSF_FUNCTION_MODULE_NAME","role":"Finds the generated function name of the label form"}],"gap":"The standard goods receipt output (the GR slip messages in MIGO and MB90) produces the goods receipt slip and a simple label form; it does not split an item into packages, calculate the quantity per package or create barcodes in the command language of thermal label printers. The barcode content cannot be set to the structure the company uses (e.g. GS1-128) either. The custom program determines label count, barcode content and printer according to the company's rules.","id":"mm-goods-receipt-label","industries":[],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The program runs automatically through an output condition at goods receipt, or manually from the selection screen with the material document number.\n2. Goods receipt items are read from MKPF/MSEG: material, batch, quantity, unit of measure, storage location, vendor and purchase order. The material description comes from MAKT, the EAN from MARA, and the batch production and expiry dates from MCHA.\n3. Number of packages: the user enters the quantity per package, or it is calculated from the pallet or carton conversion in MARM; the last package carries the remaining quantity.\n4. The barcode content combines EAN, batch and quantity (e.g. with GS1-128 application identifiers) and every package gets a sequence number.\n5. The label is produced with a Smart Form or Adobe Form, or directly in printer commands for thermal printers, and is sent to the default printer of the user or the storage location.\n6. Printed labels are tracked through the output record (NAST); when the same document is printed again the user is warned and the label is marked as \"copy\".","module":"MM","object_type":"form","output_columns":[{"calculated":false,"formula":"","label":"Material document","source_field":"MBLNR","source_table":"MSEG"},{"calculated":false,"formula":"","label":"Item","source_field":"ZEILE","source_table":"MSEG"},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"MSEG"},{"calculated":false,"formula":"","label":"Batch","source_field":"CHARG","source_table":"MSEG"},{"calculated":false,"formula":"","label":"Item quantity","source_field":"MENGE","source_table":"MSEG"},{"calculated":true,"formula":"Round up(item quantity / quantity per package)","label":"Number of packages","source_field":null,"source_table":null},{"calculated":true,"formula":"P_PKQTY or MARM conversion","label":"Quantity per package","source_field":null,"source_table":null},{"calculated":true,"formula":"(01) EAN + (10) batch + (30) quantity","label":"Barcode","source_field":null,"source_table":null},{"calculated":true,"formula":"Printed, copy printed or error","label":"Status","source_field":null,"source_table":null}],"parameters":[{"example":"5000084512","kind":"parameter","label":"Material document","name":"P_MBLNR","ref_field":"MKPF-MBLNR","required":true},{"example":"2026","kind":"parameter","label":"Material document year","name":"P_MJAHR","ref_field":"MKPF-MJAHR","required":true},{"example":"1–3","kind":"select_option","label":"Document item","name":"S_ZEILE","ref_field":"MSEG-ZEILE","required":false},{"example":"400","kind":"parameter","label":"Quantity per package (from MARM if empty)","name":"P_PKQTY","ref_field":"","required":false},{"example":"ETK1","kind":"parameter","label":"Label printer (output device)","name":"P_PRNT","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Reprint labels already printed (copy)","name":"P_REPRT","ref_field":"","required":false}],"part_of":[],"performance":"Reading one material document is a key access and fast. For mass reprints, select documents by posting date and plant; collect the commands for the thermal printer in one spool request per document instead of one per package.","process":"INV","quote_url":"https://nekuhub.com/en/request-a-quote/?report=mm-goods-receipt-label","related":["mm-batch-shelf-life","mm-goods-receipt-upload","wm-gr-interim-putaway-job"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Processes output for material documents in bulk; no split into packages and no thermal printer barcode.","tcode":"MB90"},{"note":"Prints the goods receipt slip and the standard label; does not create one label per package.","tcode":"MIGO"}],"summary":"A custom output program that automatically prints a barcode label with material, batch, quantity, vendor, purchase order and receipt date for each item when a goods receipt is posted, and splits one item into pallets or cartons with a separate label for each package. Scanning the barcode with a handheld makes later transfers, counts and issues to production error-free.","tables":[{"access":"read","join_on":"","role":"Material document header: posting date and delivery note number","table":"MKPF","variant":"both"},{"access":"read","join_on":"MSEG-MBLNR = MKPF-MBLNR AND MSEG-MJAHR = MKPF-MJAHR","role":"Goods receipt items: material, batch, quantity, vendor, order","table":"MSEG","variant":"both"},{"access":"read","join_on":"MAKT-MATNR = MSEG-MATNR AND MAKT-SPRAS = SY-LANGU","role":"Material description","table":"MAKT","variant":"both"},{"access":"read","join_on":"MARA-MATNR = MSEG-MATNR","role":"EAN code and gross weight","table":"MARA","variant":"both"},{"access":"read","join_on":"MARM-MATNR = MSEG-MATNR","role":"Pallet and carton conversion factors (quantity per package)","table":"MARM","variant":"both"},{"access":"read","join_on":"MCHA-MATNR = MSEG-MATNR AND MCHA-WERKS = MSEG-WERKS AND MCHA-CHARG = MSEG-CHARG","role":"Production and expiry date of the batch","table":"MCHA","variant":"both"},{"access":"read","join_on":"LFA1-LIFNR = MSEG-LIFNR","role":"Vendor name","table":"LFA1","variant":"both"},{"access":"read_write","join_on":"NAST-OBJKY = MKPF-MBLNR + MKPF-MJAHR","role":"Output (message) record: print status and reprint check","table":"NAST","variant":"both"}],"title":"Goods Receipt Barcode Batch and Package Label Printing Program","url":"https://nekuhub.com/en/programs/goods-receipt-barcode-label-printing/","vendor_id":"nekudos"}