Skip to Content
author's profile photo Former Member
Former Member

Smartform_issue urgent

HI ALL,

Here is the code which i had copied down .

the issue is Tax Exempt reason : field is not printing in Production but it is printing in Devlopment and Quality if any can say why it is not priniting what will be the cause?

i will reward u with more points.

Thanks,

  • Get the Sales Tax Code from KONV

data:

lv_mwsk1 like konv-mwsk1,

lv_j_1arfz like j_1arztx-j_1arfz.

select mwsk1 from konv into lv_mwsk1 up to 1 rows

where knumv eq vbrk-knumv.

endselect.

if sy-subrc is initial and not lv_mwsk1 is initial.

select j_1arfz from j_1arztx into lv_j_1arfz up to 1 rows

where mwskz eq lv_mwsk1.

endselect.

if sy-subrc is initial and not lv_j_1arfz is initial.

select single text30 from j_1arfzt into gv_tax_exempt_reason

where spras eq is_nast-spras and j_1arfz eq lv_j_1arfz.

if sy-subrc <> 0.

select single text30 from j_1arfzt into gv_tax_exempt_reason

where spras eq 'E' and j_1arfz eq lv_j_1arfz.

endif.

  • Get the extended tax exempt reason from the cross ref table

data: lv_varname like ztxa_varnames-varname

value 'TAX_EXEMPT_REASON_DESC',

lt_xref type table of ztxa_xref,

ls_xref type ztxa_xref.

call function 'ZXA_GET_XREF_VALUES'

exporting

varname = lv_varname

tables

xref_tab = lt_xref

exceptions

no_values_found = 1

invalid_variable_name = 2

others = 3.

if sy-subrc is initial.

read table lt_xref into ls_xref with key value1 = lv_j_1arfz.

if sy-subrc = 0 and ls_xref-active = 'X'.

  • Concatenate the tax exempt reason & the extended TER

concatenate gv_tax_exempt_reason ls_xref-value2

into gv_tax_exempt_reason_ext separated by space.

endif.

endif.

if gv_tax_exempt_reason_ext eq space.

move gv_tax_exempt_reason to gv_tax_exempt_reason_ext.

endif.

endif.

endif.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 02:52 PM

    before select

    clear the into fields.

    also check if there are records

    some time MWSK1 may not be maintained

    so check only sy-subrc after select.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.