08-05-2010 2:46 AM
Hi Techies,
I have been exploring as how to assign hotspot to screen field which is displayed.(Grayed). ( Dialog desgined via sreen painter )
There is a check boc saying "respond to double click", Is there a way to assign a funciton code for it
so that I can capture it in Sy-ucomm...
I appreciate ur help
Thanks for ur advice
08-05-2010 6:23 AM
Hello,
Try the following
Select the field on which you need the double click action.
Check the checkbox - Respond to Double Click
In the PBO of the screen activate the PF status and in the 'Function Keys; section of the PF status, check the Recommended function key settings and for the key F2 assign the function code PICK.
In the PAI check SY-UCOMM = 'PICK' and perform what ever functionality you need here.
Hope this helps.
Thanks and Regards
Sachin
08-05-2010 6:23 AM
Hello,
Try the following
Select the field on which you need the double click action.
Check the checkbox - Respond to Double Click
In the PBO of the screen activate the PF status and in the 'Function Keys; section of the PF status, check the Recommended function key settings and for the key F2 assign the function code PICK.
In the PAI check SY-UCOMM = 'PICK' and perform what ever functionality you need here.
Hope this helps.
Thanks and Regards
Sachin
08-06-2010 10:07 AM
Thanks Sachin.. I had to make hotspots to multiple fields which would lead to diff. screens.
I followed the same procedure as u mentioned...
In order to find out , on which field the click event was triggered, I used ' GET CURSOR FIELD_NAME'.
it solved the probs
Thanks
Matt
08-26-2010 7:02 AM
I wasted 2 hours to find you reply.
This is what i really want.
But i have a question.
Why it works set 'PICK' to the function key 'F2'
Before use below source code
It works well
SET PF-STATUS 'XXXX'.
But after use 'PF-STATUS' it's not working
Can you explain it?
04-06-2024 6:37 PM
Hello,
Thanks for the solution.
But I am displaying two fields in the module pool screen and I made hotspot for the fields and i need to display different message based on the user selection.
is it possible.
Regards,
Veera J
03-22-2016 11:40 AM
Hi,
WHEN 'API_CHRG'.
DATA: lv_line_no TYPE i.
DATA: ls_api_list LIKE LINE OF gt_api_list.
GET CURSOR LINE lv_line_no.
IF sy-subrc = 0.
READ TABLE gt_api_list INTO ls_api_list INDEX lv_line_no.
IF sy-subrc = 0.
SET PARAMETER ID: 'MAT' FIELD ls_api_list-matnr.
SET PARAMETER ID: 'WRK' FIELD qals-werk.
SET PARAMETER ID: 'CHA' FIELD ls_api_list-charg.
CALL TRANSACTION 'MSC3N' AND SKIP FIRST SCREEN.
CLEAR: ls_api_list.
ENDIF.
ENDIF.
Best regards
Wojciech Adamski