古詩詞大全網 - 成語經典 - abap裏面的AT USER-COMMAND事件到底怎麽用啊。。

abap裏面的AT USER-COMMAND事件到底怎麽用啊。。

user command與 at user-command沒有半點關系 除了長得有點像

If the user selects the pushbutton on the selection screen, the runtime environment triggers the event AT SELECTION-SCREEN and the function code fcode is transferred to the ucomm component in the interface work area sscrfields.

他觸發的是 AT SELECTION-SCREEN這個事件

AT USER-COMMAND.

Effect

This statement defines an event block whose event is triggered by the ABAP runtime environment if, during the display of a screen list, a function with a self-defined function

code was chosen.

這個是需要壹個自定義的function code來觸發的

也就是 SET PF-STATUS 'MYLIST' guistatus裏面的function code