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
- MIGO / Post Goods Movement.
- Goods Receipt / Purchase Order.
- Enter PO number.
- Fields 'Delivery Note' / 'Bill of Lading' are available - but not set as required.
- 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
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