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.

Similar Messages

  • 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

  • Reg table control

    hi,
    Created table control with 10 lines, if user enters first line and presses enter , second line is getting disbled.
    i need all the lines in the table control to be in enable mode and if he enters second line it should be captured.
    please help me in sorting out this problem.

    HI Sudha,
    This has been answered many a times, Please do search before posting.
    in PBO.
    MODULE status_0100.
    in Program.
    MODULE status_0100.
    describe table itab  lines tc-lines.
    if tc-lines = 0.
    tc-lines = 100.
    else.
    tc-lines = tc-lines + 100.
    endif.
    endmodule.
    Cheerz
    Ram

  • 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 in Custom Screen

    Hi All,
    I am having a requirement of adding a custom screen in vendor master,interms of adding field i done it successfully by using BADI's,but now i added a table control in the custom screen,now whenever am trying to create a new vendor its showing vendor successfully created for the company code,but if i try to open any transaction after that am getting an error like "Express document "Update was terminated" received from author "Reference User Development"" , and if i go for transcation code XK03 if i try to open the particular vendor its showing error "Vendor has not been created".
    Regards
    Arpitam

    Hi Suchithra,
    For each and every fields in the screen will have by default properties as Group number which Group1 and Group3 but when u create a table control manually you might have forgot to maintain the the Group number details because of which it is showing in display rather in change.
    Please maintain the Group details in screen field properties and check. I think it will work.
    Regards,
    Aditya.

  • 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

  • Reg: table control values to be updated during POV event

    Hi all,
          i need to design the screen for table control. which should contain Four input fields and input should be selected by F4 help. So i have used POV event to handle this. Once the user selected values from the F4 help, Immediately it has to populate the Table control fields based on input selection. I have tried several ways but it was not successful.
    Please help me regarding this will be appreciated .
    Regards,
    Sreenivasa Sarma K.

    Hi,
    Make use of the 'SEARCH HELP' property of the fields in the table control.
    Just get the search help names for those 4 fields and place it to this property.
    Also change the 'Poss. Entries Key' property as 1 or 2.
    Regards,
    R.Nagarajan.

  • Reg: Table control list box

    Hi All,
    Can anyone please explain with sample code how to get values from the table control list box and save it the internal table.
    regards,
    karthik

    *& Report  ZTABLEC
    REPORT  ZTABLEC.
    tables : mara.
    data : it like mara occurs 0 with header line.
    data : begin of it1 occurs 0 ,
           matnr like mara-matnr ,
            end of it1 .
    data: OK_CODE  type SY-UCOMM .
    data :STATUS like zaiod3-status .
    controls : t1 type tableview using screen 1000.
    call screen 1000.
    *&      Module  STATUS_1000  OUTPUT
          text
    MODULE STATUS_1000 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    select * from mara into table it up to 10 rows.
    ENDMODULE.                 " STATUS_1000  OUTPUT
    *&      Module  USER_COMMAND_1000  INPUT
          text
    MODULE USER_COMMAND_1000 INPUT.
    IF SY-UCOMM = 'SAVE'.
    IT-MATNR.
    append it .
    modify MARA from it.
    ENDIF.
    ENDMODULE.                 " USER_COMMAND_1000  INPUT
    *&      Module  create_dropdown_box  INPUT
          text
    MODULE create_dropdown_box INPUT.
    SELECT matnr FROM mara
                      INTO CORRESPONDING FIELDS OF TABLE it1.
             CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
               EXPORTING
               DDIC_STRUCTURE         = ' '
                 RETFIELD               = 'MATNR'
               PVALKEY                = ' '
               DYNPPROG               = ' '
               DYNPNR                 = ' '
               DYNPROFIELD            = ' '
               STEPL                  = 0
               WINDOW_TITLE           =
               VALUE                  = ' '
                VALUE_ORG              = 'S'
               MULTIPLE_CHOICE        = ' '
               DISPLAY                = ' '
               CALLBACK_PROGRAM       = ' '
               CALLBACK_FORM          = ' '
               MARK_TAB               =
             IMPORTING
               USER_RESET             =
               TABLES
                 VALUE_TAB              = IT1
               FIELD_TAB              =
               RETURN_TAB             =
               DYNPFLD_MAPPING        =
              EXCEPTIONS
                PARAMETER_ERROR        = 1
                NO_VALUES_FOUND        = 2
                OTHERS                 = 3
             IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
             ENDIF.
    ENDMODULE.                 " create_dropdown_box  INPUT
    IN PAI & PBO SECTION...
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1000.
    loop at it  with control t1.
    endloop.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1000.
    loop at it.
    endloop.
    MODULE USER_COMMAND_1000.
      PROCESS ON VALUE-REQUEST.
      FIELD mara-matnr MODULE create_dropdown_box.
    FOR LAYOUT SECTION .......................
    CREATE A TABLE CONTROL SELECT A FIELD OF TABLE CONTROL ON WHICH YOU WANT TO CREATE A LIST BOX
    DOUBLE click on that open a tool box click the drop down list box select the list box .
    save check activate
    regards
    Aniruddh Singh

  • Z table is not opening in change mode in production server.

    Hi,
       In development I have created BDC for Tcode SE11 for z table.
    So in that BDC i have recorded like --
    SE11->Utilities->Table contentes----> Create entries.
    this is working fine in devlopment but this BDC is not working in Production server.
    For that i have open the production in change mode and upload the bdc and again i have to close the production server.And this is very hectic work.
    My problem is how to open that Z table in change mode to upload the data in production server.
    Thanks & Regards,
    Sanket.
    Edited by: Sanket  Mahajan on Aug 12, 2008 8:06 AM

    Hi Saket,
    I think the USER ID by which you are logging in the production server will not have authorizations to do changes in production server.
    The options you have:
    1. You can ask the Basis consultants to give you authorizations of change mode in SE11 transaction.
    2. You can write a program which will insert data into ZTABLE using statement INSERT.
    3. You can create a Table maintenance of the ZTABLE and add records using it.
    best options :
    2nd Option is the best option for Mass Data Upload.
    3rd option is best if you need to add data in regular interval of time or you need to give this authorizations to end user to add records.
    Regards,
    Vamsi

  • 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.

  • 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

  • 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

  • Reg Table Control ---- URGENT

    HI to ALL,
    i have a table control with some fields.On that,
    if Form type = F, then program allows user to enter vendor code in vendor field.
    if form type = E, then program  didnt allow users to enter vendor in vendor field.
    How will i do it for that vendor field???? for form type = E, the vendor field doesnt allow input
    i tried in PBO.but it doesnt works fine.

    Why you say you tried PBO what did you try in that event.
    You need to use the logic of LOOP AT SCREEN.........

  • Re:Reg table control

    Hi,
       i have 2 fields in table control.
    flag                     ship1
    if flag =y               then i should have this column enabled for writing in table    control   other wise disable
        how to implement logic for it

    if flag = 'X'.
    loop at screen.
      if screen-name = 'flag'.
        screen-invisible = 1.
        modify screen.
      endif.
    endloop.
    else.
    loop at screen.
      if screen-name = 'flag'.
        screen-invisible = 0.
        modify screen.
      endif.
    endloop.
    check with various screen options.....

  • Reg:Table Controls

    Hi,
       Can anyone please tell  me how to do table controls with screen shots .

    Hi,
    Check the following link:
    http://www.****************/Tutorials/ABAP/TableControl/Demo.htm
    Regards,
    Bhaskar

Maybe you are looking for

  • Unable to put new music onto my ipod nano

    Please, please can someone help me. I am unable to load any new music onto my ipod. When I put the cd into my the computer drive a message comes up "newer version of quick time required. Quick time version 7.0.2. is installed, itunes requires quick t

  • How to use Function MAX in xsl

    Hi , iam facing a unique issue i want to print maximum postion by using the function MAX My style sheet is working fine in Jdev but same XSL sheet is giving error when i run it in oracle Applications. below is xsl logic <xsl:template name="ttpgds" ma

  • BT Connection Issue

    I've recently moved home and have transferred my BT connection, however I cannot get a broadband connection. I've tried both the BT homehub (HH3) and my original router (Netlink) and neither can connect. I've changed the cable connecting the filter t

  • Flash problems in IE

    So i have developed a flash website works great in firefox and safari but doesnt work in internet explorer just wondering where im messing up. ive embeded the .swf file into an .html file using this code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 S

  • FCP stops responding when exporting quicktime file

    When exporting a quicktime file FCP 5 stop responding about 50% to 60% into the file. Have all the latest updates: In the middle of setting up for a DVD. Total media lenght is 01:58:30 Thats why I'm segmenting it in to chapters so each file is smalle