Skip to Content
0
Former Member
Jan 14, 2008 at 05:51 AM

Runtime error in data type

70 Views

i written following code in subroutine for script.

it is giving runtime error as " UNABLE TO INTERPRET 10,000 AS A NUMBER .

And it is indicating error in the line

a_skfbt = in_tab-value.

pls suggest me solution.

form whd_tax tables in_tab structure itcsy

out_tab structure itcsy.

data: A_SKFBT type regup-skfbt,

A_WRBTR type regud-wrbtr ,

C_WTAX TYPE regud-skfbt.

*break-point.

read table in_tab WITH KEY NAME = 'REGUP-SKFBT'.

check sy-subrc = 0.

A_SKFBT = in_tab-value.

read table in_tab WITH KEY NAME = 'REGUD-WRBTR'.

check sy-subrc = 0.

A_WRBTR = in_tab-value.

C_WTAX = A_SKFBT - A_WRBTR.

  • and shkzg = 'H'.

read table out_tab index 1.

check sy-subrc = 0.

out_tab-value = C_WTAX.

modify out_tab index 1.