on 2024 Jul 03 2:50 PM
Hello guys,
I want to make a feature that goes like this: on a double click of a field in a custom view of a table, i want to call another transaction(se80) that will display a method stored inside that field (that's my configuration table that has the names of the methods). How to implement something like this ? I've found in a screen painter that there is an option for field where I can implement a respond on double click, but nothing on where to actually implement the logic for an event. Please help.
double click event from a screen painter
Request clarification before answering.
Hi,
To create a double-click event for a field in a custom table view using TMG in SAP:
Example:
DATA: lv_method_name TYPE string.
MODULE user_command_XXX INPUT.
CASE sy-ucomm.
WHEN 'DOUB'.
READ TABLE it_table INTO wa_table INDEX sy-tabix.
lv_method_name = wa_table-method_name. "Fetch method name from config table
CALL TRANSACTION 'SE80' AND SKIP FIRST SCREEN.
ENDCASE.
ENDMODULE.
Replace 'XXX' with your module name and adjust variables as needed.
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did what you've told me but I'm guessing that I've missed something. I did implement the logic in PAI, but I got the error: Unable to interpret INPUT.
MODULE user_command_00v1 INPUT.
data: lv_method_name type string.
case sy-ucomm.
when 'DOUB'.
read table mapping assigning FIELD-SYMBOL(<fv_read>)
index sy-tabix.
lv_method_name = <fv_read>-method. "Fetch method name from config
CALL transaction 'SE80' and skip first screen.
endcase.
ENDMODULE.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.