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

executing a report

Former Member
0 Likes
390

how can i display a list without pressing f8 or execute button but using radiobutton with user command can anyone give me a sample code?.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
371

REPORT  ztestab1.

SELECTION-SCREEN BEGIN OF SCREEN 200 .

PARAMETERS: rad1  RADIOBUTTON GROUP g1
                    DEFAULT 'X' USER-COMMAND exe,
            rad2  RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF SCREEN 200.

CALL SELECTION-SCREEN 200.


*&---------------------------------------------------------------------*
*&      Module  TEST  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE test INPUT.

  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
  SET PF-STATUS space.
  SUPPRESS DIALOG.
  WRITE : 'hi'.

ENDMODULE.                 " TEST  INPUT

Note: In the flow logic of screen 200 , write a module test in PAI.

3 REPLIES 3
Read only

Former Member
0 Likes
371

PARAMETER:

p_rad1 TYPE char1 RADIOBUTTON GROUP r1 USER-COMMAND ONLI.

p_rad2 TYPE char1 RADIOBUTTON GROUP r1.

START-OF-SELECTION.

WRITE: 'Test'.

Make Sure User Command in ONLI.

Read only

Former Member
0 Likes
373

REPORT  ztestab1.

SELECTION-SCREEN BEGIN OF SCREEN 200 .

PARAMETERS: rad1  RADIOBUTTON GROUP g1
                    DEFAULT 'X' USER-COMMAND exe,
            rad2  RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF SCREEN 200.

CALL SELECTION-SCREEN 200.


*&---------------------------------------------------------------------*
*&      Module  TEST  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE test INPUT.

  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
  SET PF-STATUS space.
  SUPPRESS DIALOG.
  WRITE : 'hi'.

ENDMODULE.                 " TEST  INPUT

Note: In the flow logic of screen 200 , write a module test in PAI.

Read only

Former Member
0 Likes
371

HI.

Refer this code, you will get some idea.

data:itab type table of sy-ucomm,

initialization.

PARAMETER:

p_r1 TYPE char1 RADIOBUTTON GROUP r1 USER-COMMAND ONLI.

p_r2 TYPE char1 RADIOBUTTON GROUP r1.

*To restrict the standard execute button.

at selection-screen output.

append 'ONLI' to itab.

call function 'RS_SET_SELSCREEN_STATUS'

exporting

p_status = sy-pfkey

tables

p_exclude = itab.

Regards.

Jay