PP Program Custom development Form Textile and Apparel

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

  • MB90 Output Processing for Material Documents. Prints labels from goods movements via output conditions; no customer-specific template, m² or quality grade.
  • CO04N Print Production Orders. Prints shop papers for production orders; does not produce roll or carton shipping labels.

Tables used

The tables the program reads and updates. ECC and S/4HANA differences are marked separately.

TableRoleAccessSystem
MSEGMaterial Document ItemReceipts posted to the production order: batch and metres (driving table)ReadECC + S/4
AFPOOrder ItemOrder item: material and linked sales orderReadECC + S/4
MCH1Batches (Cross-Plant Batch Management)Batch (roll) and its classification object numberReadECC + S/4
AUSPCharacteristic Values of ObjectsBatch characteristics: quality grade, gross and net weightReadECC + S/4
VBAKSales Document HeaderSold-to customer and customer purchase order numberReadECC + S/4
KNA1Customer Master (General Section)Customer nameReadECC + S/4
KNMTCustomer-Material Info RecordCustomer's own material number and descriptionReadECC + S/4
MARAGeneral Material DataFabric width and its unitReadECC + S/4
MARMUnits of Measure for MaterialM2 and KG alternative unit factorsReadECC + 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

ParameterDescriptionTypeReference fieldRequiredExample
S_AUFNRProduction orderRange / multipleAFPO-AUFNRNo1000452
S_CHARGBatch (roll number)Range / multipleMSEG-CHARGNoR2611160014
S_BUDATProduction receipt dateRange / multipleMKPF-BUDATNo16.11.2026
P_TYPELabel type: roll / cartonRadio button—YesRulo
P_COPIESNumber of copiesSingle value—No2
P_DESTLabel printerSingle valueTSP03-PADESTYesLP01
P_REPRTReprint labels already printedCheckbox—No—

Result list columns

#ColumnSource
1Production orderAFPO-AUFNR
2Roll (batch)MCH1-CHARG
3MaterialAFPO-MATNR
4CustomerKNA1-NAME1
5Customer material no.KNMT-KDMAT
6Length (m)MSEG-MENGE
7Area (m²)Calculated Length (m) × width (MARA-BREIT converted to metres)
8Label typeCalculated Roll or carton
9TemplateCalculated Form from the customer mapping; otherwise the default
10CopiesCalculated Number of copies printed
11StatusCalculated Printed, reprinted or error

Sample result list

Production orderRoll (batch)MaterialCustomerCustomer material no.Length (m)Area (m²)Label typeTemplateCopiesStatus
1000452R2611160014KMS-24017Örnek Tekstil A.Ş.UPH-JQ-28062.5087.50RollCustomer template2Printed
1000452R2611160015KMS-24017Örnek Tekstil A.Ş.UPH-JQ-2805881.20RollCustomer template2Printed
1000467R2611160031HLI-400-120Demo Retail Ltd.DR-RUG-120-GRY25100RollDefault1Reprinted
1000467K-000418HLI-400-120Demo Retail Ltd.DR-RUG-120-GRY75300CartonDefault1Printed
A view built with fictional sample data; not real system data.

How does the program work?

  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.
  2. 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.
  3. 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.
  4. 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).
  5. 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.
  6. 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

PP Program Custom Mass upload

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 …

AFRU · AFKO · AFVC · AFFW

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.

Related report: Finished Roll and Carton Label Printing Program (Customer-Specific Barcode Labels)