WM Program Custom development Background program

Automatic Putaway Transfer Order Creation Job for Goods Receipt Interim Storage

Short answer: A custom background job that finds open transfer requirements waiting in goods receipt interim storage longer than a set time, converts them into transfer orders using the putaway strategy, and lists the result and errors. Goods receipts left over at night or at shift end start the morning already put away to their bins.

Estimated effort
M · 3–5 working days
System
ECC and S/4HANA
Tables
5
Scope
Global
Built by
NeKuDos Teknoloji
Last updated

Why is the standard not enough?

LT04 converts one transfer requirement to a transfer order on screen; LB10 lists open requirements but does not convert them in bulk on a schedule. Automatic transfer order creation (in the movement type) is either always on or always off; a controlled job that converts only requirements above a certain age and from certain movement types does not exist in the standard.

Who uses it? Goods receiving teams, warehouse shift supervisors and LE-WM key users.

Closest standard alternatives

  • LT04 Create Transfer Order from Transfer Requirement. Converts one transfer requirement to a transfer order on screen; no scheduled bulk conversion.
  • LB10 Transfer Requirements for Storage Type. Lists open transfer requirements; no automatic conversion with a waiting-time threshold.

Tables used

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

TableRoleAccessSystem
LTBKTransfer Requirement HeaderOpen transfer requirement header: movement type, status, creation time, material documentReadECC + S/4
LTBPTransfer Requirement ItemTransfer requirement item: requested and converted quantityReadECC + S/4
LQUAQuantsCheck of the quant in goods receipt interim storageReadECC + S/4
LTAKTransfer Order HeaderCreated transfer order headerWriteECC + S/4
LTAPTransfer Order ItemCreated items: destination storage type and binWriteECC + S/4

BAPIs and functions used

  • L_TO_CREATE_TRCreate Transfer Order for Transfer Requirement. Creates a transfer order from the transfer requirement using the putaway strategy

Selection screen parameters

ParameterDescriptionTypeReference fieldRequiredExample
S_LGNUMWarehouse numberRange / multipleLTBK-LGNUMYes100
S_BWLVSWM movement typeRange / multipleLTBK-BWLVSNo101
S_VLTYPSource (interim) storage typeRange / multipleLTBK-VLTYPNo902
S_BDATURequirement creation dateRange / multipleLTBK-BDATUNo01.11.2026 – 17.11.2026
P_MINAGEMinimum waiting time (hours)Single value—Yes2
P_TESTTest mode (list without creating transfer orders)Checkbox—NoX

Result list columns

#ColumnSource
1Transfer req.LTBP-TBNUM
2ItemLTBP-TBPOS
3MaterialLTBP-MATNR
4Open qtyCalculated LTBP-MENGE − LTBP-TAMEN
5UnitLTBP-MEINS
6Material doc.LTBK-MBLNR
7Transfer orderLTAK-TANUM
8Dest. typeLTAP-NLTYP
9Dest. binLTAP-NLPLA
10StatusCalculated Created, test or error
11MessageCalculated L_TO_CREATE_TR exception or success message

Sample result list

Transfer req.ItemMaterialOpen qtyUnitMaterial doc.Transfer orderDest. typeDest. binStatusMessage
00000045210001RM-1002300KG5000012834000008140200101-07-02CreatedTransfer order 81402 created
00000045600001RM-3105180L5000012901000008140300505-01-04CreatedTransfer order 81403 created
00000045710001RM-2040800KG5000012930ErrorNo suitable empty bin found in storage type 001
A view built with fictional sample data; not real system data.

How does the program work?

  1. Open or partially processed transfer requirements for the selected warehouse number and movement types are read from LTBK; those created more recently than the threshold are skipped.
  2. Items with remaining quantity (MENGE − TAMEN) greater than zero are taken from LTBP; LQUA is checked for a matching quant in the interim bin.
  3. In test mode, only the requirements to be converted and the expected destination storage type are listed.
  4. In a real run, L_TO_CREATE_TR is called for each transfer requirement; the destination bin is determined by the storage type’s putaway strategy. If no bin is found because of capacity or a block, the requirement stays open and the error message is logged.
  5. The created transfer order numbers and destination bins are read from LTAK/LTAP and written to the result list; the list is kept in the job log and can be emailed.

Performance notes

Schedule the job with separate variants per warehouse number and do not run it in parallel for the same warehouse; transfer order creation takes locks at warehouse number level. Committing after each requirement isolates failed ones.

Features

  • Runs as a background job Can be scheduled at shift ends or every hour.
  • Test mode (check without posting)
  • Line-by-line result and error log
  • Send the result by email Failed requirements can be sent to the goods receiving owner.

Authorization objects

  • L_LGNUMProcessing authorization by warehouse number and storage type
  • L_BWLVSAuthorization by WM movement type

Frequently asked questions

How is this different from automatic TO creation in the movement type?

The automatic setting creates a transfer order immediately for every goods receipt. This job converts only requirements older than a set time and from selected movement types, so the team can manage requirements manually during the day and the rest is processed automatically at shift end.

What happens to requirements where no bin is found?

The requirement stays open and the error message is written to the result list. It is retried in the next run; if the capacity issue persists, the warehouse owner gets an email.

Can the transfer orders be confirmed automatically?

Yes, depending on the movement type settings or an extra option, the transfer order can be confirmed immediately on creation. If physical putaway happens separately, confirmation should be done by handheld or the mass confirmation program.

Related reports

WM Report Custom ALV report

Interim Storage Stuck and Negative Stock Report

A custom ALV report that lists quants in goods receipt, shipping, posting change and difference interim storage types that have been waiting longer …

LQUA · LTBP · LTBK · LTAP

WM Program Custom Mass upload

Mass Transfer Order Confirmation Upload Program

A custom program that confirms hundreds of transfer order items in one run from picking results that come from handheld scanners, warehouse automation …

LTAK · LTAP · LQUA · LAGP

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: Automatic Putaway Transfer Order Creation Job for Goods Receipt Interim Storage