To Disble the Field in Table Control after clicking Save button

Hi,
I have a requirement as follows. i need to disable one field in the table control after clicking save button. i tried with SCREEN elements but it disabling whole the table control but i need to disable that particular one record only in the table control. i found Structure CXTAB_COLUMN in documentaion. it has the properties like invisible. can any body tell how can we disble that particular field in table control only for the one record. and how can we use CXTAB_COLUMN.
Thanks in advance.

hi,
do like this...
in USER_COMMAND_1000 module of PAI,
MODULE user_command_1000 INPUT.
  CASE ok_code.
    WHEN 'BACK' OR 'UP' OR 'CANC'.
      LEAVE PROGRAM.
    WHEN 'SAVE'.
      fl = 1.
      GET CURSOR LINE lin.
  ENDCASE.
ENDMODULE.                 " user_command_1000  INPUT
and make on module disable in Loop Endloop in PBO.
and write like this...
MODULE disable OUTPUT.
  LOOP AT SCREEN.
    IF tab1-current_line = lin AND fl = 1.
      screen-input = 0.
    ELSEIF tab1-current_line < lin.
      screen-input = 0.
    ELSE.
      screen-input = 1.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.
ENDMODULE.                 " disable  OUTPUT
here fl and lin both are type i.....
and there will b one module in PBO
MODULE tab1_change_tc_attr.
in that put if condition....
MODULE tab1_change_tc_attr OUTPUT.
  IF sy-ucomm <> '' AND sy-ucomm <> 'SAVE'.
    DESCRIBE TABLE itab LINES tab1-lines.
  ENDIF.
ENDMODULE.                    "TAB1_CHANGE_TC_ATTR OUTPUT
ur problem will solve...
reward if usefull....
Edited by: Dhwani shah on Jan 2, 2008 1:17 PM

