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: 

Enhancement on MIRO

Former Member
0 Kudos

Hi All,

My issue is as below:

When user created a new Invoice in MIRO, it will take Payment Term from PO and calculate the Due On Date under Payment tab in Header.

But for certain PO and Invoice, it is using Split Payment which is means multiple Payment Term is used and the amount is split.

For SAP standard Split Payment Term, when the invoice is new created, the Due On Date is calculated based on the 1st Payment Term entered by user in PO.

For example:

Baseline Date: 07/09/2009

Payment Term: 45 days

Due on Date: 21/11/2009

After the invoice is created, if user never go to the Amount Split tab in the Header, and save the recode. The payment term 45 days will save in table RBKP.

But if user navigate to Amount Split tab and then leave the tab, it will perform a validation. If the Split Payment Term is exist, then it will remove the payment term 45 in the stored structure.

As result, the Due on Date at above will become 07/09/2009 because there is no payment term exist now.

During the Save, the payment term 45 also not save in table RBKP. So when we use MIR4 to display the saved invoice, the Due on Date still showing 07/09/2009 but not as above.

The request from user is that the Due on Date must always take the 1st payment term entered in PO to calculate the Due on Date and show it correctly on screen, and then save the payment term in table RBKP.

Even user navigate between Amount Split tab and other tabs, the Due on Date still must calculate based on the request logic above.

I did try all User Exits and Badi for MIRO but non-of it is applicable for the request above.

Can anyone please help on this?

Our SAP version is 4.6c so some of the Badi i saw in the forum is not exist in 4.6c.

Thanks.

5 REPLIES 5

sujeet2918
Active Contributor
0 Kudos

Hello Aaron,

Please try to use from below Exits :

Enhancement

LMR1M001 User exits in Logistics Invoice Verification

LMR1M002 Account grouping for GR/IR account maintenance

LMR1M003 Number assignment in Logistics Invoice Verification

LMR1M004 Logistics Invoice Verification: item text for follow-on docs

LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting

LMR1M006 Logistics Invoice Verification: Process XML Invoice

MRMH0001 Logistics Invoice Verification: ERS procedure

MRMH0002 Logistics Invoice Verification: EDI inbound

MRMH0003 Logistics Invoice Verification: Revaluation/RAP

MRMN0001 Message output and creation: Logistics Invoice Verification

Business Add-in

INVOICE_UPDATE Business Add-In: Logistics Invoice Verification

In your case i think you can check in EXIT "LMR1M001". first check with one break point whether it works or not?

Regards,

Sujeet

0 Kudos

Hi Sujeet,

I did try all User Exits and Badi that you listed, but none of it can help.

The Badi is use for validation purpose only but don't have Exporting parameter for data change.

For User Exit, only LMR1M001 will be trigger while I am working on MIRO but the particular Function Exit will only trigger after the issue happen and it don't have the parameter for the related data change as well.

This issue is due to value for BSEG-ZTERM and other related columns are removed.

Thanks

0 Kudos

Hi Aaron Ooi ,

use BADI "MRM_PAYMENT_TERMS".

i think it will helip you.

Thanks.

0 Kudos

Hi Aaron Ooi ,

use BADI "MRM_PAYMENT_TERMS".

i think it will help you.

Thanks.

Edited by: RadhaShyam Sahoo on Dec 25, 2009 8:14 AM

Former Member
0 Kudos

Hi,

Please check Badi MRM_ITEM_CUSTFIELDS if it helps.