SAP Knowledge Base Article - Public

3659070 - Custom logic deployed for BADI is not working as expected in MIGO screen.

Symptom

  • You deploy a custom logic to check the "Delivery Note" field in the MIGO screen. If the "Delivery Note" field is empty, error "Delivery note already exists." should prompt in MIGO.
  • The BADI is triggered, but the validation does not work as expected.

Environment

S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Navigate to MIGO -> Goods receipt of Purchase order.
  2. Enter the PO and keep the "Delivery note" field empty. 
  3. Click the "Check" button.
  4. Observe that the error message "Delivery Note Number already exists." is NOT triggered.

Cause

The deployed custom logic retrieves data from CDS view "i_materialdocumentheader", but the user does not have authorization to access CDS view "i_materialdocumentheader".

Resolution

Assign the "Inventory Manager" role to the user will give access to CDS view "i_materialdocumentheader", then the custom logic will work. 

This solution can also work if the same authorization issue happens for other material document header fields, such as "Bill of lading".

Keywords

MIGO, delivery note validation, sap s/4hana cloud, goods receipt, authorization error, i_materialdocumentheader, inventory manager role, validation logic, delivery note already exists, custom logic , KBA , MM-IM-GR-MIGO-2CL , Goods Receipt from External Procurement (MIGO) (Public Cld) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions