Problem in Database View  Creation

Hi,
I was creating a view on few base tables and need to build a datasource on that view to extract the current(Today's) data using a Remote cube onto a report. The selection to be used in the view is SY-DATUM. I could not give this value in the database view but when i am using the Maintanence view it says the cardinality is not established ie there is a problem with joins,i could not have all the required joins with base tables. But while creating database view i could get relations to all necessary base tables but only problem is using of SY-DATUM in selection condition of view.
Could any one of you suggest some solution to overcome this.
Thanks,
Raju

Siva,
While creating the view, you mentiond the tables, right?
Instead of mentioning the table name, mention the view name.
Regards,
Ravi
Note : Please reward the posts that help you.

Similar Messages

  • Set operator NE in Database View creation in  join condition

    Hi Experts,
         I have a requirement to set NE(not equal) operator in join condition of Database View creation. Could you please help me how to set in operator.
    Join condition :
    Ex : BSAK-AUGBL NE BSAK-BELNR.
    You know that by default operator is '='. i want to set NE in place of '='.
    Thanks,

    Hi Chinna,
    Check whether if there is any possibility or not to include more key fields like bukrs, lifnr, gjahr etc in the where condition, so that you query may result faster. Then, there won't be any necessary to create the view.
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

  • Problem in database fields creation using default class of B1DE Wizard

    Hi Experts
    In an AddOn I am creating database fields in default class "Project_DB'. It does not give any message weather it creates fields or not. My code for database creation is given below
    Namespace FormARE
        Public Class FormARE_Db
            Inherits B1Db
            Public Sub New()
                MyBase.New
                B1Connections.theAppl.StatusBar.SetText("Please wait. AddOn is updating database", BoMessageTime.bmt_Long, BoStatusBarMessageType.smt_None)
                Columns = New B1DbColumn() {New B1DbColumn("OCRD", "BondNo", "Bond No.", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OCRD", "BFrDate", "Bond From Date", BoFieldTypes.db_Date, BoFldSubTypes.st_None, 10, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OCRD", "BTDate", "Bond To Date", BoFieldTypes.db_Date, BoFldSubTypes.st_None, 10, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OINV", "Cntner_no", "Container No.", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OINV", "Cntnr_Seal", "Container Seal No.", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OINV", "Cust_Seal", "Custom Seal No.", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OINV", "ctryOrgn", "Country of Origin", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1)}
                GC.Collect()
                B1Connections.theAppl.StatusBar.SetText("Successfully updated database", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success)
            End Sub
        End Class
    End Namespace
    It does not give first message. and second message come properly and immediately when I start the AddOn. I checked it makes all fields accuratly. But when I open the related form it gives error message "Data Source not found". I checked fields name are same as used in form and database .What can the reason? Should I use a simple function for creation of database fields which will run when a button is pressed? Is it fine to using default class for database fields creation?
    Thanks
    Best Regards
    Jitender

    I solved the problem.
    Procedure I followed :
    UNINSTALL ORACLE WRAEHOUSE BUILDER SOFTAWARE.
    'GLOBAL_NAMES = FALSE' in init.ora file.
    RESTARTED MY MACHINE.
    INSTALL THE ORACLE WRAEHOUSE BUILDER SOFTAWARE.

  • Problem creating Database view

    Hi ABAP experts,
    I have created an ABAP database view with tables /SAPAPO/MATLOC, /SAPAPO/MATKEY and /SAPAPO/LOC.
    I am taking snp planner (PLANNER_SNP) and ppds planner (PLANNER_PPS) from table /SAPAPO/MATLOC. I want their descriptions also in the same view which is there in an another database table /SAPAPO/PLANNER. but when i use this table in the join number of entries in the view appears to be zero. I dont know why..
    Can anybody suggest me how can I put descriptions of SNP planner and PPDS planner also in the same view.
    Also view is getting created with all the fields as key fields by default but I want only three feilds to be the key feilds.
    Can anybody help in this matter.
    Thanks a lot
    Best Regards,
    Chandan Dubey

    I can't see the structure of these tables but apparently your join condition is not well done. Ensure foreing keys for /SAPAPO/MATLOC exist in /SAPAPO/PLANNER (or vice versa dependig on which table has primary key) . Try doing a view first only with these two tables, then if this works expand it to the two other tables. This will give you an overview were is the logic (relationship) problem.
    As for your second question system will suggest key relationship, of which you can delete some relations. In this case you don't need to use all of them but only part of the key fields to be compared. Just select relationship you don't want and delete it. when using this view only these fields will be used to formluate join condition.
    I hope this helps you
    Marcin

  • Queston about database view creation

    I would like to ask whether I can view including 2 tables with left outer join relationship?
    i.e. a outer join b on ....
    thanks!

    You can use only projection view or database view in your ABAP program.
    <b>Projection view</b>
    Just retrieves some fields from only one table.
    <b>Help view</b>
    This is used for search help.
    <b>Database view</b>
    This is inner join view.
    Views in the ABAP Dictionary are implemented as inner joins. If you want to include all of the data from the outer table, you can program a left outer join in ABAP.
    See http://help.sap.com/saphelp_nw04/helpdata/en/aa/47349a0f1c11d295380000e8353423/content.htm for more reference.
    Ps: Reward points if helpful.

  • Problem in Dynamic View Creation

    Hello  Every1,
       I have to create 2 views (view1 and view2). If there is any alternation (adding/deleting fields) in view1 it has to reflect automatically in view2 also.If u have any idea how to do this please let me know.
    Regards,
    Siva.

    Siva,
    While creating the view, you mentiond the tables, right?
    Instead of mentioning the table name, mention the view name.
    Regards,
    Ravi
    Note : Please reward the posts that help you.

  • 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

  • HR transactions and functionality and creation of Database view

    Hi Guys
        I am new to HR module . can anybody send me the list of transaction codes with HR functionalities.
    I also have to made a database view from hrp1001 and hrp1010 table to list all chief positions who are head of business group , Business unit , Site etc .
    Could you help me in creating this databse view.

    Hi,
    These are HR Infotypes
    0000    Events
    0001    Org assignment
    0002    Personal info
    0003    Payroll data
    0007    Work time
    0008    Basic pay
    0014    Reoccurring pay
    0015   1 X pay
    0027   Cost Center
    0041   Event Dates
    0057   Membership dues
    0165   Over ride  to limits on deductions
    0167   Health
    0168   Insurance
    0169   Savings
    0170   Spending   
    0194   Garnishment reduction
    0195   Garnishment order
    0207   Residence Tax
    0208   Work Tax
    0209   Unemployment Tax
    0210   Withholding
    0216   Garnishment adjustment
    0221   Adjustment
    0267   Off cycle
    2005   OT
    2010   Catts direct to cluster
    1000   Infotypes 1000 – 1999 are PD Relationship infotypes
    Logical Database (PNP) ·     
    Programming with Infotypes ·     
    Processing Time infotypes/Cluster ·     
    Processing Payroll infotypes/Cluster
    In OM level hrp 1001 and 1010 will be there.
    If u want total transactions goto SE11->TSTC Table.
    ****POINTS TO BE CONSIDERD
    Thanks
    P.SRIKANTH

  • CMP Entity Bean from dataBase views

    Hi forum,
    I Have to migrate an existing application to JEE (with EJB3).
    In this application there are a lot of dataBase views.
    I'm new in EJB3 and I don't know how to structure cleanly entity beans (Specially when it are created from dataBase views).
    My problem is that for each query made from the same dataBase view I almost have to create a new entity bean with a different @Id.
    What can I do to to avoid it?
    I had thought to genrate a new @Id (attribute not persistent) but I think is not possible. It's right ?
    Someone can help me ?
    Thanks

    "CMP provides you with database independence and less coding efforts."
    BMP is not database dependent, unless you invoke database specific things in your SQL (something I do not do). CMP on the otherhand is inherently appserver specific (which was it's goal when BEA, IBM, et al. came up with it), and still limits your design possibilities. See this thread for an example:
    http://forum.java.sun.com/thread.jsp?forum=13&thread=318785
    As for less coding effort, that is a relative statment. Yes a simple CMP bean requires less coding to develop the first time. I personally view a few lines of SQL to load and store the data as being fairly trivial. But that needs to be offset with the problems inherent in using appserver specific CMP implementations.
    As an example, try mapping WebSphere CMP to a pre-existing database without using IBM's IDE. It's an incredible pain in the ass since WebSphere does not come with a "meet-in-the-middle" solution. Any J2EE developer that has had the experience of working with different appservers (especially if they have had to port an app, as I have) can attest to the complications that arise with each implementation.
    A BMP bean, written with non-DB-specific SQL, is the most portable, most flexible approach to EntityBeans. Yes, it requires the developer to be able to write some SQL, which should not take a significant amout of time. WRT queries, you have to write them, either SQL, EQL, or some appserver specific format.
    As an aside, the use of code generators to simplify the creation of EJBs lends itself well to BMP. By using a (or writing your own) code generator, you can mitigate the annoying SQL bugs that creep up early in development.

  • JDeveloper 3.0 and Database-Views

    I have started to test JDeveloper and have the first problem.
    I make extensive use of database-saved views and started with the Package Wizard to create default business-objects (view objects and view links).
    But when I select a database-view I get a save error: Entity creation failed no primary key attributes and does not support ROWID. oracle.jbo.dt.objects.Jbo.Exception
    The connection was established with jdbc.oracle.thin, the database is NT-Version 7.3.4, JDeveloper is Version 3.0 (Build 532).
    What have I done wrong or is it not possible to connect to views ???
    I hope for your help.
    Henry
    null

    Dan,
    JDeveloper 3.0 provides an 'Add-In API' and 'Custom Addins' for
    integration with third-party vendors. These were also in place
    for 2.0.
    If you go to the JDeveloper page, there are HTML documents
    available under the 2.0 Technical Information section, and also
    an online walkthrough available if you follow the 'Online Demo'
    link.
    Laura
    Dan Schroeder (guest) wrote:
    : Will JDeveloper 3.0 support source control integration? I am
    : currently MKS Source Integerty 7.5. I haven't seen any
    : references about source control within JDeveloper 3.0.482, but
    : someone told me that it may be available as an add on.
    null

  • Database View do not refresh in ADF application

    Greetings,
    im facing a weird problem in my application (JDeveloper 11.1.2.4.0 - ADF). All this time i was working directly with tables (VO), but now i also started using database views.
    Everything works fine, when i add a new row in a table that my Database Views is associated with, it refresh properly.
    BUT if i delete rows manually from my database, the View do not refresh in my application, not by refreshing the page,
    redeploying application, even executing the view object query inside the view object. The only way for the DB View to be
    refresh inside the JDeveloper and on deployment time is by restart JDeveloper. I try adding an action on my OV to re-execute them when
    i do something specifically, hopefully the will reset the cache and retrieve the DB view again, but with no luck..
    Correction: now it doesnt even refresh on restart jdeveloper.
    Just for the clarification, im talking about Database Views, and not just Object Views. I create a Object View inside the application to retrieve the data
    from the Database View results.
    Can you help me on this please?

    Yes the queries in SQLDeveloper was showing me correct results.
    But i feel disappointed.. When i went to close SQLDeveloper to try something, it pop me a message to commit/rollback changes.
    After i commit them, my app show correct results too.

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Interactive report performance problem over database link - Oracle Gateway

    Hello all;
    This is regarding a thread Interactive report performance problem over database link that was posted by Samo.
    The issue that I am facing is when I use Oracle function like (apex_item.check_box) the query slow down by 45 seconds.
    query like this: (due to sensitivity issue, I can not disclose real table name)
    SELECT apex_item.checkbox(1,b.col3)
    , a.col1
    , a.col2
    FROM table_one a
    , table_two b
    WHERE a.col3 = 12345
    AND a.col4 = 100
    AND b.col5 = a.col5
    table_one and table_two are remote tables (non-oracle) which are connected using Oracle Gateway.
    Now if I run above queries without apex_item.checkbox function the query return or response is less than a second but if I have apex_item.checkbox then the query run more than 30 seconds. I have resolved the issues by creating a collection but it’s not a good practice.
    I would like to get ideas from people how to resolve or speed-up the query?
    Any idea how to use sub-factoring for the above scenario? Or others method (creating view or materialized view are not an option).
    Thank you.
    Shaun S.

    Hi Shaun
    Okay, I have a million questions (could you tell me if both tables are from the same remote source, it looks like they're possibly not?), but let's just try some things first.
    By now you should understand the idea of what I termed 'sub-factoring' in a previous post. This is to do with using the WITH blah AS (SELECT... syntax. Now in most circumstances this 'materialises' the results of the inner select statement. This means that we 'get' the results then do something with them afterwards. It's a handy trick when dealing with remote sites as sometimes you want the remote database to do the work. The reason that I ask you to use the MATERIALIZE hint for testing is just to force this, in 99.99% of cases this can be removed later. Using the WITH statement is also handled differently to inline view like SELECT * FROM (SELECT... but the same result can be mimicked with a NO_MERGE hint.
    Looking at your case I would be interested to see what the explain plan and results would be for something like the following two statements (sorry - you're going have to check them, it's late!)
    WITH a AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_one),
    b AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_two),
    sourceqry AS
    (SELECT  b.col3 x
           , a.col1 y
           , a.col2 z
    FROM table_one a
        , table_two b
    WHERE a.col3 = 12345
    AND   a.col4 = 100
    AND   b.col5 = a.col5)
    SELECT apex_item.checkbox(1,x), y , z
    FROM sourceqry
    WITH a AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_one),
    b AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_two)
    SELECT  apex_item.checkbox(1,x), y , z
    FROM table_one a
        , table_two b
    WHERE a.col3 = 12345
    AND   a.col4 = 100
    AND   b.col5 = a.col5If the remote tables are at the same site, then you should have the same results. If they aren't you should get the same results but different to the original query.
    We aren't being told the real cardinality of the inners select here so the explain plan is distorted (this is normal for queries on remote and especially non-oracle sites). This hinders tuning normally but I don't think this is your problem at all. How many distinct values do you normally get of the column aliased 'x' and how many rows are normally returned in total? Also how are you testing response times, in APEX, SQL Developer, Toad SQLplus etc?
    Sorry for all the questions but it helps to answer the question, if I can.
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • How to call database view in report

    Hi i have a small problem in report
    the problem is like this i had created a database view in which i got all the values displayed but can any one of you tell me how to declare this database view in report with example
    i had created a database view named as znew1
    and the fields are
                 LIFNR  LIKE EKKO-LIFNR,
                 EBELN  LIKE EKKO-EBELN,
                 LIFNR1 LIKE LFA1-LIFNR,
                 NAME1  LIKE LFA1-NAME1,
                 EKBE   LIKE EKBE-EBELN,
                 VGABE  LIKE EKBE-VGABE,
                 MATNR  LIKE EKPO-MATNR,
                 WERKS  LIKE EKPO-WERKS,
                 NETWR  LIKE EKPO-NETWR,
                 MENGE  LIKE EKPO-MENGE,
                 MWSKZ  LIKE EKPO-MWSKZ,
                 TXZ01  LIKE EKPO-TXZ01,
                 KOSTL  LIKE EKKN-KOSTL,
            PS_PSP_PNR  LIKE EKKN-PS_PSP_PNR,
                 EBELN1 LIKE EKKN-EBELN,

    Hi Mr. Rich
    This is the program code and i want this output int he alv grid format
    TABLES:EKKO,EKBE,EKPO.
    DATA:BEGIN OF RTAB_ALV OCCURS 30,
                 LIFNR  LIKE EKKO-LIFNR,
                 EBELN  LIKE EKKO-EBELN,
                 LIFNR1 LIKE LFA1-LIFNR,
                 NAME1  LIKE LFA1-NAME1,
                 EKBE   LIKE EKBE-EBELN,
                 VGABE  LIKE EKBE-VGABE,
                 MATNR  LIKE EKPO-MATNR,
                 WERKS  LIKE EKPO-WERKS,
                 NETWR  LIKE EKPO-NETWR,
                 MENGE  LIKE EKPO-MENGE,
                 MWSKZ  LIKE EKPO-MWSKZ,
                 TXZ01  LIKE EKPO-TXZ01,
                 KOSTL  LIKE EKKN-KOSTL,
            PS_PSP_PNR  LIKE EKKN-PS_PSP_PNR,
                 EBELN1 LIKE EKKN-EBELN,
         END OF RTAB_ALV.
    DATA:IZNEW1 TYPE TABLE OF ZNEW1 WITH HEADER LINE.
    select * into table IZNEW1 FROM ZNEW1 UP TO 10000 ROWS.

  • Maintaince view creation for a cluster table

    Hi friends,
    I have created a maintaince view for a cluster table bseg and i have activated it its working fine..
    now my problem is i can create maintaince view for mutiple tables if other tables are linked with primary table using foriegn key relationship..
    Now can any one tell me is it possible to create maintance view for cluster table with multiple tables as i need a linked table with bseg which iam not able to get... ie : when i click on the relationship tab iam not getting the linked tables for bseg...
    now can i create a maintaince view with 2 linked cluster tables..
    if so can any one tell me how to create it.
    As sap says we can create projection view for cluster and pooled table and we cannot create database view for cluster and pooled tables , but it does not mentioned like that for maintaince view....
    I assume we can do it.... as iam trying to create a maintaince view with single cluster table then it shoudl allow me to create for multiple linked cluster tables.... and is it mandatory to maintain TMG for this maintaince view....?
    Regards
    KUMAR

    yes.. ur right inserting values into a cluster table other than standard sap tarnactions is dangerious....
    But sap didnot mentioned any where that we cannot maintain data for cluster tables using maintaince view... which it said for database view..that pooled and cluster table cannot be used for database view..
    Regards
    Kumar

