Colour table control rows

HI guys i need to colour the rows of table control.
can u guy pls help.
thanks in adv

Hi annie,
Check the entries of internal table in which you are trying to populate the values into table control.
If possible try to submit your code here.
Rgds
Lakshmiraj

Similar Messages

  • How to make table control rows dynamic/unlimited using TC with Wizard

    Hi Friends ,
    I have designed a table control layout using table control with wizard.
    Now the problem is when we design a TC layout ,then we have to design it on the page . The page has upper & lower limits. so the maximum size & maximum rows in layout is limited. I have tried to create a TC layout with maximum size & maximum rows . Maximum rows created in Layout is 25.
    Now suppose if enduser wants 100 entries to enter by coping a file of 100 records in my TC present on entry screen , then ONLY 25 entries are displayed on entry scren before doing any user action or saving and after saving only these 25 entries are sved in DB. Means enrtries from 26 to 100 are not displayed on entry screen or saved in DB.
    So my requirement is to display all 100 entries at a time in entry screen before saving with scrolling up & down facility and these 100 entries should also get saved in DB after clicking save button. In short I want dynamic entry screen table control which can show/dieplay Any Number . of entries whatever the number may be entered by enduser .
    Plz note that I have used all 3 facilliteis i.e.
    1. Scrolling
    2. INSERT/DELETE
    3. SELECT/DESELECT
    while designing TC with wizard .
    Scrolling buttons like FIRST PAGE, PREV. PAGE, NEXT PAGE, LAST PAGE are displayed.
    BUT they are not functioning though there is system generated code present in both MPP and in PBO & PAI. After clicking any of them , data which is dislaying on entry screen ( Here it is 25 entries ) is getting cleared/disappeared from enry entry screen.
    Waiting for ur response & solutions.
    Thanks & Regards,
    Sudhir

    Hi Ashish ,
    Do one thing .
    At PAI of screen holding TC , there is module name tc_mark on request .
    in this module , there is work area declared g_tc_wa .
    Now go to tc_init module of pbo , where u have given your select command .
    select * from ........................................
    use this code .
    if g_tc_wa is initial .
       SELECT * FROm
       g_tc_wa = 'X'.
       REFRESH CONTROL 'TC' FROM SCREEN dynnr.
       ENDIF.
    Just do this , m sure all buttons, insert, delete , scroll bar.. everything will work .

  • Reg : Table control row settings to change mode

    Hi geeks.
            I am working on a requirement where the table control has to be in display mode at the time of prepopulating(initial display).This works fine and could get all columns in display mode for which i used column properties of table control. I could select a row from the table control and created a button above the table control for copy of the row which is added to the last row of the TC. I could get this with out any issues. They want the added row to be in changed mode whereas the other rows selected previously should remain in the display mode. Can anybody help me out to solve.Timely help will be appreciated <removed by moderator>
    Regards  ,
    Kumar.
    Edited by: Vinod Kumar on Aug 2, 2011 9:21 AM

    This thread will assist you.
    [Table control with non editable rows;
    Make use of some flag for identifying the new records that will be appended in itab on the press of the button.
    Then in PBO,
    loop at itab with control tc cursor tc-current_line.
    module editnewrow.
    endloop.
    module editnewrow output.
    if itab-flag  =  'X'.
    loop at screen.
        screen-input  =  1.
        modify screen.
      endloop.
       itab-flag  =  ' '. (resetting back to non-editable state for consequent press of the button)
       modify itab index tc_4000-current_line.
      endif.
    endmodule.

  • Module Pool table controle row level prob

    Hi Experts,
    I am working in a module pool program where in table controle  i want a perticular row should become in display mode if a specific field is NE SPACE. is it possible if possible than please sugest me how.
    Thanks and Regards,
    D Tarun Kumar

    In this case all the rows will be in display mode
    Exactly My Requirement I am describing  with example
    Suppose in table control I have three Records and the first field is main field which is if initial than the row should in change mode otherwise is should be in display mode.
    Field1          Field2          Field3          Field4          Field5
    1abc2          1abc3          1abc4          1abc5          Record 1
    2xyz1          2xyz2          2xyz3          2xyz4          2xyz5          Record 2
    3pqr2          3pqr3          3pqr4          3pqr5          Record 3
    So here the second rowu2019s first field is not initial so I need here in table control the second row should be in display mode and next first  and second row should be in change mode.
    Now You tell me is it possible or not if possible than please suggest me what I have to do
    Thanks & regards,
    D Tarun Kumar
    Edited by: Devalla T Kumar on Oct 24, 2009 9:17 AM

  • Making 10 table control rows to be displayed always

    Dear All,
    How to make a table control display 10 lines always..?

    Hi,
    Thanks for the response
    I have 3 table controls in a single screen. Each will have minimum 7-10 rows ( filled data ). I need to display all the table with all the rows visible to the user without scrolling.
    At present though I define the lines as 10 for each table they are getting adjusted to 4 lines per table and getting fit to the screen.
    But what I need is irrespective of the size of the monitor it should display all the tables with all the data. The screenmay have the scroll but not the tablecontrol.
    for e.g
    Table 1 Actual data is
    1 flight
    2 Train
    3 Car
    4 Flight
    5 Hotel
    6 Other
    7 Car
    But it is displayed as with scroll option for table control
    1 flight
    2 Train
    3 Car
    4 Flight
    I need it to be displayed as irrespective of the size of monitor
    1 flight
    2 Train
    3 Car
    4 Flight
    5 Hotel
    6 Other
    7 Car
    Please help.
    Regards
    Sai

  • Counting table control rows

    hi gurus,
       i hv to count the rows of the table control and basing the no. of row i hv to put the loop (do x times).so plz send me the code to count the rows.
    thanks & regards,
    santosh.

    Hi,
    Usually for table controls,we have limit the lines of table control in the PBO itself.
    ie, Descirbe table <itab> lines <tblctrl>-lines.
    In your case , if you require no of lines of tblctrl,
    take the number of lines of tblctrl in the PAI.
    ie,
    line =  <tblctrl>-lines.
    tblctrl  = Table control name,
    itab =  internal table used for populating data in table control
    line = variable of type i.

  • Highlight table control rows when select all button is clicked

    Hi Experts,
    I have a table control and filling up rows through user input and i have also created button such as Select All* , De-Select All, and Delete.
    Now the issue is when i am pressing the select all button all the rows are marked for deletion(internal 'X' flag is set) but the rows are not highlighted(so that user will be able to know that all rows are selected).
    Anything that i am missing, please guide......
    Regards,
    Abhijit G. Borkar

    Ohh sorry there was some problem with the internet connect, that's why  this duplicate happened.
    Regards,
    Abhijit G. Borkar

  • How can we select multiple rows in table control for module pool program?

    hi guru's
                 i cannt able to select multiple table control rows for deletion of records please give any code to select rows?
    regrards,
    satheesh.

    On the Table Control attributes there is a "Selectability" option where you choose one of: None, Single, or Multiple.  In your code you then need to pick up which rows have the selection column set to 'X'.

  • How to insert values in table control & how to place listbox in table ctrl

    Dear all,
                I have created table control in Module pool program.  My requirement is first
                   1)How to place list box in table control
                   2)Based on listbox selection i have to enter values in table control row..
    With Regards,
    Baskaran

    Hi Baskaran,
    For displaing list box, use FM: VRM_SET_VALUES.
    Code like that:
    TYPE-POOLS: vrm.
    DATA: name TYPE vrm_id,
    list TYPE vrm_values,
    value LIKE LINE OF list.
    PARAMETERS: ps_parm(10) AS LISTBOX VISIBLE LENGTH 15.
    Instead of parameter for module pool , you declare data:
    AT SELECTION-SCREEN OUTPUT.
      name = 'PS_PARM'.
      value-key = '3500000002'.
      value-text = '3500000002'.
      APPEND value TO list.
      value-key = '3500000003'.
      value-text = '3500000003'.
      APPEND value TO list.
      name = 'PS_PARM'.
      value-key = '3500000004'.
      value-text = '3500000004'.
      APPEND value TO list.
      name = 'PS_PARM'.
      value-key = '3000000007'.
      value-text = '3000000007'.
      APPEND value TO list.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = list.
    make the necesary change for module pool.
    Hope this can solve your problems.
    Regards,
    Tutun

  • How to use Generic Object Services(GOS) for each table control record.

    Dear Expert,
                       I am using generic object services for document attachment but i am facing a problem while attaching document to a table control row. my requirement is to attach separate document for each and every row of table control but  i am unable to attach document row wise of the table control.for each row GOS should display corresponding attached document not all the attached document.
    Thanks in Advanced
    Bhuwan Tiwari
    Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PM
    Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PM

    You haven't explained what object and object key you're using, nor have you provided any indication of how you implemented the GOS attachment functionality.  You need to provide more information to resolve an issue like this.

  • How to freeze the selection column in the table control of the module pool.

    hi ,
    in my module pool there is a row selection field  <b>w/selcolumn</b> of the table control called as mark.
    how to freeze the selection column where there is no record in the table control row.
    or in other words where wa is initial.
    thanks
    ekta

    Hi all,
    in the PBO of the screen the following code is written.
    say the selection column is MARK and is declared in the data as well.
    thanks
    ekta
    *************************C O D E **************************************************
    MODULE disp_tabctrl1 OUTPUT.
      IF flag_c = 1.
        READ TABLE it_create_data INTO wa_material_data
             INDEX tab_ctrl1-current_line.
      ELSE.
        READ TABLE it_material_data INTO wa_material_data
             INDEX tab_ctrl1-current_line.
        IF sy-subrc = 0.
          IF ok_code_0101 = '&SEL1'.
            mark = 'X'.
          ELSEIF ok_code_0101 = '&DSEL'.
            mark = ' '.
          ENDIF.
        ELSE.
          LOOP AT SCREEN.
            IF screen-name = 'MARK'.
              screen-input = 0.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
      index_t = tab_ctrl1-top_line.
      index_d = tab_ctrl1-top_line + n.
    ENDMODULE.                 " DISP_TABCTRL1  OUTPUT

  • How to transfer from internal table to table control ?

    How to transfer data from internal table to table control wihtout using select statement?

    HI
    GOOD
    The commands in the flow logic are:
    LOOP AT itab [INTO wa] WITH CONTROL ctrl.
    ENDLOOP.
    This statement assigns an internal table itab of the ABAP program to the table control and triggers a parallel loop run over the table control rows displayed on the screen and over the internal table itab. The additions INTO and WITH CONTROL are possible at the time of PBO, but not at PAI. The assignment of the loop to the table control takes place at PAI through the internal table.
    Using the INTO addition, the fields of the internal table itab are written to the work area wa at the time of PBO and the content of wa is transported, line by line, to the identically-named fields of the table control on the screen. Without the INTO addition, you must use an internal table with a header line. Then the content of the header line is transported line by line to the identically-named fields of the table control on the screen at the time of PBO. No module is required for filling the table control rows.
    Conversely, at the time of PAI, the internal table rows are not automatically filled with the contents of the table control rows. Instead, you must call a dialog module within the loop that modifies the table.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fa/0970a4543b11d1898e0000e8322d00/content.htm
    THANKS
    MRUTYUN^

  • Table control--BDC

    Hi Group,
    When I am writting BDC for transaction in which table control occurs in the second screen,it is perfectly running when I am testing with the two records in the table control,when I increases the records (200) I am getting the error that <b>Screen is too large for Internal batch Input.</b>
    Here I am attaching the part of code.
      MOVE 1 TO IDX.
      LOOP AT IT_DATATAB INTO WA_DATATAB.
        CONCATENATE 'FKKCMP_DIA-CHCKN(' IDX ')'
                                     INTO FNAM.
        perform bdc_field     using FNAM
                                    wa_datatab-col5.
        CONCATENATE 'FKKCMP_DIA-GPART(' IDX ')'
                                     INTO FNAM.
        perform bdc_field       using fnam
                                    wa_datatab-col1.
        CONCATENATE 'FKKCMP_DIA-VKONT(' IDX ')'
                                    INTO FNAM.
        perform bdc_field   using fnam
                                  wa_datatab-col2 .
        CONCATENATE 'FKKCMP_DIA-AUDAT(' IDX ')'
                                    INTO FNAM.
        perform bdc_field   using fnam
                                wa_datatab-col3 .
        v_betrw = wa_datatab-col4.
        CONCATENATE 'FKKCMP_DIA-BETRW(' IDX ')'
                                    INTO FNAM.
        write v_betrw to fval.
        perform bdc_field       using  fnam
                                   fval.
        IDX = IDX + 1.
      ENDLOOP.
    Please suggest

    <b>A table control can contain many records, but the no of records you see on the screen is limited. In this case, the table control can hold only 16 records at a time and then we need to enter the page down and fill in more records.</b>
    here is the sample code.
    *--For each record in table IT_ICE_CONFM
        loop at it_ice_confm.
    *--Get the correct line item from calling system.
    *      it_ice_confm-ebelp = it_ice_confm-ebelp / '00010'.
    *-- Check for Purchasing document validity
          read table lt_ekko with key ebeln = it_ice_confm-ebeln
                                      binary search.
          if sy-subrc <> 0.
             "error
          endif.
    *-- Check for Purchasing document item validity
          read table lt_ekpo with key ebeln = it_ice_confm-ebeln
                                      ebelp = it_ice_confm-ebelp
                                      binary search.
          if sy-subrc <> 0.
           "error
          endif.
    *--Clear local variables.
          clear : lv_tabix,
                  lv_lfdat.
          lv_tabix = sy-tabix.
          lv_count1 = lv_count1 + 1.
    *     For every new Purchase Order, populate first screen
          at new ebeln.
            read table it_ice_confm index lv_tabix.
            perform screen_insert tables it_bdc
                                  using  'SAPMM06E' '0105' 'X'.
            perform field_insert: tables it_bdc
                                  using  'BDC_OKCODE'  '/00',
                                  tables it_bdc
                                  using  'RM06E-BSTNR' it_ice_confm-ebeln.
          endat.
    *     For every new Purchase Order line item, populate next screen
          at new ebelp.
            read table it_ice_confm index lv_tabix.
    * if no Confirmation control key exist and no Goods receipt indicator
    * occurs for the line item, set the Confirmation control key as 0001
            if lt_ekpo-bstae = ' '.
              if lt_ekpo-wepos = ' '.
                perform screen_insert tables it_bdc
                                 using  'SAPMM06E' '0120' 'X'.
                perform field_insert: tables it_bdc
                                 using  'RM06E-EBELP' it_ice_confm-ebelp,
                                 tables it_bdc
                                 using  'BDC_OKCODE' '/00'.
                perform screen_insert tables it_bdc
                                  using  'SAPMM06E' '0120' 'X'.
                perform field_insert: tables it_bdc
                                  using  'RM06E-TCSELFLAG(01)' 'X',
                                  tables it_bdc
                                  using  'BDC_OKCODE' '=DETA'.
                perform screen_insert tables it_bdc
                                 using  'SAPMM06E' '0111' 'X'.
               perform field_insert: tables it_bdc
                                    using  'EKPO-BSTAE' '0001',
                                    tables it_bdc
                                    using  'BDC_OKCODE' '=BACK'.
              else.
    * if no Confirmation control key exist and and if Goods receipt
    * indicator occurs for this line item, mark PO and line item as error
                concatenate 'Item no '                 it_ice_confm-ebelp
                            ' of Purchasing document ' it_ice_confm-ebeln
                            ' is invalid'
                           into return-message.
                move: 'E'                            to return-type,
                      'ZI'                           to return-id,
                      '999'                          to return-number.
                append return.
                clear return.
                continue.
              endif.
            else.
            endif.
              perform screen_insert tables it_bdc
                                    using  'SAPMM06E' '0120' 'X'.
              perform field_insert: tables it_bdc
                                    using  'RM06E-EBELP' it_ice_confm-ebelp,
                                    tables it_bdc
                                    using  'BDC_OKCODE' '/00'.
              perform screen_insert tables it_bdc
                                    using  'SAPMM06E' '0120' 'X'.
              perform field_insert: tables it_bdc
                                    using  'RM06E-TCSELFLAG(01)' 'X',
                                    tables it_bdc
                                    using  'BDC_OKCODE' '=BSTA'.
              clear lv_tab_line.
              perform select_line using it_ice_confm-ebeln
                                        it_ice_confm-ebelp
                               changing lv_tab_line.
              if not lv_tab_line is initial.
    *--Position table control row for the first time
                lv_count2 = '01'.
                perform screen_insert  tables it_bdc
                                       using 'SAPLEINB' '0200' 'X'.
                perform field_insert   tables it_bdc
                                       using  'BDC_OKCODE' '=UMOD'.
                perform screen_insert  tables it_bdc
                                       using 'SAPLEINB' '0100' 'X'.
                perform field_insert   tables it_bdc
                                       using  'BDC_OKCODE' '=NP'.
                perform screen_insert  tables it_bdc
                                       using 'SAPLEINB' '0100' 'X'.
                perform field_insert   tables it_bdc
                                       using  'BDC_OKCODE' '=UMOD'.
              endif.
              perform screen_insert  tables it_bdc
                                     using 'SAPLEINB' '0200' 'X'.
            endat.
            lv_count2 = lv_count2 + 1.
    *     Handle page down
    *-- if confirmations already exist.
            if not lv_tab_line is initial.
    *-- Check if it is 16th record, to position next record on page down
    *   table control has 16 rows when default screen size,
    *      mode and update are set
              if lv_count1 = 16.
                clear: lv_count1,
                       lv_count2.
    *-- On page down, the next record comes to 2nd row
                lv_count2 = '02'.
                perform field_insert tables it_bdc
                                     using  'BDC_OKCODE' '=UMOD'.
                perform screen_insert  tables it_bdc
                               using 'SAPLEINB' '0100' 'X'.
                perform field_insert   tables it_bdc
                                       using  'BDC_OKCODE' '=NP'.
                perform screen_insert  tables it_bdc
                                       using 'SAPLEINB' '0100' 'X'.
                perform field_insert   tables it_bdc
                                       using  'BDC_OKCODE' '=UMOD'.
                perform screen_insert  tables it_bdc
                               using 'SAPLEINB' '0200' 'X'.
              endif.
            else.
    *-- if confirmations does not exist, then check if it is 17th record.
    *   to position next record on page down
              if lv_count1 = 17.
                clear: lv_count1,
                       lv_count2.
                lv_count2 = '02'.
                perform field_insert tables it_bdc
                                     using  'BDC_OKCODE' '=UMOD'.
                perform screen_insert  tables it_bdc
                               using 'SAPLEINB' '0100' 'X'.
                perform field_insert   tables it_bdc
                                       using  'BDC_OKCODE' '=NP'.
                perform screen_insert  tables it_bdc
                               using 'SAPLEINB' '0100' 'X'.
                perform field_insert   tables it_bdc
                                       using  'BDC_OKCODE' '=UMOD'.
                perform screen_insert  tables it_bdc
                               using 'SAPLEINB' '0200' 'X'.
    *-- Initialize the table line to 1.
                lv_tab_line = 1.
              endif.
            endif.
            concatenate 'EKES-EBTYP(' lv_count2 ')' into lv_field.
            perform field_insert tables it_bdc
                                 using  lv_field 'Z1'.
            if not it_ice_confm-eindt is initial.
              clear: lv_field,
                     lv_date.
              concatenate 'RM06E-EEIND(' lv_count2 ')' into lv_field.
              move it_ice_confm-eindt to lv_lfdat.
              write lv_lfdat to lv_date.
              perform field_insert tables it_bdc
                                   using  lv_field lv_date.
            endif.
            if not it_ice_confm-uzeit is initial.
              clear: lv_field,
                     lv_time.
              concatenate 'EKES-UZEIT(' lv_count2 ')' into lv_field.
              write it_ice_confm-uzeit to lv_time.
              perform field_insert tables it_bdc
                                   using  lv_field lv_time.
            endif.
            clear lv_field.
            concatenate 'EKES-XBLNR(' lv_count2 ')' into lv_field.
            perform field_insert tables it_bdc
                                 using  lv_field it_ice_confm-scacd.
            clear lv_field.
            concatenate 'EKES-MENGE(' lv_count2 ')' into lv_field.
            perform field_insert tables it_bdc
                                 using  lv_field it_ice_confm-quantity.
            at end of ebelp.
              clear: lv_tab_line,
                     lv_count1,
                     lv_count2.
              perform field_insert tables it_bdc
                                   using  'BDC_OKCODE' '=BACK'.
            endat.
            at end of ebeln.
              clear: lv_lines,
                     lv_msg.
              perform screen_insert  tables it_bdc
                             using 'SAPMM06E' '0120' 'X'.
              perform field_insert tables it_bdc
                             using 'BDC_OKCODE' '=BU'.
              call transaction  <b>tcode</b> using  it_bdc
                      options from x_ctu_params
                      messages into lt_message.
              clear w_success.
              if sy-subrc <> 0.
                w_success = 'N'.
              endif.
              refresh: it_bdc,
                        lt_message.
            endat.
          endloop.
    Regards,
    Richa

  • Selection column in Table control..

    Hi ,
    I have used a table control wizard in my custom screen. And it gives the desired output.
    But it doesnot contain the selection column ( used to slelect the table control rows) .
    Now i want to add that column to my existing Table control.
    1) what changes should i do with my Internal table?
    2) What should be included with the Table control in Screen  Painter?
    I searched the forum..but i didnt get the solution..
    If anybody knows pls suggest me..

    hi sathya,
    this may be helpful to u
    goto the screen painter double click on the table control wizard,u will get a pop up screenpainter attributes.
    In that pop up towards the end you will have a checkbox w/selcolumn,just check it.you will be able to get theselection column for your table control.
    u have to give a name to the selection column and add to the internal table which has the contents of the table control.you can select and unselect the columns using that variable.
    regards,
    sravanthi

  • Custom Color  required to table control in Standard transaction

    Hi Expers,
    I required to populate a table control row with custom color/s.  The table control is belongs to SAP Standard transaction MF50.
    Can you please suggest.
    Thanks,
    Prasad

    Hello Madhu,
    As indicated by u have have asked for the access key and have added a field. Where have u added this field. Secondly in which table are u going to update this material field once it starts getting displayed. Also have u put in code in ur PBO and PAI for the same. Please respond to the questions so that we can provide u with better option.

