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

Selection screen - Block Size

Former Member
0 Likes
1,222

hi all

1.how to set a Block size inside the selection screen .

2.how to set a short cut key for a push button.

3.how to set a icon for a push button.

Kindly clarify.

with kind regards

vel

3 REPLIES 3
Read only

Former Member
0 Likes
561

Hi,

We can set shortcut key and icon for a push button menu painter itself. Please try in menu painter.

Thanks & Regards,

Sudheer

Read only

Former Member
0 Likes
561

Hi,

1. Selection Screen

selectin-screen: begin of block <block>
--
--
selection-screen: end of block <block>

2. Short cut key for a push button

you have to define in Menu painter of that program a value

3. Icon for push button

if you are in menu painter, there icons available

if you are in screen painter, there is a icon button in properties screen, from there select an icon

Read only

Former Member
0 Likes
561

Hello,

Try this

TYPE-POOLS:

icon. " For Icon

1)

Example.

SELECTION-SCREEN : BEGIN OF BLOCK b3 WITH FRAME TITLE text-t03.

PARAMETERS: y_p_cd RADIOBUTTON GROUP rg1.

SELECTION-SCREEN : END OF BLOCK b4.

2)

SELECTION-SCREEN PUSHBUTTON /1(83) push1

USER-COMMAND next VISIBLE LENGTH 40.

  • Create Expand or Collapse Icon For Currency Selection Field

CALL FUNCTION 'ICON_CREATE'

EXPORTING

name = icon_expand

text = text-x22

IMPORTING

RESULT = push1

EXCEPTIONS

icon_not_found = 1

outputfield_too_short = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE y_k_s NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Click on the ICON so that you will find the name of the ICONS.