Maybe you are looking for

  • The relation between free goods and taxation

    <b>Dear all;</b> I have a problem when i create free goods condition and it's working. Here is the Business Scenario.... my condition if the customer purchases from material XXX 10 EA we should be given a material XXX one unit free (free goods) and w

  • Error when calling SOAP Runtime functions

    Hi Guys, I have a requirement in which i have to consume a webservice and get a response from it but when i consumed the web service and tried to test it i got the below error please let me know solution for this as it is very urgent and also i am ve

  • IOS 5.1.1 messaging app broken after long message.

    So I sent my dad a long message of just "ugh..." with about 50 "h"'s. Now his messaging app is broken, and when you try to open the app it's just a blank screen. And sometimes you can't leave the app without resetting the phone. I've already tried ki

  • Microphone and camera translation not optional

    I've added permissions for use of the camera and microphone, but the app wont let me select them. Any ideas as to why? <html:div data-url="https://social.msdn.microsoft.com/Forums/en-US/4dbbeae1-74a7-4e0f-bb66-e0c397005dc6/microphone-and-camera-trans

  • View maintenance dialog

    Hi all, I am facing an issue in view maintenance dialog, during UCCHECK, it is showing as error with description as follows: Generated Code for View Maintenance Dialog is not Unicode-Compatible You can regenerate with the program RSVIMT_UC_VIEW_MAINT