Skip to Content
author's profile photo Former Member
Former Member

'PICK' and User commands in reports

I'm a bit confused about 'PICK' in PF_STATUS.

I fI define it, does that mean It can only be recognised in LINE-SELECTION , and not in AT USER-COMMAND.

I've defined a small program and thats what seems to be happening?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Nov 18, 2005 at 01:45 PM

    Hi Sims,

    Yes, PICK option triggers the at line selection event only. It cannot be handled in at user-command.

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

    • You can see here that the function code PICK is automatically fired when a hotspot is involved and hence the AT LINE-SELECTION event is fired to handle it.

      
      report zrich_0001.
      
      data: itstc type table of tstc with header line.
      
      select-options : s_tcode for itstc-tcode.
      
      at line-selection.
      
        check sy-ucomm = 'PICK'.
      
        call transaction itstc-tcode.
      
      start-of-selection.
      
        select * into corresponding fields of table itstc
                   from tstc
                        where tcode in s_tcode.
      
        loop at itstc.
          format hotspot on.
          write:/ itstc-tcode.
          hide itstc-tcode.
          format hotspot off.
        endloop.
      
      

      Regards

      Rich Heilman

  • Posted on Nov 18, 2005 at 01:41 PM

    Yes, normally, you use PICK when doing hotspots or line selection and you handle it in the AT Line-Selection event.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 18, 2005 at 01:42 PM

    Sims,

    I think there will be recognization problem. But it is adviced to handle the PICK in the AT LINE-SELECTION.

    Thanks

    Kam

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2005 at 01:49 PM

    Hi

    The double click is linked to function key F2.

    The function code PICK is recognised in LINE-SELECTION event by default.

    Infact if you insert this event in your program, the system automatically triggers a status gui with the function code PICK is linked to F2.

    If you want to manage the double click in the AT USER-COMMAND event, you need to create a your own status gui and link a function code (not called PICK) to function key F2.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2005 at 01:52 PM

    PF_STATUS is used to define custom application bar which includes meu bar, menu items, function buttons etc.

    when user clicks any of these items the value is stored in PICK.

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.