Get Example source ABAP code based on a different SAP table
Standard SAP Help for SET_USER_COMMAND
SET USER-COMMAND
Short Reference • SET USER-COMMAND ABAP Statement
ABAP Syntax SET USER-COMMAND fcode.
What does it do? Triggers a list event with a function code specified infcode. fcode must be a character-type data object. You can use this statement when generating a list. After completion, but before display of the current list, the runtime environment responds as if a user action were performed in the displayed list using the function code specified in fcode.
The assignment of list events to function codes corresponds to the description under AT USER-COMMAND: The predefined function codes of the tables listed under AT USER-COMMAND are caught by the runtime environment The function codes 'PICK' and 'PFnn' trigger the events AT LINE-SELECTION or AT PFnn all other functions trigger the event AT USER-COMMAND