About Maintenance View has 2 ZTABLEs

Hello ALL.
I created a Maintenance View has 2 tables.
2 tables are linked to one another with foreign keys.
(2 tables are ZTABLEs.) (Cardinality is 1:1)
I'm trying to entry records using Maintenance view.(SM30)
I can insert new records to 2 tables at the same time,
BUT I can't update records at the same time.
ONLY 1 table (check table) 's data is updated.
I don't know why.
also I can't delete records at the same time.
ONLY 1 table (check table) 's data is deleted.
please let me know how to do.
Thanks.

Hi Rie,
When you define a view maintenance with 2 or more tables, you select fields from each table, and map tables with foreign keys.
When a record of a view is updated, then the view fields are split into the data of the underlying tables, depending on which field comes from which table. Correspondingly, only those tables are affected, whose fields have changed.
This confirms to 2 points -
1) If you have 2 tables in a maintenance view, you must include the key fields of both the tables in the view. If there are common key-fields, you can them from either of the table.
2) If there are other non-key fields which are common, then you can assign them to only one of the tables in the view. But if you like an extended logic to change their values in the other table also, then you must maintain seperate logic to do so. Events!
You can try using an After Save, or any such events.
Regarding events, you will find a lot of documentation and links by searching the forum itself.
Cheers
Rekha

