Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Run time error: GETWA_NOT_ASSIGNED

Former Member
0 Likes
1,123

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,028

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?

6 REPLIES 6
Read only

Former Member
0 Likes
1,028

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.

Read only

0 Likes
1,028

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

Read only

0 Likes
1,028

data: <fs> like xitab.

loop at xitab into <fs>.

********
************
endloop.

instead , do this...


field-symbols <fs> like xitab.

loop at xitab assigning <fs>.

********
************
endloop.

Read only

Former Member
0 Likes
1,028

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

Read only

0 Likes
1,028

i havn't use any assign <fs> to table field <> stmt..then what would be the reason for this error..can u help me?

Read only

Former Member
0 Likes
1,029

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