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: 

Push Button

Former Member
0 Kudos

hi!

How to Include a Push Button using SELECT-SCREEN?

I tried by Using . . .

SELECTION-SCREEN BEGIN OF SCREEN 99.

SELECTION-SCREEN INCLUDE PUSHBUTTON 35(20) pubu

USER-COMMAND us02.

SELECTION-SCREEN END OF SCREEN 99.

Regards,

Nagulan

3 REPLIES 3

former_member223537
Active Contributor
0 Kudos
TABLES sscrfields. 
TYPE-POOLS icon. 

SELECTION-SCREEN: 
  BEGIN OF SCREEN 500 AS WINDOW TITLE title, 
    PUSHBUTTON 2(10)  but1 USER-COMMAND cli1, 
    PUSHBUTTON 12(30) but2 USER-COMMAND cli2 
                           VISIBLE LENGTH 10, 
  END OF SCREEN 500. 

AT SELECTION-SCREEN. 
  CASE sscrfields. 
    WHEN 'CLI1'. 
      ... 
    WHEN 'CLI2'. 
      ... 
  ENDCASE. 

START-OF-SELECTION. 
  title  = 'Push button'. 
  but1 = 'Button 1'. 

  CALL FUNCTION 'ICON_CREATE' 
    EXPORTING 
      name   = icon_information 
      text   = 'Button 2' 
      info   = 'My Quickinfo' 
    IMPORTING 
      RESULT = but2 
    EXCEPTIONS 
      OTHERS = 0. 

  CALL SELECTION-SCREEN '0500' STARTING AT 10 10.

0 Kudos

hi! Prashant Patil

Thanks for your Reply.

Yes its working , i have another Query too.

is there any possible to create Pushbuttons within a block after select-options.

Thanks and Regards,

Nagulan

former_member223537
Active Contributor
0 Kudos

Hi,

Yes its possible.

You can create another selection block & add push button in the same manner.

Best regards,

Prashant