WM Program Custom development Fiori app

Barcode Mobile Goods Issue App for Cost Center and Project (WBS) Consumption

Short answer: A Fiori app that records material issues from the warehouse to a cost center or a project WBS element by scanning barcodes on a handheld or phone. Movement type, storage location, bin stock, quantity, serial numbers and project status are checked before posting; wrong issues are stopped in the warehouse and consumption reaches the cost center or project immediately.

Estimated effort
L · 12–18 working days
System
ECC and S/4HANA
Tables
11
Scope
Global
Built by
NeKuDos Teknoloji
Last updated

Why is the standard not enough?

In the standard system, issues to a cost center (201) or WBS element (221) are posted at a desk with MIGO or MB1A. Warehouse staff see the material on the shelf but enter the issue later from paper; a wrong cost center, a closed WBS element, a missing serial number or a wrong storage location is usually found at month end. For EWM-managed warehouses there is no ready-made mobile issue screen that works by bin, by barcode and with serial number checks. This app records the issue where the material is picked and stops issues that break the rules before posting.

Who uses it? Warehouse staff, maintenance and site store keepers, project controlling teams, cost accounting.

Closest standard alternatives

  • MIGO Goods Movement. Posts 201/221 issues at a desk; no bin scanning, allowed movement type list or upfront project status check.
  • MB1A Goods Withdrawal. Classic goods issue screen; not suitable for mobile use or serial number scanning.
  • CJI3 Project Actual Cost Line Items. Shows consumption charged to the project afterwards; does not prevent wrong issues.

Tables used

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

TableRoleAccessSystem
CSKSCost Center Master RecordCost center validity and actual posting lockReadECC + S/4
PRPSWBS Element Master DataWBS element, account assignment flag and project linkReadECC + S/4
PROJProject DefinitionProject definition and project stock settingReadECC + S/4
/SCWM/LAGPEWM Storage BinsCheck of the scanned bin (EWM)ReadECC + S/4
/SCWM/AQUAEWM Available QuantityAvailable stock in the bin (EWM)ReadECC + S/4
MARDStorage Location Data for MaterialUnrestricted stock in an IM storage locationReadECC + S/4
EQUIEquipment Master DataSerialized equipment recordReadECC + S/4
SER03Document Header for Serial Numbers in Goods MovementsSerial number header for goods movementsReadECC + S/4
OBJKObject ListSerial number object listReadECC + S/4
MAKTMaterial DescriptionsMaterial descriptionReadECC + S/4
MATDOCMaterial Documents (S/4HANA)Posted 201/221 consumption document (S/4HANA)WriteS/4HANA only

S/4HANA notes

  • MARD → MATDOC: In S/4HANA stock quantities are no longer stored physically; reading MARD returns values calculated on the fly from MATDOC through a compatibility view. Reads still work, but test performance on very large selections.

BAPIs and functions used

  • BAPI_GOODSMVT_CREATEPost Goods Movement. Posts the goods issue to the cost center or WBS element
  • BAPI_GOODSMVT_CANCELReverse Goods Movement. Reverses an issue entered wrongly on the same day

Selection screen parameters

ParameterDescriptionTypeReference fieldRequiredExample
P_WERKSPlant (user setting)Single valueMATDOC-WERKSYes1000
P_LGORTDefault storage locationSingle valueMATDOC-LGORTNo0001
P_BWARTMovement type (from the allowed list)Single valueMATDOC-BWARTYes201
P_BUDATPosting dateSingle valueMATDOC-BUDATNo18.11.2026

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
1Cost centerCSKS-KOSTLNo
2WBS elementPRPS-POSIDNo
3Storage bin/SCWM/LAGP-LGPLANo
4Material barcodeMARA-MATNRYes
5BatchMATDOC-CHARGNo
6QuantityMATDOC-MENGEYes
7Serial numberOBJK-SERNRNo

Sample upload file

1Cost centerWBS elementStorage binMaterial barcode *BatchQuantity *Serial number
24100-BAKIMC-02-04-01YD-55214
3P-26-014.02.03C-05-01-02EL-77101SN-0045821
44200-ATOLYESR-0102L2610-1125
A view built with fictional sample data; not real system data.

Result list columns

