‎2008 Nov 03 6:58 AM
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
‎2008 Nov 03 7:06 AM
Hi,
We can set shortcut key and icon for a push button menu painter itself. Please try in menu painter.
Thanks & Regards,
Sudheer
‎2008 Nov 03 7:07 AM
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
‎2008 Nov 03 7:08 AM
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.