Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hot Spot in Module Pool

Former Member
0 Likes
2,457

Hi,

How to trigger PAI when we double-click(Hotspot) on a text field.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,287

hi,

do like this

goto the screen what you had developed and then double click on the field and

you can see the attributes of the field in that, click on the tab Display,

in that you will find a check box with Description RESPONDS TO DOUBLE-CLICK ,

check the check the box and activate it .

in the PF-status which you are creating for the screen, click on the function keys

menu bar , then in the 'Recommended function key settings for the KEY F2 give the

function code as 'PICK'.(Its compulsary)

in the PAI event , for the module user command write the following code

CASE sy-ucomm.

WHEN 'PICK'.

call screen '1001'..

ENDCASE.

reward if usefull

3 REPLIES 3
Read only

Former Member
0 Likes
1,287

Hi Aalok,

If u r developing in screen painter, u can assign a function code to that text field.

when u click on that field , that function code will be captured into the OKCODE field.

U can also go through the following threads.

/community [original link is broken]

/community [original link is broken]

https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=55249

Please reward if you find it helpful.

regards,

Rajesh

Read only

Former Member
0 Likes
1,287

Hi,

check the link,

regards,

Anirban

Read only

Former Member
0 Likes
1,288

hi,

do like this

goto the screen what you had developed and then double click on the field and

you can see the attributes of the field in that, click on the tab Display,

in that you will find a check box with Description RESPONDS TO DOUBLE-CLICK ,

check the check the box and activate it .

in the PF-status which you are creating for the screen, click on the function keys

menu bar , then in the 'Recommended function key settings for the KEY F2 give the

function code as 'PICK'.(Its compulsary)

in the PAI event , for the module user command write the following code

CASE sy-ucomm.

WHEN 'PICK'.

call screen '1001'..

ENDCASE.

reward if usefull