Requirement in Table  Control

Hi,
How do i make the non key fields inactive after selecting the row in table control. Please tell me.
Thanks, Ahmed

Try tihs :
To disable/enable fields of a column you can use the field SCREEN-INPUT of the
structure CXTAB_COLUMN and set its value to 0 or 1.
To disable input at column 4 of the table control .
DATA col LIKE LINE OF tab_con-COLS.
READ TABLE tab_con-COLS INTO col INDEX 4.
col-SCREEN-INPUT = 0 .
MODIFY tab_con-COLS FROM col INDEX 4.
Check this link for more detailed info on CXTAB_COLUMN:
http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/content.htm
Regards
Neha
Edited by: Neha Shukla on Nov 27, 2008 4:48 PM

Similar Messages

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

  • Help need in Table control

    Hi guys,
           I am new to dialog programming , I have the following requirement in table control.
       I have to be displayed 4 fields in Table control
    1. Mara-MATNR (Match code)
    2.Mara-BISMT
    3. Mara-MATKL
    4. Makt-MAKTX
            Based on Material number the rest of the fields to be displayed automatically.
    If possible send the sample code for the above requirement.
    Thanks & Regards
    Raj

    Hi,
    Create a screen and create those fields in that screen with proper data element type.
    in the PAI event, create a Module like MODULE_FILL_DATA. and double click on that one, in that module write this code
    IF MATNR IS INITIAL.
    Write the Error like please enter the material No
    ELSE.
    Select BISMT MATKL MAKTX into those screen field from MARA where
                                    MARA = Screenfield-MATNR.
    ENDIF.
    that's it, and when you run the screen enter the material no and press enter, then all the fields will come over there
    Regards
    Sudheer

  • 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

  • Table Control in SAP NetWeaver 2004

    Hello,
    I have a requirement for table control in SAP NetWeaver2004 Webdynpro for java (sp16), where i need a kindoff tablepopins as provided in 2004s.Is there anyway i can get it done or if there is any workaround to achieve  the same with sp16 NetWeaver2004.
    Thanks in advance
    Karthik

    Hi Valery,
    What i need looks something like this:
    col1 | col2 | col3 |
    ROW1                ( Header )
      colA | colB | colC | colD |
      ##ROW A              ( Item )
      ##ROW B              ( Item )
    ROW2
    ROW3
      colA | colB | colC | colD |
      ##ROW A              ( Item )
    I am not sure if the solution to Jack's problem will work for me and also a bit unclear on it. Will be greatful if any solution is suggested.
    Thanks
    Karthik

  • Unlimited entry in table control?

    Hi All
    I have a requirement where table control should not restrict no of entries.
    Initially i have coded
    PROCESS BEFORE OUTPUT.
    MODULE initialize.
    MODULE initialize OUTPUT.
    tablecontrol-lines = X. 'Number of entries
    Is unlimited entry in the table control is possible ? If yes how to implement it?
    Thanks,
    Shrinivas

    Hi Srinivas..
    Declare a Flag in TOP include.
    Use this statement in PBO module.
    if flag = 'X' . "First time
    tablecontrol-lines = 100.
      flag = ' '.
    else.
    tablecontrol-lines = tablecontrol-lines + 10.
    endif.
    reward if Helpful.

  • WIZARD FOR TABLE CONTROL DOCUMENTS REQUIRED

    hI ALL,
    cAN ANYBODY SEND ME DOCUMENTS RELATED TO TABLE CONTROL USING WIZARD.i NEED TO CREATE A TABLE IN WHICH I WOULD FILL THE TABLE WITH AND WHEN I SAVE IT I NEED THE ZTABLE TO BE UPDATED .
    cAN ANYBODY SEND ME SOME DOCUMENTS REGARDING HOW TO USE WIZARD.
    mY EMAIL ID :
    [email protected]
    tHANKS IN ADVANCE

    Hi Kajol,
    I was searching online and came with this short steps from this link:
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/dialogprogramcall-dump-725857#
    (1) drag the table control (with wizard) on the full screen. (2) press continue. (3) enter the name of your table control (any name you want) (4) press continue (5) select 'internal table' (6) enter name of your internal table (the one that contains data to be displayed for table control) (7) press continue (8) fields of your itab will be displayed then, select the fields you want to be seen on your table control (9) continue pressing 'continue' until complete button is shown (10) press 'complete'.
    I tried giving database table name instead of internal table at point number (6).
    Also, did you go thru this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/150d67da1011d3963800a0c94260a5/content.htm
    Hope this will be of some help to you.
    Regards,
    Vivek

  • Table Control Help required

    Hi,
    Right now I am working in table control.
    I have an internal table that is getting displayed onto the table control,the internal table has the primary key MATNR in it.
    When the user enters an identical MATNR in the second row the validation should throw a message that'Entry already exists' and the entry should get deleted.
    The internal table is filled up from the database table using the WBS Element.Then before saving the new entry ,the database entry for the WBS element is deleted.
    After updating the Internal table the internal table is inserted into the database table.
    Can anyone let me know how to validate the new entry against the entries already existing in the internal table.
    Hope i am able to make the problem clear to you.

    In the PAI Event write the code inside the CHAIN & ENDCHAIN.
    PROCESS AFTER INPUT.
    *pai flow logic for tablecontrol 'MPRN'
      LOOP AT i_mprn.
        CHAIN.
          FIELD:  i_mprn-select,
                  i_mprn-mprn,
                  i_mprn-post_code,
                  i_mprn-dm_ndm
          MODULE validate_mprn.
        ENDCHAIN.
        MODULE tabctrl_modify.
      ENDLOOP.
    MODULE validate_mprn INPUT.
      IF sy-ucomm EQ 'MPSB'.
        PERFORM validate_mprn.
      ENDIF.
    ENDMODULE.                 " validate_mprn  INPUT

  • Update internal table data from table control

    Hi GURUS,
    I need help regarding one of my requirement.
    I need to display data from the internal table on the screen and when the user selects a record/multiple records from screen and clicks on approve button i need to update one of the field from N to Y in the corresponding Ztable. Once the record is updated from Ztable , that should no longer be visible for the user on the screen.
    I am using table control wizard to display data. I am able to update the Ztable, but that record is not refreshing from the user screen. Any suggestions would be approved.
    Also please let me know if table control is the best way to do this/ alv grid control??

    hi
       REFRESH CONTROL Control-Name FROM SCREEN '0100'  -> use this command to refresh the table control
    to know more, read into
    https://forums.sdn.sap.com/click.jspa?searchID=2934287&messageID=673474
    Re: URGENT HELP REQ IN TABLE CONTROL WIZARD
    if helpful, reward
    Sathish. R

  • How to activate the Vertival Scroll Bar to Table control

    Hi All,
    I Have created a Module pool table control(Wizard) with Input control,where user can enter the values in the screen.
    In my screen 15 lines are visible,once i enter all 15 rows,vertical scroll bar is active,but rest of all lines are in deactivate mode.
    My requirement is:Once i enter all the visible lines,the remaining lines should be in activ mode(In put control).
    I appreciate your response.
    Best Regards,
    Seshadri

    DATA : BEGIN OF IT_MARA OCCURS 1,
           MATNR LIKE MARA-MATNR,
           ERSDA LIKE MARA-ERSDA,
           ERNAM LIKE MARA-ERNAM,
           MTART LIKE MARA-MTART,
           MBRSH LIKE MARA-MBRSH,
           V_FLAG TYPE C,
           END OF IT_MARA.
    DATA :  WA_MARA LIKE it_MARA .
    CONTROLS TABLE TYPE TABLEVIEW USING SCREEN 100.
    MODULE POPULATE_100 INPUT.
      CASE SY-UCOMM.
        WHEN 'DISP'.
          SELECT MATNR
                 ERSDA
                 ERNAM
                 MTART
                 MBRSH FROM MARA INTO WA_MARA .
            APPEND WA_MARA TO IT_MARA.
          ENDSELECT.
          DESCRIBE TABLE IT_MARA LINES V_TEXT.
          TABLE-LINES = V_TEXT.
          CLEAR IT_MARA.
    Regards..
    Balaji  ( assign if this helps u ..)

  • How to Enable and Disable column in Table Control.

    Hi all,
    I want to make certain column of Table control as Enable or Disable on Button action.
    Enable means ready for input and Disable means not ready for input.
    Please send me sample code.
    Thanks in advance.

    Hi Vipin,
        You have to loop through the table columns to set the properties in the PBO of your screen.
    Here is the sample solution.
    delcare a workarea for the columns in the table control in your top include.
    Table Control .
    CONTROLS: TAB1 TYPE TABLEVIEW USING SCREEN '0100'.
    DATA: WA_COLS LIKE LINE OF TAB1-COLS.
    in your screen
    PROCESS BEFORE OUTPUT.
      MODULE INTIALISE_100.
    *&      Module  0100_INTIALISE  OUTPUT
    MODULE INTIALISE_100 OUTPUT.
        LOOP AT TAB1-COLS INTO WA_COLS.
          WA_COLS-SCREEN-INPUT = 1.
          MODIFY TAB1-COLS FROM WA_COLS TRANSPORTING SCREEN-INPUT.
        ENDLOOP.
    ENDMODULE.                 " 0100_INTIALISE  OUTPUT
    modify the screen-input property as required for the table control columns.
    Please provide points if helpfull.....
    Thanks,
    Karthik
    Message was edited by: Karthik
            Karthikeyan K

  • Issue with loop in table control

    Hello experts,
    I have 20 entries in my table control  but the loop is going through only for 10 entries..please help me?
    Thanks

    Hi
    In PBO
    module status_your_screen_number.
    loop at itab with control tc.
    endloop.
    in PAI.
    loop at itab.
    module modify_itab
    endloop.
    in Program
    Module status_your_screen_Number.
    describe table itab lines tc-lines -
    > THis will give you Scroll Bars for Table Control
    endmodule
    module modify_itab. -
    > If Required ( If you are modifying the Data of table control )
      DESCRIBE TABLE itab LINES lin.
      IF tc-current_line > lin.
        APPEND itab.
      ELSE.
        MODIFY itab INDEX tc-current_line. ---> This Ensures your data both Upward And Downward Scrolling
      ENDIF.
    endmodule
    Cheers
    Ram
    Edited by: Ramchander Krishnamraju on Oct 28, 2009 8:59 AM
    Edited by: Ramchander Krishnamraju on Oct 28, 2009 9:26 AM

  • How to add a field and table control to BP transaction.

    Hi,
    I have a requirement to add a field and table control to the 'Control data' tab of the Transaction BP.
    Can some on please help me if having a solution and with any relavant documents.
    Thanks in advance.
    Raj & Khader.

    Also explore with EEWB tcode.
    Refer this threads
    Re: EEWB
    Created New fields in Business Activity with EEWB
    Cheers
    Manohar

  • Not able to do page down in table control of screen

    Hello,
    I have created a table control on a screen of my report. This screen gets called from my selection screen. When I do page down or click on down arrow key to view other table entries nothing is happening. The scroll bar is not moving vertically.
    Someone told me that no coding is required to make the table scrollable vertically.
    Can someone please tell me if there is any attribute that needs to be set for this?
    Best Regards,
    Priyanka Gupta.

    Hi,
    Please go through this code.
    dataL line_count type i.         " Global declaration
    In the PAI of the table control screen.
    CASE OK_CODE.
         when 'P--'.
          clear ok_code.
          perform paging using 'P--'.
         when 'P-'.
          clear ok_code.
          perform paging using 'P-'.
         when 'P+'.
          clear ok_code.
          perform paging using 'P+'.
         when 'P++'.
          clear ok_code.
          perform paging using 'P++'.
    form paging using code.  "   NOTE  :  here "TABCTL" is your table control name
      data: i type i,
            j type i.
      case code.
        when 'P--'.
          tabctl-top_line = 1.
        when 'P-'.
          tabctl-top_line = tabctl-top_line - line_count.
          if tabctl-top_line le 0.
             tabctl-top_line = 1.
         endif.
        when 'P+'.
          i = tabctl-top_line + line_count.
          j = tabctl-lines - line_count + 1.
          if j le 0.
             j = 1.
          endif.
          if i le j.
            tabctl-top_line = i.
          else.
            tabctl-top_line = j.
          endif.
        when 'P++'.
          tabctl-top_line = tabctl-lines - line_count + 1.
          if tabctl-top_line le 0.
             tabctl-top_line = 1.
          endif.
      endcase.
    endform.                   
    Hope this will help you.
    Regards,
    Smart Varghese

  • How to execute multiple records in table control

    HI.
    I have a requirement that in table control user will select more than one row and when he clicks 'SAVE' it should go and sit in a custom table. how to pass more than one records.
    thanks & regards.
    sandeep

    Hi Sandeep,
    I understand your requirement .......
    See this standard program........
    <b>" DEMO_DYNPRO_TABCONT_LOOP_AT "</b>
    <b>Understand how DELETE button is working,inorder to delete multiple lines....Copy this program if necessary..OK.
    Simply,Replace DELETE statement with your INSERT statement to push records into your custom table....very easily you can do it.</b>
    <b>Reward all helpful answers.</b><b>
    Hope you problem is solved.</b>
    Regards,
    V.Raghavender.

Maybe you are looking for

  • Safari on iPod touch will no longer open any web pages even after reset.

    My iPod touch will no longer open any web pages via Safari. I am connected to WiFi and other apps work fine (mail for example). I connected to Itunes and did a reset - still no luck. S/w is up to date for this version of touch - 4.x. Please help with

  • Why more people don't use iWork Revealed

    I just upgraded to Lion and am faced with upgraded a number of my computer apps. I have used Office for eons but have Pages and Numbers on my iPhone and iPad but have NEVER thought of iWork with any seriousness. Until today. In ready about Lion and M

  • Display JSP in applet

    Is there anyway to load a JSP from within an applet?

  • Sybase 5.5 Migration to Oracle

    Hoping for some input... What is the best option for migrating application data only (will not be migrating the application and thus don't need the procedures, triggers, etc) into Oracle? We're on Sybase SQL Anywhere 5.5 with read-only privileges so

  • PF-Status for an ALV-Grid_List

    Hello together, I'm trying to create an own PF-Status within an ALV-Grid-List. Therefore I call the ALV-FM as following: CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'        EXPORTING             i_callback_program       = sy-repid             it_fieldcat