Skip to Content
0
Former Member
Feb 06, 2008 at 06:13 AM

Badi ME_PROCESS_PO_CUST, update tax jurisdiction

125 Views

Hi Guys,

I'm trying to change the tax jurisdiction of a PO line item in the Invoice tab. This field is currently in 'display only' mode on our system.

Here's my code in method PROCESS_ITEM in Badi ME_PROCESS_PO_CUST:

DATA:

w_data TYPE mepoitem,

v_txjcd(2) TYPE c.

CALL METHOD im_item->get_data

RECEIVING

re_data = w_data.

v_txjcd = w_data-txjcd.

CLEAR w_data-txjcd.

w_data-txjcd = v_txjcd.

CALL METHOD im_item->set_data

EXPORTING

im_data = w_data.

The thing is, after I set the data, nothing changes. I tried immediately doing another get_data and it's back to the original.

Any ideas how I can make this work? This is really urgent so any help you guys can give me would help greatly!

Points will be awarded of course.

Thanks.