Maybe you are looking for

  • Return order released to FI open item without updating credit value.

    Hi guys, give me a hand. In China, Goods Return requires supporting document like tax certificate. When a return order has been posted to AR open item, we still can not pay the customer until we get the document from our customer. In this logic, we d

  • Leopard won't install on Core Duo - "Cannot be installed on this computer"

    Hi, I have a white MacBook 2GHz Intel and took from a friends black Macbook 2.2GHz Leopard DVD's to install since he will use a mac for Vista. When I try to install it I get a message "This software cannot be installed on this computer" !!! I was sur

  • Audio changes for Menu themes

    The menu themes in Premiere Elements 12 do not allow a change to the volume on the preset music scores in the Main Menu page; or allow for a change-out to another music choice on the presets for the "Scene Selection" page – how do I do those two thin

  • Scc4 local client copy SRM 7

    Hi Experts I will do a client copy in SRM 7. First I am logged in client 001 with User=  SAP* and  Password= 06071992. I have created a new client named 300 with SCC4. Logon to the newly created client 300 with  User=  SAP* and  PW= 06071992 as passw

  • How to populate DataGird with data returned from php page?

    Hi, I'm new in Flex, I try to populate DataGrid with data from PHP, My code is <mx:HTTPService  id="personRequest" result="getPerson(event)" url=http://localhost/searchPerson.php useProxy="false" method="POST" showBusyCursor="true" resultFormat="e4x"