cancel
Showing results for 
Search instead for 
Did you mean: 

Not getting the tax details in me23n using custom smartform

Former Member
0 Kudos

Hi to all,

I am useing bapi to get the details of service order and printing the details in my custom smartform which is assigned in me23n. My problem is i am getting all the details like line item and all related but not the tax details. I need to print the net amount which is net amount + tax . Can any one help me in this regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

nabheetscn
Active Contributor
0 Kudos

Try finding some bapi to read tax tax related data or write the logic to fetch tax details from database table.

Let me know if you need any help concerning tables.

Nabheet

Former Member
0 Kudos

There is no bapi to read tax details.

nabheetscn
Active Contributor
0 Kudos

Use function module CALL FUNCTION 'CALCULATE_TAX_ITEM'

EXPORTING

dialog = lc_n

display_only = lc_x

i_taxcom = lwa_taxcom

IMPORTING

  • E_NAVFW =

e_taxcom = lwa_taxcom

  • E_XSTVR =

nav_anteil = lv_taxamt

TABLES

t_xkomv = lt_komv

EXCEPTIONS

mwskz_not_defined = 1

mwskz_not_found = 2

mwskz_not_valid = 3

steuerbetrag_falsch = 4

country_not_found = 5

OTHERS = 6

.

IF sy-subrc <> 0.

  • MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

  • WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

LT_KOMV will return the tax related data.

Nabheet

Former Member
0 Kudos

THANKS FOR UR SUGGESTION.