Maintenance View - Disable cells

Hi All,
This is my requirement for the maintenance view. I am using this view as part of cluster view.
I have around 6 key fields for this view. 3 of them are subset fields. But 2 key fields have a lot of combination of values. Hence, we want the user to make an entry for these key fields. I set these fields as input fields in the layout.
One of the remaining key field appears as display only column.
On load, i get the data from a BAdI and populate the rows with these 2 keys fields as editable.
On Save, i save all the records (with values in these editable key fields or initial values). But, now i want to disable entry into these key fields for the saved records.
How can i do this?
Regards,
Rekha

Hi,
look into this thread
Re: SM30 - disable certain rows for editing
in this thread see the reply from Venkat.
If you want to disable all the previous entries from editing, write the logic in PBo module like in the thread.
Regards,
Selva

Similar Messages

  • Disable delete button in a maintenance view

    Hi,
    Does anyone knows how can I disable the delete button in a maintenance view so when a user that is not authorized can´t delete any row, or how can I lock the delete subroutine.
    Thanks!

    Hello Moises
    The problem with this solution is that if you ever need to modify your maintenance view (i.e. regenerate the dynpros because you may want to add new fields) your coding is gone.
    This is not the case if you are using event 19. Below you see same sample coding:
    ***INCLUDE LZUS_SDN_MAINTF01 .  " Function Group with maintenance views
    * Event 19: After Init. Global Variables, Field Symbols, etc.
    * http://help.sap.com/saphelp_nw2004s/helpdata/en/91/ca9f44a9d111d1a5690000e82deaaa/content.htm
    FORM exclude_gui_function.
    * define local data
      DATA: ls_excl   TYPE vimexclfun.
      ls_excl-function = 'DELE'.  " taken from standard GUI-status 'ZULG'
    BREAK-POINT.
      AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
               ID 'BUKRS' FIELD '1000'
               ID 'ACTVT' FIELD '02'.
      IF ( syst-subrc NE 0 ).
        APPEND ls_excl TO excl_cua_funct.
      ENDIF.
      APPEND ls_excl TO excl_cua_funct.  " Just for the purpose of demonstration
    ENDFORM.                    "exclude_gui_function
    Regards
      Uwe

  • Aotu numbering in table maintenance view

    Hi experts,
    Can anybody help me in auto genereating serial number in table maintenance view. I have created table maintanance view for a z table for which first field is serial no. The requirement is this serial number should be auto genereted. increment by 1. I have writeen the code for the same in PAI event, but it getting incremented by number of rows. e.g for secind row counter is incremented by +2. for thrid row it is +3 and so on....
    plz help to achieve consistency .
    Thnks n regards,
    Ashmita Singh

    What happens if the user deletes a recird from the table?
    Suhas,
    Happy New Year
    Disable delete function and provide a deletion indicator. This should be fine right.
    The problem would be when the maintenance dialog is regenerated.
    @OP - So as suggesgted use events.
    Similar threads were discussed before many times. May be you culd search it once.

  • Add field in table maintenance generator screen of maintenance view

    Hi,
    I am having a table with field user-id. I want to generate a maintenance view which will have corresponding user name as input disabled field. Since there are two tables USR21 and ADRP I need to access(not a direct check table) I will have to modify the code generated by the table maintenance generator.
    Problem is that it is having one internal table EXTRACT at table control loop. That internal table cannot be accessed if you write a module inside the table control loop and try to catch. The error coming as EXTRACT is not object of structure and therefore no component. I tried to capture the value of the Loop but could not be successful. Any suggestion please.
    Thanks,
    Atanu

    Hi,
    sample:
          MODULE LISTE_UPDATE_LISTE.
        ENDCHAIN.
    *--->begin of your change
        CHAIN.
          FIELD YTAB1-BILKS .
          FIELD YTAB1-BILKH .
           module check_bewar  ON CHAIN-input. "your checks
        ENDCHAIN.
    *-----> end of your change
      ENDLOOP.
      MODULE LISTE_AFTER_LOOP.
    ->  module check_bewar  is in an includ z123_INCL
    Regards Andreas

  • In Maintenance View - Pushbutton called 'POSITION' - f4 help issue

    Hi all,
      A Maintenanve view was created for a Table with some 15 columns.This table contains 2 key fields and for first  key field there is a Search help created in another table which contains this same fieid as key field.The second key field does not contain any search help.
    This Maintenance view is used in another program.When viewing this Maintenance view there is pushbutton called 'POSITION'. 
    When clicked on this POSITION  a POP-UP appears with this 2 key fields.F4 Help on these fields shows all fields from the table.
    The second key field contains 3 fixed value in domain.
    Need to restict the F4 VALUE HELP .How can I implement this.
    With thanks,
    Dina.

    HI Dina,
    Recently I have done this.Please find the below code. Here in SVAL structure there is a field NOVALUEHLP. Please enable or disable this field according to your requirement.
    DATA:   IT_FIELDS TYPE STANDARD TABLE OF SVAL WITH HEADER LINE,
           popup_title type string,
           returncode type c,
           lv_emp_cc type bukrs,
           lv_sold_to_cc type bukrs,
           lv_nw_so type AUFNR,
           lv_SMS_CON type NUM7,
           lv_EMP_NO type NUM8,
           lv_SMS_ORG type NUM7,
           lv_ACTIVITY type VORNR,
           lv_ZCOSTALLOC type ZCOSTALLOC.
           POPUP_TITLE = 'Select entry'.
           REFRESH: IT_FIELDS.
           CLEAR: IT_FIELDS, returncode.
           IT_FIELDS-TABNAME    = 'ZCRM_MUS_DERIV'.
           IT_FIELDS-FIELDNAME  = 'EMP_CC'.
           IT_FIELDS-FIELD_ATTR = ' '.
           IT_FIELDS-FIELD_OBL  = ' '.
           APPEND IT_FIELDS.
           CLEAR it_fields.
           IT_FIELDS-TABNAME    = 'ZCRM_MUS_DERIV'.
           IT_FIELDS-FIELDNAME  = 'SOLD_TO_CC'.
           IT_FIELDS-FIELDTEXT = 'Sold to CC'.
           IT_FIELDS-FIELD_OBL  = ' '.
           APPEND IT_FIELDS.
           CLEAR it_fields.
            IT_FIELDS-TABNAME    = 'ZCRM_MUS_DERIV'.
            IT_FIELDS-FIELDNAME  = 'NW_SO'.
            IT_FIELDS-FIELD_ATTR = ' '.
            IT_FIELDS-FIELD_OBL  = ' '.
            APPEND IT_FIELDS.
            CLEAR it_fields.
           CALL FUNCTION 'POPUP_GET_VALUES'
             EXPORTING
               NO_VALUE_CHECK  = 'X'
               POPUP_TITLE     = POPUP_TITLE
               START_COLUMN    = '5'
               START_ROW       = '5'
             IMPORTING
               RETURNCODE      = RETURNCODE
             TABLES
               FIELDS          = IT_FIELDS
             EXCEPTIONS
               ERROR_IN_FIELDS = 1
               OTHERS          = 2.
           IF SY-SUBRC <> 0.
               "No action required.
           ENDIF.

  • Get db view of maintenance view

    Hi. I am quite new to ABAP and i have to create a program that will replace some SPRO customizing. The idea is that for Time sheet customizing, the user will update the tables without transport, directly in productive system.
    Now, because i do not want to do everything from scrach, i want to use some of the views provided by SAP standard to be used in my program for update / delete / insert, but the problem is that those views are maintenance views (Exemple : V_TCATX_LEVE2TYP ).
    Can i find the database view linked to this maintenance view ?
    Thank you,
    Cristian.

    There is not a database view linked to a maintenance view, the maintenance view are programmatically interpreted and not maintained at database level.
    So go to SE11 and create a database view (if possible) or program the join/select in your program.
    Proposal
    - Copy the view(s) as Z-view and generate new maintenance dialogs without transport
    - Try to call FM like VIEW_GET_DATA or VIEW_MAINTENANCE_NO_DIALOG to get and update the data disabling the transport
    - Fully develop a new program
    Regards

  • Maintenance Views

    I'm currently calling the maintenance view for a table with the followning code:
    CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
        EXPORTING
          action    = p_action
          view_name = p_tabname
        EXCEPTIONS
          OTHERS    = 1.
    However I would like to disable the user from creating new entries, allowing them only to modify existing records. Is there any standard functionality to acheive this or will it require a bespoke solution?

    With the parameter ACTION, you specify the processing action to be performed. Possible actions are:
    S = Display
    U = Change
    T = Transport
    However even from SM30 Maintain allows you to Create new entries and the same is true theough this FM also.
    You may have to have a little workaround to tackle this probably.
    Edited by: Ankesh on Jan 20, 2009 8:19 PM

  • Hiding a Maintenance View in a View Cluster

    Hello ABAP Experts,
    We have a scenario where we would like to hide a maintenance view to an existing view cluster based on condition.
    Is it possible via events of a view cluster, where i can hide the view at runtime based on some condition before the view cluster is displayed ?
    Is there any way as well, which help achieve this hiding of views ?
    For example in the below View Cluster, i would like to hide "Define object links" view from the main view cluster "Define document Types".
    Thanks,
    Naresh

    Hi Naresh,
    Yes, you can do it in events of a view cluster, define a subroutine and bounding it to event(02) in SE54,
    when you define the subroutine, it will ask you creat a mian program, in this main program, you need  'INCLUDE lsvcmcod'.
    Then you can access some standard data, http://help.sap.com/saphelp_nw04/helpdata/en/62/c302c7de8e11d1a5960000e82deaaa/frameset.htm
    INCLUDE lsvcmcod.
    FORM yourSubroutineName.
    DATA: viewname TYPE vclstruc-object,
            error_flag TYPE vcl_flag_type,
      viewname = 'ZTEST_VIEW1'.
    *  PERFORM vcl_set_table_access_for_obj USING    viewname
    *                                       CHANGING error_flag.
      ----> according your condition to change the view.
    IF xxx = yyy.
      DELETE vcl_struc_tab WHERE object = viewname.
    ENDIF.
    ENDFORM.
    regards,
    Archer

  • Possibility to edit datasets, when there is already a maintenance view?

    Hello again,
    is it right that I can modify datasets even when there exists a generated maintenance view for the table?
    It was usual for me, that in the transaction SE16 don't allow that.
    Thank you for your answers!
    Melanie

    Depends on the setting for "delivery and maintenance" in SE11, should be set to "allowed with restrictions" for the underlying tables of the view. Also check the very good F1 help for this field.
    Thomas

  • Can I use classes and methods for a maintenance view events?

    Hello experts,
    Instead of perform/form, can I instead use classes and methods, etc for a given maintenance view event, lets say for example I want to use event '01' which is before saving records in the database. Help would be greatly appreciated. Thanks a lot guys!

    Hi viraylab,
    1. The architecture provided by maintenance view
       for using EVENTS and our own code inside it -
       It is provided using FORM/PERFORM
       concept only.
    2. At this stage,we cannot use classes.
    3. However, inside the FORM routine,
       we can write what ever we want.
       We can aswell use any abap code, including
       classes and methods.
      (But this classes and methods won't have any
       effect on the EVENT provided by maintenance view)
    regards,
    amit m.

  • How to create a variant to a maintenance view (trans: SM31)

    Hi gurus.
    I have created a maintenance view (called z_jest). By running it from SM31 there is a variant option. However, I am not able to create the variant which I want to filter a selection upon in this transaction.
    I have even looked into transaction SE54 and created a variant for the maintenance table view there( called z_jestv). Then going back to transaction SM31 and view z_jest, i push 'Variant' radiobutton and type as variant: 'z_jestv', I only get the message: "Variant z_jestv for object z_jest does not exist".
    Can anybody please advice on how to create and/or connect the variant to the maintenance view?
    Regards LL.

    Hi Mahalakshmi
    Thanks for reply.
    When I look into the procedure, there is a prerequisite: "The basis dialog for which the maintenance variant is created already exists."
    I am a little bit unsertain if I miss this 'Basic dialog'. Can you please advice on how to check / create this 'basic dialog' before I go on to create the variant. (I need this 'basic dialog' as input in the procedure you sent.)
    (Note: I have already created a 'maintenance dialog' for the view, but I have a feeling, that is something different...)

  • How to create transaction for a maintenance view, Thank you.

    How to create transaction for a maintenance view,
    Thank you.
    deniz...

    Hi Deniz,
    Go to se93.
    Then create the new T.code.
    Under that select parameter Transaction.
    Then give the sm30 in the t.code in default values tab.
    check the checkbox skip initial screen.
    in classification tab.
    click checkbox inherit gui attributes..
    Now below..
    In the default values..
    select
    viewname and give ur table name.
    UPDATE= Xsave
    view - table name ( Should be upper case
    update X ( should be upper case).
    http://www.sap-basis-abap.com/sapbs011.htm
    Hope this helps you.
    Regards,
    Viveks

  • Using DYNP_VALUES_UPDATE with a Maintenance View

    Hi,
    I am using a maintenance view to insert values into a table. When user creates a new entry, based on the value provided for a field,I need to fill a read-only field. In PAI, when user enters a value for one field, I am using FM 'DYNP_GET_STEPL' to  get the current line and then DYNP_VALUES_UPDATE to fill the contents to the read-only field. But this does not seem to work. Any idea?
    Regards
    Rachana

    Hi Tamas,
    I tried both the options suggested by you.
    I am updating the underlying structure, still its not visible when the screen loads again. But if you see the same field gets filled with DYNP_VALUES_UPDATE if an F4 help is used for teh first(editable) field and then my read-only field is also filled in the PROCESS ON VALUE REQUEST module.
    So my guess is that, since it is a table control, it loops through the rest of the table control which is empty and my underlying structure gets cleared. So the problem could be where I am actually filling the field.
    Is it possible to somehow fill the <EXTRACT> table so that teh value is not lost?
    Regards
    Rachana

  • Read Only access for a Maintenance view

    Hi All,
    I have a requirement like this.
    There is a Z Maintenance View (namely ZVHR_GRD_TARGET), for this i have to maintain the status as Read Only, and have to create a transaction code for this view with only SE16 access.
    I am doing like this.
    In the Z view, in the tab "Maint. Status", i have selected the radio button "Read Only" and saved it.
    I have created a transaction code for this view with SE16 access with the inputs
    Transaction                                                           SE16
    Selected the check box "Skip Intial Screen"
    Selected the check box for GUI status
    Name of the Screenfield                                          DATABROWSE-TABLENAME
    value                                                                      ZVHR_GRD_TARGET (i.e, view name)
    But the transaction code is not executing.
    So can any help me out in the requirement
    Regards
    Srinivas Kodukula

    Anchorage,
    Please refer to the following link:
    Read Only Schema in Oracle APPS 11i
    http://oracle.anilpassi.com/read-only-schema-in-oracle-apps-11i.html
    You may also search this forum as the same topic was discussed here many times before.

  • How to use table maintenance view in module pool screen

    hi ,
    want to use table maintenance view in a module pool screen so that i can edit, insert, delete and update date in to the ztable.please help.

    You can simply call it via SM30.   Or you can call the table maintence view from any program(report or module pool) using a function module.
      call function 'VIEW_MAINTENANCE_CALL'
           exporting
                action                       = 'U'
                view_name                    = 'Z_Table_Name'
           exceptions
                client_reference             = 1
                foreign_lock                 = 2
                invalid_action               = 3
                no_clientindependent_auth    = 4
                no_database_function         = 5
                no_editor_function           = 6
                no_show_auth                 = 7
                no_tvdir_entry               = 8
                no_upd_auth                  = 9
                only_show_allowed            = 10
                system_failure               = 11
                unknown_field_in_dba_sellist = 12
                view_not_found               = 13
                others                       = 14.
    Regards,
    RIch Heilman

Maybe you are looking for