View creation on MKPF and MBEW

Hi gurus,
I want to create a view on mkpf and mbew data base table for creating the generic extractor. Can one please tell me the step by step procedure or any screen shots send to mail id, my id is [email protected]
i will be grateful if any help is provided.
Thanks in advance.

Hi ,
chk this
views
http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ec5d446011d189700000e8322d00/content.htm
creating views
http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/f5/35c83ecedc636be10000000a114084/content.htm
Cheers,
Swapna.G

Similar Messages

  • Do you allow query or view creation in QA and PRD?

    Do you allow queries, views and workbooks to be created in QA or PRD?  If so, do you transport those BEx Objects into the other systems (e.g. PRD->QA and PRD->DEV or QA->PRD and QA->DEV)?
    Often I find I will be creating a query or a view in QA or PRD because those systems happen to have the data I am required to analyze.  DEV does not always have the data available.  But how do I move this BEx object to the other systems?
    This happens most often to views of a query, but also applies to queries, workbooks etc.  Like changing a workbook already transported to production.
    Thanks for your input.

    Hi Peter,
    In our system we (developers) are allowed to create / modify queries in the QA and Prd system. We do not actually 'develop' here, but we have this access for the reason you mention (data availability). The main query development is carried on in the Dev system and transported up, but the change access lets us to quickly solve issues many times. If we do put in a change in teh query, we replicate the change made in the dev system and transport it...no reverse transports are set up in the system.
    Hope this helps...

  • Automatic storage location view creation in maintenace order (IW31)

    Hello,
    Seems like I need some help.
    Have configured automatic storage location view creation for GR and reservation. Configured movement types are 101, 201, 261. While creating reservations (201, 261 mvmnt. types) with mb21 the sloc view is automatically created in material master, and everything seems fine.
    But in iw31 when I specify material number and sloc in a Components tab, I get an error message CO312: "The storage location data is not created". Automatic reservation is not created, and maintenance order can not be saved. Movement type 261 is used for automatic reservations for the maintenance order.
    If I configure message CO312 as a (W)arning  message, then it allows me to save the order and reservation, but sloc view in material master still is not created. Think that's not good and may lead to MRP issues.
    How can I configure automatic sloc view creation in iw31? Is that possible?
    Edited by: Konstantin Dudura on Nov 17, 2009 8:11 PM

    Hi,
    The customization required for Automatic Storage location creation at reservation are:
    Goto : SPRO -> MM -> inventory Management and physical inventory -> Goods issue/ Transfer posting -> Create storage location automatically
    first of all go to Plant and tick the automatic Storage location creation for the Plant. After that goto Movement type and tick the automatic Storage location for movement type 261.
    Regards

  • View on RESB and MBEW tables

    Hi gurus,
    I want to create view on RESB and MBEW tables. Can any one tell me which field i need to take as delta field in the Generic datasource for this view.
    Thanks in advance.

    Hi,
         Go through this link http://rlaan.mine.nu/SAP-Tables/SAP%20Table%20Listing.htm.
    Regards
    Sridhar

  • Materialized View creation  advice and SQL advice

    I want to create a materialized view for the table below. The materialized view should query data from only this table and i want to join 2 rows to one.
    The key for the joins are the column internal_correlation_id which is unique for request/response pair.
    The table is updated every day with 2 million rows.
    What type of materialized view should i use and how can i query to get one row?
    CREATE TABLE EVENT (
           caller_id                              VARCHAR2(255)          NOT NULL
         , service_id                         VARCHAR2(255)          NOT NULL
         , country_code                         VARCHAR2(2)
         , internal_correlation_id                  VARCHAR2(255)          NOT NULL  -- Unique for request response pair
         , received_date                         DATE                    NOT NULL
         , status                              VARCHAR2(20)
         , queue_name                         VARCHAR2(255)          NOT NULL
         , USER_ID                              VARCHAR2(50)
         , engine_id                         VARCHAR2(50)
         , tracking_correlation_id                  VARCHAR2(2000)
         , mnc                              VARCHAR2(20)
         , mcc                              VARCHAR2(20)
         , request_type                         VARCHAR2(50)  -- REQUEST or RESPONSE
         , app_id                              VARCHAR2(50)
         , failure_code                         VARCHAR2(50)
         , failure_string                            VARCHAR2(255)
         , created_date                          DATE DEFAULT SYSDATE
        , updated_date                              DATE DEFAULT SYSDATE
        DB release 11G release 1
    Edited by: Alekons01 on Mar 24, 2012 2:43 PM

    Anyway, I don't believe you will be able to create MV with fast refresh. MV with complete refresh:
    CREATE MATERIALIZED VIEW event_mv
      BUILD IMMEDIATE
      REFRESH COMPLETE ON DEMAND
      AS
        SELECT  e1.caller_id req_caller_id,
                e1.service_id req_service_id,
                e1.country_code req_country_code,
                e1.internal_correlation_id req_internal_correlation_id,
                e1.received_date req_received_date,
                e1.status req_status,
                e1.queue_name req_queue_name,
                e1.user_id req_user_id,
                e1.engine_id req_engine_id,
                e1.tracking_correlation_id req_tracking_correlation_id,
                e1.mnc req_mnc,
                e1.mcc req_mcc,
                e1.request_type req_request_type,
                e1.app_id req_app_id,
                e1.failure_code req_failure_code,
                e1.failure_string req_failure_string,
                e1.created_date req_created_date,
                e1.updated_date req_updated_date,
                e2.caller_id rsp_caller_id,
                e2.service_id rsp_service_id,
                e2.country_code rsp_country_code,
                e2.internal_correlation_id rsp_internal_correlation_id,
                e2.received_date rsp_received_date,
                e2.status rsp_status,
                e2.queue_name rsp_queue_name,
                e2.user_id rsp_user_id,
                e2.engine_id rsp_engine_id,
                e2.tracking_correlation_id rsp_tracking_correlation_id,
                e2.mnc rsp_mnc,
                e2.mcc rsp_mcc,
                e2.request_type rsp_request_type,
                e2.app_id rsp_app_id,
                e2.failure_code rsp_failure_code,
                e2.failure_string rsp_failure_string,
                e2.created_date rsp_created_date,
                e2.updated_date rsp_updated_date
          FROM  event e1,
                event e2
          WHERE e2.internal_correlation_id = e1.internal_correlation_id
            AND e1.request_type = 'REQUEST'
            AND e2.request_type = 'RESPONSE'
    /SY.

  • Reg View creation in Generic

    Hi SDN,
    Im trying to create Generic Data source of View Method. I wanted to create View on BSID ( Closed Customer Invoices) and BSAD ( Open Customer invoices) Tables, But while creating its giving error as "THERE IS NO RELATION BETWEEN THE TABLES"  I want to know how to create Relation Between the tables. Both BSID & BSAD are standard tables, so we cant make any changes.
    Please let me know the procedure to bulid Rlation between the tables.
    Regards
    Sujan

    Hi Siva,
        You have to give relation between these two tables in tab "Table/Join Conditions".
    Creating Views:
    http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    View creation fr generic extraction
    Hope it Helps

  • View creation - filtering receiving time intervals

    I want to create some new views for my team.
    We handle e-mails in shifts (most of the time there are 6 of them) so in each hour it looks like the below (we use 24 hour clock from 14:00 to 21:59 so 2PM to 10PM):
    6/1 - 14:00 - 14:09 // 15:00 - 15:09 // 16:00 - 16:09 // .................... // 21:00 - 21:09
    6/2 - 14:10 - 14:19 // 15:10 - 15:19 // 16:10 - 16:19 // .................... // 21:10 - 21:19
    6/3 - 14:20 - 14:29 // 15:20 - 15:29 // 16:20 - 16:29 // .................... // 21:20 - 21:29
    6/4 - 14:30 - 14:39 // 15:30 - 15:39 // 16:30 - 16:39 // .................... // 21:30 - 21:39
    6/5 - 14:40 - 14:49 // 15:40 - 15:49 // 16:40 - 16:49 // .................... // 21:40 - 21:49
    6/6 - 14:50 - 14:59 // 15:50 - 15:59 // 16:50 - 16:59 // .................... // 21:50 - 21:59
    I would like to create the view based on that.
    So first mail shift (6/1) can only see what is coming in between 00-09 in every hour, second (6/2) can only see what is com in in between 10-19...and so on...
    I did it with the advanced view settings, but I have 2 issues:
    1. It is using the date of the creation so is it possible to put in a function which takes the actual date, like CURDATE() ?
    2. Somehow a few e-mails are missing, so it works almost fine, takes almost everything but it seems that a few e-mails are missing from the new view and they are there in the original view. I checked and no other filters are turned on, so this must
    be something else. The filter is based on the 'Received' timing and I'm not sure if anything else interacts.
    For example in the 4th shift (6/4) there were like 10 e-mails missing during my test day at minute :30, but there were some at 15:30, 16:30 and 18:30 which  were in the filtered view. I first thought it's the <= and >= settings, but it shows
    that it is not. I have no idea why it skips e-mails...
    The SQL code is the below for the first shift (6/1):
    (("urn:schemas:httpmail:datereceived" >= '2014.04.07
    14:00' AND
    "urn:schemas:httpmail:datereceived" <= '2014.04.07 14:09') OR
    ("urn:schemas:httpmail:datereceived" >= '2014.04.07 15:00' AND
    "urn:schemas:httpmail:datereceived" <= '2014.04.07 15:09') OR
    ("urn:schemas:httpmail:datereceived" >= '2014.04.07 16:00' AND
    "urn:schemas:httpmail:datereceived" <= '2014.04.07 16:09') OR
    ("urn:schemas:httpmail:datereceived" >= '2014.04.07 17:00' AND
    "urn:schemas:httpmail:datereceived" <= '2014.04.07 17:09') OR
    ("urn:schemas:httpmail:datereceived" >= '2014.04.07 18:00' AND
    "urn:schemas:httpmail:datereceived" <= '2014.04.07 18:09') OR
    ("urn:schemas:httpmail:datereceived" >= '2014.04.07 19:00' AND
    "urn:schemas:httpmail:datereceived" <= '2014.04.07 19:09') OR
    ("urn:schemas:httpmail:datereceived" >= '2014.04.07 20:00' AND
    "urn:schemas:httpmail:datereceived" <= '2014.04.07 20:09') OR
    ("urn:schemas:httpmail:datereceived" >= '2014.04.07 21:00' AND
    "urn:schemas:httpmail:datereceived" <= '2014.04.07 21:09'))
    Please if you have any idea what could be wrong, maybe I should add something else to the filter please get back to me. This way it is useless and I really want us to use view because we have about 50 emails per shift in every hours.
    Thank you!

    1.  I can't help you with this.
    2. What about mail that comes in at 14:09:30?  It would be dropped, no?  I think your logic should be:
    ...("urn:schemas:httpmail:datereceived" >= '2014.04.07
    14:00' AND
    "urn:schemas:httpmail:datereceived" < '2014.04.07 14:10') OR...
    You didn't ask, but a problem I would have with your approach is that it's based on views, which isn't exactly best for accountability.  I would think you'd want to be using some kind of code that routes mail to the mailboxes of those responsible rather
    depending on them seeing it in a shared mailbox.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • View creation very slow - not materialized view

    I have a view creation script which is running in a fraction of a second in the dev environment but takes over an hour to run in the test environment.
    The test environment is off-site, so I have no direct access to it. It does have a lot more data in than dev, but this is not a materialised view so as far as I understood it the amount of data in the system shouldn't affect the time to create the view.
    I haven't been able to find any information on what can make this happen. In the development environment I can be querying the view (or can lock it directly), and am still able to run the CREATE OR REPLACE statement without any performance impact. The view does contain function calls and is created with the FORCE keyword, but I can't find any evidence that this should affect the speed of creation.
    I am running Oracle 10g (10.2.0.4.0) on Solaris in both dev and test environments.
    Any ideas on what could be causing this are very welcome.
    CREATE OR REPLACE FORCE VIEW DB_OWNER.PER$AGE
    SYSTEM,
    LOCATION,
    EVENT_START,
    SURNAME,
    DOB_STRING,
    DESCRIPTION,
    GENDER,
    OLD_ID,
    URN,
    COMBINED_SCORE,
    LOAD_DATETIME,
    AGE,
    EVENTDATE_FROM,
    EVENTDATE_TO,
    DETAILS,
    AOB
    AS
    SELECT /*+ leading(ad) */
    p.system,
    p.location,
    p.event_start,
    p.surname,
    CAST (
    NVL (
    NVL2 (
    p.dob,
    TO_CHAR (p.dob, 'dd/mm/yyyy'),
    TO_CHAR (
    p.apparent_age
    + ROUND ( (SYSDATE - p.created_datetime_from) / 365, 0))),
    0) AS VARCHAR2 (10))
    AS dob_string,
    p.description,
    p.gender,
    p.old_id,
    p.urn,
    NVL2 (
    p.dob,
    db_owner.app_age_score (p.dob, ssearch.get_target_age),
    db_owner.age_score (p.apparent_age,
    p.created_datetime_from,
    ssearch.get_target_age))
    AS combined_score,
    p.load_datetime,
    psd.age,
    psd.eventdate_from,
    psd.eventdate_to,
    e.details,
    NVL (e.aob, 'N/A') aob
    FROM db_owner.person p,
    db_owner.psd psd,
    db_owner.entity e
    WHERE p.db_key = psd.db_key
    AND psd.age IS NOT NULL
    AND e.system(+) = p.system
    AND p.system IN (SELECT internal_name
    FROM ops$tomcat.feed_details
    WHERE inSearchList = 'true')
    AND e.urn(+) = p.urn;

    Hi,
    Thanks for the response.
    Trying the same thing without the FORCE keyword made no difference, the view still takes a long time to compile and there are no compilation errors.
    On the development system, I have run a long-running query on the view and checked V$Access. This returns a record for the view, but I can still successfully run the CREATE OR REPLACE statement on the view in another session. This appears to show that a record in V$Access doesn't mean that the view can't be recompiled.
    On the test system there are no other sessions connected and no records for the view in V$Access.
    Does anyone have any other ideas?

  • Personalized view creation in OA Framwork

    HI ,
    I am developing a search Trasaction in OAF using Query Region (AtuoCustomization Mode ). I developed the simple search and advanced search with dyamanic where caluse (I am setting the where clause and not using the where caluse genrate by Search Framwork ) . now i have to develope the personalized View page . i am using same method used in simple search and advance search for genrating where caluse dayanamiclly . but problem is that in personiazied view i am not able to invoke that method as i am not getting the how to handle the apply and apply & view result button in view panal . if anyone work on personalized View creation or know anything about creation of personalized view , please share your knowladge . its urgent , please help me
    regards,
    Vishal

    Looks like you are running a page which is part of a multipage transaction. Check the page function and make sure that page is not expecting any parameter, all the corresponding class files are present in the myclasses folder.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • View creation fr generic extraction

    Hai Experts,
    when we are create view from two different table ,wht is the crieteria that should  satisfy  between tables..... and at the time of datasource creation which type we need to select (master/trans)..as i found both master and transaction field in one table
    Can any one send the step by step process to create view..
    I have one more scenario ie .,i need to create a datasource from tables which belong to diff applications and their primary key is different ,can any one tell me how to create a datasource using function module,step by step process..
    thnks in advance,
    Regards,
    Suri

    hi,
    try these links for view creation...
    http://help.sap.com/saphelp_nw04/helpdata/en/f5/35c83ecedc636be10000000a114084/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/43473ccf20514ee10000000a114084/content.htm
    http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    http://www.sapdb.org/7.4/htmhelp/ee/1c5be2eba711d4aa2800a0c9430730/content.htm
    hope it helps...

  • Tree View Creation error

    Hi,
    I have to create  tree view. I followed the stpes mentioned at the following link.
    Tree View
    I have created a Z-structure and created a table view in the component BT111H_OPPT component.
    While trying to modify the .htm page for the tree view, with the code mentioned at above link, I am getting following error.
    "node_tab is unknown. Not declared by a data statement."
    (see the line number 4 -  nodeTable = "<%= mytreenode->node_tab %>")
    I am using the following code.
    <chtmlb:tableExtension tableId = "Table"
                           layout  = "FIXED" >
      <chtmlb:configTree id                        = "configTree"
                         nodeTable                 = "<%= mytreenode->node_tab %>"
                         nodeTextColumn            = "NODE_TYPE"
                         onCollapseNode            = "nodeCollapse"
                         onExpandNode              = "nodeExpand"
                         onRowSelection            = "select"
                         onNodeClick               = "nodeClick"
                         ajaxDeltaHandling         = "FALSE"
                         headerText                = "Demo Tree"
                         allRowsEditable           = "TRUE"
                         selectionMode             = "SINGLESELECT"
                         table                     = "//mytreenode/Table"
                         tableLayout               = "AUTO"
                         visibleRowCount           = "12"
                         usage                     = "EDITLIST"
                         fillUpEmptyRows           = "FALSE"
                         personalizable            = "TRUE"
                         scrollable                = "TRUE"
                         noFrame                   = "X"
                         downloadToExcel           = "FALSE"
                         onClose                   = "closeTree"
                         onIncreaseSize            = "increaseTree"
                         nodeTextColumnDescription = "NODE" />
    </chtmlb:tableExtension>
    Please let me know where and how should I decalre it.
    Regards,
    Ansal

    Thanks Arun.. for the quick response...
    After view creation, I was directly following your second section of the thread....
    My issue is resolved....
    Hope to get further help for this object development.
    My requirement is add a new assignment block in opportunity screen which will show all the quotation,with their details, created for this opportunity and on click of each quotation id, all the items mapped to that particular quotation should be visible in same view.
    Thanks & regards,
    Ansal

  • Materialized View creation with REFRESH FAST

    Hello ,
    Please see below case,
    TABLE A1(partitioned range+list)
    COLUMN C1  -- Primary key
    COLUMN C2  -- NUMBER
    TABLE D1
    COLUMN C1 -- PRIMARY KEY
    created MV log as below
    CREATE MATERIALIzED VIEW LOG ON A1 WITH ROWID,PRIMARY KEY INCLUDING NEW VALUES;
    CREATE MATERIALIzED VIEW LOG ON D1 WITH ROWID,PRIMARY KEY INCLUDING NEW VALUES;
    Trying to create MV like below:
    CREATE MATERILIZED VIEW mv1test
                                    REFRESH FAST ON COMMIT
    AS
    Select
    FROM A1,
                            D1
                    WHERE A1.C1 = D1.CI
    AND A1.C2 IS NOT NULL;
    It gives below error message:
    ORA-12052: cannot fast refresh materialized view schema.mv1test
    12052. 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.
    However ,as discussed in earlier thread i checked all general restrictions of the 'Refresh fast' approach for join.
    Restrictions on Fast Refresh on Materialized Views with Joins Only
    Defining queries for materialized views with joins only and no aggregates have the following restrictions on fast refresh:
    1) They cannot have GROUPBY clauses or aggregates.
    2) Rowids of all the tables in the FROM list must appear in the SELECT list of the query.
    3)Materialized view logs must exist with rowids for all the base tables in the FROM list of the query.
    4)You cannot create a fast refreshable materialized view from multiple tables with simple joins that include an object type column in the SELECTstatement.
    As per above restrictions ,
    1) Group by clause is not present
    2)i do not understand 2nd point , i have added a1.rowid  and d1.rowid in  select statement of MV, but got same error.
    3) observed same as 2nd point.
    4)we have CLOB column in select list. Tried removing this column but got same error.
    Please do let me know any workaround on this.
    Thanks in advanced ..
    PM

    Basic Materialized Views show how to analyse MVs using dbms_mview. I'm not sure about creating MVs on partitioned tables, that partition maintenance might cause problems

  • Oracle doc inconsistent on materialize view with union all and self joins

    First of all, I can't seem to create a materialized view containing self-joins AND union all. Is it possible?
    I checked Oracle 9i (my version: PL/SQL Release 9.2.0.4.0 - Production) documentation and I get different answers (or so it seems to me).
    First I saw this: "The COMPATIBILITY parameter must be set to 9.0 if the materialized aggregate view has inline views, outer joins, self joins or grouping sets and FAST REFRESH is specified during creation..."
    Did you see the part about 'self joins' in there? I did and I was pumped because that seems to say that you CAN have 'self joins' (and my compatibility is 9.2...)
    BUT
    In the very same document I also found "Oracle does not allow self-joins in materialized join views." (rage)
    You can see the document I am speaking of here: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96520/mv.htm#574889
    Whenever I try to create the mview I get the following error. (
    In any caseORA-01446 cannot select ROWID from view with DISTINCT, GROUP BY, etc.

    First of all, I can't seem to create a materialized view containing self-joins AND union all. Is it possible?
    I checked Oracle 9i (my version: PL/SQL Release 9.2.0.4.0 - Production) documentation and I get different answers (or so it seems to me).
    First I saw this: "The COMPATIBILITY parameter must be set to 9.0 if the materialized aggregate view has inline views, outer joins, self joins or grouping sets and FAST REFRESH is specified during creation..."
    Did you see the part about 'self joins' in there? I did and I was pumped because that seems to say that you CAN have 'self joins' (and my compatibility is 9.2...)
    BUT
    In the very same document I also found "Oracle does not allow self-joins in materialized join views." (rage)
    You can see the document I am speaking of here: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96520/mv.htm#574889
    Whenever I try to create the mview I get the following error. (
    In any caseORA-01446 cannot select ROWID from view with DISTINCT, GROUP BY, etc.

  • Batch creation at co11n and co15

    Hi,
    I wann create auto batch creation at the time of order confirmation i.e. at co11n and co15, can anyone tell step by step wht confg shd i require?
    kindly assist

    Hi,
    If you are maintaining batch characteristics you cannnot create auto batch at the confirmation level as you have to create batch by the transaction MSC!N, then you can assign the batch number manually. IF you are not maintaining the batch characteristics then you can create auto batch at the prod order creation level that in the display mode or background, while doing confirmation you can automatically get the batch. If you want to get at the Confirmation level then the following steps
    1. Control key OP00  Allow Auto GR
    2. Scheduling profile OPKP   Auto GR
    3. Order type dependant parameters OPL8 Batch search procedure for 261 mvt type for raw material consumption.
    4. Material master MM01 workscheduling view batch reqd entry and batch managed and prod unit and prod stor loc
    5. Define batch creationn for batch creation for prod order
    6. Define batch creation for Goods movements
    7. Activate batch internal number assignment
    for 5,6,7 SPRO -- Logistics -- General -- Batch management.

  • MAT View Creation Performance Issue

    Hello Experts,
    Below query is executing approximately in 1-3 sec.
    select
    COMMITMENT_ID,
    FUNDING_RULE_ID,
    reporting_year||'-'||reporting_period as RepPeriod,
    GET_START_DAY_OF_PERIOD (FUNDING_RULE_ID, reporting_year, reporting_period) START_DAY_OF_PERIODt,
    GET_END_DAY_OF_PERIOD(FUNDING_RULE_ID, reporting_year, reporting_period) END_DAY_OF_PERIOD
    from
      (select
      COMMITMENT_ID,
      FR_ID as FUNDING_RULE_ID,
      COMT_START_DATE,
      --COMT_TERMINATION_DATE,
      GETREPYEARFROMDATE(COMT_START_DATE,FR_ID) as reporting_year,
      GETREPORTINGPERIOD(to_char(COMT_START_DATE, 'mm') ,FR_ID) as  reporting_period
      from
        select
        COMMITMENT_ID,
        COMT_START_DATE,
        --COMT_TERMINATION_DATE,
        COALESCE(CB_FUNDING_RULE_ID,NC_FUNDING_RULE_ID) FR_ID
        from
        (COMMITMENT_TABLE left outer join (CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE a on
        a.FUNDING_RULE_ID = CB_FUNDING_RULE_ID )
        on COMT_BENEFICIARY_REF = CB_BENEFICIARY_REF
        left outer join (NON_CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE b on
        b.FUNDING_RULE_ID = NC_FUNDING_RULE_ID)
        on
         COMT_BENEFICIARY_REF = NC_BENEFICIARY_REF)
    The query is returning 4.5 lacks of rows.
    I want to create a MAT view by using above query and refresh this on daily basis.
    But the MAT view creation is taking more time near about 401sec (6.68min).
    Why the MAT view is taking more time?
    MAT_VIEW
    CREATE MATERIALIZED VIEW "REP_PERIOD_START_END_DATE"
    AS select
    COMMITMENT_ID,
    FUNDING_RULE_ID,
    reporting_year||'-'||reporting_period as RepPeriod,
    GET_START_DAY_OF_PERIOD (FUNDING_RULE_ID, reporting_year, reporting_period) START_DAY_OF_PERIODt,
    GET_END_DAY_OF_PERIOD(FUNDING_RULE_ID, reporting_year, reporting_period) END_DAY_OF_PERIOD
    from
      (select
      COMMITMENT_ID,
      FR_ID as FUNDING_RULE_ID,
      COMT_START_DATE,
      --COMT_TERMINATION_DATE,
      GETREPYEARFROMDATE(COMT_START_DATE,FR_ID) as reporting_year,
      GETREPORTINGPERIOD(to_char(COMT_START_DATE, 'mm') ,FR_ID) as  reporting_period
      from
        select
        COMMITMENT_ID,
        COMT_START_DATE,
        --COMT_TERMINATION_DATE,
        COALESCE(CB_FUNDING_RULE_ID,NC_FUNDING_RULE_ID) FR_ID
        from
        (COMMITMENT_TABLE left outer join (CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE a on
        a.FUNDING_RULE_ID = CB_FUNDING_RULE_ID )
        on COMT_BENEFICIARY_REF = CB_BENEFICIARY_REF
        left outer join (NON_CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE b on
        b.FUNDING_RULE_ID = NC_FUNDING_RULE_ID)
        on
         COMT_BENEFICIARY_REF = NC_BENEFICIARY_REF)
    Is there any way to make the MAT view creation within 3 minutes?

    CREATE MATERIALIZED VIEW "REP_PERIOD_START_END_DATE"
    AS
    with tab as
    select /*+ materialize */ commitment_id,
                           comt_start_date,
                           --COMT_TERMINATION_DATE,
                           coalesce (cb_funding_rule_id, nc_funding_rule_id)
                              fr_id
                      from (      commitment_table
                               left outer join
                                  (   child_beneficiary_table
                                   left outer join
                                      funding_rule_table a
                                   on a.funding_rule_id = cb_funding_rule_id)
                               on comt_beneficiary_ref = cb_beneficiary_ref
                            left outer join
                               (   non_child_beneficiary_table
                                left outer join
                                   funding_rule_table b
                                on b.funding_rule_id = nc_funding_rule_id)
                            on comt_beneficiary_ref = nc_beneficiary_ref)
    select commitment_id,
           funding_rule_id,
           reporting_year || '-' || reporting_period as repperiod,
           get_start_day_of_period (funding_rule_id,
                                    reporting_year,
                                    reporting_period)
              start_day_of_periodt,
           get_end_day_of_period (funding_rule_id,
                                  reporting_year,
                                  reporting_period)
              end_day_of_period
      from (select commitment_id,
                   fr_id as funding_rule_id,
                   comt_start_date,
                   --COMT_TERMINATION_DATE,
                   getrepyearfromdate (comt_start_date, fr_id) as reporting_year,
                   getreportingperiod (to_char (comt_start_date, 'mm'), fr_id)
                      as reporting_period
              from tab);

Maybe you are looking for