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: Need a BADI/EXIT to clear the Payment Block 'R' :

Former Member
0 Kudos

Hi Experts,

I am looking for a BADI/EXIT to clear the Payment Block that is put by the standard sap code through Perform zahlungssperre_setzen in include LMRMPF1R.

I have tried to use BADI MRM_PAYMENT_TERMS but this badi gets called before the above PERFORM zahlungssperre_setzen and hence any change made by the BADI gets overwritten by the SAP code again.

Any inputs in this will be helpful.

<offer removed by moderator>

Regards,

Edited by: Thomas Zloch on Jun 30, 2011 10:34 AM

2 REPLIES 2

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

See SAP Note 1559443 - Changing baseline dates for payment terms for Spain as a sample for this BADI. Read the documentation for the BADI in SE18.

Try with this coding.

First, load the interface of all e_*


*--- fill all export-parameter ----------------------------------------*
  e_zfbdt = i_rbkpv-zfbdt.
  e_zbd1t = i_rbkpv-zbd1t.
  e_zbd1p = i_rbkpv-zbd1p.
  e_zbd2t = i_rbkpv-zbd2t.
  e_zbd2p = i_rbkpv-zbd2p.
  e_zbd3t = i_rbkpv-zbd3t.
  e_zlspr = i_rbkpv-zlspr.

After, for instance


  if i_rbkpv-zlspr = 'Z'.   "or other
    clear e_zlspr.
  endif.

And you would see that it works.

I hope this helps you

Regards

Eduardo

Edited by: E_Hinojosa on Jun 30, 2011 1:11 PM

former_member182371
Active Contributor
0 Kudos

Hi,

this is another possibility:

Best regards.