SAP Note 330390 - INVOIC-FI: error messages from user exits ignored

Component : Ext. Interfaces/BAPIs/ALE -

Solution : https://service.sap.com/sap/support/notes/330390 (SAP Service marketplace login required)

Summary :
User exits EXIT_SAPLIEDI_001 through EXIT_SAPLIEDI_004 encounter a problem where custom error messages intended for the status record of IDocs are overridden by default messages due to an interface error. The prescribed workaround involves using the FORM routine STATUSFELDER_FUELLEN_2 from program SAPLIEDI to insert user-defined error messages manually. These should trigger an exception NOT_FOUND to apply status 51 correctly, although it should be noted that standard error messages will still appear but can be disregarded.

Key words :
'51'                      user_msgid                      user_msgno                      user_msgv1                      user_msgv2                      user_msgv3                      user_msgv4                      sy-repid                      'user_exit_sapliedi'                      ' ', issue user-defined error messages, user exits exit_sapliedi_001, standard error message, form routine statusfelder_fuellen_2, status record immediately, error messages, user exits, standard messages, status record

Related Notes :

127178Questions about user exits in IDoc INVOIC01 (FI)