Drunken Lion

Selection Screen 에 Ucomm 추가 본문

SAP/ABAP

Selection Screen 에 Ucomm 추가

DrkLion 2009. 9. 14. 10:56

Activation of two pushbuttons with icons and quick info in the application toolbar (pushbutton toolbar) of the standard selection screen of an executable program. Selecting one of these buttons preassigns different values to the input fields.

REPORT demo_sel_screen_function_key.
TYPE-POOLS icon.
TABLES sscrfields.
DATA functxt TYPE smp_dyntxt.

PARAMETERS: p_carrid TYPE s_carr_id,
            p_cityfr TYPE s_from_cit.
SELECTION-SCREEN: FUNCTION KEY 1,
                  FUNCTION KEY 2.

INITIALIZATION.
  functxt-icon_id   = icon_ws_plane.
  functxt-quickinfo = 'Preselected Carrier'.
  functxt-icon_text = 'LH'.
  sscrfields-functxt_01 = functxt.
  functxt-icon_text = 'UA'.
  sscrfields-functxt_02 = functxt.

AT SELECTION-SCREEN.
  CASE sscrfields-ucomm.
    WHEN 'FC01'.
      p_carrid = 'LH'.
      p_cityfr = 'Frankfurt'.
    WHEN 'FC02'.
      p_carrid = 'UA'.
      p_cityfr = 'Chicago'.
    WHEN OTHERS.
      ...
  ENDCASE.



'SAP > ABAP' 카테고리의 다른 글

파일 upload - upload 파일 종류 file filter  (0) 2009.09.18
LSMW Manual  (0) 2009.09.15
팝업 디버깅 하기  (0) 2009.07.17
[ABAP] Parameters of the XXL_FULL_API Function Module  (0) 2009.06.19
ABAP File Controlling  (0) 2009.06.18