Skip to Content
0
Former Member
Jul 12, 2007 at 10:19 AM

ALV Reporting

76 Views

Hi,

This is sandeep..

i am trying to work on ALV's by using REUSE_ALV_FIELDCATALOG_MERGE and REUSE_ALV_GRID_DISPLAY...i am getting dump in my program..

The details of Error is..,

Runtime Errors: READ_REPORT_LINE_TOO_LONG

Exception: CX_SY_READ_SRC_LINE_TOO_LONG

Short Text:

The ABAP program lines are wider than the internal table.

Module Name: K_KKB_FIELDCAT_MERGE

LineNo: 365

SourceCode: <u>Read report l_prog_tab_local into l_abap_source.</u>

Please help me on this issue...

below i am giving the code...

TABLES: MARA.

TYPE-POOLS:SLIS.

DATA: I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.

data gs_layout type slis_layout_alv.

DATA V_REPID TYPE SY-REPID.

DATA: BEGIN OF I_MARA OCCURS 0,

MATNR LIKE MARA-MATNR,

MATKL LIKE MARA-MATKL,

MTART LIKE MARA-MTART,

END OF I_MARA.

SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.

V_REPID = SY-REPID.

SELECT MATNR MATKL MTART FROM MARA INTO TABLE I_MARA WHERE MATNR IN S_MATNR.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = V_REPID

I_INTERNAL_TABNAME = 'I_MARA'

I_INCLNAME = V_REPID

CHANGING

CT_FIELDCAT = I_FIELDCAT.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

I_CALLBACK_PROGRAM = V_REPID

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND =

  • I_CALLBACK_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

  • I_STRUCTURE_NAME =

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

IS_LAYOUT = gs_layout

IT_FIELDCAT = I_FIELDCAT

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

  • IT_EVENTS =

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

T_OUTTAB = I_MARA.

Thanks & Regards,

Sandeep.