02-07-2014 10:35 AM
Hi...
I have a requirement wherein I have to set payment block to a credit memo with reference to an invoice. (Transaction MIRO). It works fine if the referred invoice has a payment block. But, if the payment block for the referred invoice is initial (cleared), I want to set the payment block. This doesn't work as, if I set the payment block, it is not accepting the block that I have given. I tried BADI - MRM_PAYMENT_TERMS as well. But if I set the payment block using this BADI, the table BSEG is not updated with the payment block but only table RBKP has value for payment block. As BSEG doen't have the payment block, when I display the document using MIR4, it is shown as document without payment block.
Where would I be able to put payment block so that all the relevant tables would be updated? Is there any BADI (another BADI?), exit available?
Warm Regards,
Jubish Jacob
02-07-2014 10:47 AM
02-07-2014 12:38 PM
Hi...
Thank you for the quick reply.
I checked the exit. But the parameter has just one table E_TDRSEG and this table doesnot have zlspr field present. So this didn't work.
Warm Regards,
Jubish Jacob
02-07-2014 5:11 PM
Hello Jacob,
You can try implementing the BADI "WRF_PREPAY_INVOICE" with method "PREPAYMENT_RELEVANCE_CHANGE" which triggers during MIRO execution.
in the method PREPAYMENT_RELEVANCE_CHANGE : parameter
IS_RBKPV Importing MRM_RBKPV => refers to DB view RBKP_V
which is having Payment Block key ZLSPR.
Please try with this & see if it works.
Thanks,
Kishor.
02-10-2014 11:39 AM
Hi Kishor,
The BADI that you mentioned is not called when I save a MIRO. Did I miss something than just saving from MIRO? Please advice.
Warm Regards,
Jubish Jacob
02-10-2014 1:05 PM
Hi...
Is there any other BADI/User Exit, relevant to my requirement, that you came across.
Warm Regards,
Jubish Jacob
02-10-2014 1:17 PM
Hi Jubish
I went through the whole thread as you are able to apply payment block in RBKP but not in accounting documents in BSEG right.. In case you want to do it you can make use of FI substitutions without looking for anything else. Whenever you will post an invoice it will get triggered and you can set the values
Nabhet
02-14-2014 10:58 AM
Hi...
Worked now as I coded an enhancement to the program - LMR1MF2Y
Warm Regards,
Jubish Jacob