cancel
Showing results for 
Search instead for 
Did you mean: 

Down payment validation in MIRO

former_member212322
Participant
0 Kudos

SAP gives M8318 message if any down payment exists against the PO.

We want to add validation in MIRO- " If down payment exists against the PO then user should not be able to process MIRO without opting for the down payment".

Kindly advice to achive this.

Accepted Solutions (0)

Answers (4)

Answers (4)

JL23
Active Contributor

I am not sure what you really want to validate and how you would like to proceed after the message, the longtext of the message says that SAP does the settlement automatically

this wiki https://wiki.scn.sap.com/wiki/display/ERPSCM/Down+Payments talks about a Badi to control the message, same is said in various OSS notes.

former_member212322
Participant
0 Kudos

Requirement is for asset POs.

If any advances taken against asset PO, then business wants to adjust it compulsory at the time of MIRO.

former_member212322
Participant
0 Kudos

After getting error message, user will opt for the down payment .

And then only user will be able to process the MIRO.

mpizeli
Explorer
0 Kudos

Activation of Badi: 'MRM_DOWNPAYMENT' implementation is required.

METHOD IF_EX_MRM_DOWNPAYMENT~DOWNPAYMENT_CHECK.
DATA: lv_ratio TYPE p DECIMALS 2.
CHECK NOT i_drseg-netwr IS INITIAL.
lv_ratio = i_drseg-rewrt / i_drseg-netwr.
* dependent on the percentage of the overall PO fullfillment,
* the message is issued
IF lv_ratio LT '0.5'.
e_prevent_message = 'X'.
ENDIF.

ENDMETHOD.

Please copy the code, as advised and continue with (possible) local corrections.

Lakshmipathi
Active Contributor
0 Kudos

You need to maintain there with E under Online and BatchI

JL23
Active Contributor
0 Kudos

have you tried it? you can only add messages that are listed in the F4 help. In my system is this 318 message not in the list of customizable messages in OMRM.

Using the where-used in SE91 for M8318 just returns a program where this message is hardcoded as I for information message.

Lakshmipathi
Active Contributor
0 Kudos

Nope - Not in front of SAP right now and hence, not sure but I remember some ten years back, in one of my projects, similar requests were taken care by this.

former_member212322
Participant
0 Kudos

Yes, it is not available. Hence we are checking for enhancement.

Lakshmipathi
Active Contributor
0 Kudos

Add the same message in OMRM

former_member212322
Participant
0 Kudos

No messages available in OMRM for my requirement.

Any other suggestions?