---
id: change/bcapps/11367
type: change
title: "#11367 [29.X][Repair Item][SaaS][Drop shipment reversal] Undo Shipment fails with blank Bin Code at bin-mandatory location"
summary: Fixed an issue where undoing a shipment would fail when a bin code was blank at locations requiring bins during drop shipment reversals.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - codeunit undo purchase receipt line
  - codeunit undo sales shipment line
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:04:39.890Z"
  flags: []
generated:
  at: "2026-10-11T00:26:06.897Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 3fef8d3396d8b13647335e366610d564041fdbae
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11367
    title: "microsoft/BCApps#11367: [29.X][Repair Item][SaaS][Drop shipment reversal] Undo Shipment fails with blank Bin Code at bin-mandatory location"
    date: "2026-09-17"
    commit: 3fef8d3396d8b13647335e366610d564041fdbae
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/5813
    - object/codeunit/5815
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11367
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11367
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-09-17T15:35:50Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 87
  deletions: 0
  al: 3
apps:
  - Base Application
objects_touched:
  - key: codeunit/5813
    page: codeunit/5813
    type: codeunit
    id: 5813
    name: Undo Purchase Receipt Line
    app: Base Application
    status: modified
  - key: codeunit/5815
    page: codeunit/5815
    type: codeunit
    id: 5815
    name: Undo Sales Shipment Line
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/RU/BaseApp/Sales/History/UndoSalesShipmentLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 649729
systems:
  - purchasing
  - sales
quote: null
joined_against:
  major: "29"
  commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
---

# #11367 [29.X][Repair Item][SaaS][Drop shipment reversal] Undo Shipment fails with blank Bin Code at bin-mandatory location

> Fixed an issue where undoing a shipment would fail when a bin code was blank at locations requiring bins during drop shipment reversals.

[Pull request](https://github.com/microsoft/BCApps/pull/11367) · merged into `releases/29.x` (BC29) on 2026-09-17 by neeleshsinghal · 4 files (+87 -0), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Corrects undo operations for sales shipments and purchase receipts when the bin code is blank
- Addresses drop shipment reversal at locations where bins are mandatory
- Adds a test for the scenario in the item tracking test codeunit
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 5813 "Undo Purchase Receipt Line"](../../objects/codeunit/5813.md), Base Application: modified
- [Codeunit 5815 "Undo Sales Shipment Line"](../../objects/codeunit/5815.md), Base Application: modified
- `src/Layers/RU/BaseApp/Sales/History/UndoSalesShipmentLine.Codeunit.al`: modified, not in the BC29 snapshot

## Context

- Work items: AB#649729
- Labels: Team: SCM
- Systems: purchasing, sales

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
