Skip to Content
0
Jul 13, 2009 at 10:03 AM

BADI / EXIT to Update Tax code in ME21N

1193 Views

Hi Experts,

Can anybody explain me the procedure to Update Taxcode in Item Level at ME21N transaction using BADI.

I'm using the BADI "ME_PO_PRICING_CUST" .But was unable to update the same.Is there any other BADI to do the same??

Here i used the code in BADI as below:

data: w_zsrm_taxcode type zsrm_taxcode.

if im_ekko-bsart = 'EC' and im_ekpo_matnr is initial.

select single tax_code from zsrm_taxcode

into w_zsrm_taxcode

where plant = imekpo-werks

and material_group = im_ekpo-matkl.

if sy-subrc = 0.

ch_komk-mwskz = w_zsrm_taxcode-tax_code.

endif.

endif.

Please do the need full.

Thanks in advance.