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

highlight at table control

hai,

i want to highilight few records(either by color change) while displaying records in table control.

is it possible?

ambichan.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 23, 2005 at 04:34 AM

    Not possible in table control, possible in ALV.

    Regards,

    Subramanian V.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hey

      i used below logic to intensify the row.

      LOOP AT SCREEN.

      IF screen-name = 'ZMW0001-TRKORRNUM' .

      IF G_ZTABIMP_SORT_WA-HOLD = 'W'.

      screen-intensified = 1.

      MODIFY SCREEN.

      ELSE.

      screen-intensified = 0.

      MODIFY SCREEN.

      ENDIF.

      endif.

      endif.

      endlooop.

      You have told adding icon variable is possible in header

      record. pls let me kno whow to use it with this code.

      we not interested in ALV as of now.

      Doubt : Apart from this issue. I have one problem in dynpro screen attached with table control.

      Whenever i click the button in dynpro and goes to next screen which has tablecontrol, it displays tablecontrol

      from 5coloumn onwards. each time i need to arrow left

      to see the first column its horrible.

      i dont know where the bug is ..could u pls suggest me.

      ambichan.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 24, 2005 at 09:17 PM

    To hightlight a row in a table control. Use the same logic for allowing a user to select rows.

    1. On the attributes of the table control, there is an option for "w/selcolumn". Select this option and enter a variable name. The variable will be used to tell the table control which row is selected(highlighted). Define this variable as character lenght 1.

    2. Within your PBO logic for the table control. Set the value of the variable to 'X' for the row(s) that you want to highlight.

    loop with control buffer_control.

    buf_sel = 'X'. "Highlight the row

    endloop.

    3. Within your PAI logic for the table control. You can determine which rows are highlight or selected by the user by checking the value of the variable.

    Add a comment
    10|10000 characters needed characters exceeded

    • it seems as if you had several columns of the tablecontrol '<i>fixed</i>' and thus the cursor goes to the first column '<i>not fixed</i>'.

      Try to use statement:

      <b>SET CURSOR FIELD</b> 'WA_PEDIDO-QUANT' <b>LINE</b> 1.

      where wa_pedido-quant would be one of the columns set as fixed.

      Hope it helps.

      Best regards

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2005 at 06:07 PM

    The screen cursor will by default go to the first field that is ready for input. So the first four fields of your table control are probably set for display only. This behavior can be changed by using the command in your PBO module.

    SET CURSOR FIELD <f> LINE <lin> [OFFSET <off>].

    <f> - the field for cursor placement

    <l> - line in the table control

    <off> - placement within the field

    Jerrod Baldauf

    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.