Creation Of Maintannace View

Hi All,
My requirement is i need to create table maintanace view using one ztable. in this table i have one key field. Name of the key field is 'GUID' remaining fields are APPLN, APPLN TYPE,PARTNER NUMBER. These 3 fiedls non key fields. My requirement is while creating the view and i need to follow following instructions
Do not define the GUID as the key. Place the GUID at the end.
The key could be APPLN, APPLN PARTNER, TYPE, START DT, END DT the same as key for which we validate the duplicate entries.
anybody can tell me how to define key for fields APPLN, APPLN PARTNER, TYPE, START DT, END DT . These fields are non key fiedls in ztable while creating the view we need to display as key fiedls and i have remove key for GUID field.
anybody can suggest me what shall i do in this case.
thanks,
maheedhar.t

You should go back to whoever has asked you to do this and tell them it is a stupid requirement!  If they have a Z table with a certain structure and key fields why do they want to maintain that table with different key values?!  It won't work!
If they want the key values to be APPLN, APPLN PARTNER, TYPE, START DT, END DT as you suggest then the underlying Z table will have to have those set as the key fields.  If GUID is the key on the Z table but not in the maintenance screen, what will you do if a user enters a duplicate GUID?  You would have to write a lot of validation logic and probably a custom transaction to achieve this which is simply pointless!
Gareth.

