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

PICK statement

Former Member
0 Likes
1,313

What does a “ PICK “ Command do

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
840

If you want to fire both “ At User Command” & “ AT line-selection” then you have to put pick corresponding f2 in the SET PF-STATUS .

Edited by: Satish Kumar NRB on Jan 12, 2008 7:31 PM

6 REPLIES 6
Read only

Former Member
0 Likes
840

Hi Haresha,

You must be familiar with the AT LINE-SELECTION command in report lists outputs, where you can double click on the list and proceed to a secondary list. Here the double click triggers the PICK command (also triggered by F2 function key).

Similarly, if you need to program/activate double click functionality in a table control or dialog screen, then you need to add/assign the PICK function code in the PF status of the screen and attach it to function code F2. Then you can use the double click function (also by setting the "Respond to double click" attribute of the screen element).

Hence basically, PICK command is an internally generate function code for double click.

Regards,

Aditya

Read only

Former Member
0 Likes
840

Hi Haresha,

check this link..

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba34635c111d1829f0000e829fbfe/content.htm

Reward points if helpful..

Regards,

Goutham.

Read only

Former Member
0 Likes
840

Hi Haresha,

When the user triggers the function code PICK, AT LINE-SELECTION is always triggered if the cursor is positioned on a list line. The function code PICK is, by default, always linked with function key F2 and hence with the mouse double-click. Consequently, if you have a simple program that does not react to any further user actions, you only need to write this event block.

AT LINE-SELECTION.

<statements>.

As described in the section Dialog Status for Lists, the function code PICK is always added to the standard list status when you have an AT LINE-SELECTION event in your program.

If you assign PICK to other function keys or menu entries, AT LINE-SELECTION is also triggered when the user chooses then. You should avoid this for the sake of the semantics.

Conversely, if you have a more extensive program that does not react to line selection, you should not use the function code PICK. Instead you should assign a different function code to F2 , to ensure that as many events as possible trigger the AT USER-COMMAND event.

Reward points if helpful.

Regards,

Kashyap

Read only

Former Member
0 Likes
841

If you want to fire both “ At User Command” & “ AT line-selection” then you have to put pick corresponding f2 in the SET PF-STATUS .

Edited by: Satish Kumar NRB on Jan 12, 2008 7:31 PM

Read only

Former Member
0 Likes
840

Hi Haresha,

When the user triggers the function code PICK, AT LINE-SELECTION is always triggered if the cursor is positioned on a list line.

The function code PICK is, by default, always linked with function key F2 and hence with the mouse double-click.

Consequently, if you have a simple program that does not react to any further user actions, you only need to write this event block.

AT LINE-SELECTION.

<statements>.

Regards,

Chandru

Read only

Former Member
0 Likes
840

Hi Haresha,

When the user triggers the function code PICK, AT LINE-SELECTION is always triggered if the cursor is positioned on a list line.

The function code PICK is, by default, always linked with function key F2 and hence with the mouse double-click.

Consequently, if you have a simple program that does not react to any further user actions, you only need to write this event block.

AT LINE-SELECTION.

<statements>.

Regards,

Chandru