tables sscrfields.
data flag.
parameters test.
selection-screen function key 1.
selection-screen function key 2.
initialization.
sscrfields-functxt_01 = 'button1'.
sscrfields-functxt_02 = 'button2'.
at selection-screen.
if sscrfields-ucomm = 'FC01'.
flag = '1'.
elseif scrfields-ucomm = 'FC02'.
flag = '2'.
endif.
start-of-selection.
if flag = '1'.
write: 'selected number 1'.
elseif flag = '2'.
write: 'selected number 2'.
endif.
출처 : abap.wo.to
data flag.
parameters test.
selection-screen function key 1.
selection-screen function key 2.
initialization.
sscrfields-functxt_01 = 'button1'.
sscrfields-functxt_02 = 'button2'.
at selection-screen.
if sscrfields-ucomm = 'FC01'.
flag = '1'.
elseif scrfields-ucomm = 'FC02'.
flag = '2'.
endif.
start-of-selection.
if flag = '1'.
write: 'selected number 1'.
elseif flag = '2'.
write: 'selected number 2'.
endif.
출처 : abap.wo.to