cancel
Showing results for 
Search instead for 
Did you mean: 

ME21N - Defaulting Tax Code using Exit or Badi

GaneshRK
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor
0 Kudos

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

GaneshRK
Participant
0 Kudos

Thanks Raymond.

Answers (1)

Answers (1)

VenkatRamesh_V
Active Contributor
0 Kudos

Hi Ganesh,

Try this Badi.

ME_PROCESS_PO_CUST

Regards,

Venkat.

GaneshRK
Participant
0 Kudos

Thanks Venkat