Skip to Content

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

Alv interactive report

hi gurus,

can anyone give me the example of how to create an alv interactive report.

thankyou

Tags:
Former Member
Former Member replied

HI

see below code

*SET PF-STATUS 'YSTATUS'.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = g_repid

is_layout = gs_layout

i_buffer_active = 'X'

it_fieldcat = ct_fieldcat[]

I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'

I_DEFAULT = 'X'

I_CALLBACK_USER_COMMAND = 'HANDLE_USER_COMMAND'

i_save = 'A'

TABLES

t_outtab = lt_purchase[].

  • EXCEPTIONS

  • program_error = 1

  • OTHERS = 2.

FORM HANDLE_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

CASE R_UCOMM.

WHEN '&IC1'.

IF RS_SELFIELD-FIELDNAME = 'MATNR'.

CLEAR : wa_purchase.

READ TABLE lt_purchase INTO wa_purchase INDEX RS_SELFIELD-TABINDEX.

if wa_purchase-matnr is NOT INITIAL.

SET PARAMETER ID: 'MAT' FIELD wa_purchase-matnr.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

endif.

endform

Edited by: Muthu kumar on Oct 11, 2008 10:09 AM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question