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

smartforms

Former Member
0 Likes
406

Hi,

there is vat window in my smartform.

there are vat codes like 0,z,1

for '0' vat code there is vat rate as 0.00%

for '1' vat code there is vat rate as 17.50%

for 'z' vat code nothing rate is there but it should be there so that the enduser can put any vat percentage in future

could anybody help me in giving the procedure for the coding for this

3 REPLIES 3
Read only

Former Member
0 Likes
390

Hi,

1.Create three text in the vat window .

2.Create three FLAG (data: g_flag type c,g_flag1 type c,g_flag2 type c).

3.In each each text assign one flag in the condition tab.

Logic:

if vat = 0.

g_flag = 'X'.

elseif vat = 1.

g_flag1 = 'X'.

elseif vat = 'Z'.

g_flag2 = 'X'.

endif.

Regards,

Billa

Read only

0 Likes
390

HI,

thanks for your reply but i need some more to be clarified.

Hi,

there is vat window in my smartform.

there are vat codes like 0,z,1

for '0' vat code there is vat rate as 0.00%

for '1' vat code there is vat rate as 17.50%

for 'z' vat code nothing rate is there but it should be there so that the enduser can put any vat percentage in future

could anybody help me in giving the procedure for the coding for this

based on that i want to calculate the taxable amounts and the amount taxes accorign to those vat codes

COULD YOU PLS HELP ME OVER THIS?

Read only

0 Likes
390

Hi ,

Use the same logic which i said and do the calculation inside.

if vat = 0.

calculation.

g_flag = 'X'.

endif.

Reward if useful...

Regards,

Billa