PP Program Custom development Fiori app Textile and Apparel

Textile Article Master Data Setup Screen and Technical Analysis Sheet (Yarn, Fabric, Design, Colour)

Short answer: A custom app where width, weight, warp and weft density, yarns, design and colour are entered on one screen when a new fabric or carpet quality is opened. The material, its alternative units, the classification and a BOM with yarn consumption calculated from the construction are created in one save; the technical analysis sheet is printed from the same data.

Estimated effort
L · 12–16 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?

In the standard system the material is created view by view in MM01, the classification on a separate screen and the yarn BOM in CS01; yarn consumption is usually calculated in Excel and the technical analysis sheet is kept outside SAP. This leads to inconsistent master data between qualities and wrong costs. The app calculates consumption from the construction and creates all objects together.

Who uses it? Product development and design teams, technical management, master data and costing teams.

Closest standard alternatives

  • MM01 Create Material. Creates the material view by view; no construction data, consumption calculation or technical analysis sheet.
  • CS01 Create Material BOM. Creates the yarn BOM manually; consumption must be calculated separately in Excel.

Tables used

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

TableRoleAccessSystem
MARAGeneral Material DataNew quality: material type, base unit, widthWriteECC + S/4
MAKTMaterial DescriptionsQuality descriptionWriteECC + S/4
MARCPlant Data for MaterialPlant viewWriteECC + S/4
MARMUnits of Measure for MaterialM2 and KG alternative unit factorsWriteECC + S/4
KLAHClass Header DataMaterial class holding the quality constructionReadECC + S/4
CABNCharacteristicsDefinition of the construction characteristics (width, weight, density, design, colour)ReadECC + S/4
AUSPCharacteristic Values of ObjectsCharacteristic values of the qualityWriteECC + S/4
STKOBOM HeaderYarn BOM headerWriteECC + S/4
STPOBOM ItemYarn items and calculated consumptionWriteECC + S/4

BAPIs and functions used

  • BAPI_MATERIAL_SAVEDATACreate and change material master data. Creates the material, plant view and alternative units
  • BAPI_OBJCL_CREATEClassification: Create Object Assignment. Writes the construction characteristics to the material class
  • CSAP_MAT_BOM_CREATECreate Material BOM. Creates the yarn BOM with the calculated consumption
  • SSF_FUNCTION_MODULE_NAMEGet Smart Form Function Module Name. Calls the technical analysis sheet form

Selection screen parameters

ParameterDescriptionTypeReference fieldRequiredExample
P_WERKSPlantSingle valueMARC-WERKSYes1000
P_MTARTMaterial typeSingle valueMARA-MTARTYesFERT
P_CLASSConstruction classSingle valueKLAH-CLASSYesTEKSTIL_YAPI
P_REFMATReference quality (for copying)Single valueMARA-MATNRNoKMS-24017
P_PRINTPrint the technical analysis sheet after savingCheckbox—NoX

Input file columns

The columns of the upload template and the SAP fields they are written to. Columns with an asterisk are mandatory.

#ColumnTarget fieldRequired
1Quality codeMARA-MATNRYes
2DescriptionMAKT-MAKTXYes
3Base unitMARA-MEINSYes
4Width (cm)MARA-BREITYes
5Weight (g/m²)AUSP-ATFLVYes
6Warp density (ends/cm)AUSP-ATFLVNo
7Weft density (picks/cm)AUSP-ATFLVNo
8YarnSTPO-IDNRKYes
9UseBy rule Warp, weft or pileNo
10Yarn countBy rule Nm, Ne or dtex; converted to Nm for the calculationNo
11Design numberAUSP-ATWRTNo
12ColourAUSP-ATWRTNo

Sample upload file

1Quality code *Description *Base unit *Width (cm) *Weight (g/m²) *Warp density (ends/cm)Weft density (picks/cm)Yarn *UseYarn countDesign numberColour
2KMS-24031Chenille upholstery fabric 330 g/m²M1403302822IP-PES-NM60WarpNm 60D-3108Anthracite
3KMS-24031Chenille upholstery fabric 330 g/m²M1403302822IP-SNL-NM8WeftNm 8D-3108Anthracite
A view built with fictional sample data; not real system data.

