Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

MIRO : Make Partner Bank on Payment MANDATORY

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

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

5 REPLIES 5

former_member212002
Active Contributor
0 Kudos

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

0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hello Raymond,

Thanks, but i need to implement the functionality before the user clicks on 'SAVE' button.

Help appreciated.

-Rajat

0 Kudos

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