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

> 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.

- Type: Program, Custom development, Fiori app
- Module: WM
- Estimated effort: L (12–18 working days)
- Last updated: 2026-11-18
- URL: https://nekuhub.com/en/programs/barcode-mobile-goods-issue-app-for-cost-center-and-wbs-consumption/


## 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.

### Closest standard alternatives

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

## Tables used

| Table | Role | Access | Join | System |
|---|---|---|---|---|
| CSKS | Cost center validity and actual posting lock | Read | - | ECC + S/4 |
| PRPS | WBS element, account assignment flag and project link | Read | - | ECC + S/4 |
| PROJ | Project definition and project stock setting | Read | PROJ-PSPNR = PRPS-PSPHI | ECC + S/4 |
| /SCWM/LAGP | Check of the scanned bin (EWM) | Read | - | ECC + S/4 |
| /SCWM/AQUA | Available stock in the bin (EWM) | Read | /SCWM/AQUA-LGPLA = /SCWM/LAGP-LGPLA | ECC + S/4 |
| MARD | Unrestricted stock in an IM storage location | Read | - | ECC + S/4 |
| EQUI | Serialized equipment record | Read | - | ECC + S/4 |
| SER03 | Serial number header for goods movements | Read | - | ECC + S/4 |
| OBJK | Serial number object list | Read | OBJK-OBKNR = SER03-OBKNR | ECC + S/4 |
| MAKT | Material description | Read | - | ECC + S/4 |
| MATDOC | Posted 201/221 consumption document (S/4HANA) | Write | - | S/4HANA only |

## BAPIs and functions used

- BAPI_GOODSMVT_CREATE: Posts the goods issue to the cost center or WBS element
- BAPI_GOODSMVT_CANCEL: Reverses an issue entered wrongly on the same day

## Selection screen parameters

| Parameter | Description | Type | Reference field | Required |
|---|---|---|---|---|
| P_WERKS | Plant (user setting) | Single value | MATDOC-WERKS | Yes |
| P_LGORT | Default storage location | Single value | MATDOC-LGORT | No |
| P_BWART | Movement type (from the allowed list) | Single value | MATDOC-BWART | Yes |
| P_BUDAT | Posting date | Single value | MATDOC-BUDAT | No |

## Input file columns

| Column | Target field | Required |
|---|---|---|
| Cost center | CSKS-KOSTL | No |
| WBS element | PRPS-POSID | No |
| Storage bin | /SCWM/LAGP-LGPLA | No |
| Material barcode | MARA-MATNR | Yes |
| Batch | MATDOC-CHARG | No |
| Quantity | MATDOC-MENGE | Yes |
| Serial number | OBJK-SERNR | No |

## Result list columns

| Column | Source |
|---|---|
| Material document | MATDOC-MBLNR |
| Movement type | MATDOC-BWART |
| Material | MATDOC-MATNR |
| Material description | MAKT-MAKTX |
| Quantity | MATDOC-MENGE |
| Unit | MATDOC-MEINS |
| Cost center | MATDOC-KOSTL |
| WBS element | PRPS-POSID |
| Serial number | OBJK-SERNR |
| User | MATDOC-USNAM |
| Result | Calculated: Posted, or the check or posting error message |

## 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.

## Authorization objects

- M_MSEG_BWA: Goods movement authorization by movement type (201, 221)
- M_MSEG_WMB: Goods movement authorization by plant
- M_MSEG_LGO: Goods movement authorization by storage location
- S_SERVICE: Call 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.

---
Let us build this program for your system: https://nekuhub.com/en/request-a-quote/?report=ewm-mobile-cost-center-wbs-consumption-app
