I Should Implement User Exit or BADI for to check and validate PO data for MIRO. While “Save”ing a manually created invoice I have to check if Purchase order referenced on the Line items,
If purchase order referenced, I Should check if partner function “AZ” maintained at purchase order header level, If partner function “AZ” available on PO header, I Should force the user to select Individual Payee on the selection on the Invoice Payment tab. If Individual Payee not selected I should throw a hard error “ Message 1” while “Save”ing.
Note* : In MIRO , Partner Function is not available. So, i thought of getting Partner function from ME23N.
So, How could this be done. Please suggest.