Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV output display

Hi experts,

I am trying to get my output in ALV GRID .For that

i have declared all fields like below.

NOte : I have not copied full code .Copied required code for ALV display only

TYPE-POOLS: slis.

DATA: ws_title TYPE lvc_title VALUE 'ALV Display'.

*declaration for fieldcatalog

DATA: i_fieldcat TYPE slis_t_fieldcat_alv,

ls_fieldcat TYPE slis_fieldcat_alv.

LS_FIELDCAT-FIELDNAME = 'qmnum'.

LS_FIELDCAT-TABNAME = 'itab1' .

LS_FIELDCAT-SELTEXT_L = 'Notification'.

APPEND LS_FIELDCAT TO I_FIELDCAT.

CLEAR LS_FIELDCAT.

LS_FIELDCAT-FIELDNAME = 'bstnk'.

LS_FIELDCAT-TABNAME = 'itab1' .

LS_FIELDCAT-SELTEXT_L = 'Trans REF'.

APPEND LS_FIELDCAT TO I_FIELDCAT.

CLEAR LS_FIELDCAT.

LS_FIELDCAT-FIELDNAME = 'kunum'.

LS_FIELDCAT-TABNAME = 'itab1' .

LS_FIELDCAT-SELTEXT_L = 'Customer'.

APPEND LS_FIELDCAT TO I_FIELDCAT.

CLEAR LS_FIELDCAT.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = 'ZIRO_AW_3006'

I_STRUCTURE_NAME = 'ITAB1'

I_GRID_TITLE = ws_title

IT_FIELDCAT = i_fieldcat "[]

I_SAVE = 'A'

TABLES

T_OUTTAB = itab1

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.

When i am debugging the code I am able to see the data

in my internal table itab1 but when i excute no data is getting displayed in output. Till that function module i am able to see the data in itab1.

Can you suggest me what is the problem in this

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question