Maintenance view of two tables

I need to update two tables Header and Item with the hepl of maintenance view.There structure is as follows :
Header - GRPKEY (Pr. Key)
              Printchk
Items :- GRPKEY ( Foreign key - check table Header-GRPKEY)
            fieldname ( Key)
           descr type char255
Now i am creating maintenance view using header as base table. In this case its not showing fields of items in View fields tab and i can't have those fields for data entry.
If i use items table as base table when i create data through this view header table doesn't get updated.
Please suggest.
Thanks

Hi,
My real question is, Will a maintenance view really enables me to enter data into two tables simultaneously?
OR
Is it just one table that I can enter data into and the fields from other table will appear based on the join condition?
All SAP documentations talk about entering data into multiple tables using a maintenance view. But it was not practically possible for me when I tried.
Regards,
Mahesh

Similar Messages

  • Maintenance View of Z table

    不知道什么原因,现在用SE55创建Z表的maintenance view的时候,在overview screen中,不能生成table control的形式。但是single screen是正确的。之前在同样的平台下,却可以做到。有什么原因会造成这种情况?
    找到问题了,原来是因为key的设置。
    Edited by: Amy Xie on Mar 16, 2010 7:49 AM

    Hi,
    Developing a generic tool won't take much time probably 6 hours at an experience level of 2+ years!!!
    Once you develop you can use it for ever.
    What all you need to do is create a field-symbol of type standard table. Get the table name and the file from the selection screen.
    Create a dynamic internal table with reference to the table name entered in the selection screen. Upload the data and update the database.
    Limitations in the design:
    1. File should be in correct format and with the correct data. (Specific validations can't be done)
    2. Table maintenance events can't be tackled.
    eg: On entering the material number, Material description should automatically come.
    Creating BDC for SM30 is ok. But this works only at a table level. We may not be able to make it generic as the screen field names changes based on table name.
    So think and choose the right approach!!!
    All the best:)
    Thanks,
    Vinod.

  • Leave a distinct value in a materialized view on two tables

    Hi and thank you for reading,
    I have the following problem. I am creating a materialized view out of two tables, with "where a.id = b.id".
    The resulting materialized view list several values twice. For example, one customer name has several contact details and thus the customer name is listed several times. Now I would like to join each customer name with just ONE contact detail, how can I do that? (Even if I would loose some information while doing this).
    Thanks
    Evgeny

    Hi,
    You can do this
    SELECT   deptno, empno, ename, job, mgr, hiredate, sal, comm
        FROM emp_test
    ORDER BY deptno;
        DEPTNO      EMPNO ENAME      JOB              MGR HIREDATE          SAL       COMM
            10       7782 CLARK      MANAGER         7839 1981-06-09       2450          
            10       7839 KING       PRESIDENT            1981-11-17       5000          0
            10       7934 MILLER     CLERK           7782 1982-01-23       1300          
            20       7566 JONES      MANAGER         7839 1981-04-02       2975          
            20       7902 FORD       ANALYST         7566 1981-12-03       3000          
            20       7876 ADAMS      CLERK           7788 1987-05-23       1100          
            20       7369 SMITH      CLERK           7902 1980-12-17        800          
            20       7788 SCOTT      ANALYST         7566 1987-04-19       3000          
            30       7521 WARD       SALESMAN        7698 1981-02-22       1250        500
            30       7844 TURNER     SALESMAN        7698 1981-09-08       1500          
            30       7499 ALLEN      SALESMAN        7698 1981-02-20       1600        300
            30       7900 JAMES      CLERK           7698 1981-12-03        950          
            30       7698 BLAKE      MANAGER         7839 1981-05-01       2850          
            30       7654 MARTIN     SALESMAN        7698 1981-09-28       1250       1400
    14 rows selected.
    SELECT CASE
              WHEN ROW_NUMBER () OVER (PARTITION BY deptno ORDER BY empno) =
                                                                         1
                 THEN deptno
           END deptno,
           empno, ename, job, mgr, hiredate, sal, comm
      FROM emp_test;
        DEPTNO      EMPNO ENAME      JOB              MGR HIREDATE          SAL       COMM
            10       7782 CLARK      MANAGER         7839 1981-06-09       2450          
                     7839 KING       PRESIDENT            1981-11-17       5000          0
                     7934 MILLER     CLERK           7782 1982-01-23       1300          
            20       7369 SMITH      CLERK           7902 1980-12-17        800          
                     7566 JONES      MANAGER         7839 1981-04-02       2975          
                     7788 SCOTT      ANALYST         7566 1987-04-19       3000          
                     7876 ADAMS      CLERK           7788 1987-05-23       1100          
                     7902 FORD       ANALYST         7566 1981-12-03       3000          
            30       7499 ALLEN      SALESMAN        7698 1981-02-20       1600        300
                     7521 WARD       SALESMAN        7698 1981-02-22       1250        500
                     7654 MARTIN     SALESMAN        7698 1981-09-28       1250       1400
                     7698 BLAKE      MANAGER         7839 1981-05-01       2850          
                     7844 TURNER     SALESMAN        7698 1981-09-08       1500          
                     7900 JAMES      CLERK           7698 1981-12-03        950          
    14 rows selected.Edited by: Salim Chelabi on 2009-09-14 08:13

  • How to regenerate a table maintenance view for a table.

    A  new customer defined field(y_status) was added to the table(ykxrdarea). But the field is not reflected in the view maintenance.busiess adviced me to regenerate the table view maintenance.
    Can any one help me how to regenerate the table view maintenance.

    Go to transaction SE11.Enter the table name and choose utilities from the menu and click on table maintenence generator.You will get the table maintenance dialog.Choose generated objects from the menu and click on change.You will get the change generation elements screen.Enter the reason for regeneration.In your case it is new field/sec.table in structure.hit enter and the table maintenance will be regenerated.If you go back and see the maintenance view now you should see your field.
    cheers
    Nishanth

  • Maintenance View for custom table with foreign key relationship

    Hi Folks,
         I have created a custom table with foreign key relationship with other check tables. I want to create a maintenance view / tablemaintenance generator. What all things I need to take care for the foreign keys related fields while creating the maintenance view / tablemaintenance generator.
    Regards,
      santosh

    Hi,
    You do not have to do anything explicitely for the foreign key relationships in the table maintainance generator.
    Create the table maintainance generator via SE11 and it will take care of all teh foreign key checks by itself.
    Regards,
    Ankur Parab

  • Maintenance View & Viewcluster & Check Table

    Hi all,
    I created a Viewcluster which includes three Maintenance Views. As you know after running the Viewcluster and when you enter a value to a field, the program checks the value according to the check table.
    In my example for REVUS field check table is USR02. So whenever I enter a value to REVUS, it checks USR02 table, and it gives an error if I enter incorrect value. The question is if enter just space (blank), it accepts is - it doesn't give error. What is the situation here? How can I prevent to enter blank value to REVUS.
    Thanks in advance.

    Narendran,
    Yes, this solves the problem. When I did like that it gives this error : Message no. 00 055 (Make an entry in all required fields).
    I found another solution too. I'd like to share with you.
    In the Maintenance View, we can define a Selection Condition  for REVUS field. It should be like that Operator: NE Comparative Value: <blank>. So when we do this the Clusterview doesn't allow to enter blank value and gives this error: Message no. SV 033 (Specify the key within the work area)
    It seems that second solution is better because if I choose the first solution when I need to change or modify the maintenance dialog I think I will need to change the screen again.
    Thanks,

  • MATERIALIZED view on two tables with Fast Refresh

    i Wanted to create MV on two tables with Fast refresh on commit.
    I followed below steps
    create materialized view log on t1 WITH PRIMARY KEY, rowid;
    create materialized view log on t2 WITH PRIMARY KEY, rowid;
    CREATE MATERIALIZED VIEW ETL_ENTITY_DIVISION_ASSO_MV
    REFRESH fast ON commit
    ENABLE QUERY REWRITE
    AS
    select A.ROWID B.ROWID,a.c1, DECODE(a.c1,'aaa','xxx','aaa') c2
    from t1 A
    join t2 b
    on AB.c1= CD.c2;
    i am getting below error.
    Error report:
    SQL Error: ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view
    12054. 00000 - "cannot set the ON COMMIT refresh attribute for the materialized view"
    *Cause:    The materialized view did not satisfy conditions for refresh at
    commit time.
    *Action:   Specify only valid options.
    Basically i want to take record in MV by joinig two tables and if both of the base tables will updated then record should reflect in materialised view.
    Please do the needfull.

    does the table support PCT? the other restrictions on joins look to be ok in your statement.
    maybe try creating first with on demand instead of commit to see does it create.
    http://docs.oracle.com/cd/B19306_01/server.102/b14223/basicmv.htm
    >
    Materialized Views Containing Only Joins
    Some materialized views contain only joins and no aggregates, such as in Example 8-4, where a materialized view is created that joins the sales table to the times and customers tables. The advantage of creating this type of materialized view is that expensive joins will be precalculated.
    Fast refresh for a materialized view containing only joins is possible after any type of DML to the base tables (direct-path or conventional INSERT, UPDATE, or DELETE).
    A materialized view containing only joins can be defined to be refreshed ON COMMIT or ON DEMAND. If it is ON COMMIT, the refresh is performed at commit time of the transaction that does DML on the materialized view's detail table.
    If you specify REFRESH FAST, Oracle performs further verification of the query definition to ensure that fast refresh can be performed if any of the detail tables change. These additional checks are:
    A materialized view log must be present for each detail table unless the table supports PCT. Also, when a materialized view log is required, the ROWID column must be present in each materialized view log.
    The rowids of all the detail tables must appear in the SELECT list of the materialized view query definition.
    If some of these restrictions are not met, you can create the materialized view as REFRESH FORCE to take advantage of fast refresh when it is possible. If one of the tables did not meet all of the criteria, but the other tables did, the materialized view would still be fast refreshable with respect to the other tables for which all the criteria are met.

  • How to find T-CODES for maintenance view of custom tables?

    Hi,
    I have a list of custom tables for which maintenance view is generated. Also, many of them might have a T-Codes assigned to them.
    I need to know how to find out these T-codes?
    Is there some table which maintains these or a function module which can give the t-code name?
    Help will be appreciated.
    Thanks.
    Shreyas

    Hi shreyas,
    1. one way is
    2. goto se93
    3. Press Ctrl F
    4. Expand the search criteria (from button on toolbar)
    5. In program name enter SAPMSVMA (This program is for sm30)
    6. In transaction code enter Z*  or Y*
    regards,
    amit m.

  • Authorization for all the maintenance views from one table

    I have one table with data related to 5 systems.
    I have created views with related data for each system.
    These all are from one table only. while i am editing in one view, i must be able to edit the another view also. at a time 2 users cant edit the same view but at a time two users have to edit two different viws from same table.
    I have to provide all authorization to all views at the same time.How to achieve this?.
    Thanks.
    Edited by: pagidala Ramesh on Oct 27, 2008 10:52 AM

    Hi Pagidala,
    This is my idea how much it can help you i am not sure but, create txcode for views and assign the authorizations for the txcodes according to your requirements. May be your issue will resolve.
    Cheers!!
    VEnk@

  • Maintenance view for standerd table

    hi . i want to update a field in standerd table. i try &sap_edit.but i dont know why people suggest that...its not working...any alternate to update standerd table .

    Hi  ,
    First talk to your Function Consultant  , why the standard table needs tobe updated  .
    if there is a purpose or a reason , then  see the table attribute  whether it is Masterdata/Customdata /Transcation data.
    Masterdata table
    Becuase for all Master data there will be define Transcationcode with screen program .
    Ex: for creating Vendor Master/Customer Master/Hr Master,etc so for all Master data ,there is Change Transcation code also ,so the Functional Consultant can change it  , if it is bulk then just record that  screen using LSMW or BDC so that  you can modify the data in the  Screen which will update the corresponding tabels.
    Customdata table
    If it is Customizing table then there will be  a define Table Maintainance directly or a View with Table maintaintance View. so Again Function Consultant can change the data. one thing here  if that data field is Primary Key ,then in the table maintaince view he or you cannot  change the data directly ,so either way is to delete the entry and create new entry with the changes you/he want .
    Transcationdata table
    If it is Transcation data then you should not do the change's for  the transcaction data  , if still it is required then  there will be reversable entry process (Ex: In Finance if  posting with incorrect entries of Currency or GL, then that  record should be reversed .)likewise  in SD ,HCM also they can reverse .
    Final OPTION is already you are trying already with SAP_EDIT  and also Our Community friends told how to play with editing table data.
    Regards,

  • How to create a view between two table under different database?

    thx

    Assuming the different database is Oracle, you'll probably need to create a 'dblink'. Researching that topic should get you where you need to go.

  • Creating maintenance view

    Hi!
    I've tried to create a maintenance view for two tables with help of sap liblary:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    but it haven't work for some reason.
    Colud anyone give a detailed example of creating simplest maintenance view for two tables (with correct definition of a foreign key)? One of them is a text table for another.
    The view should insert records in both tables simultaneously.
    Thanks!

    Hi,
    go through this link.
    Link:[http://help.sap.com/saphelp_40b/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm]
    Link :[table maintanace generator;
    hope this help u out.
    Regards,
    Sneha.
    Edited by: sneha kumari on Jun 16, 2009 8:33 AM

  • Maintenance view does not bring the default language in the Text table

    Hi Experts,
    I am creating a maintenance view with the join of two tables
    TAB1 has following fields
    MANDT
    CATEGORY
    TAB2 (is the text table for TAB1) has the following fields
    MANDT
    LANGU
    CATEGORY
    DESCRIPTION
    I have created the maintenance view with
    MANDT
    CATEGORY
    DESCRIPTION
    When Itry to maintain the data through the view I can insert teh data in TAB1 but in TAB2 it doesnt take the default language key.
    I want my default language key as 'EN'.
    I have referred V_T77TMC_EDUTYP, but I cannot find the reason why in my custom view I dont get the language key.
    Request your help.
    Thanks
    Anu.

    Hello Anu,
    I believe that according to definition of maintenance view, for text tables there should be an automatic entry for sy-langu in SPRAS field. So, you should be able to get this without activating any TMG events.
    I suppose you have created a maintenance generator for your maintenance view and updating entries using SM30 for that maintenance view.
    Please check that you have created the text table properly. Check while putting TAB1 in SE16n and pressing enter, do you see TAB2 in 'text table' field ???
    Make sure while defining Foreign key relationship, you have used 'Key fields of a Text table' option.
    Do share if you face any problem ?
    regards,
    Diwakar

  • Refresh data in Table Maintenance view

    Hi,
    I have created a table maintenance view for db table A and added my function button to this view. When I click the button I append  a few records to the table A from table B. But this recoreds are not displaied in the view.
    If I rerun the view I can see added records.
    How I have to refresh the view to display added records?
    Regards,
    Ilya

    Hi Jesus,
    COMMIT WORK isn't help me.
    I found that I have to use TOTAL and EXTRACT structures to modify data in maintenance view.
    It's fine. I do something like this in my FM
    MODULE 9CUSTOM_PF_BUTTON INPUT.
    lt_total[] = total[].
    lt_extract[] = extract[].
    CASE function.
          WHEN '9DOWNSH'.
             modify lt_total from wa_total.
             modify lt_extract from wa_extract
    ENDCASE.
    total[]   = lt_total[].
    extract[] = lt_extract[].
    ENDMODULE.                 " 9CUSTOM_PF_BUTTON  INPUT
    But TOTL and EXTRACT tables contain data of  the current maintenance view.
    I work with a view cluster and I have to append or delete records from one view if I do something in other view.
    How I can modify data one view from another maintenance view?
    If I have modified database tables directly I don't see changes in the view cluster.
    Regards,
    Malnor
    Edited by: Malnor on Nov 23, 2010 9:19 AM
    Edited by: Malnor on Nov 23, 2010 9:38 AM

  • Populate table control in maintenance view

    Hi all,
    I need to load data from an excel file and then call the maintenance view from a table through SM30 transaction,
    I want to see the data from the file already loaded in the table control,
    any idea how could I achieve this?
    I don't know how could I do it, I've been working with events but I have no idea how to manage the entire table,
    I just can handle row by row of the table.
    Any help will be appreciated, thanks in advance.

    Ótimo,
    Muito obrigada, vou tentá-lo, falo um pouquinho de português graças a Deus.

Maybe you are looking for