| Status | |
|---|---|
| Owner | AROKIARAJAN-ext, Francis |
| Stakeholders | |
| Jira Request ID | ERP-537 Outbound Delivery Distribution (LE to EWM) |
| Jira Development ID | ERP-640 Outbound Delivery Distribution (LE to EWM) |
| Parameter | Value |
|---|---|
| Application System | SyWay S/4HANA |
| Business Process Reference | 06.10.03.01. Manage Outbound Deliveries |
Enhancement to Check Distribute Outbound Delivery:
Once all the line item have been allocated batches in outbound delivery then allow to distribute the outbound delivery to EWM for those only relevant for deliveries with storage locations active for EWM.
Note: the distribution is for the whole outbound delivery, not for the individual delivery item.
Objective
To Implement an automated check during Outbound Delivery processing that inspects all line items. When saving an outbound delivery, if any item is for a batch‑managed material and the batch field is empty, the system must prevent distribution to EWM (no ODO created; distribution status remains Relevant/Planned).

Step | Description | Comment |
|---|---|---|
| 1 | Create Outbound Delivery Manually | An Automated check during Outbound Delivery processing that inspects all line items. if any item is for a batch‑managed material and the batch field is empty for EWM Relevant SLOC, the system must prevent distribution to EWM. |
| 2 | Create Outbound Delivery Via Batch Job | An Automated check during Outbound Delivery processing that inspects all line items. if any item is for a batch‑managed material and the batch field is empty for EWM Relevant SLOC, the system must prevent distribution to EWM. |
| 3 | Create Subcontracting Outbound Delivery | An Automated check during Outbound Delivery processing that inspects all line items. if any item is for a batch‑managed material and the batch field is empty for EWM Relevant SLOC, the system must prevent distribution to EWM. |
MARA-XCHPF = 'X').Configuration Requirements
Not Applicable
Language Requirements
Not Applicable
Not Applicable
When saving an outbound delivery (Document Category 'J'), if any line items (include Batch Spilt line also) Storage Location is relevant EWM and a batch‑managed material and the batch field is empty,
the system must prevent distribution to EWM (no ODO created; distribution status remains Relevant/Planned).
Note: For batch split, the main item’s batch is expected to be blank; validate each batch split subitem instead.
ES_LE_SHP_EXTENDLE_SHP_CHECK_DISTRIBUTIONIF_LE_SHP_CHECK_DISTRIBUTIONCHECK_DISTRIBUTION (parameters include DELIVERY_DOCUMENT_IN, DELIVERY_DOCUMENT_ITEMS_IN, MESSAGES, DISTRIBUTION_NOT_ALLOWED_OUT).
Data Source Considerations| Table | Field Name | Comments/Calculation/Field Manipulation |
|---|---|---|
LIKP | VBTYP | delivery Header (Document Category) |
LIPS | MATNR | delivery items (Material) |
LIPS | CHARG | delivery items (Batch) |
LIPS | WERKS | delivery items (Plant) |
LIPS | LGORT | delivery items (Storage Location) |
MARA | XCHPF | Material Master (Batch Management Indicator) |
Include an overview of the data validation requirement. Can be deleted if not needed.
| Table | Field Name | Comments/Calculation/Field Manipulation |
|---|---|---|
| LIKP | VBTYP | If LIKP-VBTYP = 'J" then only apply the following conditions |
| LIPS | MATNR | To check Material Batch Management Indicator (MARA-XCHPF) as 'X' then apply the following conditions |
| LIPS | WERKS & LGORT | If LIPS-WERKS & LIPS-LGORT is EWM Relevant then only apply the following conditions |
Not Applicable
<Title Custom Table 1>
<Include an overview of the table and what it’s used for>
| Field | Description | Data Type/Length | Validation rule/ Value Help |
|---|---|---|---|
Title Configuration Table 1
Include an overview of the table and what it’s used for
| Field | Description | Data Type/Length | Validation rule/ Value Help |
|---|---|---|---|
This section will give the details on the selection screen parameters, parameter type and whether it’s obligatory or not. This section can be used to define the Import Export parameters for Function Module or User Exit or Screens. Can be deleted if not needed.
| Field Name | Description | Select: Option or Parameter Check box or Radio button Import or Export | Data Type/Length | Default Value/ Validation rule/ Value Help | Selection Logic |
|---|---|---|---|---|---|
To apply the following Logic at METHOD (CHECK_DISTRIBUTION) in interface (IF_LE_SHP_CHECK_DISTRIBUTION)
1) To check the Scope to Outbound Delivery only based on Document Category (J) of Delivery. If LIKP-VBTYP <> 'J" then RETURN. otherwise continue
2) Loop all items of delivery to check EWM Relevant and batch-managed material based on Plant & Storage Location combination and Material master Batch Management Indicator (MARA-XCHPF)
If batch-managed material (MARA-XCHPF) = "X" then check Batch not allocated in Delivery item.
If it is not allocated then update Block distribution as TRUE otherwise FALSE
3) If there is Block distribution as TRUE then
Update DISTRIBUTION_NOT_ALLOWED_OUT = TRUE
MESSAGE = "Batch missing on at least one batch-managed item; distribution to EWM blocked" with MSGID="VL' MSGNO = '000' MSGTY = 'E'.
Not Applicable
SELECT for MARA-XCHPF with FOR ALL ENTRIES.BAL) with object LE and sub object DELIVERY.Create Outbound Deliveries (manual or via background jobs) with multiple line items, driven by EWM-relevant storage locations, supporting both Batch-Managed and Non-Batch-Managed materials.
Note: EWM distribution is applicable only when the Storage Location is EWM-relevant.
Test Conditions and Expected Results
| ID | Condition | Expected Result |
|---|---|---|
| TS1 | Block distribution when one item missing batch: Create a Outbound delivery ( | Distribution to EWM is prevented, error message shown; EWM ODO not created. |
| TS2 | Allow distribution when all batches allocated: Create a Outbound delivery ( | Distribution proceeds; ODO appears in EWM monitor /SCWM/MON or /SCWM/PRDO. |
| TS3 | Re‑distribution after correction: Change Outbound Delivery for outbound delivery previously distributed Erroneously (From TS1) and allocate Batch & SAVE Outbound Delivery. | Distribution proceeds; ODO appears in EWM monitor /SCWM/MON or /SCWM/PRDO. |
TS4 | Non‑batch material:Create a Outbound delivery ( | Distribution proceeds; ODO appears in EWM monitor /SCWM/MON or /SCWM/PRDO. |
List any considerations essential for application test planning (e.g., test this before ABC along with DEF separate from GHI). If the development encompasses a user interface, explain how to test it. List any insights as to how this component could be tested the most efficiently.
| Package Name | Parent Package |
|---|---|
| Enhancement Type | Standard Definition Name | Custom Implementation Name | Design Rationale Reference |
|---|---|---|---|
| Object Type | Object Name | Purpose/High Level Logic | Design Rationale Reference |
|---|---|---|---|
This table is based on the Syensqo development standards document. It provides the naming conventions for authorization groups to associated with custom reports and tables to comply with security requirements.
ABAP | ZFI | ZMM | ZPS | ZCO | ZSD | ZBC | ZFI | ZCA |
|---|---|---|---|---|---|---|---|---|
| TABLES | ZFIT | ZMMT | ZPST | ZCOT | ZSDT | ZBCT | ZFIT | ZCAT |
Insert links and references to other documents which are relevant when trying to understand this decision and its implications. Other decisions are often impacted, so it's good to list them here with links. Attachments are also possible but dangerous as they are static documents and not updated by their authors.
