Ansicht
Dokumentation
ABAPSET_USER-COMMAND - SET USER-COMMAND
RFUMSV00 - Advance Return for Tax on Sales/Purchases CPI1466 during BackupThis documentation is copyright by SAP AG.
SET USER-COMMAND
SET USER-COMMAND fcode.
Effect
Raises a list event with a function code specified in fcode. fcode must be a character-like data object. This statement can be used when creating a list. After completion, but before display of the current list, the runtime framework 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 specified under AT USER-COMMAND are caught by the runtime framework
- The function codes "PICK" and "PFnn" raise the events AT LINE-SELECTION or AT PFnn
- all other functions raise the event AT USER-COMMAND
If the corresponding event block is implemented, the content of sy-lsind is increased by one and the event block is executed.
If multiple SET USER-COMMAND statements are used when creating a list, only the last statement is respected
Notes
- The function code "PICK" only raises an event if the cursor is positioned on a list line.
- If a function code is assigned to the Return key in the current
GUI status, this function code is used instead of the one specified in fcode.
Example
Program-driven creation of a basic list and two details lists and display of a search dialog box in
the second details list using the predefined function code
"%SC". The statement SET CURSOR is used to position the cursor in a list line in the event
block AT LINE-SELECTION to enable the function code "PICK".
General Data in Customer Master RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 3000 Date: 20240424 Time: 181636 sap01-206 ( 52 ms )