Disable EDIT in Maintenance View - How ?

I coded this function in PBO.
There are 2 screens.
0100 - all records listing
0200 - double click on the record in 0100 screen and then, go into specific record details.
i allow modification in  this screen.
MODULE disable_inputs OUTPUT.
If SY-DYNNR eq '0100'.
   LOOP AT SCREEN.
      screen-input = '0'.
      screen-active = '0'.
    ENDIF.
   ENDLOOP.
   modify screen.
endif.
ENDMODULE.                 " disable_inputs  OUTPUT
Can somebody enlighten me on how to disable edit in the first screen ?
Thanks.

Try to change this way
MODULE disable_inputs OUTPUT.
If SY-DYNNR eq '0100'.
LOOP AT SCREEN.
screen-input = '0'.
screen-active = '0'.
modify screen.   " <<<<
ENDLOOP.
endif.
ENDMODULE.

Similar Messages

  • Maintenance view:  how to read EXTRACT and TOTAL table

    Hi, All,
    I created a maintenance view, as stated in the documentation, there are 2 internal tables EXTRACT and TOTAL available in running environment. Now I want to read a record from the internal table by using "READ TABLE...."
    In my example: the table strucutre has  A, B, C 3 fields.
    So I tried to use "READ TABLE EXTRACT with key A=' xyz' assigning <fs>", in this case, the syntax check shows error saying that the specified type has no structure and no component can be called.
    So how can I search a row in the table EXTRACT and TOTAL by giving a field value? Is there any other way to get data from the table?
    Thank you!

    Hi Yongying,
    I know this is an old post, but, may be this is still helpful for you or for others with the same problem.
    Just add the option "CASTING" at the end of your READ statement:
    "READ TABLE EXTRACT with key A=' xyz' assigning  must be full typed or at least, be of the same type of the Z table from which is generated the itab EXTRACT.
    Regards,
    José Gabriel.

  • How to Extract Data for a Maintenance View, Structure and Cluster Table

    I want to develop  3 Reports
    1) in First Report
    it consists only two Fields.
    Table name : V_001_B
    Field Name1: BUKRS
    Table name : V_001_B     
    Field Name2: BUTXT
    V_001_B is a Maintenance View
    For this one I don't Find any Datasource
    For this Maintenance View, How to Extract the Data.
    2)
    For the 2nd Report also it consists Two Fields
    Table name : CSKSZ
    Field Name1: KOSTL (cost center)
    Table name : CSKSZ
    Field Name2: KLTXT (Description)
    CSKSZ is a Structure
    For this one I don't Find any Datasource
    For this Structure How to Extract the Data
    3)
    For the 3rd Report
    in this Report all Fields are belonging to a Table BSEG
    BSEG  is a Cluster Table
    For this one also I can't Find any Datasource,
    I find very Few Objects in the Datasource.
    For this One, How to Extract the Data.
    Please provide me step by step procedure.
    Thanks
    Priya

    Hi sachin,
    I don't get your point can you Explain me Briefly.
    I have two Fields for the 1st Report
    BUKRS
    BUTXT
    In the 2nd Report
    KOSTL
    KLTXT
    If I use  0COSTCENTER_TEXT   Data Source
    I will get KOSTL Field only
    what about KLTXT
    Thanks
    Priya

  • Maintenance view problem "No data maintenance Authorization; Display only"

    Maintenance view problem
    <b>Question 1>>>></b>
    > I have created a table with Display/maintenance allowed and technical setting Data class - APPL0 (master data, transparent tables).
    >> Then I have created a maintenance view thought utilities->table maintenance generator where i have specified the Authorization group as &NC& (w/o auth. group)
    ->and also created a function group and specified in the maintenance screen-> I have selected maintenance type as one step-> i have given the overview screen number->and in Recording routine i have selected - no, or user ,recording routine.
    >>> Now when i go to transaction SM30  and put the table name and press on maintain button I get a information box saying "<b>No data maintenance Authorization; Display only"....</b> and it only displays the data.
    my problem is I want to enter data through maintenance view (SM30).
    <b>2nd Question >>>></b> once i create a function group for maintenance view how can i assign a transaction for this. <i>(as if i do it as we do for a module pool program it gives me error)</i>Thank you.
    kailash

    SE93.  Enter a transaction name.  Create.  In the pop up enter a title and select 'Transaction with parameters'.
    Next screen fill the following;
    Transaction 'SM30'
    Check 'Skip first screen'
    In the table control at the bottom of the screen
    Name of screen field 'VIEWNAME'
    Value <your table name>
    Name of screen field 'SHOW'
    Value 'X'
    Save.
    Job done.

  • How I disable my textbox at view time and Enable only when insert or edit t

    hi master
    Sir i have master detail form and i am not use toolbar i am usint my button add/edit/view/next/last and other
    sir my requirement is all textbox disable at view time enable ony edit or inserting time
    how I disable my textbox at view time and Enable only when insert or edit time.
    i use this
    if :system.form_status='change' then
    if :system.form_status='insert' then
    if :system.form_status='execute query' then
    but not right work
    please give my idea where i use what statment
    send me sample
    Aamir

    Aamir,
    Set the text item's Enabled property to False at design time. Then, using SET_ITEM_PROPERTY (see Forms Help), set to Enabled in the relevent part of the code on the WHEN-BUTTON-PRESSED triggers on your Insert and Update buttons. Similarly, disable on your Save button once the cnahges are saved etc.

  • 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

  • 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

  • How to extract data from maintenance view

    Hi experts,
    How can I select the data from maintenance view. As you know select query doesn't work on the maintenance view. And View name will be known at run time only.
    Thanks
    Yogesh Gupta

    > Let me tell you that I am a SAP certified ABAP consultant having experience of 4.5 years.
    I suspect that we will be hearing more comments about that.
    > Whatever question I asked can't be replied with the basic training (if yes please tell me even one).
    Debugging a macro?
    Another one => FM or BAPI to create the Activity Group in 4.0B No answer is possible? You have to be joking!
    And in How to get email ID fo a SAP user you obviously didn't even try Graham's answer!
    > I closed some of the answered questions since I didn't get the answers for them for a long time and SDN site doesn't allow to keep more than 10 questions open.
    The "comment field" is not mandatory. You don't need to flood the forum with your questions again.
    > I do respect your  concerns but I have no intention to abuse this site as it has been very helpful for me.
    That is the most important part. Thank you. But you seem to be unaware of the "search" functionality.
    If you can imagine that you are not the first person to ask a certain question, then you can be sure that someone else already has and you can find the answers on your own. If you still have doubts, then ask a specific question providing the details.
    Based on your other questions, you are on release 4.0B. Is that still correct?
    Cheers and thanks for responding,
    Julius
    Edited by: Julius Bussche on Jan 23, 2009 12:06 AM

  • How Can I Include a Transaction in Maintenance View

    Hi All,
    Can anybody help me on how can I release transactions to be available to the end user by putting it in maintenance view? There is a request to include the transaction S_ALR_87001487 into the maintenance view put I need to know how can I achieve this.
    Thanks,

    Hi Ahmad,
    Can you please explain clearly.
    Are you asking us on how to create a maintenance view for transaction S_ALR_87001487 . You can create a Z transaction of similar attributes as that of standard one and give authorizations for the ztransactions for which user will be allowed to edit.
    Regards,
    Gautham Paspala

  • Can i hide "Open Web Part Page in maintenance view" link when editing wiki page properties

    I am working on an Enterprisewiki site collection inside SP 2013, and currently when contributor users edit the wiki page properties by going to "Page Option >> Edit Properties" , then will find the following link, named "Open Web Part
    Page in maintenance view" which sound strange :-
    so can anyone advice what is the purpose of this link and how i can remove it ?

    Hi,
    If someone wants to open a wiki page in Web Part maintenance view then they can directly use this link to switch into the view and can directly delete problematic webparts from there.
    To remove this link, you can try below jquery code in Content Editor webpart on Editform.aspx of wiki page library.
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js"></script>
    <script>
    $(document).ready( function (){
    $("a[id$='WebPartMaintenancePageLink']").hide();
    $("a[id$='WebPartMaintenancePageLink']").parent('td').parent('tr').hide();
    </script>
    Thanks. Please mark it as an answer if it helps.

  • How to convert maintenance view 'v_t001k_assign' to inner join tables

    Dear friends,
    I found I could not select the fields of view 'v_t001k_assign' using SQL, and I found there are some tables joined together as below:
    T001     MANDT     =     T001K     MANDT
    T001     BUKRS     =     T001K     BUKRS
    T001K     MANDT     =     TASSIGN_MM_T001W     MANDT
    T001K     BWKEY     =     TASSIGN_MM_T001W     BWKEY
    T001W     MANDT     =     TASSIGN_MM_T001W     MANDT
    T001W     WERKS     =     TASSIGN_MM_T001W     WERKS
    T001W_EXT     MANDT     =     TASSIGN_MM_T001W     MANDT
    T001W_EXT     WERKS     =     TASSIGN_MM_T001W     WERKS_EXT
    So how to convert this maintenance view 'v_t001k_assign' to inner join tables for SQL selection?
    Thanks a lot!
    Edited by: Qiwei Yin on May 27, 2009 10:35 AM

    Hi,
    You should use the 'Search help exit' to select the data for yourself from the database. Go into the search help maintenance screen and press F1 on field 'search help exit'; follow the links. There is actually a pretty good documentation.
    Regards, Gerd Rother

  • How to deselect refrence table fields in Maintenance view.

    Hello,
            Could any one tell me how to deselect all fields here except mara .
    In the first link as below it shows the table selection tab in maintain view window.
    http://postimage.org/image/6701iidlh/
    When i click Relationships after selecting one base table , i get the second link as u see below
    http://postimage.org/image/p7wpknnht/
    I m unable to deselect the referenced tables Could some one throw light on this.
    Thanks
    Edited by: sarat on Nov 23, 2011 11:50 AM

    HI ,
    Find the below thread ,
    Hiding primary key field in Table maintenance generator
    It will help you to deselect refrence table fields in Maintenance view.  
    Regards,
    Saravana.S

  • How to attach two maintenance views to one transaction codes

    Hi
    I have created two master Ztables and also created two maintenance views in SM30 for them.
    Now my req is i have to attach these two maintenace views to one TCODE only Not two transaction codes.
    How i can do that.
    Pls give me some inputs.
    Regs
    Manas Ranjan Panda.

    Hi,
      Goto SE54..Click on the edit cluster view..Enter a cluster view name...Then press the create button..IN the resulting screen you can add multiple maintenance views..
    Check this documentation for creating cluster views..
    http://help.sap.com/saphelp_46c/helpdata/EN/d0/999246b2aa11d1a5700000e82deaaa/frameset.htm
    Once you create the cluster view..
    Then you can a parameter transaction in SE93 with the transaction as SM34 and give the cluster view name ...
    THanks,
    Naren

  • 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

Maybe you are looking for