Skip to Content
author's profile photo Former Member
Former Member

Badi ME_PROCESS_PO_CUST, update tax jurisdiction

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 06, 2008 at 03:05 PM

    I've been thinking, could the reason I'm unable to update the flied be that the field is only output enabled? If so, is there a way I can make it input enabled?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      How the data can change? Because you are copying the current value to the variable v_txjcd and then you are clearing the w_data-txjcd and then passing the value stored in v_txjcd to the cleared one.

      and hence it expected.

      v_txjcd = w_data-txjcd.

      CLEAR w_data-txjcd.

      w_data-txjcd = v_txjcd.

      Try putting some other value and try.

      Reward points if you find it helpful.

      Regards,

      Prasanna

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.