2009 Feb 16 10:58 AM
Hi Experts,
I have a report where I am displaying a list of documents with prices etc. I have set up a pf-status stat1 and displaying the documents accordingly. Form that primary list for diaplaying the documents I am usig a push button and it is displaying it perfectly. In addition, I would like to have an option of a double click on the document to display. I tried it with hotaspot, hide and using at line-selection, but the event is not triggering. Can somebody please help me with this.
Thanks,
Kiran.
2009 Feb 16 11:03 AM
Hai,
In the PF-Status give the value 'PICK' for the function key F2.
this will surely work.
regards,
Jyothi.
Hi Experts,
I have a report where I am displaying a list of documents with prices etc. I have set up a pf-status stat1 and displaying the documents accordingly. Form that primary list for diaplaying the documents I am usig a push button and it is displaying it perfectly. In addition, I would like to have an option of a double click on the document to display. I tried it with hotaspot, hide and using at line-selection, but the event is not triggering. Can somebody please help me with this.
Thanks,
Kiran.
2009 Feb 16 11:01 AM
Hello,
some where in the pf-status u need give the PICK statement....
Thank u,
santhosh
2009 Feb 16 11:01 AM
hi,
Either handle the double click in the case statement under AT USER-COMMAND with respect to function code PICK,
or
handle the event using the AT LINE-SELECTION event which is triggered when double clicked. Make sure you are using HIDE statement or READ , where you are capturing the contents on the primary list.
SY-LILLI gives the absolute location of the line from where the event was triggered
Thanks
Sharath
2009 Feb 16 11:04 AM
Hi Sharath,
I've tried both the options (hotspot, hide etc) already but both of them are not working. When I double click it's neither triggering AT user-command nor at line-selection event.
Am I missig anything other than these. Any suggestions please.
Thanks,
Kiran.
2009 Feb 16 11:15 AM
Hi,
Double click triggers at line selection.
So,for your pf-status,you have to assign 'PICK' function code to function key F2 .
This will tirgger at at user-command.
In the program
At user-command .
case sy-ucomm.
when 'F2'.
perform logic.
endcase.
(Function keys of gui status)
2009 Feb 16 11:21 AM
Hi mate,
Already done exactly the same as you suggested. But wondering why it's not triggering the at user-command event.
Tried it with Pick and F2 in when statement.
Thanks,
Kiran.
2009 Feb 16 11:24 AM
hi,
Can you paste the part of the code with respect to at user-command and hide statement, so that i can evaluate and bring out something.
Thanks
Sharath
2009 Feb 16 11:03 AM
Hai,
In the PF-Status give the value 'PICK' for the function key F2.
this will surely work.
regards,
Jyothi.
2009 Feb 16 11:10 AM
Hi Jyothi,
Done that too! Still not working. Is there any other SE41 config other than PICK function key settings, that I need to maintain.
Thanks,
Kiran.
2009 Feb 16 11:24 AM
Hai Kiran,
Can u please send your code if it is possible.
regards,
Jyothi.
2009 Feb 16 11:21 AM
Hi Kiran,
Generally double click works with 'F2' but try using this sy-ucomm value '&IC1'.
You can as well validate your logic using system fields like sy-lilli for clicking and sy-lisel for the values that have been stored on your click.
Hope it helps!
Much Regards,
Amuktha.
Edited by: Amuktha Naraparaju on Feb 16, 2009 12:22 PM
2009 Feb 16 11:24 AM
Hi Amuktha,
Thanks a lot. It's working. I use the same for ALV, but unfortunatley didn't try it in this case.
Rgds,
Kiran.
2009 Feb 16 11:23 AM
Hi,
Once u click on the push button,u just check ,is it going to secondary list or it is printhg the documents in the primary list or basic list...
Regards
Kiran
2009 Feb 16 11:26 AM
Hi,
check the sy-lsind value if it is greater than 1 then set to 0
and perform at line-selection event.....
Regards
Kiran
2009 Feb 16 11:25 AM
Hi Kiran,
Make sure your pf-status name is correct.It should be exactly the same as you have declared.
Much Regards,
Amuktha.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |