Finished Roll and Carton Label Printing Program (Customer-Specific Barcode Labels)
Short answer: 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.
- Estimated effort
- M · 5–8 working days
- System
- ECC and S/4HANA
- Tables
- 9
- Scope
- Global · 1 industries
- Built by
- NeKuDos Teknoloji
- Last updated
Why is the standard not enough?
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.
Who uses it? End-of-line packing teams, warehouse and shipping staff, customer service teams.
Closest standard alternatives
Tables used
The tables the program reads and updates. ECC and S/4HANA differences are marked separately.
| Table | Role | Access | System |
|---|---|---|---|
| MSEGMaterial Document Item | Receipts posted to the production order: batch and metres (driving table) | Read | ECC + S/4 |
| AFPOOrder Item | Order item: material and linked sales order | Read | ECC + S/4 |
| MCH1Batches (Cross-Plant Batch Management) | Batch (roll) and its classification object number | Read | ECC + S/4 |
| AUSPCharacteristic Values of Objects | Batch characteristics: quality grade, gross and net weight | Read | ECC + S/4 |
| VBAKSales Document Header | Sold-to customer and customer purchase order number | Read | ECC + S/4 |
| KNA1Customer Master (General Section) | Customer name | Read | ECC + S/4 |
| KNMTCustomer-Material Info Record | Customer's own material number and description | Read | ECC + S/4 |
| MARAGeneral Material Data | Fabric width and its unit | Read | ECC + S/4 |
| MARMUnits of Measure for Material | M2 and KG alternative unit factors | Read | ECC + S/4 |
S/4HANA notes
- MSEG → MATDOC: In S/4HANA MATDOC replaces MSEG; reading MSEG works through a compatibility view but is slow at high volumes.
BAPIs and functions used
- SSF_FUNCTION_MODULE_NAMEGet Smart Form Function Module Name. Finds the generated function name of the selected Smart Forms template
- FP_FUNCTION_MODULE_NAMEGet Adobe Form Function Module Name. Finds the form function name if an Adobe Forms template is used
Selection screen parameters
| Parameter | Description | Type | Reference field | Required | Example |
|---|---|---|---|---|---|
| S_AUFNR | Production order | Range / multiple | AFPO-AUFNR | No | 1000452 |
| S_CHARG | Batch (roll number) | Range / multiple | MSEG-CHARG | No | R2611160014 |
| S_BUDAT | Production receipt date | Range / multiple | MKPF-BUDAT | No | 16.11.2026 |
| P_TYPE | Label type: roll / carton | Radio button | — | Yes | Rulo |
| P_COPIES | Number of copies | Single value | — | No | 2 |
| P_DEST | Label printer | Single value | TSP03-PADEST | Yes | LP01 |
| P_REPRT | Reprint labels already printed | Checkbox | — | No | — |
Result list columns
| # | Column | Source |
|---|---|---|
| 1 | Production order | AFPO-AUFNR |
| 2 | Roll (batch) | MCH1-CHARG |
| 3 | Material | AFPO-MATNR |
| 4 | Customer | KNA1-NAME1 |
| 5 | Customer material no. | KNMT-KDMAT |
| 6 | Length (m) | MSEG-MENGE |
| 7 | Area (m²) | Calculated Length (m) × width (MARA-BREIT converted to metres) |
| 8 | Label type | Calculated Roll or carton |
| 9 | Template | Calculated Form from the customer mapping; otherwise the default |
| 10 | Copies | Calculated Number of copies printed |
| 11 | Status | Calculated Printed, reprinted or error |
Sample result list
| Production order | Roll (batch) | Material | Customer | Customer material no. | Length (m) | Area (m²) | Label type | Template | Copies | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| 1000452 | R2611160014 | KMS-24017 | Örnek Tekstil A.Ş. | UPH-JQ-280 | 62.50 | 87.50 | Roll | Customer template | 2 | Printed |
| 1000452 | R2611160015 | KMS-24017 | Örnek Tekstil A.Ş. | UPH-JQ-280 | 58 | 81.20 | Roll | Customer template | 2 | Printed |
| 1000467 | R2611160031 | HLI-400-120 | Demo Retail Ltd. | DR-RUG-120-GRY | 25 | 100 | Roll | Default | 1 | Reprinted |
| 1000467 | K-000418 | HLI-400-120 | Demo Retail Ltd. | DR-RUG-120-GRY | 75 | 300 | Carton | Default | 1 | Printed |
How does the program work?
- 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.
- 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.
- 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.
- 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).
- 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.
- 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.
Performance notes
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.
Features
- Line-by-line result and error log Every print is logged with user, time and printer; reprints are flagged separately.
- Runs as a background job The label can be printed automatically through an output condition when the production receipt is posted.
Authorization objects
- C_AFKO_AWKOrder display authorization by plant and order type
- S_SPO_DEVAuthorization to print on the selected label printer
Frequently asked questions
Does every customer need a separate label design?
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.
Can a damaged label be printed again?
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.
Does it work on S/4HANA?
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.
Related reports
Purchase Order Goods Receipt Upload from File Program
A custom interface program that posts order, item, quantity, storage location, batch and delivery note rows from a warehouse system, a supplier …
Mass Production Order Confirmation Upload Program
A custom program that reads operation confirmations (yield, scrap, rework, activity times) coming from MES, shop-floor terminals or Excel at the end …
Customer Complaints Traced to Delivery, Batch and Inspection Lot Report
A custom ALV report that shows customer complaint notifications on the same line as the delivery, the batch, the inspection lot of that batch, its …
Let us build this program for your system
Briefly describe your system and expectations. We will clarify the scope and come back with an effort and price quote.