Similar Messages

  • Problem in creating a maintenance view for a ztable

    hi, all, what should I fill in the function group and authorization group and other contents required? thank you in advance, I really confused with it.

    Hi Dawson,
    Go to SE11, give the table name and click on change. Then Go to utilities--> Table
    maintenance generator.
    In the table maintenance generator screen, we should give Authorization Group (to whom this table maintenance should be allowed),
    Function Group name (Function Group name can be same as table name or it should start with 'Z' or 'Y'),
    Maintenance type can be one step or two step, usually we will create with one
    step. we should give maintenance screen number. After clicking on create button,
    a table maintenance generator will be created.
    To check it go to SM30 . In SM30, we find display, Maintain options.
    Function Group: We need to provide a Z function group name, so that SAP generates an module pool program in the background for the table maintenance.
    Authorization Group: To which group of users this table maintenance should be allowed (Eg: MM, SD etc).
    Regards,
    Ramesh

  • Short Dump while scrolling in a maintenance view

    A maintenance view has one field, defined as "Radiobutton".
    1) Select the radiobutton for one entry.
    2) Scroll down so that in the new page (i.e. the entries displayed in the new page) the entry selected in the first step is not visible.
    3) Select any radiobutton again corresponding to any of the entries displayed in the new page.
    4) On scrolling up again the short dump occurs.
    The short dump text says "More than one radio button is active".
    Any inputs in this regards are appreciated.
    Thanks.
    Gajendra.

    Hi,
    that means you are trying to make two radio buttons active.
    parameters: ra radiobutton group g1 default = 'X',
                rb radiobutton group g1.
    ra = 'X'.
    and rb = 'X'.
    in your case so obviously it will dump.
    check your coding..
    and show your code...
    Regards
    vijay

  • Problem in Selection Conditions Maintenance View

    Hello Gurus.
    I've created a maintenance view for a ZTABLE, in this maintenance view in TABLE/JOIN Conditions i defined a relationship beetween my ZTABLE and SKAT.
    Untill this point its fine. But when i go to the tab of selection conditions, there already there two automatic conditions. And i can't edit these conditions.
    Why this is happening?? Anyone knows??
    Thanks in advance

    Hi There,
    Those are the Primary fields or key fields sharing the common data,, This is required to maintain the data consistency. SAP's major strength is its data integrity...
    You will not be able to edit primary keys since these values are maintained in several other tables too. changing at one place and keeping it as is in another table lead to data inconsistency.
    let me know if you have further queries.
    don't forget to rward pionts if found useful.
    Thanks-

  • Event in Maintenance view.

    Hi,
    I need to implement an event for a maintenance view. The maintenance view has a field 'Attribute_type'.There are 7 fixed domain values for this field. The functionality to be achieved is that the user should be able to use 6 values of the domain only once,i,e an error should be thrown if he uses the attribute type again. But the seventh attribute should be allowed to use multiple times.
    This maintenance view is part of the view cluster.
    Could any body please let me know the Event type in maintenance view to be used for this purpose along with similar example implementations available in the system.
    Hope i am clear, if not, please let me know.
    Thanks and regards,
    Sridhar

    [Events in Table Maintenance|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc]
    Also have a look at belwo links:
    http://help.sap.com/saphelp_46c/helpdata/EN/a1/e45217a2f511d1a5630000e82deaaa/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/67/86b109415811d1893d0000e8323c4f/frameset.htm
    I hope it helps.
    Best Regards,
    Vibha
    Please mark all the helpful answers

  • Ztables ,maintenance view , delete record , consistency

    hello , i create a few ztables one with code and other with descriptions
    let called it ztable01 -header , ztable02-descriptions
    make ztable01 foreignkey of ztable02 , and i create 2 maintenance view for they ( one per table )
    i create a record ( a new code ) in the ztable01 then i go to the ztable01 and create a new record using the code in create ztable01 ( search help show the new record ) now i go back to the ztable01 and delete that record of code used in the ztable02 and it allow me to delete it!!!! the abap dictionary don't do this kind of check ? i need config something special ? some info about ?
    Thanks

    >
    Lavanya K wrote:
    > HI
    >
    > For ur requirement, create a custom table and a text table for description following below steps.
    >
    > 1. Create custom table . Eg- MANDT, COUNTRY are key fields
    > 2. Create text table with field SPRAS (language), Country (this should have a foreign key field relationship with table from step 1. check radiobutton for -Key Fields of a text table) & Country Name.
    > 3. Maintain Table maintain generator for table in step1.
    > 4. If first table is maintained in step1 then description can also be maintained there. In background the text table will be automatically filled with the same entry in the logon language in which first table is maintained
    > 5. If entry from first table is deleted , in turn it is deleted from text table too
    thanks for that but i already known how do that , my question was if sap don't do that integrity check for itself i mean in the abap dictionary , example that let me delete data that have relationship with other ( foreign keys relationship ).
    the step 5 only happen with you do a maintained view with the second table how dependency ( maintained both table with the same view ) if that is you try to say i already known that , i was try maintained it with different maintenance view.

  • About Maintaining Table in WDA like Table Maintenance View??

    Hi,
    I wonder there is an easy way to maintain master table that named 'ZXXXX'.
    In R/3 core ABAP, we can maintain master Table by Maintenance View.
    In Web Dynpro for ABAP, How can I maintain that table easily?
    Should I create a program including whold logic to create & modify & delete entry?
    Thanks,

    Hi hiyoung park  ,
    You can to maintain table in WDA ...to maintain table over WebPage in SAP - WDABAP I will suggest to go for ALV.
    with ALV in Dynpro you can add entries delete entries .
    Please see Package <b>SWDP_DEMO_TUTORIALS >> In webDynpro see
    WDT_ALV</b>
    Regards ,
    Parag Bhise

  • Create a Maintenance view for table T500P

    Hi Experts,
    We have a requirement where customer want an additional field in table T500P and for the same a custom maintenanve view has to be created.Moreover, If there is any update insert or change in the ZView/Ztable the same should be reflected in standard table T500P.
    Steps already taken :-
    We have created a ztable (copy of T500P ) and add the required custom field to it.
    We have also copied the view i.e V_T500P to our custom view and also use base table as T500P .
    We also create a foreign key for PERSA in Ztable and use T500P as check table for that with cardinality 1:1.
    To update the MOLGA & BUKRS field data in ztable we have set both the field as a primary key & create a foreign key with check table T500L & T001 & cardianality as 1:CN for key fields.
    In custom maintenance view we have set the realtionship of ztable t500l & t001 with the base table T500P.
    Now, if we are trying to maintain the view only T500P table is getting updated and Ztable is updated with only PERSA value.
    Please provide some directions for the resolution of this issue.
    Thanks,
    Pooja Goel.

    Scheduler007 --
    The view you selected by clicking File > Options > Project View is the default view for every new project you create from a blank project template.  This is a global option, so setting it from the checked out Enterprise Global file serves no purpose. 
    When you select a view as your default view, you will see that view applied to the blank project that is opened when you launch Microsoft Project 2010, and you will see it applied if you create new blank projects.  If you create enterprise templates for
    people to use in your organization, you should simply apply the view to the template that you want as the default so that users will see this view immediately when they create a new project from the template.  In addition, if you apply a view to an open
    project, close and check in the project, and then reopen the project, you will see the last view applied in that project (as Guillaume correctly points out).
    Beyond this, there is no method possible for the Project Server administrator to specify a default view for the Microsoft Project application used by the project managers in your organization.  This is an option each PM must set.  Hope this helps.
    Dale A. Howard [MVP]

  • 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

  • Reg :-maintain a table maintenance view for the z table.suggest me the code

    i have question.i have created a z table related to pp module.the requirement is to maintain {table maintenance view} for this z table.how could this be done.can any one suggest me the code for this?

    Hi ,
    We have a lots of queries on table maintainance creation in the forum posted and replied to.Pls have a look at it first.
    In se11 -> change mode of the ztable -> goto -> utilities -> table maintainance generator -> click on it...
    it will give a new screen-> enter the required details like function group , authorisation(use &NC& or leave it blank if you dont know)  and screens
    2 step and 1 step means=> number of screens displayed in maintainace
    if step1 is selected then we have a screen which will be like a table control for data entry.........
    for step2 we have a table control screen and a more detailed individual field display as second screen
    click on the button 'find screen numbers' so that system automatically proposes the screen numbers
    after which click on the "create" button and follow the required instructions/messages
    once done go to SM30 enter the table name to check if maintainance has been created properly
    Hope it helps,Pls check and revert
    Regards
    Byju

  • Horizontal scroll bar in maintenance view

    Hi all,
             i have a ztable  which has ony two fields id and description. Maintenance view exists for same.
    Can anybody suggest me how to set 'HORIZONTAL SCROLL BAR' for this view as sometimes description is too large and not able to see the description. plz suggest me.
    plz help.
    thnks n Regards,
    Ashmita Singh

    You can do one of two things:
    1. When you are at the maintenance view, manually drag the right edge of the columns to make them narrower.
    2. If you can change the maintenance view, go to the function group with the same name as the maintenance view (which should be the one automatically generated, such as from SE54), and then find the screen in the function group. Open the screen, click "Layout", and the SAP GUI painter will display the screen layout. Over there, click the upper-left corner of the table, and the control TCTRL_<your_view_name> will be selected. Open the "attribute window" or press F2, and then you can set the number of Fixed Columns. Try reducing the number and re-test the effect.

  • 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

  • Unable to edit maintenance view in SM30

    hi everyone.
    need your help, I have one custom table, let's call it YTAB.  This table has several maintenance views created for it, depending on company code.  For YTAB, i have created a maintenance view YTABX. 
    When we moved YTABX to PRD, we cannot edit it in SM30.  The user ID has the right authorization.  The error message is "client 100 not modifiable".  When I try to edit the mother table YTAB in PRD, I am able to go in and do the changes.
    I have already compared the settings for YTABX with the other existing views, they are the same.  My settings for the view are:
    Access: Read, change, delete & insert
    Delivery Class: C
    In the table maintenance generator, i have a 2-step maintenance type, recording routine is Standard recording routine and compare flag is automatically adjustable. 
    Attributes for table YTAB also has delivery class C, table category is transparent table, table maintenance is allowed.
    Thank you in advance.

    Hello roch,
    the direction in which mark points is right but i think you should get some more information on the principles of table types and sap system landscape.
    Usually you should not be able to directly maintain any table. This is not only bad style but also a huge risk for the system consistency. That's why application data is always maintained via some kind of application which ensures that the data is vilidated before it is stored.
    Customizing data should only be maintained within a development system and then transported through the landscape. To maintain these table you can use generated views, customer developed maintenance views, view clusters which all include automatical link to the transport system. If you would maintain these tables directly in the productiion system it would have another configuration than the development and the quality/test system which makes them more or less useless as you can no longer make any serious test if the server configurations differ.
    To prohibit changes of customizing tables on production and test servers the admins lock the systems which results in the message you got. This setting is made in TCODE SCC4. Even if you have for any reason the authorization to use this transaction you should in no case change these settings without approval of basis / system owner. 
    Kind Regards
    Roman

  • Add button to a maintenance view

    I am working with maintenance views and user-defined events in maintenance views at the moment.
    Now I'd like to add a button to the maintenance view that will show a popup with recent changes to the selected line of the database table.
    Is that possible with user-defined events or should I modify the generated dynpros manually. But then, will the modifications be deleted if I will have to regenerate the maintenance view in the future (e.g. when I might add a field to the database table)?

    If you are talking SE54 and Maintenance Views, when I do an SM30 on the Maintenance View and do SYSTEM->STATUS, I see GUI STATUS ZULG on program SAPLSVIM.  If you look at that status, I see two buttons with dynamic text.  The first one is call GPRF and has dynamic text VIM_PR_STAT_TXT_CH.  You can find a suitable PBO event to set the text of that function code and if that works, find a suitable PAI event to respond to that function.
    I recall finding some documentation on customizing the GUI STATUS but no luck today trying to find it.
    Let us know how it goes.

  • Append table - Regenerating a maintenance view

    People,
    I would like to create one more fied in a standard table, so I will create an append in this table.
    But it has a maintenance view associated to it. As this is a standard table, is there a way to regenerate this maintenance including the new field ?
    Thanks a lot!

    I´m not sure the maintenance view is regenerated.
    This is a standard table and I don´t want to get an access key to solve this.
    Anyone here has this experience?

Maybe you are looking for

  • My memory is 4gb for my macbook pro what is ram??

    My memory is 4gb for my macbook pro what is ram??

  • My lightroom has updated to 5.5 and I now can't use the Develop module.

    My lightroom has updated to 5.5 and I now get the message "Develop module is disabled -please renew your membershipto reactivate the Develop module". My membership is ongoing so how do I resolve?

  • Solution for port monitoring

    hello everybody, we have 2 core 3550 12-G switch. the desktop switch a connected via gigainterface to the core switches. so, i will monitoring all the traffic in the vlans, what can i do? i have only one monitoring port on my 4210 ips. its a good sol

  • Query with input parameters (as int)

    Hello all, I am trying to run the following query but i keep getting the following message: Conversion failed when converting the varchar value '[%0]' to data type int. in SQL 2005. I understand what the error is saying i just cant find a way to pass

  • Dynamic authentication using OWSM

    If I have a service that changes employees pay rate. I want to put security on this. For added measure I want to encode the password. Can I set this dynamically in the calling BPEL process. If not then there is a potential security breach as the user