Application Development 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: 

Interactive report display

Former Member
0 Kudos

Hi,

I am not able to get the alv output when i select a display pushbutton in selection screen, and when i select a line and pree a change button there is no action in the code,Below is the way of code i did

======================================================================

  • At Selection Screen Output

======================================================================

AT SELECTION-SCREEN OUTPUT .

        • Have two buttons create and display.

SET PF-STATUS 'ZTEST1'.

**======================================================================

*

    • At Selection Screen

**======================================================================

*

AT SELECTION-SCREEN.

        • have 2 buttons change and delete

SET PF-STATUS 'ZTEST2'.

IF sy-ucomm = 'CREATE'.

PERFORM create_screen_3.

ENDIF.

IF sy-ucomm = 'DISPLAY'.

PERFORM create_screen_2.

ENDIF.

&----


*& Form USERACTION

&----


FORM useraction USING ucomm LIKE sy-ucomm

r_selfield TYPE slis_selfield.

CASE ucomm.

WHEN 'DELETE'.

DELETE gt_final WHERE select NE 'X'.

  • ENDCASE.

ENDFORM. "useraction

  • Call ALV

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = gv_wrk_repid

i_callback_pf_status_set = 'ZTEST2'

i_callback_user_command = g_command

it_fieldcat = gv_wrk_fieldcat[]

i_save = 'A'

TABLES

t_outtab = gt_final

EXCEPTIONS

program_error = 1

OTHERS = 2.

Thanks,

Deesanth

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

I think the processing logic should be written in At User-Command event.

like

At User-command.

case sy-ucomm.

when 'DISPLAY'.

...

...

when 'DELETE'.

...

...

endcase.

2 REPLIES 2

former_member181995
Active Contributor
0 Kudos

Where is the FORM of PERFORM create_screen_2.?

Former Member
0 Kudos

Hi

I think the processing logic should be written in At User-Command event.

like

At User-command.

case sy-ucomm.

when 'DISPLAY'.

...

...

when 'DELETE'.

...

...

endcase.