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

Highlight first line in Table control

Hi All

I have this requirement to highlist my first line in table control and display the first line details in a custom control below. Can you please guide me in selecting what shld be the best way?

I guess this statement can also be used- SET CURSOR FIELD rec_display LINE 1, but how i am not getting this.

Thanks in Advance

JD

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 12:41 AM

    Hi Jaideep,

    At PBO you can set the cursor on a specific field of a specific row of a table control.

    SET CURSOR FIELD f LINE lin [OFFSET off].

    Using the optional addition OFFSET, you can enter the offset of the cursor in the field as described in the below link

    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac0b35c111d1829f0000e829fbfe/content.htm

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 12:47 AM

    In your PBO use like this:

    SET CURSOR FIELD 'ITAB-FIELD1' LINE 1.

    To highlight it in the blue color, you can set the intensified on for that one line.

    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'GP1'.
      SCREEN-INTENSIFIED = 1.
      MODIFY SCREEN.
     ENDIF.
    ENDLOOP.

    REgards,

    Naimesh Patel

    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.