Similar Messages

  • Show Top of the Page after Click Save button

    Hi all,
     i have requirement i want show top of the page after click of save button.if you know answer please give reply.
    Regards
    VeerendraNadh

    Hi,
    Would you mind providing more details(screenshot would be better) about your requirement? It would make others easier to find a solution for you.
    Suppose that there is a scenario like this: Edit a page, when content grows too large, page will scroll to the bottom of the page. When clicking “Save” button in the
    ribbon, by default, page will scroll to the top just like it is first loaded in the browser.
    Feel free to reply if this is not what you really mean.
    Best regards
    Patrick Liang
    TechNet Community Support

  • HOW TO MAKE THE FIELDS ON TABLE CONTROL SCREEN FIXED!!

    Dear all,
    Can you please tell me as to how to make the fields on the table control screen fixed (not respond to the scroll bar) i.e. simillar to MC88 screen , the first two fields are fixed and don't respond to the scroll.
    Please Help!!!!
    Vj

    Hi
    In TC, goto attributes and set 'Fixed columns' as 2. This will fix the first 2 columns.
    Regards
    Navneet

  • Adding custom fields in table control of infotype 0591

    Dear Experts,
    My requirement is to add custom fields x y z  in the Table contol of the standard infotype 0591 (Nominations) screen in PA30 tcode.
    Is it possible to add the fields in table control after the fields share,guardian's address, without using access key.
    if  so, help me to know the procedure.
    Please suggest.
    Warm Regards
    Sinde.

    hi..
    a thread already exists with the same Subject.. pls check if it helps u....

  • How to delete the row in table control with respect to one field in module pool programming?

    Hi,
    Can I know the way to delete the row in table control with respect to one field in module pool programming
    Regards
    Darshan MS

    HI,
    I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
    I have written this code,
    module USER_COMMAND_9000 input.
    DATA OK_CODE TYPE SY-UCOMM.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
         WHEN 'DELETE'.
            LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
                APPEND LS_SOURCE TO LT_RESTORE.
                DELETE TABLE LT_SOURCE FROM LS_SOURCE.
                SOURCE-LINES = SOURCE-LINES - 1.
            ENDLOOP.
    But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
    So I thought of doing with respect to the field.

  • What are the uses of table control and tabstrip control

    can anyone tell me the uses of table control and tabstrip control

    Hi,
    table control is more comfortable for customizing.scroll bars all possible in this.where as it is not possible in step loops.
    check this example.
    PROGRAM ZBHTCTRL.
    TABLES: LFA1, EKKO.
    DATA: OKCODE1 LIKE SY-UCOMM,
    OKCODE2 LIKE SY-UCOMM.
    CONTROLS TABC TYPE TABLEVIEW USING SCREEN 1001.
    DATA: BEGIN OF ITAB OCCURS 0,
    MANDT LIKE EKKO-MANDT,
    EBELN LIKE EKKO-EBELN,
    BSTYP LIKE EKKO-BSTYP,
    BSART LIKE EKKO-BSART,
    END OF ITAB.
    MODULE USER_COMMAND_1000 INPUT.
    CASE OKCODE1.
    WHEN 'BACK'.
    SET SCREEN 0.
    WHEN 'NEXT'.
    SET SCREEN 1001.
    SELECT * FROM EKKO INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE
    LIFNR = LFA1-LIFNR.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1001 INPUT
    MODULE MOVE_DATA OUTPUT.
    EKKO-MANDT = ITAB-MANDT.
    EKKO-EBELN = ITAB-EBELN.
    EKKO-BSTYP = ITAB-BSTYP.
    EKKO-BSART = ITAB-BSART.
    ENDMODULE. " MOVE_DATA OUTPUT
    MODULE USER_COMMAND_1001 INPUT.
    CASE OKCODE2.
    WHEN 'BACK'.
    SET SCREEN 1000.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1001 OUTPUT
    MODULE STATUS_1001 OUTPUT.
    SET PF-STATUS 'MENU'.
    SET TITLEBAR 'TIT'.
    ENDMODULE. " STATUS_1001 OUTPUT
    MODULE STATUS_1000 OUTPUT.
    SET PF-STATUS 'DMENU'.
    SET TITLEBAR 'xxx'.
    ENDMODULE. " STATUS_1000 OUTPUT
    FORM ON_CTMENU_FORM1 USING CMENU TYPE REF TO CL_CTMENU.
    CALL METHOD CMENU->LOAD_GUI_STATUS
    EXPORTING
    PROGRAM = ' ZBHTCTRL'
    STATUS = 'CMENU'
    MENU = CMENU.
    CALL METHOD CMENU->ADD_FUNCTION
    EXPORTING
    FCODE = 'RX'
    TEXT = 'RECIEVE'.
    ENDFORM.
    FLOW LOGIC:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1000.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1000.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1001.
    LOOP AT ITAB WITH CONTROL TABC CURSOR TABC-TOP_LINE.
    MODULE MOVE_DATA.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1001.
    LOOP AT ITAB.
    ENDLOOP.
    for more info check this link.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
    thanks
    Ashu.

  • Export all data of selected line in search help to fields in table control

    I've created a search help which will export 4 fields. These 4 fields should be populated to the corresponding fields in TABLE CONTROL. However, in my program, only the first column is populated and the others are blank. How to solve this problem? Do I need to include POV? Thank you.

    Hi,
    1. Create a search help with four exporting parameters.
        ( check the you have created properly the sterp step
         procedure in creating the search help).
    2. No need to go for POV.
    3. After creating the table control assign the fieldnames into   
       the control, then click on the fieldname it will show the  
       attributes of that field . ther you can find te search help field
       fill that field with your search help name .
    4.After assigning the field, check it in executing the report.
          Hope this will work for you, if it is not let me know.
          Reward points if it is  helpful .
    Regards,
    Madhavi

  • DISPALYING FIELDS IN TABLE CONTROL

    HAI,
    I  HAVE WRITTEN CODE TO DISPLAYING THE CONTENTS IN TABLE CONTROL
    THIS MY CODE.
    CCONTROLS :  TABC TYPE TABLEVIEW USING SCREEN 100.
    DATA: BEGIN OF WA_ITAB,
          NAMES TYPE DD03L-FIELDNAME,
          END OF WA_ITAB.
    DATA: TABLE1(7) TYPE C.
    DATA: PROGRAM TYPE SY-REPID.
    DATA: DYNNR TYPE SY-DYNNR.
    DATA: IT_VAL TYPE TABLE OF DYNPREAD.
    DATA: WA_VAL LIKE LINE OF IT_VAL.
    DATA: IT_TAB LIKE TABLE OF WA_ITAB.
    *SELECTION-SCREEN BEGIN OF SCREEN 100 .
    *PARAMETERS TABLE1 TYPE DD03L-TABNAME.
    *SELECTION-SCREEN END OF SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'MY_STATUS'.
    SET TITLEBAR 'xxx'.
    CASE SY-UCOMM.
    WHEN 'BACK'.
    LEAVE PROGRAM.
    ENDCASE.
    PROGRAM = SY-REPID.
    DYNNR = SY-DYNNR.
    WA_VAL-FIELDNAME = 'TABLE1'.
    APPEND WA_VAL TO IT_VAL.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    *ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  val_tab  INPUT
          text
    MODULE VAL_TAB INPUT.
    CASE SY-UCOMM.
    WHEN 'DIS'.
    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        DYNAME                         = PROGRAM
        DYNUMB                         = DYNNR
      TRANSLATE_TO_UPPER             = ' '
      REQUEST                        = ' '
      PERFORM_CONVERSION_EXITS       = ' '
      PERFORM_INPUT_CONVERSION       = ' '
      DETERMINE_LOOP_INDEX           = ' '
      TABLES
        DYNPFIELDS                     = IT_VAL
    EXCEPTIONS
      INVALID_ABAPWORKAREA           = 1
      INVALID_DYNPROFIELD            = 2
      INVALID_DYNPRONAME             = 3
      INVALID_DYNPRONUMMER           = 4
      INVALID_REQUEST                = 5
      NO_FIELDDESCRIPTION            = 6
      INVALID_PARAMETER              = 7
      UNDEFIND_ERROR                 = 8
      DOUBLE_CONVERSION              = 9
      STEPL_NOT_FOUND                = 10
      OTHERS                         = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE IT_VAL INDEX 1 INTO WA_VAL-FIELDNAME.
    SELECT FIELDNAME
    FROM DD03L
    INTO TABLE IT_TAB
    WHERE TABNAME = WA_VAL-FIELDVALUE.
    ENDCASE.
    ENDMODULE.                 " val_tab  INPUT
    FLOW LOGIC SCREEN 100
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT IT_TAB INTO WA_ITAB WITH CONTROL TABC CURSOR TABC-CURRENT_LINE.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    LOOP  AT IT_TAB.
    CHAIN.
    FIELD WA_ITAB-NAMES MODULE VAL_TAB.
    ENDCHAIN.
    ENDLOOP.
    I HAVE SCREEN LIKE
    TABLE1:
    TABLECONTROL(TABC) WITH GETTING FROM PROGRAM IN THE LAYOUT (F6) I.E
    WA_ITAB.
    FIELDNAME :WA_ITAB-NAME
    PUSHBUTTON
    DISPLAY (FCT CODE:DIS)
    I HAVE ISSUE THAT I UNABLE TO POPULATE THE TABLE CONTROL
    IF U NEED THE SCREEN SHOT
    PLZ GIVE ME THE PERSONAL MAIL ID
    BCOZ IN THIS FORUM WE CANNOT PASTE THE SCREEN SHOT
    PLZ RECTIFY MY ERROR

    hai  bharathi,
    this program, i have done in screen painter se51.

  • How to select all the rows of table control in BDC

    Hi All,
    While I am doing BDC for Transaction Code MC88, After the first screen I will get another screen with tabble control, Here I need to select all the rows of table control, I am assignng the 'X' to the first field of Table Control which is the indicator for selection.
    Here I am getting message called Indicator field is not in program and screen.
    While doing Recording I am not able to record the indicator, Please any one let me know how to record the Entire table control selection.
    Thanks in advance..

    Sorry about that lakshmi. Here is my code.
        PERFORM dynpro USING : 'X'   'SAPMMCP6'          '0105',
                               ' '   'RMCP2-MATNR'       t_matnr,
                               ' '   'RMCP2-WERKS'       t_werks,
                               ' '   'BDC_OKCODE'        '=AKTV'.
        PERFORM dynpro USING : 'X'   'SAPLMCPA'          '0707',
                               ' '   'BDC_OKCODE'        '=MRKE'.
        PERFORM dynpro USING : 'X'   'SAPLMCPA'          '0707',
                               ' '   'BDC_OKCODE'        '=GRAO

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

  • Deleting the values from table control

    HI,
    I need to remove the selected line from the Table control on my screen.
    The point is that the Internal table does not have any records,.
    for example in the Customer Create screen,
    while entering the bank details we will enter it in a tbale contraol.
    but the records doesnt exist in the database. but the record gets deleted from the table control only if we press delete button.
    please guide me.
    please note : I want to delete the record from Table Control on the screen and I dont have any corresponding database records..
    regards

    Hi..
    The solution to your problem - deleting values from table control.
    Here: it_wizard is the internal table which is holding the value of table control.
             wa_wizard is the work are of the internal table it_wizard.
             it_delete is the internal table which holds the deleted record of table control.
             wa_delete is the work area of the internal table it_delete
    Also here the field ZSEL is the character field which is used to select the entire record in the table control.
    LOOP AT it_wizard into wa_wizard WHERE zsel = 'X'.
           MOVE-CORRESPONDING wa_wizard TO wa_delete.
           APPEND wa_delete TO it_delete.
           delete table it_wizard from wa_wizard.
    DELETE  FROM zfin_goods WHERE ZFG = WA_delete-ZFG.
    ENDLOOP
    if sy-subrc eq 0.
    Message 'Delete Successful' type 'S'.
    endif.
    The above code will delete the record from both the table control.internal table and the database table.
    I think this will help you to great extent.
    Ward regards,
    Bhuvaneswari
    Edited by: BHUVANESWARI THIRUNAVUKKARASU on Jan 7, 2009 10:39 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

  • Search help for a field in table control based on another field value

    Hi,
    I want to attach the Search help for a field in table control based on another field value.
    Please help me asap.
    Will be highly rewarded

    HI,..
      Check these links
    search help in table control
    Re: How to create Search Help for a field in Table control !!
    How to create Search Help for a field in Table control !!
    F4 Help In Table Control
    Control table F4 help
    Problem in F4 help in screen field
    check this code
    DATA: BEGIN OF it_value4 OCCURS 0,
             TEXTCODE  LIKE  ZXX-TEXTCODE,
             TEXTDESC  LIKE  ZXX-TEXTDESC,
           END OF it_value4.
      progname = sy-repid.
      dynnum   = sy-dynnr.
             SELECT TEXTCODE TEXTDESC
               FROM  xxxx
               INTO CORRESPONDING FIELDS OF TABLE<b> it_value4</b>
              WHERE  LOSS_CODE =<b> IT_VALUE1 .</b>
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'TEXTCODE'
          dynpprog    = progname
          dynpnr      = dynnum
          dynprofield = 'ITVALUE-TEXTCODE'  "-->UR  4 th filed value in screen
          value_org   = 'S'
        TABLES
          value_tab   = it_value4.
    endmodule.
    Message was edited by:
            veereshbabu ponnada

  • How to disable fields in Table control???

    Hi
    How to disable fields in Table control??? I want to disable particular row in table control when enter datas are correct.lets take as example ME41 or ME51 table control.
    Can anyone tell how to do disable in this table control
    Points will be rewarded if its helpful.
    Thanks
    senthil

    If you want to disable the row then you can use
    in pbo module create a module in side loop,
    loop at itab with control tc.
    module change_screen.
    endloop.
    in module,,,,,
    loop at screen.
    if condition.
    screen-input = 0.
    modify screen.
    endif.
    endloop.
    Regards
    Vijay

  • Attaching search help to a field in table control

    Hi,
    Please suggest a way to attach search help functionality to a field in table control.
    My requirement os based on matnr the f4 help for the next field shud come.
    I gave the func mod dunp_values_read, but the internal table i pass does not return with the fieldvalue of matnr field.
    is there any func mod to read values of screen fields in table control so that based on that I can go to func mod f4_init_....
    Will be rewarded.

    Check the FM: HELP_VALUES_GET_WITH_TABLE_EXT
    Check the documentation for example code.
    regards,
    Ravi

Maybe you are looking for

  • How can I Force/relaunch BP replication from CRM to ECC

    Hi everybody, We had some replication problem with sold-to-party BPs when creating them in CRM (Tr Code BP). The CRM002 id was not implemented in most cases. A job was planned to relaunch the Bdocs automatically every hour. It seemed to be ok for a m

  • Uploading Excel file to SAP

    Hi Friends, Iam trying to Upload Excel file into SAP using the FM ALSM_EXCEL_TO_INTERNAL_TABLE. But it is going to dump n the error is                                                                              The call to the function module "ALSM_

  • UDA's in Hyperion Reports?

    <p>Hello,</p><p> </p><p>I have 3 level of hierarchies in my outline for which i have 3reports(one for each) . The reports have the same layout andthe only difference is that the users can see data according to thelevel of their access.</p><p> </p><p>

  • Custom reports / edit existing reports

    I would like to edit some existing reports in Service Desk. Many report do what I'm looking for except for one thing. All 'closed reports' report the closed/resolved step in the workflow. We have a validation step on which I would like to report. How

  • Opening Mail in PC format on a iMac?

    I have a Microsoft "live.com" email address. Is it possible to open my PC emails on my Mac?