Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Need an Exit When Taxes Button is pressed in ME21N

Former Member
0 Kudos

Hi All,

Am looking for an Exit or Badi which could be trigerred while selecting a line item in the PO & the TAXES Button is pressed in the INvoice Tab.

I am trying to get the Material Group of the line item into the Taxware User Exit when material Number is not entered.

Or Else please suggest an Enhancement point where i would be able to get the value of EKPO-MATKL.

Thanks in advance.

Kevin.

14 REPLIES 14

former_member262988
Active Contributor
0 Kudos

Hi,

When you select the line item and press on invoice tab and click taxes button the BADI ME_CIN_MM06EFKO gets triigerred....which contains the structure Y_EKPO-MATKL ....

Thanks,

Shailaja Ainala.

0 Kudos

Hi ,

I am not able to implement this BADI,

The system is giving an error asking to specify Filter TYpes.

WHere do i specify & what do i specify.

Please Help.

regards,

Kevin.

0 Kudos

Hi,

In the attributes tab ....Under TYPE tab .....

you will see filter-Depened check box below that you will see plus(+) icon click on that you will see one line item added.....in the fielst column(iso code) press f4help you will see iso codes displayed ask your functional consultant and select the relavant one....

Thanks,

Shailaja Ainala.

0 Kudos

I tried executing by putting a breakpoint at the Call statement.

But it doesn't stop at the breakpoint.

And even after adding the filter type as US USA the system shows an error as

Interface implementation IF_EX_ME_CIN_MM06EFKO does not exist

regards,

Kevin.

0 Kudos

Hi,

Did you implement the badi or not ......

go to se19 impelement the badi and give the filter type .....

now under interface tab ....double clikc on method ME_CIN_COPY_PO_DATA ...

inside this you will see

method IF_EX_ME_CIN_MM06EFKO~ME_CIN_COPY_PO_DATA.
endmethod.

now keep break as

method IF_EX_ME_CIN_MM06EFKO~ME_CIN_COPY_PO_DATA.
break-point.
endmethod.

Thanks,

Shailaja Ainala.

0 Kudos

Exactly i have done the same.

But processing doesn't stop at the breakpoint.

I am in ME22N transaction After selecting a line item i am clicking on the Invoice Tab & then i am clicking on the TAXES Button to see the taxes calculated.

I am unable to hit the breakpoint.

regards,

Kevin.

0 Kudos

Hi,

You have to give the correct filter value ...other wise it wont trigger.

Thanks,

Shailaja Ainala.

0 Kudos

Is there any other BADI which can be used.

Or any Exit?

THanks.

Kevin

former_member262988
Active Contributor
0 Kudos

Hi,

What exactly you want to do the process ...

Thanks,

Shailaja Ainala.

0 Kudos

I want to fetch the Material Group entered in the LIne item.

Based on the material Group I need to map a product code for the TAXWARE to calculate the right Tax.

SO whenever material NUmber is entered it comes in a field inside the User Exit for Taxware.

Whereas only if Material Group is mentioned. I need to export the value & import it inside the Exit.

The Exit I am working on is EXIT_SAPLFYTX_USER_001.

regards,

Kevin.

Sorry for the Delayed response I was out.

0 Kudos

First Thanks to shailaja.

I am closing this thread because i found a solution.

The BADI EXTENSION_US_TAXES gets trigerred when you hit the Taxes Button.

There is a method called ME_TAXCOM_MEPO.

Inside this method you have two structures IM_EKPO and IM_OFEKPO.

These have the current selected line item values and the Old selected line item values respectively.

Using this the Material Group on the selected line item can be fetched.

regards.

Kevin.

0 Kudos

Hi ,

Thanks kevin for updating....

Thanks,

Shailaja Ainala.

0 Kudos

Welcome Shailaja )

regards,

Kevin.

Some Info : TAXWARE is a third party software used to calculate taxes for US & Canada.

All the discussions were around these TAXWARE.

Some important SAP Notes Which might be helpful for Someone who might implement this in future.

Check out the following notes :

302998,

986148,

662668.

0 Kudos

Hi Kevin,

I have same kind of requirement i need to read around 10-15 fields some of them are custom fields.

So i needed to ask that you read the data from this BADI and used it in the user

exit EXIT_SAPLFYTX_USER_001? if you have done so can you throw some light on the process of

how to transfer data from BADI to user exit.

Thanks & Regards,

Durgesh