Result list columns

#ColumnSource
1QualityMARA-MATNR
2PlantMARC-WERKS
3YarnSTPO-IDNRK
4Calculated consumption (kg/m)Calculated Yarn length (m/m) / Nm / 1000
5Calculated weight (g/m²)Calculated Σ yarn consumption (kg/m) × 1000 / width (m)
6StatusCalculated Created, warning or error
7MessageCalculated Check or function return message

Sample result list

QualityPlantYarnCalculated consumption (kg/m)Calculated weight (g/m²)StatusMessage
KMS-240311000IP-PES-NM600.07333.70CreatedWarp: 3,920 ends × 1.08 take-up
KMS-240311000IP-SNL-NM80.40333.70CreatedWeft: 2,200 picks × 1.40 m × 1.03
KMS-240321000IP-SNL-NM80.400ErrorWeight characteristic is missing
A view built with fictional sample data; not real system data.

How does the program work?

  1. Optionally the user picks a reference quality; values are copied from MARA, MAKT, AUSP and the BOM (STKO/STPO).
  2. The construction is entered: width (cm), weight (g/m²), warp and weft density (threads/cm), for each yarn its use (warp/weft/pile), yarn count (Nm, Ne or dtex), take-up, design number and colour variants. The characteristics come from the material class definition (KLAH, CABN).
  3. Yarn consumption is calculated: for warp, yarn length = density × width (cm) × (1 + take-up) metres per metre of fabric; for weft = weft density × 100 × width (m) × (1 + selvedge allowance). Weight (kg/m) = length / Nm / 1000; Ne and dtex counts are converted to Nm first.
  4. Save: BAPI_MATERIAL_SAVEDATA creates the material (base unit M, alternative units M2 and KG in MARM) and the plant view (MARC); BAPI_OBJCL_CREATE writes the construction characteristics to the material class (class type 001, AUSP); CSAP_MAT_BOM_CREATE creates the yarn BOM with the calculated consumption.
  5. Colour variants are kept either as separate materials (quality + colour suffix) or with variant configuration, according to the method chosen during setup.
  6. The technical analysis sheet (construction, yarns, consumption, weight check) is printed as a Smart Form or stored as PDF.

Performance notes

Read the characteristic definitions (CABN) and the class structure once when the screen opens. On save, run the material, classification and BOM calls in the same logical unit of work; if one fails, save none of them.

Features

  • Line-by-line result and error log The results for material, classification and BOM appear in one list.
  • Double-click drill-down to the document The material and BOM display screens open from the created quality.

Authorization objects

  • M_MATE_MARMaterial create authorization by material type
  • M_MATE_WRKMaterial authorization by plant
  • C_KLAH_BKLClassification maintenance authorization
  • C_STUE_WRKBOM create authorization by plant

Frequently asked questions

What if the calculated weight differs from the weight entered?

The app shows both values side by side and warns if the difference exceeds the configured percentage. This catches a wrong yarn count or density before the material is created; the user corrects the values and recalculates.

Can it be used with variant configuration?

Yes. If a configurable material is used instead of separate materials for colour and design variants, the app writes the characteristic values to fit the configuration profile. The method is chosen during setup.

Does it work on S/4HANA?

Yes. BAPI_MATERIAL_SAVEDATA and the classification and BOM functions are also used on S/4HANA, where material numbers of up to 40 characters are supported. The front end is built as a Fiori app.

Related reports

MM Program Custom Mass upload

Mass Material Master Upload Program

A custom program that creates or updates material master data in bulk from Excel or CSV rows, including the basic data, plant and valuation views. It …

MARA · MAKT · MARC · MBEW

PP Program Custom Mass upload

Mass BOM Component Replacement Upload Program

A custom program that replaces, adds or deletes components or updates quantities in many material BOMs from Excel or CSV rows. Validity is set with a …

MAST · STKO · STPO · MARA

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: Textile Article Master Data Setup Screen and Technical Analysis Sheet (Yarn, Fabric, Design, Colour)