10-19-2007 7:28 AM
hi plz help me by correcting my code using field symbol
loop at <prior_data> assigning <pp_data>.
assign component 'S_CHAS' of structure <pp_data> to <pp_chas>.
assign component '0FISCPER' of structure <pp_chas> to <pp_fiscper>.
<b> <pp_fiscper> = <pp_fiscper> + 0000001.</b>
endloop.
iam getting dump at the bolded line and the type of <prior_data> is hashed table.plz help me by giving an alternative.points are awarded.
10-19-2007 7:35 AM
hi Bharan,
whtat is the definition of field 0FISCPER in the internal table?
thanks
ec
10-19-2007 7:53 AM
u cant use + AND MOVE DIRECTLY.
for fiedl-symbols u should move values using assign.
other wise u will get a dump for overriding protected field.
u can do like this.
example: to incremant value of <fs>.
field-symbols: <fs> type i.
data: var type i.
assign 1 to <fs>.
var = <fs>.
var = var + 1.
assign var to <fs>.
write <fs>.