Create DB view  to hold all header sales document data

hi dear
i want Create DB view  to hold all header sales document data on the following tables:
VBAK, VBKD, VBUK, KNA1 as follow:
FROM VBAK:
Sales Document
Created on
Time
Created by
Doc. Currency
Division
Sales Group
Sales Office
FROM VBKD:
Price group
Customer group
Sales district
Price List
Incoterms
Payt Terms
FROM VBUK:
Overall status
Totals status
Pricing
Document cat.
Document object
FROM KNA1:
Name
Name 2
City
Postal Code
Govern.Code
Search term
Street
Telephone 1
Fax Number
One-time acct
Address
2. i want also Select and display all data from that view  from program code, sales order will be the only parameter.
Any pointers in this regard are very much helpful.
Regards
Waseem Hesham

Hello
SE11 -> View -> Create -> Database view
In column TABLES:
VBAK
VBKD
VBUK
KNA1
Join conditions:
VBUK-MANDT = VBAK-MANDT
VBUK-VBELN = VBAK-VBELN
VBAK-MANDT = VBKD-MANDT
VBAK-VBELN = VBKD-VBELN
KNA1-MANDT = VBAK-MANDT
KNA1-KUNNR = VBAK-KUNNR
View fields:
MANDT VBAK MANDT
VBELN VBAK VBELN
ERDAT VBAK ERDAT
ERZET VBAK ERZET
ERNAM VBAK ERNAM
... ENUMERATE HERE ALL FIELDS YOU NEED
Save and activate.
Then in programm:
tables: z_your_view.
data: itable like z_your_view occurs 0.
parameters: p_vbeln like vbak-vbeln.
select * from z_your_view into table itable where vbeln eq p_vbeln.
anything do with data .....

