2008 Apr 18 5:45 AM
i have used a field symbol to modify the value of a standard interbal table.
data: <fs> like xitab.
loop at xitab into <fs>.
********
************
endloop.
i have got an run time error GETWA_NOT_ASSIGNED.. can anyone tell me what does this error means?
2008 Apr 18 5:54 AM
do this way ...
data: <fs> like xitab.
DATA: ASSIGNFIELD(20) TYPE C.
loop at xitab.
ASSIGNFIELD = 'XITAB'.
assign (assignfield) to <FS>.
if sy-subrc = 0.
ENDIF.
********
************
endloop.Regards,
santosh
i have used a field symbol to modify the value of a standard interbal table.
data: <fs> like xitab.
loop at xitab into <fs>.
********
************
endloop.
i have got an run time error GETWA_NOT_ASSIGNED.. can anyone tell me what does this error means?
2008 Apr 18 5:49 AM
Hi,
You must assign the Field symbol to any field. Otherwise ist will goes to dump.
Check this simple program.
DATA : BEGIN OF it_out,
m011(10),
m021(10),
m012(10),
m022(10),
m013(10),
m023(10),
END OF it_out.
DATA: my_value(10).
FIELD-SYMBOLS: <fs_fld> TYPE CSEQUENCE.
DATA : l_field(15) TYPE c.
my_value = 'Got it'.
CONCATENATE 'it_out-m' '02' '1' INTO l_field.
ASSIGN (l_field) TO <fs_fld>.
<fs_fld> = my_value.
WRITE:/ it_out-m011.Thanks.
2008 Apr 18 5:55 AM
my code is something like this:
FIELD-SYMBOLS: <fs> LIKE xitab.
SELECT SINGLE f1
FROM ZTAB
INTO lv_f1
WHERE f1 = <fs>-f1.
IF sy-subrc = 0.
<fs>-ITABFIELD= lv_value
ENDIF.
so you mean i have to assign ITABFIELD to <fs> and then the error will gone? because in my code i havn't assign the <fs> with the fiield.
Edited by: rakhi bose on Apr 18, 2008 6:57 AM
2008 Apr 18 6:01 AM
data: <fs> like xitab.
loop at xitab into <fs>.
********
************
endloop.
instead , do this...
field-symbols <fs> like xitab.
loop at xitab assigning <fs>.
********
************
endloop.
2008 Apr 18 5:54 AM
This problem particularly occurs if the statement "ASSIGN TABLE FIELD (name) TO fieldsymbol" was used and if the field symbol was declared before the first use of the SUM field. But also a normal dynamic ASSIGN ("ASSIGN (name) to fieldsymbol" can cause this problem if the found field is not contained in the current program but in the TABLES work areas of the current program group.
If useful reward points
2008 Apr 18 6:00 AM
i havn't use any assign <fs> to table field <> stmt..then what would be the reason for this error..can u help me?
2008 Apr 18 5:54 AM
do this way ...
data: <fs> like xitab.
DATA: ASSIGNFIELD(20) TYPE C.
loop at xitab.
ASSIGNFIELD = 'XITAB'.
assign (assignfield) to <FS>.
if sy-subrc = 0.
ENDIF.
********
************
endloop.Regards,
santosh
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |