SAP Knowledge Base Article - Public

3519927 - MIGO : How to set fields Delivery Note / Bill of Lading as mandatory

Symptom

How to set field 'Delivery Note' / 'Bill of Lading' as mandatory in MIGO / Post Goods Movement.

Environment

SAP S/4HANA Cloud

Reproducing the Issue

  1. MIGO / Post Goods Movement.
  2. Goods Receipt / Purchase Order.
  3. Enter PO number.
  4. Fields 'Delivery Note' / 'Bill of Lading' are available - but not set as required.
  5. Need the fields to be set as required / mandatory.

Cause

Requires extensibility to enable the fields Delivery Note / Bill of Lading to be set as required via BAdI MMIM_HEAD_CHECK_DATA

Resolution

Via BAdI MMIM_HEAD_CHECK_DATA here you select the parameters : DELIVERYDOCUMENTBYVENDOR // BILLOFLADING and customise an error to say 'Enter Delivery Note' // 'Enter Bill of Lading'

MMIM_HEAD_CHECK_DATA

Example

YY1_VALIDATION

IF ( header_matdoc-DELIVERYDOCUMENTBYVENDOR IS INITIAL).
  IF ( item_matdoc-goodsmovementtype EQ '101'
    OR  item_matdoc-goodsmovementtype EQ '105' ).
    APPEND VALUE #( messagetype = 'E' messagetext = 'Enter the Delivery Note' ) TO messages.
  ENDIF.
ENDIF.

 

See Also

Check Header in Material Documents

Keywords

Required, Mandatory, 2408, MIGO, Post Goods Movement, Delivery Note, Bill of Lading, Parameter, Custom Fields, Business Context, Header, validate, MMIM_HEAD_CHECK_DATA, BAdI  , KBA , MM-IM-GR-MIGO-2CL , Goods Receipt from External Procurement (MIGO) (Public Cld) , How To

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions