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

Highlight first line in Table control

Former Member
0 Likes
501

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

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

2 REPLIES 2
Read only

Former Member
0 Likes
463

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

Read only

naimesh_patel
Active Contributor
0 Likes
463

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