Application Development and Automation 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: 
Read only

User Exit for Deriving Tax Code while Creating PO

Former Member
0 Likes
644

Hi,

We want to write our own code for deriving the tax code while creating PO using BAPI_CREATE_PO1. Need help in identifying the user exit where we can write this code.

Thanks in advance.

Mick

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
550

I am not sure if its useful... but check

Transaction: CMOD

Enhancement: FYTX0002

Exit Function: EXIT_SAPLFYTX_USER_001

3 REPLIES 3
Read only

former_member156446
Active Contributor
0 Likes
551

I am not sure if its useful... but check

Transaction: CMOD

Enhancement: FYTX0002

Exit Function: EXIT_SAPLFYTX_USER_001

Read only

0 Likes
550

Thanks JackandJay.

But we want to derive the tax code based on company code, purchase organization, vendor, material, based on entries in custom table. So which user exit should I use, as the user exit should have header date (EKKO) and item (EKPO) data.

Regards,

Mick

Read only

0 Likes
550

I called a badi which does

method if_ex_extension_us_taxes~mm_data_for_tax_system.

export i_drseg from ti_drseg to memory id 'TAB_DRSEG'.

export i_bseg from ti_bseg to memory id 'TAB_BSEG'.

export i_bseg_mat from ti_bseg_mat to memory id 'TAB_BSEG_MAT'.

endmethod.

I guess i_drseg or i_bseg should have PO related data..