Similar Messages

  • Creation of Column view for Multiprovider failed

    Dear Experts,
    I'm facing an issue in TR import.
    The TR failed with the below error message.
    Creation of column view for XXXXX failed.
    XXXXX - Multiprovider
    System :BW on HANA (BW 7.4 SP06)
    If there's a way to resolve this error, please let me know.
    Appreciate your help.
    Br, Harish

    Hi,
    Here's the workaround I have implemented for this issue.
    Implemented the note 1955263 and made the below correction to the programSAP_RSADMIN_MAINTAIN.
    Object = MPRO_CS_GEN_ERROR_IGNORE
    Value = X
    After the above customizations are done, TRs are imported without any issues.
    For the OSS message I have raised, SAP has asked us to implement the note 2001969 to fix the issue.
    Br, Harish

  • Creation of Materialized view and Materialized view log.

    I wanted to create materialized view with 'REFRESH FAST ON COMMIT' option.
    1) Table1 --it is partitioned range + list -- Added primary key
    2) view1   -- having primary keys on view's base table
    Steps:
    1) create materialized view log on Table1 ; -- default primary key
    2) create materialized view log on view1.  --- It is giving below error.
    ORA-00942: table or view does not exist
    i wanted to create Materialized view like below
    create materialized view
    REFRESH fast ON commit
    as
    select ...
    ... from table1
    where c1 in (select c1 from view1 where ... );
    Question:
    1) As i am getting above error while creating MV log on view. Can we create MV log on view or we have to create MV log on view base table?
    2) To create MV with ''REFRESH FAST ON COMMIT' option , do we need to have primary key on master tables? 
    Any pointers on this will really helpful.
    Thanks
    Prasad

    Also created MV LOG on 3 tables and tried with joins ..
    create materialized view
    REFRESH fast ON commit
    as
    select ...
    ... from table1 , tab2 t2,tab3 t3
    where ....
    and ...
    Get same error ORA-12052: cannot fast refresh materialized view AVSYS.EVENT_LOG_MV
    2052. 00000 -  "cannot fast refresh materialized view %s.%s"
    *Cause:    Either ROWIDs of certain tables were missing in the definition or
               the inner table of an outer join did not have UNIQUE constraints on
               join columns.
    *Action:   Specify the FORCE or COMPLETE option. If this error is got
               during creation, the materialized view definition may have be
               changed. Refer to the documentation on materialized views.

  • Creation of materialized view

    Hi All,
    We had created some other materialized view with for small set of data. The materialized view name is ‘XXCA_PAGL_RECON_GL1_TRANS_MV’ and it has created a table with the same name.
    What I am unable to understand is that the new table which was created by the system during the creation of materialized view is in VALID state but the materialized view is in INVALID state.
    Please help me to understand this process.
    Thanks in advance
    Venkatesh

    The column dba_objects.status for mviews is set to INVALID when the base tables are updated. See Metalink note 454552.1. It is normal.
    Edited by: YasinBaskan on Feb 17, 2009 2:07 PM

  • Report Creation with Qucik Viewer(SQVI)

    Hi
    My client requirement is to get the CSO  report on the  items which are invoiced and the items are not invoiced in the CSO.
    i though i could generate the intended report wiht Quick Viewer (SQVI)
    kindly advise me how do i proceed with this kind of report.
    Regards
    TharakJReddy

    Your application is referencing the file craxDDrt.dll. In order to use this dll, you needed to obtain extra licensing. Since CR 10 has been out of support for over 5(?) years, I am not sure if you can still obtain the licensing. Contact sales at 866-681-3435 to find out.
    Alternatively, reference the craxDrt.dll. This dll does not require any extra licensing. However, the error you are getting indicates that you are using Report Creation APIs (RCAPI) from craxDDrt.dll. In my experience, there often were other ways of coding to achieve the same thing with craxdrt.dll. Let me know what RCAPIs you are using and I may be able to help out there.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Long time for creation of materialized view

    Hi,
    we are trying to create a materialized view and this view would contain 1 lakh records and around 50 columns.
    The select statement to get these records takes only 1-2 sec whereas the actual creation of view takes 17 minutes. The database used is Oracle 8i. The code used is
    CREATE MATERIALIZED VIEW employee_master_t
    PCTFREE 10
    STORAGE (initial 500k next 500k pctincrease 0)
    REFRESH WITH ROWID COMPLETE START WITH SYSDATE
    NEXT SYSDATE + 1 AS select * from table_name
    Is it because the insert is slow and temp tablespace may have to be increased?
    also, can anyone pls suggest if fast refresh mode can be used with Oracle 8i since currently we are not able to create as error saying that query is complex is returned

    It will be possible to create a Materialised view with up to 20 tables, but you have to understand the restrictions on complex Materialised views with regards to fast refresh.
    To help your understanding, refer to Materialized View Concepts and Architecture
    <br>
    Oracle Database FAQs
    </br>

  • Error on creation of a view

    i have a norma view like this
    CREATE FORCE VIEW USERBO.USERPROFILE_VIEW
    (ROW_ID,EMPLOYEE,RESPONSABILITY_ID,RUOLO,E_USERNAME,E_PASSWORD,USERTYPE,USER_ID) AS
    SELECT RESPONSABILITYUSER.row_id,
    client.surname
    || ' '
    || client.NAME,
    RESPONSABILITYUSER.responsability_id,
    'USERWEB',
    upper(client.username) || '-' || client.organization_id,
    client.pwd,
    client.usertype,
    client.ROW_ID
    FROM RESPONSABILITYUSER,
    general.client
    WHERE ((client.row_id = RESPONSABILITYUSER.user_id))
    AND client.status ='ACTIVE'
    the select works fine but the view
    was create with "error"
    but how i can find the essror ??
    i tried "show error" but no error found
    insten when i create the view occur an error of creation and dos not work !!
    Help

    >
    the strange is that the select extract from the view and execute from user USERBO
    works without errors and the two USER (USERBO AND CLIENT) are dba users.
    >
    Why is that strange? The common way to make a user a DBA is to grant them the DBA role.
    Reread my reply above. Especially this part
    >
    the user creating the view has to have select privileges on the RESPONSABILITYUSER table granted directly to them.
    >
    To work in a view or pl/sql procedure/function/package privileges must be 'GRANTED DIRECTLY TO THEM'!
    Repeat after me:
    DBA is a role, roles are not active in views/procedures/functions/packages: privileges must be 'GRANTED DIRECTLY TO THEM'!
    DBA is a role, roles are not active in views/procedures/functions/packages: privileges must be 'GRANTED DIRECTLY TO THEM'!
    DBA is a role, roles are not active in views/procedures/functions/packages: privileges must be 'GRANTED DIRECTLY TO THEM'!
    DBA is a role, roles are not active in views/procedures/functions/packages: privileges must be 'GRANTED DIRECTLY TO THEM'!
    DBA is a role, roles are not active in views/procedures/functions/packages: privileges must be 'GRANTED DIRECTLY TO THEM'!
    Now please post the answer to this question:
    >
    I must grant select on all tables ??

  • Error:While creation of Classification view using-'BAPI_OBJCL_CREATE'

    Hi all,
    I am using function module -
    CALL FUNCTION 'BAPI_OBJCL_CREATE'
      EXPORTING
        OBJECTKEYNEW            = OBJECTKEYNEW1
        OBJECTTABLENEW          = 'MARA'
        CLASSNUMNEW             = CLASSNUMNEW1
        CLASSTYPENEW            = CLASSTYPENEW1
      STATUS                  = '1'
      STANDARDCLASS           =
      CHANGENUMBER            =
      KEYDATE                 = SY-DATUM
      NO_DEFAULT_VALUES       = ' '
    IMPORTING
      CLASSIF_STATUS          =
      TABLES
      ALLOCVALUESNUM          =
        ALLOCVALUESCHAR         = ALLOCVALUESCHAR1
      ALLOCVALUESCURR         =
        RETURN                  = RETURN1
    for creation of classification of material.But it gives me afollowin errors -
    1)Assignment does not exist or is not valid on
    2)Table   not supported for class type
    3)Assignment was not created
    in return table.
    Thanks.

    Hi,
      Please follow the below steps.
    Creating the Classification View using the Function module 'BAPI_OBJCL_CREATE'.
    Check the Class Type and Class Number which you are passing.
    Generally it will be Class type - 001 (Material Class) and Number will be ENGINEERING.
    It depends.
    But, what you can do is, Check material which has classification data filled.
    And just use the same class Type and Class Number Details.
    Try this way.It should work.
    To know the Available Class Types refer to table TCLA.
    Please let me know, if you want further help.
    Thanks & Regards,
    Vamsi.

  • Creation of Database View , Projection View

    Hi ABAP EXPERTS,
    Can anyone plz send me the step by step creation of DATABASE and PROJECT VIEWS. Just steps by step explanation will do , screen shots will be more than appreciated.
    Kind Regards,
    Sunil Ranal.

    Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set. In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    Check this link for database view creation.
    http://help.sap.com/saphelp_40b/helpdata/en/cf/21ed06446011d189700000e8322d00/content.htm
    Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed. A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    Check this link for Projection view creation.
    http://help.sap.com/saphelp_nw70/helpdata/en/cf/21ed20446011d189700000e8322d00/content.htm
    Regards,
    Maha

  • Blocking vendor for PO creation if Accounting view is not maintained.

    Hi ALl,
    Is it possible to restrict RFQ or PO creation against vendor if accounting view is not maintained by account dept.
    I dont want to block it in MK06 or XK06 or in source list.
    Is there any user exit for this?
    Pls guide.
    Regards.
    Edited by: sapsarang on Aug 5, 2011 10:07 AM

    Hi,
    Use BAdi "ME_PROCESS_PO_CUST" and write the code under Interface "PROCESS_HEADER".
    Following is the sample code for the same.
    data t_lifnr type lfb1-lifnr.
    if w_lifnr is not initial and wa_hdr-bukrs is not initial.
    select single lifnr from lfb1 into t_lifnr where lifnr = w_lifnr
                                 and bukrs = wa_hdr-bukrs.
       if sy-subrc ne 0.
         MESSAGE e025(zm01) WITH w_lifnr wa_hdr-bukrs.
       endif.
    Here create a message as ZM01025 (In TCode SE91) as "Vendor has not been maintained for Co. Code &."

  • Material creation for All VIEW using BAPI Function modules

    Dear All,
                 I want to create materials for all views using BAPI F.Ms. By using BAPI_MATERIAL_SAVEDATA i have extended materials for for only specified views. now my requirement is to create Material with All views including Classfication view also. For this i found BAPI_OBJCL_CREATEFM.
             Tell me that shall i use both Fm's at time to create material.Will it work? According to my knowledge we need to create Characters first ,then we should  assign this character to this class, then while creation of material we should select this class .
            so pls guide me the procedure to follow for both FM's .
    Note : Pls don't suggest me LSMW OR BDC procedure.
    regards,
    Prashanth Maturu.

    Hi prashanth,
    U can use both the FM. using BAPI_MATERIAL_SAVEDATA u can create all the views and for classification view use BAPI_OBJCL_CREATE. before assigning class to material u hve to make sure that the characteristics are uploaded and is attched to the class using transaction CL03.
    Regards,
    Anil N.

  • How to create a new creation page from view page itself

    Dear all
    i have view page in that i need to click on new button i need to call new creation page
    here i am writing the code in view page co in pfr
    HashMap h1 = new HashMap();
    h1.put("pmode", "Continue");
    if (pageContext.getParameter("New") != null)
    pageContext.setForceForwardURL("OA.jsp?page=/crm/oracle/apps/xxcrm/crmmgmt/quotationmgmt/webui/xxcrmquotationcreationPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null, h1, false, OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    in creation co i am calling this method
    if (pmode!=null)
    System.out.println("Entered into this block.....");
    am.xxcreatequotation(orgid);//blank record for this
    System.out.println("After this statement......");
    cancel1.setRendered(false);
    System.out.println("After this statement......11");
    in view page when i am clicking the new button the page is calling editable mode
    i dont think so y it is happening like this.
    Regards
    Sreekanth

    Dear Gaurav
    i wrote this code
    public void xxcreatequotation(int orgid)
    xxcrmOpportunityTVOImpl vo = getxxcrmOpportunityTVO();
    OADBTransaction tr = getOADBTransaction();
    int x = 0;
    String lv_current_flag = "Y";
    String lv_opt_flag = "N";
    if (vo.getFetchedRowCount() == 0)
    vo.setMaxFetchSize(0);
    Row createqtn = vo.createRow();
    vo.insertRow(createqtn);
    createqtn.setNewRowState(Row.STATUS_INITIALIZED);
    Number qtnid = tr.getSequenceValue("xxcrm_opportunity_seq");
    System.out.println("The opportunity id is....." + qtnid);
    vo.getCurrentRow().setAttribute("OppoOpportunityid", qtnid);
    vo.getCurrentRow().setAttribute("OrgId", orgid);
    vo.getCurrentRow().setAttribute("OppoRevisionId", x);
    vo.getCurrentRow().setAttribute("OppoCurrentFlag", lv_current_flag);
    vo.getCurrentRow().setAttribute("OppoIsoptional", lv_opt_flag);
    vo.getCurrentRow().setAttribute("OppoBaseOpportunityid", qtnid);
    Regards
    Sreekanth

  • Creation of Maintaince View

    Hi,
    I would like to create a Maintaince View. In SE11 I selected View option after that I selected Maintaince View option. Then I have given the Name of the table . But it is taking only one table name. remaing fields are in the disable mode.
    How to create a Maintaince View for a table?
    Is there any differece between table maintaince generator and Maintaince view for a table or both or same for a single table ?
    What is the use real use of mainataince view ?
    Regards,
    Satya

    create a maintanance view using two tables using default navigations and activate (ignore wornings)
    click on "utilities"menu.
    table maintanance generator
    opens an interface,set the authourization group as "ates"
    specify name of function group(name of the function group)where code should be generated
    select the maintanance type as "one step"
    specify the screen number(s11) in overview screen field
    click on "create" from application toolbar
    save the objects under a package with request number
    add prompts a message as "request completed without errors".
    this view cant be accessed directly by abap reports,as these are designed for mpp.
    test the maintanance view code created properly or not using "se54" tcode.
    regards,
    usha.

  • Creation of Classification View in Material Master

    Hi,
    I need to create Classification View for a Material. The user would provide the data in the file, example
    Material Number MATNR
    Class type TCLA-KLART
    Class Type description TCLAT-ARTXT
    Class Group TCLG-KLAGR
    Class Group Description TCLGT-KTEXT
    Class M_CLASB-CLASS
    Class Description M_CLASB-CSCHG
    Status RMCLF-STATU
    Std class RMCLF-STDCL
    Characteristics Group TCMG-ATKLA
    Characteristics Group Description TCMGT-ATKLT
    Characteristics RCTAV-ATNAM
    Characteristics Description CABNT-ATBEZ
    I read in the posts there is BAPI_OBJCL_CREATE. But I am not able to Map the above fields to pass to this BAPI.
    Can someone please suggest me how to do this..
    Thanks and Regards,
      Vanessa

    Hi,
      Thanks for the suggestion. But i want to do this through a program. There is a selection screen with 6 radio buttons based o view to be created and an input field for the filename.
    Could you provide me any BAPI to do the same.
    Thanks and Regards,
      Vanessa

  • Error in creation of materialzed view.

    Hello All,
    I am trying to create a materialized view on a pre-built table. But the MV does not get created and gives an error ORA-12014. Following are the
    codes for MV logs and MV I am using:
    CREATE materialized VIEW log ON table_1
    WITH rowid,
    sequence (columns .. );
    CREATE materialized VIEW log ON table_2
    WITH rowid,
    sequence (columns .. );
    CREATE materialized VIEW mv_name (columns .. ) ON prebuilt TABLE
    WITH reduced PRECISION USING no INDEX refresh fast ON demand USING DEFAULT local ROLLBACK segment USING enforced CONSTRAINTS disable query rewrite AS
    SELECT columns ..
    FROM table_1
    UNION ALL
    SELECT columns ..
    FROM table_2
    Please let me know all the possible ways to solve this error.
    Thanks and regards

    user13160054 wrote:
    Hello All,
    I am trying to create a materialized view on a pre-built table. But the MV does not get created and gives an error ORA-12014. Following are the
    codes for MV logs and MV I am using:
    CREATE materialized VIEW log ON table_1
    WITH rowid,
    sequence (columns .. );
    CREATE materialized VIEW log ON table_2
    WITH rowid,
    sequence (columns .. );
    CREATE materialized VIEW mv_name (columns .. ) ON prebuilt TABLE
    WITH reduced PRECISION USING no INDEX refresh fast ON demand USING DEFAULT local ROLLBACK segment USING enforced CONSTRAINTS disable query rewrite AS
    SELECT columns ..
    FROM table_1
    UNION ALL
    SELECT columns ..
    FROM table_2
    Please let me know all the possible ways to solve this error.
    Thanks and regards
    12014, 00000, "table '%s' does not contain a primary key constraint"
    // *Cause:  The CREATE MATERIALIZED VIEW LOG command was issued with the
    //          WITH PRIMARY KEY option and the master table did not contain
    //          a primary key constraint or the constraint was disabled.
    // *Action: Reissue the command using only the WITH ROWID option, create a
    //          primary key constraint on the master table, or enable an existing
    //          primary key constraint.

Maybe you are looking for

  • Grid with check box.

    Hi, I want to make a grid with check box. I want to have two column in the grid. One column of the grid will show some column name of a table and the other column will contain check box. If I tick the check box of a the selected row of the grid then

  • How do I reset/restore my late 2011 MBA to factory settings??

    Ok, so I love my MacBook Air that I got for christmas 2011. But the thing is, I have never been great about emails. TOO MUCH JUNK EMAIL!!! Also the whole photostream thing, is kinda overwhelming me because its SUPER hard to delete them off of iPhoto.

  • How to export a flash project with a changing frame rate to a video

    I have a Flash project that is a series of roughly 1000 images.  The result of the images is a simple animation, and there is music imported on a separate layer. There are moments in the music that I wanted to line up with certain frame changes, and

  • Hiding vendor bank info on MIRO/FB60 screen

    HI, In MIRO/FB60 after you enter vendor & other header info, vendor info (address/phone #/bank info) is displayed on the right hand side. Does anyone know a way to hide vendor bank account number and routing number from MIRO/FB60 screen. Client does

  • Question about Chart in WAD ?

    Hi everybody : i have designed  a query about data for every year , and each year has some months , but not every year has integrated data  for every month ,it means there have some years only has data less than 12 months. then i must prepare a chart