Application Development 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: 

field symbol issue

Former Member
0 Kudos

working for SAP upgrade project

I am facing the following issue.

its showing dump

Field symbol has not yet been assigned.

GETWA_NOT_ASSIGNED

can anyone help me on this

4 REPLIES 4

Former Member
0 Kudos

Hi,

You might not have declared field symbol or work area for the internal table you are using. declare it and then try.

former_member188685
Active Contributor
0 Kudos

Only if you show that particular code , then it is easy to tell.

From the message i can tell that Fieldsymbol assignment problem.

use SY-SUBRC CHECK after Assignment.

ASSIGN MATNR to <FS>.
IF SY-SUBRC EQ 0.
" here you do or perform actions on <FS>  
ENDIF.

Subhankar
Active Contributor
0 Kudos

Hi

Just do it this way..

1st declare the FD.

FIELD-SYMBOLS: <fs_amt> TYPE ANY.

then assing the value of the FD

CONCATENATE 'WA_FAGLFLEXT-HSL' l_count INTO v_fld_name.

ASSIGN (v_fld_name) TO <fs_amt>.

Use thje FD

IF sy-subrc = 0.

p_field = p_field + <fs_amt>.

ENDIF.

Former Member
0 Kudos

From what has been said previously - the code is attempting to access a field symbol that has not been assigned to a field or work area. It is not possible to say why without you posting your code segment or the relevant part of the short dump message.

If you are working on bespoke code around standard SAP field symbols that have been changed as part of your upgrade then the field symbol may now not be used in the same manner. You could use the IF <FS> IS ASSIGNED statement to work around it - this will prevent the short-dump and let you investigate the impact further.