Similar Messages

  • How to block user create personal view and select ALL VIEW?

    How to block user create personal view and select ALL VIEW?

    Hello,
    >create personal view
    To restrict creating personal view, you need to modify your existing permission level or create new one. Login with admin account to your site and open role.aspx page (http://siteurl/_layouts/role.aspx). Then click on existing permission or add new permission
    level-->and move to "Personal Permissions" section-->uncheck "Manage Personal Views - Create, change, and delete personal views of lists" option. Later you can assign this permission to all users, whom you don't want
    to allow to create.
    >and select ALL VIEW
    Since SP does not supports view level permission directly so you have to use custom solution or use below designer solution to restrict user to open any view.
    http://www.codeproject.com/Articles/433486/How-to-set-view-level-permissions-out-of-the-box-i
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Error creating materilalized view with union all

    Could please anybody advice? What I do wrong?
    create table test
    i number not null,
    constraint pk_test primary key( i ));
    create materialized view log on test with rowid;
    create materialized view mvtest refresh fast on demand as
    SELECT i, 1 umarker FROM test where i < 10000
    UNION ALL SELECT i, 2 umarker FROM test where i > 10000;
    ORA-12052: cannot fast refresh materialized view MVTEST
    It looks like I accomplished all fast refresh requirements, didn't I?
    Thanks a lot.
    Alexander.

    SQL> create table test
      2  (i number not null,
      3  constraint pk_test primary key( i ));
    Table created.
    SQL> create materialized view log on test with rowid;
    Materialized view log created.
    SQL> create materialized view mvtest refresh fast on demand as
      2  SELECT t.i, 1 umarker, t.rowid row_id FROM test t where t.i <= 10000
      3  UNION ALL
      4  SELECT t.i, 2 umarker, t.rowid row_id FROM test t where t.i > 10000;
    Materialized view created.(This is on 11.2)

  • Create a view in SharePoint UI to paginate through data on a large list.

    Some of my users are facing a usability issue with SharePoint.
    The problem seems to be that if a list exceeds the threshold. SharePoint gives them the error ... but doesn't allow them to fix it.
    So when the list threshold is exceeded... the user cannot go into the list at all to create a view or to delete old records. 
    They must call in the system administrator who can open bigger lists... but in large companies system administrators are not easily accessible.
    How can user fix the problem himself/herself in case the threshold has increased?
    The second issue is that I want to create a view on a large list that shows 50 items at a time. I don't want to filter (like year = 2013 or age < 10) I don't want to filter but I want to reduce the number of records fetched by means of pagination. Is
    this possible on a large list. (I found many blogs on the web with people using XSLT web part and DVWP..... but none of them work when the list has exceeded threshold). I want a very simple view on the list which takes only 50 items at a time and works with
    large lists.
    val it: unit=()

    In order to handle large lists (over 5000 items) you need to select the fields that you what to show in the view and set them as indexes , you can do it through list settings-> set indexes.
    it might be a problem in an allready large list 'but in a small one - its pretty quick.
    and to create a view'and set the pagination there - use the create view of the list itself and not a dataview webpart or other tool.
    I have tested it in a project of mine in a list of 15000 records and it works , although you can not filter and sort on the view itself but on the view definitions only.
    if the list is bigger then 20000 items - > it is most desireable not to use sharepoint .
    Shlomy

  • Getting Sales document data from VBKD to the Account Receivable Line items

    Hi Friends,
    We have to enhance 0FI_AR_4 With the Sales data from the VBKD Table where we can have Sales document Number.
    Can you please let me know how to make link with FI-AR  Accounting document with Sales documewnt. So that I can get data from the VBKD table.
    Thanks &Regards,
    Revathi

    Hi,
    Sales document(VBELN) is already avialable in 0FI_AR_4. Also see the link  http://help.sap.com/saphelp_tm80/helpdata/en/70/10e73a86e99c77e10000000a114084/content.htm.
    Regards,
    Prakash

  • Is there a single file that holds all of my PATH data?

    In the process of getting some things (Skype and Maven) to run I've managed to get some directories to appear twice when I echo $PATH. Is there a single file that I can edit to as to keep this list tidy and readily accessible?

    jmags wrote:Thanks for the answers. Nevertheless, there are more things about which I am curious. For example, if I enter "export PATH = $PATH:/some/new/path" on the command line, is that written into my .bashrc?
    Your path is in a system variable named PATH.  By convention, variable names are in all capital letters.  To access this variable in bash, you put a $ in front of the variable name, in this case $PATH.  The command
    export PATH = $PATH:/some/new/path"
    entered on the command line appends /some/new/path to the system variable named PATH.  It does not change .bashrc in any way.  In fact, if you want your new PATH set everytime you enter bash, put the
    export PATH=$PATH:/some/new/path
    in your .bashrc file, and it will be executed every time you start bash and be there automatically for you.
    For further info on this, look at the man page for bash
    $ man bash
    Shell Variables
           The following variables are set by the shell:
        HOME   The home directory of the current user; the default argument for
                   the cd builtin command.  The value of this variable is also used
                   when performing tilde expansion.
        PATH   The  search  path for commands.  It is a colon-separated list of
                  directories in which the shell looks for commands  (see  COMMAND
                  EXECUTION  below).   A  zero-length (null) directory name in the
                  value of PATH indicates the current directory.  A null directory
                  name  may  appear  as  two  adjacent colons, or as an initial or
                  trailing colon.  The default path is  system-dependent,  and  is
                  set  by  the administrator who installs bash.  A common value is
                  ``/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin''.
    as a couple of examples.   
    Pudge
    Last edited by Pudge (2007-05-10 01:55:16)

  • Data loss during the initialization of sales documents

    Hi,
    I have to initialize all my sales documents data with the extractors 2LIS_11_VAITM, 2LIS_11_VAHDR and 2LIS_11_VASCL.
    I have done those steps :
    1 - Clear set up tables for application 11.
    2 - Fill the setup table for application 11.
    3 - Do Init with data transfer of those extractors.
    But when I look the data the next day (after the deltas which are running in the night), I have a loss of som sales documents.
    Can anybody explain me why ?

    Hi
    Have you locked the application tables during your initialization process..?
    You have to lock the application tables(so that users cannot create sales orders) until the below process completed.
    1)filling setup tables.
    2)Run IP init with data transfer.
    Now you can unlock, because we have delta queue now and any orders created will be updated to delta queue and this will be moved to BI in next delta.
    Solution:
    Now if you know the sales document numbers run the full repiar IP with sales document as selection.You will get the missed records.and you delta will work fine
    Hope this helps
    Regards,
    Venkatesh.

  • Can I create a view based on two tables that have the same column name?

    I have two tables A and B. Each table has 50+ columns.
    I want to create a view that includes all the columns in A and all the columns in B. I created a view with a select statement that says
    Select A.*, B.*
    From A, B
    where A.id = B.id
    It returns an error because in each table I have a column that keeps track if a record has been changed called Modified_By. That's where it chokes up on I figure. I would like to write the view without explicitly writing each column name from A and B as part of the select statement. The actual select statement works fine and only bombs when trying to turn the select statement into a view.

    You will have to type the full column list at least once. You can save a few keystrokes (i.e. alias. on every column) by providing the column names to the CREATE part instead of in the SELECT part. Something like:
    SQL> desc t
    Name                                      Null?    Type
    ID                                                 NUMBER
    NAME                                               VARCHAR2(10)
    SQL> desc t1
    Name                                      Null?    Type
    T_ID                                               NUMBER
    LOC_ID                                             NUMBER
    NAME                                               VARCHAR2(15)
    SQL> CREATE VIEW t_v (id, t_name, t_id, loc_id, t1_name) AS
      2  SELECT t.*, t1.*
      3  FROM t, t1
      4  WHERE t.id = t1.t_id;
    View created.HTH
    John

  • Data Modeler: Editing or creating a view "crashes"

    Hi all,
    some days ago I've created a view in my relational model using the data modeler (SQL Developer 3.2.20.09). Today I wanted to add some more columns. Unfortunately the property pane doesn't open any more when double clicking the view object (for the tables it still works). No error message is shown. In the logical view a red triangle is shown in the top left corner of the view object.
    When I try to create a totally new view then the data modeler /sql developer crashes (doesn't respond anymore)...
    What could be the reason?
    If also tried with the new version of SQL Developer - there it doesn't work either...
    Thanks in advance
    Matthias

    Or this one:
    2014-01-22 16:49:32,665 [AWT-EventQueue-0] ERROR DefaultDiagramUI - DefaultDiagramUI.paint:
    java.lang.NullPointerException
      at oracle.dbtools.crest.swingui.diagram.graph.EdgeRenderer.getForeground(Unknown Source)
      at javax.swing.JComponent.setForeground(JComponent.java:2679)
      at oracle.dbtools.crest.swingui.diagram.graph.EdgeRenderer.installAttributes(Unknown Source)
      at oracle.dbtools.crest.swingui.diagram.graph.EdgeRenderer.setView(Unknown Source)
      at oracle.dbtools.crest.swingui.diagram.graph.EdgeRenderer.getRendererComponent(Unknown Source)
      at oracle.dbtools.crest.swingui.diagram.graph.AbstractCellView.getRendererComponent(Unknown Source)
      at oracle.dbtools.crest.swingui.diagram.ui.def.DefaultDiagramUI.paintCell(Unknown Source)
      at oracle.dbtools.crest.swingui.diagram.ui.def.DefaultDiagramUI.paint(Unknown Source)
      at javax.swing.plaf.ComponentUI.update(ComponentUI.java:143)
      at javax.swing.JComponent.paintComponent(JComponent.java:760)
      at javax.swing.JComponent.paint(JComponent.java:1037)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at oracle.dbtools.crest.swingui.diagram.OverviewPanel.paintChildren(Unknown Source)
      at javax.swing.JComponent.paint(JComponent.java:1046)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at javax.swing.JComponent.paint(JComponent.java:1046)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at javax.swing.JComponent.paint(JComponent.java:1046)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at javax.swing.JComponent.paint(JComponent.java:1046)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at javax.swing.JComponent.paint(JComponent.java:1046)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at javax.swing.JComponent.paint(JComponent.java:1046)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at javax.swing.JComponent.paint(JComponent.java:1046)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at javax.swing.JComponent.paint(JComponent.java:1046)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at javax.swing.JComponent.paint(JComponent.java:1046)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at javax.swing.JComponent.paint(JComponent.java:1046)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at javax.swing.JComponent.paint(JComponent.java:1046)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at javax.swing.JComponent.paint(JComponent.java:1046)
      at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)
      at javax.swing.JComponent.paintChildren(JComponent.java:870)
      at javax.swing.JComponent.paintToOffscreen(JComponent.java:5139)
      at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1491)
      at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1422)
      at javax.swing.RepaintManager.paint(RepaintManager.java:1225)
      at javax.swing.JComponent.paint(JComponent.java:1023)
      at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
      at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
      at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
      at java.awt.Container.paint(Container.java:1778)
      at java.awt.Window.paint(Window.java:3390)
      at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:797)
      at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)
      at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:694)
      at javax.swing.RepaintManager.access$700(RepaintManager.java:41)
      at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1636)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:666)
      at java.awt.EventQueue.access$400(EventQueue.java:81)
      at java.awt.EventQueue$2.run(EventQueue.java:627)
      at java.awt.EventQueue$2.run(EventQueue.java:625)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:636)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

  • Create materialized view throws insufficient privileges in single schema

    I'm trying to create a complex materialized view in my own schema, using only tables from my own schema:
    CREATE MATERIALIZED VIEW MYSCHEMA.MYMVIEW AS
        SELECT
            A.ONE_THING,
            B.ANOTHER_THING,
            C.A_THIRD_THING
        FROM MYSCHEMA.TABLEA A
        JOIN MYSCHEMA.TABLEB B
            ON A.COL1 = B.COL1
        JOIN MYSCHEMA.TABLEC C
            ON A.COL2 = C.COL2The line JOIN MYSCHEMA.TABLEB B throws an ORA-01031: insufficient privileges error, highlighting TABLEB.
    I understand that grants need to be explicit on tables when creating objects across schemas, but this code is operating within my own schema only; i created and own all the tables in this schema.
    What's going on?
    Thanks!

    Perhaps it is the tool that i am using that highlights the wrong item, because as it turns out, i don't have the CREATE MATERIALIZED VIEW permission after all (the permission was mistakenly granted to a different user instead of to me).
    SELECT * FROM SESSION_PRIVS;returns CREATE VIEW, but does not return CREATE MATERIALIZED VIEW.
    Sorry to have wasted your time.

  • Creating a View with "clipped" data

    Hi all,
    I'm wondering if someone might know if it's possible to have clipped data in a view without clipping the original data that the view is drawing from.
    The problem we have is that we have a full dataset that we need to keep in a complete state (as a table in Oracle). We want to be able to create a View that will display a subset of data from this table, however, some of the objects in the full dataset cross a boundary and for these objects, we want the View to only show the part of the object within that boundary.
    I know we can clip the original layer but we ideally need to keep that layer untouched and do the clipping on-the-fly in the View. Is this possible?
    Thanks for any help you can give,
    Cheers, Paul

    Do you want to:
    create view my_clip
    as
    select a.id,
    a.attribute,
    mdsys.sdo_intersection(a.geometry,b.geometry,0.005) as geometry
    from mycliparea b,
    mytable a
    where sdo_anyinteract(a.geometry,b.geometry) = 'TRUE'
    Now this will work but to get performance you will have to do one of two things:
    1. Create a function based index. See doco or other postings in this forum for examples
    of how to do this.
    2. Change the view from an ordinary view to a materialized view. And then create
    a normal spatial index on the computed shape. (I recommend the use of
    these as against ordinary views.)
    However, Bryan is right, the problem with SDO_INTERSECTION is that it can return:
    1. Polygons;
    2. Lines;
    3. Points;
    4. Compound objects containing one or more of the above.
    If you want polygons only, then you need to extract them.
    <selfpromtion>
    I have written a set of extraction functions that do this which are available for free.
    Contact me at "spatialdbadvisor at netspace dot net dot au" or "simon at spatialdbadvisor dot com"
    </selfpromotion>
    The correct view definition using one of my functions would be:
    create view my_clip
    as
    select a.id,
    a.attribute,
    geom.ExtractPolygon(
    mdsys.sdo_intersection(a.geometry,b.geometry,0.005))
    as geometry
    from mycliparea b,
    mytable a
    where sdo_anyinteract(a.geometry,b.geometry) = 'TRUE'
    regards
    S

  • Sales area data view is not visible

    Hi All,
    the salea area data view  is not visible for  all BP roles in BP master data
    please help me how can i need to put in a visible

    hi
    sales area data tab is not visible for each and every BP role,
    it is visible for sold to party,ship to party roles,
    there is aview associated with this role that is CRM 000
    if you want to have sales area data tab visible in the role like BP general you have to assign this view to your role
    but i should make you one thing very clear that sales area data tab is meant for the customer who has purchased the order and final order has been given and within this tab you have each and every info regarding the sales office,sales group etc that where the order is to be delieverd or purchased from,
    once a final order is given it can be sold to party role,ship to party role or bill payable role ,u urself tell in the role of customer how can u see the sales info if the customer hasnt purchased the order ,
    likewise the consumer role also has sales data info so sales area data tab is visible in this role too
    hope it clears all your doubt,
    in case of any doubt do revert back
    best regards
    ashish

  • Creating ALV view system-level assignment

    Hi!
    When I press "Save as.." in the settings window of an ALV, I can only save the view with assignment "User".
    But I want to create system view available to all users. Like views with "/view_name" in usual ALV.
    Is it possible to create such view and make it default to all users?

    Just run the application in Administrative Mode (Assuming you have the correct authorizations to do so).  From SE80 you can do this if you double click on the Web Dynpro Application to bring up the Application Edit.  Then choose Web Dynpro Application->Test->Execute in Administrative Mode From the top level menu bar. You can also use the URL parameter sap-config-mode=X.
    When you save the variant you will be saving a global one and will have the option to place your variant in a transport.

  • BAPI for Create PO from Sales Order Data and POST GR from PO created

    Dear,
             Can u help me how to create BAPI for Purchase Order creation from sales order Data
              what the bapi to Post GR from the PO created.
    Regards,
    Manoj

    Hello Manoj what you have to do to create PO from PR is that
    1) Use   BAPISDORDER_GETDETAILEDLIST (pass sales order number in sales_document table) and then get PR (Purchase requisition number from this BAPI.
    2) Use  BAPI_REQUISITION_GETDETAIL to get PR items
    3) Use BAPI_PO_CREATE1 to craete PO from PR then.
    to create goods movement you can use
    BAPI_GOODSMVT_CREATE
    REWARDS IF USEFUL.

  • Creating Search View

    Hello,
    My requirement is I need to create search view with fields Employee Responsible Id , Start Date and Category with default as E_Mail in my custom component.
    Please specify me the procedure to get a Search View Page with above mentioned details.
    I have created work centre with EMAIL.While clicking on EMAIL Search page should be displayed with above details should be displayed.
    Thanks Alot For Upcoming Help.
    Regards,
    Tejaswy.

    Please refer to the link.
    http://techskills.wordpress.com/2009/05/09/sap-crm-web-ic-create-a-new-search-view-and-result-view/

Maybe you are looking for

  • IChat Version 4.0.6 (613)

    Apparently there is an iChat Version 4.0.6 (613) included in a Combo Update. When setting up a Mac Computer for the first time you seem to get Version 4.0.6 (613) which is not compatible in regards to Screen Sharing with Version 4.0.5 (608). Is that

  • ABAP statement for deleting the content of a infocube

    Hello, does someone know a abap statement or Babi to delete all data from a info cube?

  • Crystal report redistribution licencing

    Hi, Our company designs a system to produce calibration reports for factory environments. As part of our system we have designed custom crystal reports built into the software. My question is, when selling our software, is a crystal report licence re

  • Almacen por Defaut

    Hola Buen dia a todos! Tengo un pequeño detalle con el almacén por default o estándar en los DM de articulos; resulta que al crear un articulo se asignó un almacén por default pero resulta que ya no quieren ese almacén por default porque ahora utiliz

  • Removing "log" from ACL without recreating ACL

    Hi, Is it possible to remove the "log" keywork from ACLs without having to recreate them. For example, if I have the following ACL Access-list 120   deny ip  any any log If you want to remove the "log" keyword, do I need to do "no" to ACL and then re