{"audience":"End-of-line packing teams, warehouse and shipping staff, customer service teams.","authorization_objects":[{"note":"Order display authorization by plant and order type","object":"C_AFKO_AWK"},{"note":"Authorization to print on the selected label printer","object":"S_SPO_DEV"}],"components":[],"countries":[],"effort_days_max":8,"effort_days_min":5,"effort_size":"M","faq":[{"a":"No. Differences such as logo, field order and barcode type are handled with parameters on a shared template. For customers who require a completely different layout, a separate form is designed and added to the mapping table; each new customer template adds roughly 0.5–1 day to the estimate.","q":"Does every customer need a separate label design?"},{"a":"Yes. Select it by roll or carton number and print with the \"reprint\" flag. It appears as a reprint in the log, so you can trace how many labels were produced for the same roll.","q":"Can a damaged label be printed again?"},{"a":"Yes. On S/4HANA, MSEG can still be read as a compatibility view on MATDOC; batch classification and customer material data keep the same structure. It can also be used with Adobe Forms or output management.","q":"Does it work on S/4HANA?"}],"features":[{"code":"log","label":"Line-by-line result and error log","note":"Every print is logged with user, time and printer; reprints are flagged separately."},{"code":"background","label":"Runs as a background job","note":"The label can be printed automatically through an output condition when the production receipt is posted."}],"functions":[{"name":"SSF_FUNCTION_MODULE_NAME","role":"Finds the generated function name of the selected Smart Forms template"},{"name":"FP_FUNCTION_MODULE_NAME","role":"Finds the form function name if an Adobe Forms template is used"}],"gap":"MB90 prints standard labels from goods movements through output conditions, but the layout is tied to the movement type; it does not carry a different template per customer, the customer's material number, an m² conversion or a quality grade per roll. CO04N shop papers are meant for production and do not produce shipping labels. The custom program adds customer-based template selection, roll and carton levels and reprint control.","id":"pp-product-packaging-label","industries":["textile"],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. Labels are selected by production order, batch (roll number) or production receipt date; the receipts posted to the order (MSEG-AUFNR) with movement type 101 are read from MSEG and each batch becomes one roll label.\n2. If the order is linked to a sales order (AFPO-KDAUF/KDPOS), the sold-to customer comes from VBAK, the name from KNA1 and the customer's material number and description from KNMT.\n3. Template selection: customer and label type (roll/carton) are mapped to a form name in a settings table; without a mapping the company's default template is used.\n4. The roll length comes from the receipt quantity (metres); the width is converted to metres from MARA-BREIT and its unit MEABM, and m² = metres × width. If alternative units (M2, KG) exist, the MARM factors are used. Gross/net weight and quality grade are read from the batch classification (AUSP via MCH1-CUOBJ_BM).\n5. If carton labels are chosen, the roll batches of the same order are grouped per carton; the carton label carries the number of rolls, total metres and weight and the carton number as a GS1-128 or customer-defined barcode.\n6. The form is called through SSF_FUNCTION_MODULE_NAME (Smart Forms) or FP_FUNCTION_MODULE_NAME (Adobe Forms); for thermal printers direct ZPL output can also be produced. Every print is logged and reprints are flagged separately.","module":"PP","object_type":"form","output_columns":[{"calculated":false,"formula":"","label":"Production order","source_field":"AUFNR","source_table":"AFPO"},{"calculated":false,"formula":"","label":"Roll (batch)","source_field":"CHARG","source_table":"MCH1"},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"AFPO"},{"calculated":false,"formula":"","label":"Customer","source_field":"NAME1","source_table":"KNA1"},{"calculated":false,"formula":"","label":"Customer material no.","source_field":"KDMAT","source_table":"KNMT"},{"calculated":false,"formula":"","label":"Length (m)","source_field":"MENGE","source_table":"MSEG"},{"calculated":true,"formula":"Length (m) × width (MARA-BREIT converted to metres)","label":"Area (m²)","source_field":null,"source_table":null},{"calculated":true,"formula":"Roll or carton","label":"Label type","source_field":null,"source_table":null},{"calculated":true,"formula":"Form from the customer mapping; otherwise the default","label":"Template","source_field":null,"source_table":null},{"calculated":true,"formula":"Number of copies printed","label":"Copies","source_field":null,"source_table":null},{"calculated":true,"formula":"Printed, reprinted or error","label":"Status","source_field":null,"source_table":null}],"parameters":[{"example":"1000452","kind":"select_option","label":"Production order","name":"S_AUFNR","ref_field":"AFPO-AUFNR","required":false},{"example":"R2611160014","kind":"select_option","label":"Batch (roll number)","name":"S_CHARG","ref_field":"MSEG-CHARG","required":false},{"example":"16.11.2026","kind":"select_option","label":"Production receipt date","name":"S_BUDAT","ref_field":"MKPF-BUDAT","required":false},{"example":"Rulo","kind":"radio","label":"Label type: roll / carton","name":"P_TYPE","ref_field":"","required":true},{"example":"2","kind":"parameter","label":"Number of copies","name":"P_COPIES","ref_field":"","required":false},{"example":"LP01","kind":"parameter","label":"Label printer","name":"P_DEST","ref_field":"TSP03-PADEST","required":true},{"example":"","kind":"checkbox","label":"Reprint labels already printed","name":"P_REPRT","ref_field":"","required":false}],"part_of":[],"performance":"Read MSEG with AUFNR and BWART, limited to the selected date range. Read the batch classification (AUSP) for all batches at once with FOR ALL ENTRIES. For hundreds of rolls, collect the labels in a single spool request.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=pp-product-packaging-label","related":["mm-goods-receipt-upload","pp-confirmation-upload","qm-customer-complaint-batch-trace"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Prints labels from goods movements via output conditions; no customer-specific template, m² or quality grade.","tcode":"MB90"},{"note":"Prints shop papers for production orders; does not produce roll or carton shipping labels.","tcode":"CO04N"}],"summary":"A custom form program that prints a barcode roll label for every fabric or carpet roll received from production and a carton label for every carton prepared for shipment. The label layout is chosen by the ordering customer; metres, m², weight, batch, quality grade and the customer's own article number are filled in automatically.","tables":[{"access":"read","join_on":"","role":"Receipts posted to the production order: batch and metres (driving table)","table":"MSEG","variant":"both"},{"access":"read","join_on":"AFPO-AUFNR = MSEG-AUFNR","role":"Order item: material and linked sales order","table":"AFPO","variant":"both"},{"access":"read","join_on":"MCH1-MATNR = MSEG-MATNR AND MCH1-CHARG = MSEG-CHARG","role":"Batch (roll) and its classification object number","table":"MCH1","variant":"both"},{"access":"read","join_on":"AUSP-OBJEK = MCH1-CUOBJ_BM AND AUSP-KLART = '023'","role":"Batch characteristics: quality grade, gross and net weight","table":"AUSP","variant":"both"},{"access":"read","join_on":"VBAK-VBELN = AFPO-KDAUF","role":"Sold-to customer and customer purchase order number","table":"VBAK","variant":"both"},{"access":"read","join_on":"KNA1-KUNNR = VBAK-KUNNR","role":"Customer name","table":"KNA1","variant":"both"},{"access":"read","join_on":"KNMT-KUNNR = VBAK-KUNNR AND KNMT-MATNR = AFPO-MATNR","role":"Customer's own material number and description","table":"KNMT","variant":"both"},{"access":"read","join_on":"MARA-MATNR = AFPO-MATNR","role":"Fabric width and its unit","table":"MARA","variant":"both"},{"access":"read","join_on":"MARM-MATNR = AFPO-MATNR","role":"M2 and KG alternative unit factors","table":"MARM","variant":"both"}],"title":"Finished Roll and Carton Label Printing Program (Customer-Specific Barcode Labels)","url":"https://nekuhub.com/en/programs/finished-roll-and-carton-label-printing-program/","vendor_id":"nekudos"}