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 user exit

Former Member
0 Kudos

While saving MIRO, we have some checks to do, and if they are true, we need to change the payment conditions to our ZTERM. I need to know where ( user-exit ) we can do this and be sure that will save correctly in all tables that contains the field zterm.

5 REPLIES 5

former_member182371
Active Contributor
0 Kudos

Hi,

have a look at badi MRM_PAYMENT_TERMS.

check this thread too:

Best regards.

Edited by: Pablo Casamayor on Oct 15, 2009 2:53 PM

0 Kudos

Hi Pablo,

this badi doesn´t update the 'zterm' field. And it´s have to be made at the 'save moment'.

0 Kudos

Hi,

you can try as well badi MRM_HEADER_CHECK.

Best regards.

0 Kudos

Hi Pablo,

the abap put a stop at the badi, and stopped at the SAVE moment as we need. We forced the value 'SUCT' that we need in the field RBKP-zterm, but this value was not saved. It was saved the PO zterm again ( D10 )...

0 Kudos

Hi,

try this within the badi:


   CONSTANTS: c_zterm(21) TYPE c VALUE '(SAPLMR1M)RBKPV-ZTERM'.
    FIELD-SYMBOLS: <fs_zterm> TYPE ANY.
    ASSIGN (c_zterm) TO <fs_zterm>.
    <fs_zterm> = 'HERE_GOES_YOUR_VALUE'.

but be careful and think twice about the consequences of changing ZTERM here.

Regards.