2008 Jan 03 11:49 AM
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.
2008 Jan 03 11:52 AM
hi,
check if field types of wa_role and wa_field are the same
what is the error?
2008 Jan 03 12:00 PM
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..
2008 Jan 03 12:11 PM
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
2008 Jan 03 11:59 AM
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.
2008 Jan 03 12:07 PM
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
2008 Jan 03 12:11 PM
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.