#ColumnSource
1Material documentMATDOC-MBLNR
2Movement typeMATDOC-BWART
3MaterialMATDOC-MATNR
4Material descriptionMAKT-MAKTX
5QuantityMATDOC-MENGE
6UnitMATDOC-MEINS
7Cost centerMATDOC-KOSTL
8WBS elementPRPS-POSID
9Serial numberOBJK-SERNR
10UserMATDOC-USNAM
11ResultCalculated Posted, or the check or posting error message

Sample result list

Material documentMovement typeMaterialMaterial descriptionQuantityUnitCost centerWBS elementSerial numberUserResult
4900021458201YD-5521Bearing 6205-2RS4ST4100-BAKIMDEPO01Posted
4900021459221EL-7710Frequency converter 7.5 kW1STP-26-014.02.03SN-0045821DEPO01Posted
221KB-3002Cable NYY 4x16150MP-25-008.01.01DEPO02WBS technically completed; issue not allowed
201EL-7712Contactor 32 A2ST4200-ATOLYEDEPO02Number of serial numbers does not match the quantity
A view built with fictional sample data; not real system data.

How does the program work?

  1. The user chooses the type of consumption: issue to a cost center or issue to a project (WBS). Allowed movement types, plants and storage locations per user group are kept in a setup table; a movement type not in the list cannot be selected.
  2. The account assignment is scanned or searched. For a cost center, the app checks in CSKS that it is valid in the controlling area and not locked for actual postings; for a WBS element, it checks in PRPS that it is an account assignment element and that the project status allows goods issues (released, not technically completed). For WBS elements that use project stock, the issue is taken from project stock.
  3. The storage location or bin is scanned. In an EWM-managed storage location the bin is checked in /SCWM/LAGP and the bin stock in /SCWM/AQUA; in an IM storage location unrestricted stock is checked in MARD. If stock is insufficient, nothing is posted.
  4. Material barcode, batch and quantity are scanned. For serialized materials each serial number is scanned; the app checks via EQUI/SER03/OBJK that the number is in stock in the right storage location, and the number of scanned serials must equal the quantity.
  5. Posting: in IM storage locations, movement 201 or 221 is posted with BAPI_GOODSMVT_CREATE (GM_CODE 03). In EWM-managed storage locations the stock is removed from the scanned bin through the standard EWM process and the goods issue is posted through EWM; the delivery-based or delivery-free path is chosen during installation according to the system’s EWM settings. In both cases a single MATDOC document is created in S/4HANA; in ECC, MKPF/MSEG.
  6. The screen shows the material document number or the error message. An issue entered wrongly can be reversed on the same day by an authorized user with BAPI_GOODSMVT_CANCEL. The daily consumption list is shown by cost center and WBS element.

Performance notes

Do the account assignment and stock checks with a single-record read at scan time; cache cost center and WBS lists at session start. Read serial number checks in one go. Make only one goods movement call per posting and commit after a successful return.

Features

  • Line-by-line result and error log All successful and rejected issue attempts are traced with their reason.
  • Double-click drill-down to the document The material document and account assignment can be opened from the daily list.
  • Export to Excel The consumption list by cost center and WBS element can be exported to Excel.

Authorization objects

  • M_MSEG_BWAGoods movement authorization by movement type (201, 221)
  • M_MSEG_WMBGoods movement authorization by plant
  • M_MSEG_LGOGoods movement authorization by storage location
  • S_SERVICECall the app's OData service

Frequently asked questions

What happens if someone issues to a closed WBS element?

The app checks the project status as soon as the WBS element is scanned; for elements that are technically completed or not released, the material scan step is not opened and the user sees the reason.

Can it be used in an EWM-managed warehouse?

Yes. Stock is removed from the scanned bin through the EWM process and the goods issue is posted through EWM; which EWM path is used is decided during installation from the system settings. For storage locations outside EWM the goods movement BAPI is used directly.

Is scanning serial numbers mandatory?

Only for materials whose serial number profile requires them in goods movements. For these materials nothing is posted until the number of scanned serials matches the quantity.

Related reports

PM Report Custom ALV report

Spare Parts Consumption and Cost by Equipment Report

A custom ALV report that totals goods issues to maintenance orders by equipment and functional location, showing which equipment consumes which spare …

MSEG · AUFK · AFIH · ILOA

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: Barcode Mobile Goods Issue App for Cost Center and Project (WBS) Consumption