‎2011 Mar 24 10:40 AM
hi,
i developed a ALV report which is showing dump "You attempted to access an unassigned field symbol data segment 99".
code is :
FORM DISPLAY_RESULT .
LV_REPID = SY-REPID.
DATA : wa_layout TYPE slis_layout_alv .
wa_layout-colwidth_optimize = 'X' .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = LV_REPID
is_layout = wa_layout
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
IT_FIELDCAT = IT_FIELDCAT[]
TABLES
T_OUTTAB = IT_FINAL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.
‎2011 Mar 24 10:57 AM
Hi ranjana,
Check in your field catalog col_pos is correct and also check whether the field names in the field catalog and field names in your structure from which u created ur internal table is matched..!!
Thanks & Regards
Kiran
‎2011 Mar 24 10:54 AM
Hi Ranjna,
Please try passing only the parameters mentioned below .
Also comment the MESSAGE inside the SY-SUBRC.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gv_repid
i_callback_user_command = gs_user_comm
is_layout = gs_layout
it_fieldcat = gt_fieldcat
it_events = gt_events
i_callback_pf_status_set = 'SET_MY_PF'
TABLES
t_outtab = gt_data.Regards
HM
‎2011 Mar 24 10:57 AM
Hi ranjana,
Check in your field catalog col_pos is correct and also check whether the field names in the field catalog and field names in your structure from which u created ur internal table is matched..!!
Thanks & Regards
Kiran
‎2011 Mar 24 11:12 AM
Hm,
looks like an error in the field catalogue.
But you didn't post a correct code, because
IF SY-SUBRC 0.is not valid! Are there any further differences?
I would comment out the top-of-page parameter line for the next try. Does the error remain the same?
Regards,
Klaus
Edited by: Klaus Babl on Mar 24, 2011 12:13 PM
‎2011 Mar 24 11:56 AM
For information,
IF SY-SUBRC <> 0.is a result of HTML tags being removed from the posts, so rather write
IF SY-SUBRC >< 0.or
IF SY-SUBRC NE 0.Thomas