Skip to Content

ME21N - Defaulting Tax Code using Exit or Badi

Hi Experts,

Need to default the Tax Code as 'V0' on ME21N transaction. I have tried with Badi "EXTENSION_US_TAXES & ME_TAX_FROM_ADDRESS" to default Tax code. But could not able to default Tax Code. Could you please provide the exact BADI or Exit to Default the Tax code when using ME21N. Thanks.

Regards,

Ganesh R K.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 11, 2014 at 12:13 PM

    Did you try ME_PROCESS_PO_CUST, a method as PROCESS_ITEM, coude could be similar to

    METHOD if_ex_me_process_po_cust~process_item .
    INCLUDE mm_messages_mac.
    DATA: ls_item TYPE mepoitem,
    lo_header TYPE REF TO if_purchase_order_mm,
    ls_header TYPE mepoheader,
    ls_item = im_item->get_data( ).
    lo_header = im_item->get_header( ).
    ls_header = lo_header->get_data( ).
    * Change some value only if required
    IF ls_item-mwskz IS INITIAL.
    ls_item-mwskz = 'your rule here'.
    im_item->set_data( ls_item ).
    ENDIF.
    ENDMETHOD. "if_ex_me_process_po_cust~process_item


    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 11, 2014 at 11:38 AM

    Hi Ganesh,

    Try this Badi.

    ME_PROCESS_PO_CUST

    Regards,

    Venkat.

    Add a comment
    10|10000 characters needed characters exceeded

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.