Mark field as display only.

Dear all,
My requirement is that the description field in material master (MM01) should be made as non editable for all other views except basic data 1 and basic data 2 in the MM02 t.code.
The material description is provided by one department which is responsible for creating of certain type of material whereas the same is changed by other departments who are familiar with their own description - to avoid this the above mentioned requirement is needed.
Can the experts throw some light of how to handle this.
Regards,
M.M

Hi,
You can maintain the setting in OMS9 that this field will be in display mode in all the views so that no further changes can be done once the material is created.
Regards,
Senthilkumar

Similar Messages

  • Marking Fields as display only in SAP ECC

    Hello Experts,
    We have centralization scenario for Vendor master data. We have a requirement that once the Vendor Master data is created in SAP MDM and syndicated to SAP ECC, the ECC users should not be able to change the data for the fields coming from SAP MDM, i.e they should not be able to make change to the field values in  Vendor Master data coming from SAP MDM, through XK01 and XK02. But at the same time these MDM fields should get updated if it is updated by an IDoc.
    Do we have any exits  for Vendor in SAP ECC which can be called during XK01/XK02 which will make the SAP MDM fields non editable from the XK01/XK02 screen.
    Please help.
    Best Regards
    Manoj

    Hi Manoj,
    In the ECC go to the SPRO transacción and find:
    - Financial Accounting / Accounts Receivable and Accounts Payable / Vendor Accounts / Master Data / Preparations for Creating Vendor Master Data / Define Account Groups with Screen Layout (Vendors)
    You need to change the customizing by each Account Group and put the fields that came from MDM in "Display" mode
    Regards
    Daniel

  • Industry sector field for display only.

    Dear All,
    Does anybody know the setting to make Industry sector for display only, so that the enduser cannot change industry sector while creating material.
    I know to hide industry sector from DEFAULTS menu, but i need to freeze that field for display only.
    Regards
    Rang

    Hello Ranganath,
    You can use transaction exit. for more information check this thread.
    Industry sector (MBRSH) field in display mode.
    Hope this helps.
    Regards
    Arif Mansuri

  • How to make 'Overall Limit' field as display only in ME22/ME22N

    Hi,
    I want to make the 'Overall Limit' field as display only in transation ME22/ME22N (only for Service Items).
    I can make the field display only for ALL Service Items by going to:
    SPRO u2013 IMG - Material Management - External Services Management - Define Screen Layout
    and making the 'Overall Limit' display only for PT1 (Blanket Items). But this also stops any entry into this field even for creation of Purchase Orders! When I try the same thing for ME22 (Change Purchase Order) it does not work.

    Hi
    You can make it greyed out like this:
    Go to materials management -> external service management -> define screen layout -> copy field selection key ME22 -> enter new key as ME22N -> choose category of field selection to 2 -> click on value limit -> make overall limit as display.
    Then for Tcode ME22N, this field will be greyed out.
    Thanks

  • Making a field as display only in custom Infotype.

    Hi,
    I have to a requirement to make a field as display only in a custom infotype. This field should be greyed out while entering data via PA30 for any employee such that it wont allow to eneter data manually but it gets updated by a program. And also this field should have a default value , say, NO.
    Please help me as this is too urgent.
    Regards,
    Binay.

    Hi Binay
    Please go to Screen Painter SE51 for your custom infotype program MP9XXX00
    9XXX - infotype number.
    Go to Layout editor for your Single screen (Screen Number 2000)
    Double click on the field you want to make display only
    In the screen attributes DISPLAY OPTIONS for that field choose "Output Only"
    Activate Layout.
    If you want to code something to be populated for the field code in PAI or PBO modules in the Module pool program
    Its very easy.

  • Multi Language- Picklist fields are displayed only one language for Reports

    Hi!
    I am working on Siebel On Demand with Multi Language (English and Spanish) and it works well for web interface, the automatic translation for picklist works properly.
    However when I create any report (with any Record Type) the fields setup with picklist are displayed only in spanish language even though I am on English mode.
    Have you any reference(s) or previous experience(s) on that?
    Thanks in advance
    Mtb

    Hi,
    in reports the language of the picklists corresponds always to the company default language.
    The only solution I now (its really static and not so nice):
    Create one report per language and change the picklist field by using CASE statements...you see its hard to refresh if you have lots of values :)
    cheers
    Myriam

  • Marking Fields as Read-Only After Digitally Signing Issues

    I am creating a PDF form that contains several digital signatures.  I am selecting a signatures and am in the property options for that specific signature looking at the "Signed" tab.  I select, Mark as read only, than choose "Just these Fields.
    When I select "pick" a new box opens that lists all the fields in my form with a check box next to each.  It appears that I can select the fields I want to mark as read only, however, when I attempt to check a box, nothing.  I can select "select all" and all the firlds become checked, but I cannot check individual fields.
    Any thought on what might be going on?

    Hi Thomas,
    Any chance you could share the PDF file if I gave you an e-mail address?
    Steve

  • Making field as Display only

    Hi Experts,
    I am trying to grey out the Assignment field in FB01 transaction based the value provided in Documnet type in FB01 mail screen.
    When ever user enters Document type as 'ZZ', then Assignment field should be grey out in next screen.
    I tried to create field-exit for this, but this exit is triggered in PAI of the FB01 main screen.
    Can any one help me out on this issue.
    Regards,
    Sriram

    Sriram,
    This cannot be achived directly on the standard FB01 screen without modifying the SAP standard module behind FB01 simply because there is no screen-exit for FB01, at least none that I could find.
    SAP gives cutomer option to control header/line-item fields through BADI/User-exits while posting documents, <u>only when</u> document is posted via a report/interface which uses a BAPI (BAPI_ACC_DOCUMENT_POST) or a FM (POSTING_INTERFACE_DOCUMENT) either in background or foreground processing.
    I think for what you are trying to do, your process needs to change from the standard. If you develop an interface for users to post documents using the FM/BAPI above in foreground, then you can use the Exit/BADI to control the line item fields. In that case you could almost do anything upon checking your condition.
    Cheers,
    Syd.

  • ME22N - Make fields display only.

    Hi gurus,
    I have the following requirement I don`t know how to solve so well...
    We´ve created a new purchase order type and we need a little special behaviour for it.
    At creation (ME21N) all fields must be ready for input, in the same way that the other PO types.
    However, in modification (ME22N) we need some fields unavaible for input, just display.
    This fields are: Payment Terms (At header level) and Delivery Date (At Position level).
    I've trying some user-exits, but I havent found the way to implement this behaviour.
    Because of that, I`ve trying to let the fields available for input in ME22N and check values at save, showing a message in case of changes. Could anybody recommend me which user-exit use for this verifications?
    Once again, a lot of thanks!

    Hi Ole,
    Did you tried screen variants.Please check this lik want to make few fields as display only in ME21N Check this and tell if need more hlep in this.
    Regards,
    Madhu.

  • Make Scrap portion field in production order header as display only

    Hi Experts,
    We have a requirement to make scrap field(CAUFVD-GASMG) in production order header as display field only. We do not want users to enter any values here to denote the quantity scrapped in production orders. I am not aware of any configuration to make this field as display only. Please let me know which user exit or BADI available for this purpose. We do not want to use any screen variants and transaction variants and would like to restrict this at order type or plant level.
    Thanks
    Rijil

    Hello Rijil,
    If not with variants than check with enhancement.
    PPCO0006  Enhancement to specify defaults for fields in order head
    PPCO0012  Production Order: Display/Change Order Header Data
    PPCO0018  Check for changes to production order header
    Regards,

  • Blocking Profit Center field in MM02 (making it display only)

    Hi,
    I have a query, We have blocked via authorizations all views in MM02 except for the "Sales: General/Plant" view, so now we need to know how to make the Profit Center field a display only so that we can assign a role for people who will change the Serial Number Profile field only using MM02.
    If MARC-PRCTR in OMS9 is set as display only for MM02 can it be possible to for the master data team to still have change access to for the Profit Center field.
    Your assistance is appreciated.
    Rendani

    Thanks Sarita for your input, my problem is nearly next to the solution state.
    Could you please tell me how I can make the field lock relevant, I don't have a lot of SAP experience so a detailed response will be welcome. Whether it also involves authorizations as well.
    Many thanks.
    Regards,
    Rendani

  • Setting values to Display Only item during AJAX request

    Hello,
    Good Morning!
    In a master-detail form, in the detail report, I am populating two columns SERVICE_TAX_PCT and SERVICE_TAX_AMOUNT by making an AJAX request after selection of ACCOUNT_CODE.  Values are populated with out any issue. 
    However, as soon as I make those two fields as Display Only, the values are not getting set.  Is there a way to set the values to a field in the same time it should be restricted for user to change it?
    (APEX 4.2.6)
    Thanks,
    -Anand

    Hi Anand,
    anand_gp wrote:
    Hello,
    Good Morning!
    In a master-detail form, in the detail report, I am populating two columns SERVICE_TAX_PCT and SERVICE_TAX_AMOUNT by making an AJAX request after selection of ACCOUNT_CODE.  Values are populated with out any issue.
    However, as soon as I make those two fields as Display Only, the values are not getting set.  Is there a way to set the values to a field in the same time it should be restricted for user to change it?
    (APEX 4.2.6)
    check the example
    Step 1: Edit your page
    under CSS->Inline put the code given below
    .row_item_disabled {
       cursor: default;
       opacity: 0.5;
       filter: alpha(opacity=50);
       pointer-events: none;
    Step 2 : I guess you have Javascript function similar like given below
    you have to extract rowid first, for which you want to set the percentage , see line 6
    and see line 18, for disabling the column of that row.
    <script type="text/javascript">
       function f_fetch_tax_percentage(pThis) {
       var ajaxRequest;
       var ajaxResult;
       var row_id = pThis.id.substr(4);
       var percentage    = 'f05_' + row_id;   // replace f05 with the rowid of percentage column
       ajaxRequest = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=TAX_DTLS',0);
       ajaxRequest.addParam('x01',$v(pThis));
       ajaxResult = ajaxRequest.get();
       if ( ajaxResult.length > 0 ) {
       // set percentage
       $('#'+percentage).val(parseFloat(ajaxResult));
       // disable percentage column
       $("#f05_" + row_id).attr("readonly", true).addClass('row_item_disabled');        
    </script>
    Hope this helps you,
    Regards,
    Jitendra

  • Display only cell in ALV Grid in OO

    Hi Folks,
    Hope someone can help me with this little issue.  I have a series of columns in my ALV grid that are editable, but I need to a) make some of the cells on specific lines uneditable and b) display time based fields on this line as blank (presently they shoe 00:00:00). 
    For problem a) I have set the layout style frame as 'cellstyles' 
        es_layout-stylefname = 'CELLSTYLES'.
    I have also set the edit flag in the field catalog for the individual columns to 'X' eg     
         WHEN 'CUSTTS_DATE_N'.
              ls_fieldcat-edit = 'X'.
    And coded:
           gwa_stylerow-fieldname = 'CUSTTS_DATE_N'.
          gwa_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
          APPEND gwa_stylerow TO gt_stylerow.
          wa_delivery_list-cellstyle[] = gt_stylerow[].
          APPEND wa_delivery_list TO it_delivery_list.
    Yet, the ALV cells are still being displayed as editable.  Can't for the life of me figure out what's missing.  The only other thought I had around this is that the wa_delivery_list-cellstyle table is being set in the data extraction code, before the ALV grid is built, and that the cell formats are being overwritten/on not being called by the field catalog entries.  Any thoughts on how to make these fields/cells display only when the ALV is first displayed would be greatly appreciated.
    As for option b) I'm clueless, as the cell style commands are not being picked up (see problem a.).  Again any thoughts would be appreciated, and points will be rewarded for solutions/suggestions that lead to solutions.
    Cheers,
    Stephen Keam

    Hello Stephen
    I have created a simple report ZUS_SDN_ALV_EDITABLE_1B which shows how to use editability on cell level.
    The crucial parts of the coding for your requirements are shown below, followed by the entire report.
      READ TABLE gt_fcat INTO ls_fcat
           WITH KEY fieldname = 'UPTIM'.
      IF ( syst-subrc = 0 ).
        DELETE gt_fcat INDEX syst-tabix.
        ls_fcat-no_zero = abap_true.  " suppresses 00:00:00
        INSERT ls_fcat INTO gt_fcat INDEX 7.
      ENDIF.
    *&      Form  SET_CELL_EDITABLE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM set_cell_editable .
    * define local data
      DATA: ld_idx      TYPE i,
            ls_outtab   TYPE ty_s_outtab,
            ls_style    TYPE lvc_s_styl.
      LOOP AT gt_outtab INTO ls_outtab.
        ld_idx = syst-tabix.
        REFRESH: ls_outtab-celltab.
        " NOTE: if you change the year of column ERDAT to 2008 then two columns will become non-editable
        IF ( ls_outtab-erdat+0(4) = '2008' ).
          CLEAR: ls_style.
          ls_style-fieldname = 'UPDAT'.
          ls_style-style     = cl_gui_alv_grid=>mc_style_disabled.
          INSERT ls_style INTO TABLE ls_outtab-celltab.
          CLEAR: ls_style.
          ls_style-fieldname = 'UPTIM'.
          ls_style-style     = cl_gui_alv_grid=>mc_style_disabled.
          INSERT ls_style INTO TABLE ls_outtab-celltab.
        ELSE.
        ENDIF.
        MODIFY gt_outtab FROM ls_outtab INDEX ld_idx
          TRANSPORTING celltab.
      ENDLOOP.
    ENDFORM.                    " SET_CELL_EDITABLE
    *& Report  ZUS_SDN_ALV_EDITABLE
    *& Thread: Display only cell in ALV Grid in OO
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="765083"></a>
    * Flow logic of screen '100' (no elements, ok-code => gd_okcode ):
    **PROCESS BEFORE OUTPUT.
    **  MODULE STATUS_0100.
    **PROCESS AFTER INPUT.
    **  MODULE USER_COMMAND_0100.
    *& GUI-Status: ok-codes BACK, EXIT, CANC
    REPORT  zus_sdn_alv_editable_1b.
    TYPE-POOLS: abap.
    CONSTANTS:
      gc_tabname       TYPE tabname  VALUE 'KNB1'.
    TYPES: BEGIN OF ty_s_outtab.
    INCLUDE TYPE knb1 AS knb1.
    TYPES: celltab    TYPE lvc_t_styl.
    TYPES: END OF ty_s_outtab.
    TYPES: ty_t_outtab    TYPE STANDARD TABLE OF ty_s_outtab
                          WITH DEFAULT KEY.
    DATA:
      gd_okcode        TYPE ui_func,
      gd_repid         TYPE syst-repid,
      gt_fcat          TYPE lvc_t_fcat,
      gs_layout        TYPE lvc_s_layo,
      gs_variant       TYPE disvariant,
      go_docking       TYPE REF TO cl_gui_docking_container,
      go_grid          TYPE REF TO cl_gui_alv_grid.
    DATA:
      gs_outtab        TYPE ty_s_outtab,
      gt_outtab        TYPE ty_t_outtab,
      gt_outtab_pbo    TYPE ty_t_outtab.
    DATA:
      gd_answer        TYPE c.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler  DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_data_changed
             FOR EVENT data_changed OF cl_gui_alv_grid
                 IMPORTING er_data_changed.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_data_changed.
        " Just trigger PAI followed by PBO
        CALL METHOD cl_gui_cfw=>set_new_ok_code
          EXPORTING
            new_code = 'REFRESH'
    *        IMPORTING
    *          rc       =
      ENDMETHOD.                    "handle_data_changed
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    START-OF-SELECTION.
      SELECT * FROM  (gc_tabname) INTO CORRESPONDING FIELDS
                                  OF TABLE gt_outtab UP TO 99 ROWS.
      gt_outtab_pbo = gt_outtab.  " set PBO data
      PERFORM init_controls.
    * ok-code field = GD_OKCODE
      CALL SCREEN '0100'.
    END-OF-SELECTION.
    *&      Form  INIT_CONTROLS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM init_controls .
    * Create docking container
      CREATE OBJECT go_docking
        EXPORTING
          parent = cl_gui_container=>screen0
          ratio  = 90
        EXCEPTIONS
          OTHERS = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Create ALV grid
      CREATE OBJECT go_grid
        EXPORTING
          i_parent = go_docking
        EXCEPTIONS
          OTHERS   = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      " NOTE: not required
    *  set handler:
    *    lcl_eventhandler=>handle_data_changed for go_grid.
    * Build fieldcatalog and set hotspot for field KUNNR
      PERFORM build_fieldcatalog.
      PERFORM set_layout_and_variant.
      PERFORM set_cell_editable.
    *§3.Optionally register ENTER to raise event DATA_CHANGED.
    *   (Per default the user may check data by using the check icon).
      CALL METHOD go_grid->register_edit_event
        EXPORTING
          i_event_id = cl_gui_alv_grid=>mc_evt_enter.
      SET HANDLER: lcl_eventhandler=>handle_data_changed FOR go_grid.
    * Display data
      CALL METHOD go_grid->set_table_for_first_display
        EXPORTING
          is_layout       = gs_layout
          is_variant      = gs_variant
          i_save          = 'A'
        CHANGING
          it_outtab       = gt_outtab
          it_fieldcatalog = gt_fcat
        EXCEPTIONS
          OTHERS          = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * NOTE:
    * Documenation of I_SAVE ("An Easy Reference for ALV Grid Control")
    *I_SAVE
    *Determines the options available to the user for saving a layout:
    *? 'X': global saving only
    *? 'U': user-specific saving only
    *? 'A': corresponds to 'X' and 'U'
    *? SPACE: no saving
    * Link the docking container to the target dynpro
      gd_repid = syst-repid.
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = gd_repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " INIT_CONTROLS
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      " NOTE: retrieve changed data from frontend (grid control) into
      "       the backend (itab in ABAP)
      go_grid->check_changed_data( ).
      CASE gd_okcode.
        WHEN 'BACK'  OR
             'EXIT'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'REFRESH'.
          PERFORM set_cell_editable.
          " NOTE: Refresh required
          CALL METHOD go_grid->refresh_table_display
    *        EXPORTING
    *          is_stable      =
    *          i_soft_refresh =
    *        EXCEPTIONS
    *          finished       = 1
    *          others         = 2
          IF sy-subrc <> 0.
    *       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
        WHEN 'SAVE'.
          IF ( gt_outtab = gt_outtab_pbo ).
            MESSAGE 'No data changed' TYPE 'S'.
          ELSE.
            CLEAR: gd_answer.
            CALL FUNCTION 'POPUP_TO_CONFIRM'
              EXPORTING
    *             TITLEBAR                    = ' '
    *             DIAGNOSE_OBJECT             = ' '
                text_question               = 'Save data?'
    *             TEXT_BUTTON_1               = 'Ja'(001)
    *             ICON_BUTTON_1               = ' '
    *             TEXT_BUTTON_2               = 'Nein'(002)
    *             ICON_BUTTON_2               = ' '
    *             DEFAULT_BUTTON              = '1'
    *             DISPLAY_CANCEL_BUTTON       = 'X'
    *             USERDEFINED_F1_HELP         = ' '
    *             START_COLUMN                = 25
    *             START_ROW                   = 6
    *             POPUP_TYPE                  =
    *             IV_QUICKINFO_BUTTON_1       = ' '
    *             IV_QUICKINFO_BUTTON_2       = ' '
              IMPORTING
                answer                      = gd_answer
    *           TABLES
    *             PARAMETER                   =
              EXCEPTIONS
                text_not_found              = 1
                OTHERS                      = 2.
            IF sy-subrc <> 0.
    *       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
            IF ( gd_answer = '1' ).  " yes
              MESSAGE 'Data successfully saved' TYPE 'S'.
              gt_outtab_pbo = gt_outtab.  " update PBO data !!!
            ELSE.
              MESSAGE 'Action cancelled by user'  TYPE 'S'.
            ENDIF.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  BUILD_FIELDCATALOG
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM build_fieldcatalog .
    * define local data
      DATA:
        ls_fcat        TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
    *     I_BUFFER_ACTIVE              =
          i_structure_name             = gc_tabname
    *     I_CLIENT_NEVER_DISPLAY       = 'X'
    *     I_BYPASSING_BUFFER           =
    *     I_INTERNAL_TABNAME           =
        CHANGING
          ct_fieldcat                  = gt_fcat
        EXCEPTIONS
          inconsistent_interface       = 1
          program_error                = 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.
      ls_fcat-edit = abap_true.
      MODIFY gt_fcat FROM ls_fcat
          TRANSPORTING edit
        WHERE ( key NE abap_true ).
      READ TABLE gt_fcat INTO ls_fcat
           WITH KEY fieldname = 'UPTIM'.
      IF ( syst-subrc = 0 ).
        DELETE gt_fcat INDEX syst-tabix.
        ls_fcat-no_zero = abap_true.  " suppresses 00:00:00
        INSERT ls_fcat INTO gt_fcat INDEX 7.
      ENDIF.
      READ TABLE gt_fcat INTO ls_fcat
       WITH KEY fieldname = 'UPDAT'.
      IF ( syst-subrc = 0 ).
        DELETE gt_fcat INDEX syst-tabix.
        INSERT ls_fcat INTO gt_fcat INDEX 7.
      ENDIF.
      LOOP AT gt_fcat INTO ls_fcat.
        ls_fcat-col_pos = syst-tabix.
        MODIFY gt_fcat FROM ls_fcat INDEX syst-tabix.
        IF ( syst-tabix > 10 ).
          DELETE gt_fcat INDEX syst-tabix.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " BUILD_FIELDCATALOG
    *&      Form  SET_LAYOUT_AND_VARIANT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM set_layout_and_variant .
      CLEAR: gs_layout,
             gs_variant.
      gs_layout-cwidth_opt = abap_true.
      gs_layout-zebra      = abap_true.
    *§3.Provide the fieldname of the celltab field by using field
    *   STYLEFNAME of the layout structure.
      gs_layout-stylefname = 'CELLTAB'.
      gs_variant-report = syst-repid.
      gs_variant-handle = 'GRID'.
    ENDFORM.                    " SET_LAYOUT_AND_VARIANT
    *&      Form  SET_CELL_EDITABLE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM set_cell_editable .
    * define local data
      DATA: ld_idx      TYPE i,
            ls_outtab   TYPE ty_s_outtab,
            ls_style    TYPE lvc_s_styl.
      LOOP AT gt_outtab INTO ls_outtab.
        ld_idx = syst-tabix.
        REFRESH: ls_outtab-celltab.
        IF ( ls_outtab-erdat+0(4) = '2008' ).
          CLEAR: ls_style.
          ls_style-fieldname = 'UPDAT'.
          ls_style-style     = cl_gui_alv_grid=>mc_style_disabled.
          INSERT ls_style INTO TABLE ls_outtab-celltab.
          CLEAR: ls_style.
          ls_style-fieldname = 'UPTIM'.
          ls_style-style     = cl_gui_alv_grid=>mc_style_disabled.
          INSERT ls_style INTO TABLE ls_outtab-celltab.
        ELSE.
        ENDIF.
        MODIFY gt_outtab FROM ls_outtab INDEX ld_idx
          TRANSPORTING celltab.
      ENDLOOP.
    ENDFORM.                    " SET_CELL_EDITABLE
    Regards
      Uwe

  • Form Field Display Only

    Is there anyway within ADDT to specify a form field that is input on insert but display only on update? Marking the field read-only makes it so for both. I would like to let the user input the data, not be able to change it, but still see it for reference.

    If I understood correctly you want to allow the user to input data on insert but only be able to see the field value on update. You can make a form field available on insert/update/or both and have it display as text (so that the user can see if for reference but not be able to change it) by clicking on the Manage Dynamic Form wizard icon in the Developer Toolbox bar and changing the corresponding settings.
    <br />These options however don't cover your scenario as you want the field to be editable on insert only. I tried tweaking the generated ADDT code but it didn't work. The only other way to do this that I can think of would be to add the read-only attribute dynamically, that is on update only. The code to add to the field would simply be:
    <br /><%If Request.QueryString("ID") <> "" Then Response.Write("readonly='readonly'")%>. This code simply checks to see if a record ID is being passed to the dynamic form page and if it is then we know we're on an update page so the readonly field attribute is added (I code in VBScript so the code might be slightly different in your case).

  • Is it possible to display only dynamically selected fields in the out put?

    Is it possible to display only dynamically selected fields in the out put? i need to display set of columns in the selection criteria, but in the output i have display only input given fields. because i need to convert it into .csv file. So i have to display selected fields from internal table. In oracle they are using"execute immediate". is there any equivalent in SAP?
    thanks in advance.

    Hi Remya,
    Are you talking about dynamic programming in ABAP ?
    If yes, there are concepts like RTTS which facilitates it.
    Yes, the select query also supports dynamic selection of fields. ( Please care about ( ) in dynamic sql ).
    Do more research on Field Symbols and statements like ASSIGN COMPONENT OF.
    Regards,
    Philip.

Maybe you are looking for

  • Ipod Classic Re-Formatted In Disk Utility Not Being Recognized

    I last posted about this question 4 months ago on this forum and still havent received an answer that works. My Silver Ipod Classic 80GB was used to update the OS on my computer. Foolishly I partitioned the disk on it using disk utility and updated m

  • Time machine did not back up photos

    When I was preparing to upgrade from Mountain Lion to Mavericks, I heeded advice and purchased an external drive and backed up my iMac with Time Machine.  I was very glad I did, because I encountered the 'There is a problem with your hard disc' messa

  • Retrieve workflow container data in programming exit

    I am trying to use a programming exit in Workflow in order to amend the task container for the receipients field of a "Send Email" step. The reason why we are not determining the receipients in the usual way is because we hold the receipients (amongs

  • HOW TO HOOK TO TV

    How to watch what is on my computer on teh television

  • BR0301E SQL error -1587 at location BrCtlCopy-1, SQL statement:

    Hello Guru's My backup is getting failed...... and the error description as follows, BR0051I BRBACKUP 7.00 (32) BR0189W Expiration period equal 0 - backup volumes could be immediately overwritten BR0055I Start of database backup: behpdcsz.ant 2012-01