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

Problem with AT USER-COMMAND

Former Member
0 Likes
1,741

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.

1 ACCEPTED SOLUTION
Read only

jyothi_anagani
Active Contributor
0 Likes
1,422

Hai,

In the PF-Status give the value 'PICK' for the function key F2.

this will surely work.

regards,

Jyothi.

14 REPLIES 14
Read only

Former Member
0 Likes
1,422

Hello,

some where in the pf-status u need give the PICK statement....

Thank u,

santhosh

Read only

Former Member
0 Likes
1,422

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

Read only

0 Likes
1,422

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.

Read only

0 Likes
1,422

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)

Read only

0 Likes
1,422

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.

Read only

0 Likes
1,422

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

Read only

jyothi_anagani
Active Contributor
0 Likes
1,423

Hai,

In the PF-Status give the value 'PICK' for the function key F2.

this will surely work.

regards,

Jyothi.

Read only

0 Likes
1,422

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.

Read only

0 Likes
1,422

Hai Kiran,

Can u please send your code if it is possible.

regards,

Jyothi.

Read only

Former Member
0 Likes
1,422

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

Read only

0 Likes
1,422

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.

Read only

Former Member
0 Likes
1,422

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

Read only

0 Likes
1,422

Hi,

check the sy-lsind value if it is greater than 1 then set to 0

and perform at line-selection event.....

Regards

Kiran

Read only

Former Member
0 Likes
1,422

Hi Kiran,

Make sure your pf-status name is correct.It should be exactly the same as you have declared.

Much Regards,

Amuktha.