10-22-2008 3:20 PM
Hi All,
I am getting a dump with CONVERT_NO_NUMBER. I get this while adding the currency values inside the loop. But why it dumps??
Show the debugger values for reference:
t_kwert Table[2x17]
wa_kwert 0000040814######L
wa_kwert-kwert 11.14
I believe the dump is because the ###### values in the work area, but this comes even after the clear of the work area. Please see my code below.
TYPES : BEGIN OF x_kwert,
knumv TYPE konv-knumv,
kwert TYPE konv-kwert,
END OF x_kwert.
DATA : t_kwert TYPE TABLE OF x_kwert,
wa_kwert like line of t_kwert.
CLEAR wa_kwert.
REFRESH t_kwert.
SELECT knumv kwert
INTO TABLE t_kwert
FROM konv
FOR ALL ENTRIES IN ikschl
WHERE knumv = l_knumv
AND kschl = ikschl-kschl.
CLEAR: wa_kwert.
LOOP AT t_kwert INTO wa_kwert.
l_ksum = wa_kwert + l_ksum .
ENDLOOP.
Thanks,
Senthil
10-22-2008 3:25 PM
while use control levell processing statement's like AT NEW fn, AT END Fn etc.... ( Fn is the field name ) after that filed the values will hold ########## while looping move the value to an workarea and use the itab value .... you can notice after endat statement you can see the values. this will solve your problem
10-22-2008 3:25 PM
while use control levell processing statement's like AT NEW fn, AT END Fn etc.... ( Fn is the field name ) after that filed the values will hold ########## while looping move the value to an workarea and use the itab value .... you can notice after endat statement you can see the values. this will solve your problem
10-22-2008 3:33 PM
Hi,
I dont have AT NEW ENDAT or any control level processing stmts in my loop, But still ### is comming.
10-22-2008 3:39 PM
Change to the below code
LOOP AT t_kwert INTO wa_kwert.
=>l_ksum = wa_kwert-kwert + l_ksum .
before you are summing with the whole wa do it for a field.
ENDLOOP.
10-22-2008 3:49 PM
Hey thanks, My bad naming convention of the itab put me in trouble. Thanks.
10-22-2008 3:28 PM
10-22-2008 3:34 PM