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: 

Runtime error in Field catalog creation

Former Member
0 Kudos
78

when i try to create the field catalog using the following code.

am getting *'Field Symbol Is not assigned' Runtime error.*

Please give me idea how to resolve this issue.

data: wa_field type slis_fieldcat_alv,

t_field type slis_t_fieldcat_alv.

LOOP AT t_role INTO wa_role.

wa_field-col_pos = count1.

wa_field-fieldname = wa_role-agr_name.

wa_field-datatype = 'CHAR'.

wa_field-ref_fieldname = 'AGR_NAME'.

wa_field-ref_tabname = 'AGR_1251'.

APPEND wa_field TO t_field.

count1 = count1 + 1.

ENDLOOP.

Suitable Answers rewarded with maximum points....

it's Urgent...

Give me Quick Reply.

6 REPLIES 6

Former Member
0 Kudos
44

hi,

check if field types of wa_role and wa_field are the same

what is the error?

0 Kudos
44

Error is having following short text.

Field symbol has not yet been assigned.

Error analysis

You attempted to access an unassigned field symbol

(data segment 92).

This error may occur for any of the following reasons:

- You address a typed field symbol before it is set using ASSIGN

- You address a field symbol that points to a line in an internal table

that has been deleted

- You address a field symbol that had previously been reset using

UNASSIGN, or that pointed to a local field that no longer exists

- You address a global function interface parameter, even

though the relevant function module is not active,

that is it is not in the list of active calls. You can get the list

of active calls from the this short dump.

Please tell me how to correct this error.

It is very Urgent..

0 Kudos
44

The problem is not with the field catalog preparation.

It is with your FM RESUE_ALV... please pass the parametes properly and check again... ensure that field catalog is not empty...

Krishnan

Former Member
0 Kudos
44

First,

wa_role should be same as wa_field.

and what u r passing to wa_fieldname from wa_role is that really a field name or field value.

and why u r refereing same field and table as refrerence.

kesavadas_thekkillath
Active Contributor
0 Kudos
44

data: wa_field type slis_fieldcat_alv,

t_field type slis_t_fieldcat_alv.

LOOP AT t_role INTO wa_role.

wa_field-col_pos = count1.

translate wa_role-agr_name to upper case.

wa_field-fieldname = wa_role-agr_name.

***wa_field-datatype = 'CHAR'. <---commented

***wa_field-ref_fieldname = 'AGR_NAME'. <------commented

***wa_field-ref_tabname = 'AGR_1251'. <------commented

APPEND wa_field TO t_field.

count1 = count1 + 1.

ENDLOOP.

try with this

0 Kudos
44

i try with this, but still am getting same runtime error.

please give me idea how to resolve the issue.

data: wa_field type slis_fieldcat_alv,

t_field type slis_t_fieldcat_alv.

LOOP AT t_role INTO wa_role.

wa_field-col_pos = count1.

translate wa_role-agr_name to upper case.

wa_field-fieldname = wa_role-agr_name.

***wa_field-datatype = 'CHAR'. <---commented

***wa_field-ref_fieldname = 'AGR_NAME'. <------commented

***wa_field-ref_tabname = 'AGR_1251'. <------commented

APPEND wa_field TO t_field.

count1 = count1 + 1.

ENDLOOP.