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

Similar Messages

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

  • 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

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

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

  • 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

  • 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

  • Reg:How to delete the column in table control also from database table.

    Hi Experts,
    Once again thank u all for giving the responses.
    one more doubt is how to delete the columns of table control and also the record shold delete from ztable.
    With Regards,
    Saroja.P.

    Hi,
    If you want to delete the rows in the table control and simultaneously delete it from the database table, then you can implement a 'DELETE' functionality specific to your table control. Have a MARK field (you will find that in the screen attributes of the table control -> give a name for the MARK field, you will find an additional MARK column at the beginning of your table control). You can check whatever rows you want to delete from the table control, call the delete module.
    "This portion of code inside the LOOP...ENDLOOP.
    IF sy-ucomm eq 'F_DELETE'.
       gt_itab2-check = mark.  " Store the MARK field status into your internal table's correspoding field 'check'
      MODIFY gt_itab INDEX tabcontrol-current_line.
    ENDIF.
    iF sy-ucomm eq 'DELETE1'.
      DELETE gt_itab WHERE check eq 'X'. "Your internal table does not have rows that you want to delete
    ENDIF.
    Now you can modify your database table using the MODIFY statement.
    MODIFY ZDB FROM TABLE gt_itab.

  • Reg : Find the records  in Table control

    Dear all
    Im having one requirement in table control .  In my table control totally 100 records contains sales documents
    for Example
    100010
    100020
    100030
    In that Records how to find particluar sale document in table control. How to build find option in table control.
    If possible or not
    Thanks & regards
    Sri

    Hi Sridhar,
    You need to implement amodal screen for this and a Find button above the table control.
    or you can use POPUP_GET_VALUES FM
    after you enter a value in the POP up screen.
    " You need to put some effort to implement this, wish you to implement it successfully as this is possible
    READ TABLE ITAB WITH KEY VBELN = FIND_VBELN. " FIND_VBELN is the field on your find screen.
    if sy-subrc = 0.
    tc-top_line = sy-tabix. " this makes the record visible in the First position
    endif.
    PROCESS AFTER INPUT.
      LOOP AT itab.
        MODULE find.
      ENDLOOP.
    In Program
    MODULE find INPUT.
      DATA : tab TYPE STANDARD TABLE OF sval WITH HEADER LINE.
      REFRESH tab.
      CASE ok_code.
        WHEN 'FIND'.
          clear ok_code.
          tab-tabname = 'VBAK'.
          tab-fieldname = 'VBELN'.
          APPEND tab.
          CALL FUNCTION 'POPUP_GET_VALUES'
            EXPORTING
    *   NO_VALUE_CHECK        = ' '
              popup_title           = 'Find Sales Order'
       start_column          = '5'
       start_row             = '5'
    * IMPORTING
    *   RETURNCODE            =
            TABLES
              fields                = tab
    EXCEPTIONS
       error_in_fields       = 1
       OTHERS                = 2
          IF sy-subrc = 0.
            READ TABLE itab WITH KEY vbeln = tab-value.
            IF sy-subrc = 0.
              tc-top_line = sy-tabix.
            ENDIF.
          ENDIF.
      ENDCASE.
    ENDMODULE.                 " find  INPUT
    Cheerz
    Ram

  • Reg: Adding field names in table control

    Hi
    I am new to table control ,instead of going with table control wizard i am proceeding with table control.
    I have added all the fields as per my requirement, i have added like matnr ,maktx. above these fields i would like to add material and material description..
    can any one suggest me a way to add those fileds.
    And my requirement is i need to display my contents in the internal table..
    if any got sample coding plz do send me.
    Thanks and regards
    Arun Joseph

    Hi Arun joseph,
      In SE51 -> Layout, Press Input/Output button and put it at the end of all your columns in your table control and give variable name ( for example fs_tablecontrol-extrafield ) and press Text Field button and put it in the place of heading give text and save it activate it.
    In your program add the field in data declaration and do furthor logic for that extra field/fields.
    Note: you can add the both fields like this only.
    Regards,
    Mahi.

  • Reg:lsmw(table control)

    hi friends,
            i need some issues regarding lsmw.
    how to handle the table control in lsmw?
    if it is possible r not? pls tell me urgently

    Sri,
    search with term table control in lsmw in SDN.am sure you will get your answer,.
    Amit.

  • Reg:Rows display in Table Control

    Dear All,
             I created a Table Control which is displaying 30 rows in the initial screen.But my requirement is to display up to 200 rows in
    the initial screen itself how can it be done??

    Try to change the Vis Length column of the table control....
    All you can do is make the Table Control visible to the entire screen....it will display the number of rows which it can in the that screen....
    Rest will be availabe via vertical and horizontal scroll bars.

  • Reg : class for creating table control

    hi everyone,
                 is there any class for creating table control?my requirement is
                  created 2 custom containers,one for alv display and other for table control display.
    For alv i used cl_gui_alv->set_table_first_display,likewise any class for creaitng table control?????????
    pleas find me a solution......
                      thanks in advance......

    Hi,
    You can use the class CL_TABLECONTROL for creating table control and the method SET_VALUES shall be used to fill values for tha tabcntrl.
    Else, you can use the Table Control Wizard to create the tabcntrl easily.
    Regards,
    Renjith Michael.

  • How to populate data in table control  .

    hi all,
    i put matnr no. in screen no. 103
    validation is done at that screen only.
    now when i want to modify dat record
    when i put matnr no. at screen 103
    so how i will get all  data of dat number to table control screen.

    Hi Darshan,
       Here is a detailed description of how to update data in table controll.
      Updating data in table control
    The ABAP language provides two mechanisms for loading the table control with data from the internal table and then storing the altered rows of the table control back to the internal table.
    Method 1: Read the internal table into the Table Control in the screenu2019s flow logic.  Used when the names of the Table Control fields are based on fields of the internal table.
    Method 2: Read the internal table into the Table Control in the module pool code. Used when the names of the Table Control fields are based on fields of the database table.
    Method 1 (table control fields = itab fields)
    In the flow logic we can read an internal table using the LOOP statement. Define the reference to the relevant able control by specifying WITH CONTROL <ctrl>
    Determine which table entry is to be read by specifying CURSOR <ctrl>-CURRENT_LINE.
    After the read operation the field contents are placed in the header line of the internal table. If the fields in the table control have the same name as the internal they will be filled automatically. Otherwise we need to write a module to transfer the internal table fields to the screen fields.
    We must reflect any changes the user makes to the fields of the table control in the internal table otherwise they will not appear when the screen is redisplayed after PBO processing, (eg, after the user presses Enter or scrolls) However, this processing should be performed only if changes have actually been made to the screen fields of the table control (hence the use of the ON REQUEST)
    PROCESS BEFORE OUTPUT.
    LOOP AT ITAB_REG WITH CONTROL TCREG
    CURSOR TCREG-CURRENT_LINE.
    ENDLOOP.
    PROCESS AFTER INPUT.
    LOOP AT ITAB_REG.
    MODULE MODIFY_ITAB_REG.
    ENDLOOP.
    MODULE MODIFY_ITAB_REG INPUT.
    MODIFY ITAB_REG INDEX TCREG-CURRENT_LINE.
    ENDMODULE.
    Method 2 (table control fields = dict. fields)
    If using a LOOP statement without an internal table in the flow logic, we must read the data in a PBO module which is called each time the loop is processed.
    Since, in this case, the system cannot determine the number of internal table entries itself, we must use the EXIT FROM STEP-LOOP statement to ensure that no blank lines are displayed in the table control if there are no more corresponding entries in the internal table.
    PROCESS BEFORE OUTPUT.
    LOOP WITH CONTROL TCREG.
    MODULE READ_ITAB_REG.
    ENDLOOP.
    PROCESS AFTER INPUT.
    LOOP WITH CONTROL TCREG.
    CHAIN.
    FIELD: ITAB_REG-REG,
    ITAB_REG-DESC.
    MODULE MODIFY_ITAB_REG
    ON CHAIN-REQUEST.
    ENDCHAIN.
    ENDLOOP.
    MODULE READ_ITAB_REG OUTPUT.
    READ TABLE ITAB_REG INDEX TCREG-CURRENT_LINE.
    IF SY-SUBRC EQ 0.
    MOVE-CORRESPONDING ITAB_REREG TO TCREG.
    ELSE.
    EXIT FROM STEP-LOOP.
    ENDIF.
    ENDMODULE.
    MODULE MODIFY_ITAB_REG INPUT.
    MOVE-CORRESPONDING TCREG TO ITAB_REG.
    MODIFY ITAB_REG INDEX
    TCREG-CURRENT_LINE.
    ENDMODULE.
    Updating the internal table
    Method 1
    PROCESS AFTER INPUT.
    LOOP AT ITAB_REG.
    CHAIN.
    FIELD: ITAB_REG-REG,
    ITAB_REG-DESC.
    MODULE MODIFY_ITAB_REG ON CHAIN-REQUEST.
    ENDCHAIN.
    ENDLOOP.
    MODULE MODIFY_ITAB_REG INPUT.
    ITAB_REG-MARK = u2018Xu2019.
    MODIFY ITAB_REG INDEX TCREG-CURRENT_LINE.
    ENDMODULE.
    Method 2
    PROCESS AFTER INPUT.
    LOOP WITH CONTROL TCREG.
    CHAIN.
    FIELD: TCREG-REG,
    TCREG-DESC.
    MODULE MODIFY_ITAB_REG ON CHAIN-REQUEST.
    ENDCHAIN.
    ENDLOOP.
    MODULE MODIFY_ITAB_REG INPUT.
    MOVE-CORRESPONDING TCREG TO ITAB_REG.
    ITAB_REG-MARK = u2018Xu2019.
    MODIFY ITAB_REG INDEX TCREG-CURRENT_LINE.
    ENDMODULE.
    Updating the database
    MODULE USER_COMMAND_100.
    CASE OK_CODE.
    WHEN u2018SAVEu2019.
    LOOP AT ITAB-REG.
    CHECK ITAB_REG-MARK = u2018Xu2019.
    MOVE-CORRESPONDING ITAB_REG TO TCREG.
    UPDATE TCREG.
    ENDLOOP.
    WHEN u2026
    u2026
    ENDCASE.
    ENDMODULE.
    Hope this will solve your problem.
    Regards,
    Pavan.
    Edited by: PAVAN CHANDRASEKHAR GANTI on Aug 3, 2009 12:48 PM

Maybe you are looking for

  • "Cannot open" error when downloaded *purchased* movie from icloud?

    This had happened multiple times and I cannot believe it hasn't been fixed when I see issues with rentals from years ago!  I fully downloaded a movie I purchased a year ago to my iPhone. It successfully downloaded, processed, etc. Shows the dot next

  • How can i get the name of the method or exception handle

    i just start to programm. i want to handle exceptions. there is a try catch procedure. i want that the catch procedures tells me which method has occured the exception. so i thought i could handle it like this public void getAllConstraints(Connection

  • LARGE DATATYPE???

    I have to store at least 46,000 characters in one field. I think CLOB would do it so that is the datatype I set in the field by doing: CREATE TABLE mytable (myfield clob); I have a file that I am loading using sqlldr. When I call sqlldr it still says

  • Custom report Error Rendering Element

    I have created a new category and subcategory called: C2Reports GSORTS Then under the subcategory I have created a report called GSORT_QC. Next I added an element that is a TABLE FROM SQL and I have edited it to put in the code. It works fine when I

  • A downloaded song cuts off at the end - how can i get the full song

    I recently downloaded a new song, but the song cuts off at the end.  How can I get the full song?