Skip to Content

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

ALV INTERACTIVE

Dear friends i am doing alv interactive..but some problem is occuring in my coding please suggest correction in my coding

REPORT zpgm.

TYPE-POOLS : slis.

DATA : it_vbak TYPE TABLE OF vbak WITH HEADER LINE,

it_vbap TYPE TABLE OF vbap WITH HEADER LINE.

SELECT * FROM vbak INTO TABLE it_vbak UP TO 10 ROWS.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = sy-repid

i_callback_user_command = 'USER'

i_structure_name = 'VBAK'

TABLES

t_outtab = it_vbak

ENDIF.

&----


*& Form USER

&----


  • text

----


  • -->SY-UCOMM text

  • -->SELFIELD text

----


FORM user USING SY_UCOMM

selfield TYPE slis_selfield.

IF sy-ucomm = '&IC1'.

IF selfield-fieldname = 'VBELN'.

SELECT * FROM vbap

INTO TABLE it_vbap UP TO 10 rows

WHERE VBELN = SELFIELD-VALUE.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = sy-repid

i_structure_name = 'VBAP'

TABLES

t_outtab = it_vbap

ENDIF.

ENDIF.

ENDIF.

ENDFORM. "user

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