on 2008 Jul 15 1:42 PM
data:
begin of z,
txtmg(11) type c,
ladpt(06) type p decimals 3,
zprun_o(06) type p decimals 3,
end of z.
field-symbols:
<menge>. "(even tried type any here)
assign table field (z-txtmg) to <menge> .
....
z-ladpt = <menge>.
....
z-zprun_oo = <menge>.
When i run ucchceck i get a warning in static anlysis for the following reason: because of the use of untyped or generic datatypes there is no evaluation for this operation available. Can only be validated at runtime.
When i use
assign (z-txtmg) to <menge> casting type P (Without the table field,because it gives error of not allowing casting)
it does not work, still gives the warning to me.
what can i do instead to get rid of the unicode warning?
Best regards & points will be awarded!
Try this :
data:
begin of z,
txtmg(11) type c,
ladpt(06) type p decimals 3,
zprun_o(06) type p decimals 3,
end of z.
field-symbols:
<menge> type c.
assign table field (z-txtmg) to <menge> .
....
try.
z-ladpt = <menge>.
....
z-zprun_oo = <menge>.
catch cx_root.
Error handling here if above assignments fail*
endtry.
Regards,
Joy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I donot how the field txtmg is getting populated..but for example say it is getting populated from a file and in file instead of numeric value somebody puts alphanumeric value by mistake in that case ur assignments will fail and exceptions will be raised so to catch that exception I have used try..catch..endtry block.
Regards,
joy.
User | Count |
---|---|
105 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.