abap中AT USER-COMMAND.DATA:NUMBER1 TYPE I VALUE 20,NUMBER2 TYPE I VALUE 5,RESULT TYPE I.START-OF-SELECTION.WRITE:/ NUMBER1,',NUMBER2.AT USER-COMMAND.CASE SY-UCOMM.WHEN 'ADD'.RESULT = NUMBER1 + NUMBER2.WHEN 'SUBT'.RESULT = NUMBER1 - NUMBER2.WHEN 'MUL

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/01 08:12:26
abap中AT USER-COMMAND.DATA:NUMBER1 TYPE I VALUE 20,NUMBER2 TYPE I VALUE 5,RESULT TYPE I.START-OF-SELECTION.WRITE:/ NUMBER1,',NUMBER2.AT USER-COMMAND.CASE SY-UCOMM.WHEN 'ADD'.RESULT = NUMBER1 + NUMBER2.WHEN 'SUBT'.RESULT = NUMBER1 - NUMBER2.WHEN 'MUL
x]KPƿʹJF0 یLrQNn-")0$HR,2[W}6Ie twxs~CJZ)jY"<-0C#:$|6!`Ad+GkJ2\-"YtaMh-qG08ӯˎq{4yk̀=6ƅX?>rQQ?ƲcS

abap中AT USER-COMMAND.DATA:NUMBER1 TYPE I VALUE 20,NUMBER2 TYPE I VALUE 5,RESULT TYPE I.START-OF-SELECTION.WRITE:/ NUMBER1,',NUMBER2.AT USER-COMMAND.CASE SY-UCOMM.WHEN 'ADD'.RESULT = NUMBER1 + NUMBER2.WHEN 'SUBT'.RESULT = NUMBER1 - NUMBER2.WHEN 'MUL
abap中AT USER-COMMAND.
DATA:NUMBER1 TYPE I VALUE 20,
NUMBER2 TYPE I VALUE 5,
RESULT TYPE I.
START-OF-SELECTION.
WRITE:/ NUMBER1,',NUMBER2.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'ADD'.
RESULT = NUMBER1 + NUMBER2.
WHEN 'SUBT'.
RESULT = NUMBER1 - NUMBER2.
WHEN 'MULT'.
RESULT = NUMBER1 * NUMBER2.
WHEN 'DIVI'.
RESULT = NUMBER1 / NUMBER2.
WHEN OTHERS.
WRITE 'Unknown function code'.
EXIT.
ENDCASE.
WRITE:/ 'Result:',RESULT.
在这段代码中at user-command起到什么作用?

abap中AT USER-COMMAND.DATA:NUMBER1 TYPE I VALUE 20,NUMBER2 TYPE I VALUE 5,RESULT TYPE I.START-OF-SELECTION.WRITE:/ NUMBER1,',NUMBER2.AT USER-COMMAND.CASE SY-UCOMM.WHEN 'ADD'.RESULT = NUMBER1 + NUMBER2.WHEN 'SUBT'.RESULT = NUMBER1 - NUMBER2.WHEN 'MUL
在点击屏幕按钮的时候,将触发这个过程