SAP Knowledge Base Article - Public

2902553 - It is allowed to add item directly for outbound delivery without referencing to sales document

Symptom

When using app "Create Outbound Delivery" with reference to sales order or Change Outbound delivery, it is allowed to add item directly for outbound delivery without referencing to sales document and the corresponding item category is DLNX.

Environment

  • Sales And Distribution (SD)
  • Logistics Execution (LE)
  • SAP S/4HANA Cloud

Cause

This behavior is controlled by the field ItemRequirement in SSCUI 102123 Define Delivery Types.

In cloud this field is set to 202 per default. (Order w IndpdntItem) and is not visible for customer.

Resolution

Workaround:

The field ItemRequirement  is invisible not yet available for editing in SSCUI 102123, a cloud BAdI can be used instead:

Example:

Badi: Modify Standard and Custom Fields for Delivery Header and Items

Code Snippet:

DATA: ls_message TYPE LINE OF TDT_BD_LE_SHP_MESSAGE.
LOOP AT delivery_document_items_in INTO DATA(ls_dlv_item) WHERE referencesddocument IS INITIAL.
  IF delivery_document_in-deliverydocumenttype NE 'LO' AND
    delivery_document_in-deliverydocumenttype NE 'LO2' AND
    delivery_document_in-deliverydocumenttype NE 'CBG5'.

*     ls_message-messagetext = |Reference SD document for item { ls_dlv_item-deliverydocumentitem } is missing.|.
*     ls_message-messagetype = 'E'. " Exit Message
*   APPEND ls_message TO messages.
      ls_message-messagetext = |Reference SD document for item { ls_dlv_item-deliverydocumentitem } is missing.|.
      ls_message-messagetype = 'A'. " Info message
    APPEND ls_message TO messages.
  ENDIF.
ENDLOOP.

This is the only way to prohibit adding item which doesn’t have reference to SO.

Keywords

Outbound Delivery, Sales Order, V_TVLK, Order w IndpdntItem, item category, DLNX , KBA , LE-SHP-DL , Delivery Processing , Problem

Product

SAP S/4HANA Cloud all versions