Application Development and Automation 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: 
Read only

Interactive report display

Former Member
0 Likes
469

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
Read only

Former Member
0 Likes
442

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
Read only

Former Member
0 Likes
442

Where is the FORM of PERFORM create_screen_2.?

Read only

Former Member
0 Likes
443

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.