‎2016 Dec 09 4:37 PM
Hi experts.
I'm developing a validation in tx MIRO through the BADI MRM_HEADER_CHECK, I show a message when the field "reference" has already been used. The message is type "E", this disable every field from screen but I can't back to active this field for the user can fix it.

FYI: I have to show message type "E" because I want to block every fields excepts the two fields with red label (imagen). I saw that the people suggestion use this:
MESSAGE <> TYPE 'S' DISPLAY LIKE 'E'.Like is a standard program, I can´t to modify code that is out of my BADI code. Was about PAI and PBO module:
CHAIN.
fields: f1,f2,f3.
MODULE <mod name>.
ENDCHAIN.This my BADI code.
*This field symbol have the values of inputs.
ASSIGN ('(SAPLMR1M)RBKPV') TO <fs_rbkpv>.
IF <fs_rbkpv>-XBLNR = lwa_bkpf-xblnr.
MESSAGE lc_message TYPE 'E'.
ENDIF.
‎2016 Dec 12 9:55 AM
There is already Customizing option to check for duplicates. Check with functionals first. (Materials Management, Logistics Invoice Verification, Incoming Invoice, Set Check for Duplicate Invoices - tr. OMRDC) There is also a Customizing in FI (1900510 - Duplicate Invoice check configuration as per standard).
Regards,
Raymond