06-27-2013 9:31 AM
Hello Experts,
My requirement is to make the field “Partner Bank Type” (under “Payment”) - INVFO-BVTYP mandatory in transaction MIRO, if in the "Basic Data" tab, the user selects currency (INVFO-WAERS) other than 'EUR', for e.g. 'USD' etc.
My findings:
1. Include LFDCBFC0
2. Customer Exit EXIT_SAPLMRMP_010 in Enhancement LMR1M001 using SMOD
3. BADI INVOICE_UPDATE
Let me know which is the best way i can achieve this and how.
Thanks in advance.
Rajat
06-28-2013 2:49 PM
In FM MRM_FINAL_CHECK there is a SAP reserved BADI "MRM_CHECK", you could look for (implicit) enhancement in the area, look for methods IF_EX_MRM_CHECK~ITEMS_CHECK, HEADER_CHECK and AT_SAVE for suitable enhancement.
Regards,
Raymond
06-27-2013 10:03 AM
1 - Implement BADI INVOICE_UPDATE.
2 - Use the METHOD CHANGE_AT_SAVE.
3 - Implement the codes below -
IF S_RBKP_NEW-WAERS <> 'EUR' AND S_RBKP_NEW-BVTYP IS INITIAL.
Throw an error message saying the field is mandatory.
ENDIF.
Hope this helps
Cheers!
Abhinab
06-28-2013 12:35 PM
Hello Abhinab,
Thanks !! that was helpful.
But i want that before 'SAVE' button click, it should mark the field partner bank as mandatory.
the BAPI INVOICE_UPDATE will perform the check before 'SAVE'.
I believe a user exit may do the necessary.
Let me know if you find anything.
Regards,
Rajat
06-28-2013 2:49 PM
In FM MRM_FINAL_CHECK there is a SAP reserved BADI "MRM_CHECK", you could look for (implicit) enhancement in the area, look for methods IF_EX_MRM_CHECK~ITEMS_CHECK, HEADER_CHECK and AT_SAVE for suitable enhancement.
Regards,
Raymond
07-02-2013 7:14 AM
Hello Raymond,
Thanks, but i need to implement the functionality before the user clicks on 'SAVE' button.
Help appreciated.
-Rajat
11-06-2015 9:23 AM
Hello Rajat Bothra
How did you resolve the issue?
I tried to implement badi MRM_CHECK but it seem like system did not allow to do this.
Regards,
-Taivo