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

alv-dump

ranjna_sharma
Explorer
0 Likes
632

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.

1 ACCEPTED SOLUTION
Read only

Kiran_Valluru
Active Contributor
0 Likes
593

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

4 REPLIES 4
Read only

Former Member
0 Likes
593

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

Read only

Kiran_Valluru
Active Contributor
0 Likes
594

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

Read only

Former Member
0 Likes
593

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

Read only

0 Likes
593

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