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: 

Set Payment block for credit memo

Former Member
0 Kudos

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

7 REPLIES 7

arivazhagan_sivasamy
Active Contributor
0 Kudos

Hi,

Can you try with user exit.. LMR1M001

Arivazhagan S

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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

0 Kudos

Hi...

Is there any other BADI/User Exit, relevant to my requirement, that you came across.

Warm Regards,

Jubish Jacob

0 Kudos

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

0 Kudos

Hi...

Worked now as I coded an enhancement to the program - LMR1MF2Y

Warm Regards,

Jubish Jacob