12-04-2007 12:37 AM
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
12-04-2007 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
12-04-2007 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