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: 

EXIT BADI FOR ME21N ME22N AND ME23N

0 Kudos

Hello Boys.

I want to change the field 'Tax code' (MWSKZ) in a Purchase order on transaction ME21N, ME22N AND ME23N.

I want to change thios field in a BADI, USER EXIT or ENHANCEMENT-POINT.

But I can't find where change this field.

thanks for your help.

Best regards.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try Badi : ME_PROCESS_PO_CUST

CALL METHOD im_item->get_data

RECEIVING

re_data = v_data_item.

Your code to change the tax code

CALL METHOD im_item->set_data( v_data_item ).

<REMOVED BY MODERATOR>

Edited by: Aparna Shekhar on Jun 12, 2008 11:33 AM

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:52 PM

4 REPLIES 4

Former Member
0 Kudos

Try Badi : ME_PROCESS_PO_CUST

CALL METHOD im_item->get_data

RECEIVING

re_data = v_data_item.

Your code to change the tax code

CALL METHOD im_item->set_data( v_data_item ).

<REMOVED BY MODERATOR>

Edited by: Aparna Shekhar on Jun 12, 2008 11:33 AM

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:52 PM

0 Kudos

How to change net price field netpr in conditions tab in me21n.

I tried with badi ME_PROCESS_PO_CUST. But it doesnot work.

Can u please give me sample code to make the field netpr zero.

I am new to badi...

Please help.

Regards,

Jenifer

0 Kudos

Go to Method- PROCESS_ITEM

With in IM_ITEM you can get Method-

GET_CONDITIONS Instance Method Get Item Conditions

SET_CONDITIONS Instance Method Set Item Conditions (Without Check)

Within this SET_CONDITIONS u can write your code.

0 Kudos

Thanks, it works.