Query to display all the documents

Hi
How to display all the document numbers (quotations, orders, invoices etc), posting dates in three columns i.e. Cust Code, Doc No , Posting Date?
Since all the tables storing this information having the same column names do you think it is possbile? then how to write a query?
thanks
SV Reddy

SV,
what Raja said is correct. The steps are to write the query the fields you want to display in the query, so it will be as follows:
select docnum, cardcode, doctotal, objtype from ORDR
then use UNION ALL, the union all is used to join the other tables e.g. purchase, good receipt or good issue to the above sales order query but must have same fields.
It will be as this follows:
select docnum, cardcode, doctotal, objtype from ORDR
union all
select docnum, cardcode, doctotal, objtype from OPOR
union all
select docnum, cardcode, doctotal, objtype from OIGN
union all
select docnum, cardcode, doctotal, objtype from OIGE
since the result objtype here is a value, I use "case when" to display objtype in the words and user can understand the document name.
It could be mixed in all the 4th queries and will not give error result.
Rgds,

Similar Messages

  • How can i display all the query items to a table?

    how can i display all the query items to a table in a jsp file?
    i always have an out of memory error..

    any body??any idea?
    is it possible thru configuration or i have to write a program by the abaper??
    Biswa

  • How to display all the surveys using content query web part

    Can you please tell me how to display all the surveys using content query web part in more details? I also created a subsite and multiple surveys in that site. Then, I inserted a Content Query Web Part and select the List Type to be "Survey",
    however, it returned nothing. Did I miss anything?

    Hi,
    OOTB Survey List does not contain any
    Content Types and it has the following structure:
    Response entry is represented by
    List Item
    Response entry consist of questions and answers, where Question correspond to
    Field and Answer to Item value respectively.
    For querying Survey List via CQWP  the following properties could be used
    BaseType 
    <Lists BaseType="4">
    ServerTemplate
    <Lists ServerTemplate="102">
    Example
    To retrieve all the responses from Survey lists, specify List Type property as shown on picture
    Reference:
    http://stackoverflow.com/questions/17280778/display-all-surveys-using-content-query-web-part
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I display all the columns on the screen without scrolling from side to side?

    My clinic software has many columns. How can I display all the columns without having to scroll from left to right all the time?

    If the software you are using doesn't offer the ability to increase or decrease document size, as many do, then the only way is to increase your screen resolution. If that's not possible, maybe you can decrease your font size?  If you can't do any of these, I think you're out of luck!

  • BSP for Creation and change and display of the documents in SAP R/3.

    Dear All,
    In SAP R/3 system, the documents can be maintained using the T-Codes CV01N, CV02N, CV03N for creation, change and display of the documents. Users is allowed to access to these transaction using the BSP application. The BSP page would be used to enable access the T-Code CV01N, CV02N, CV03N and allow uses to carryout the functionalities of check in and checkout of the document and the object links.
    do i need to replicate all these T-Codes in BSP application?
    If anybody hv done this...pl suggest me and give me the code.
    Thanks & Regards
    Pradeep
    Message was edited by:
            Pradeep Reddy

    if you want this out of BSP, yes you have to code all of them there is not easy way.
    but if the idea is to webenable these transaction and you dont have much time/resource to do it , easiest way is to go with ITS. downside of this is that you dont have much control over look and feel.
    If you are on WAS6.40 or above your application server comes with integrated ITS and enabling the same is quiet simple.
    Regards
    Raja

  • F-44 not displaying all the line items.

    Hi,
       I am having some problem with Transaction code F-44. The problem is as follows -- I have posted a vendor invoice using FB60 the cleared it using FB05(POST WITH CLEARING). Now when i am going to F-44 to clear vendor items, then it is not displaying me the Original invoice. It is just displaying the clearing document which got generated using FB05.
    Anybody suggest how to see all the document in F-44 as i have to clear the same.
    Thanks and regards.

    Hi,
    If the invoice is fully cleared then F-44 should not display this invoice. If you partially clear the invoice use RESIDUAL method, then the system split the original invoice and show you the remaining part that was not cleared. You can see the original invoice always by sort and summarize by reference which usally served for keeping the vendor original invoice.
    Hope this answer your question.
    Regards,
    Beny

  • From SharePoint Content Database, Using SQL-Server Query how to fetch the 'Document GUID' based on 'Content Type'

    I want to get all the documents based on content type using SQL Server Query. I know that, querying the content database without using API is not advisable, but still i want to perform this action through SQL Server Query. Can someone assist ?

    You're right, it's not advisable, may result in corruption of your databases and might impact performance and stability. But assuming you're happy to do that then it is possible.
    Before you go down that route, have you considered using something more safe like PowerShell? I've seen a script exactly like the one you describe and it would take far less time to do it through PS than it would through SQL.

  • How to display all reversal document ?

    Dear all,
    When reversal document with negative posting, the balance is return 0. So, how can i display all the reversal documents for reporting ?
    Thank you very much,
    Sylvecast.

    Sylvecast,
    You may have to elaborate a little more on what you are trying to accomplish. Let me add what I can based on my experience. When a document is posted in a GL account for instance, the balance and activity on the acccount can be seen and displayed by using FS10N or FBL3N respectively. If documents are reversed (posting opposite entries) the original balance will return to zero but even though the balance is zero, the activity of both the original and the reversal documents can still be displayed using FS10N (and double clicking the period to see the activity) or FBL3N.
    Or, are you asking for a way to display all revesal documents created?

  • Query to fetch all the responsibilities for which OA page is attached

    Hi Team,
    please help me to prepare a query to fetch all the responsibilities for which OA page is attached.
    thanks in advance
    Thanks & Regards,
    Sriram T

    Hi,
    Querys which you have provided was helpful.
    But i was struck with the following issue. As the function is not excluded directly it may be excluded via a menu to the responsibility.
    Even though it is displaying the responsibility name.
    The following query is used to display the responsibility name with menu and function exclusions.
    please help me on this.
    SELECT r.RESPONSIBILITY_NAME
    FROM
    fnd_responsibility_vl r,
    fnd_form_functions f
    WHERE f.function_name = 'VSFFFRMADMN'--f.form_id =p_form_id
    AND r.menu_id IN (SELECT me.menu_id
    FROM fnd_menu_entries me
    START WITH me.function_id = f.function_id
    CONNECT BY PRIOR me.menu_id = me.sub_menu_id)
    and r.menu_id not in (select frf.action_id
    from fnd_resp_functions frf
    where frf.action_id=r.menu_id
    and frf.rule_type='M')
    and f.function_id not in (select frf.action_id
    from fnd_resp_functions frf
    where frf.action_id=f.function_id
    and frf.rule_type='F')
    Thanks
    Sriram T

  • Problem while displaying all the table names from a MS Access Data Source.

    I started preparing a small Database application. I want to display all the Table Names which are in the 'MS Access' Data Source.
    I started to executing by "Select * from Tab" as if in SQL.
    But i got an error saying that "Not able to resolve Symbol 'Tab' in the query".
    Please let me know how can i display all the table Names in the MS Access Dats Source.

    Here i am developing the application in Swing using JDBC for accessing the database.
    I want to display all the Table names from the data source in a ListBox for easy selection of tables to view their details.

  • Query needs display only the recent record that was updated into BW.

    Hi Gurus,
    I have a question related to query creation.
    I hve one Infoset which was built on top of Opportunities data and Activities data cubes.  Tthey are linked using Opportunity GUID.  And in the query I am displaying the Opportunity ID(from Opportunity cube),  Sales order Number from the Activities data and a keyfigure No of Doc headers from the opportunities cube.  Everything is fine.  I want to display One Opportunity ID and One Activity associated with it.  I mean I want to display only the activity ID which is very recent.  But the query displays all the activity IDs which are associated with the opportunity ID.   We are not using any time characteristics too as the query has to display all the data that is there in the cubeI just want to see the recent activity that has got updated into the cube.  Kindly advice on how to achieve this..
    THanks in Advance
    Mohan Kumar

    Hi mohan,
    try to do some restriction by using  request ID (0requid) and variable 0S_RQMRC (Most current data on 0requid).
    for example a restriction on activiy id by most current request ID.
    hope it helps.

  • How to extract all the documents posted to a condition type?

    Hi,
    I would like to extract all the documents using a particular condition type. Which report can i use for this?

    Hi,
    some useful T-code for your req -
    T-code -      Standard program  -        Description
    FOJUNS -    SAPMF60UN_VICN0  -   Enter Sales with Condition Types
    FOJWNS -   SAPMF60UN_VICN0  -   Display Sales with Condition Types
    FOPB  -       RFVICUP2                 -    Condition types with acc./def. ID
    FOU2NS -   SAPMF60UN              -   Enter Sales with Condition Types
    FOU3NS-    SAPMF60UN              -   Display Sales with Condition Types
    FZCE -        SAPL0WP1                 -  Maintain Condition Type (DW)
    FZCF  -       SAPL0K01                 -   Maintain Condition Type (DD)
    The full list of transaction codes is maintained in the tables TSTC and TSTCT. So, you can have a look via SE16 in your own SAP system as well.
    Regards
    Raj

  • I need to display all the previous months sales.

    Hi Gurus,
    I have a requirement were i need to display all the previous months sales.
    i.e if a user enters sept 2011, then in report it should display from April 2011(which is the first month of fiscal year).h
    and also it should display total sales in another column till that month.
    Regards
    Arun

    Hi,
    Part 2 and Part 3 of the document.
    Link: [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f002c608-2533-2c10-25a1-d0e7f7b5b662?QuickLink=index&overridelayout=true]
    Link: [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10fc4382-afa6-2c10-1380-fa224fe4324f?QuickLink=index&overridelayout=true]
    Documents by 'Surendra Kumar Reddy Koduru' are always useful. Try to go through all of them.
    All the best!!!

  • How can I get my iPod touch to display all the artwork on my computer?

    Hi,
    I have an iPod touch 4th gen 32 GB with iOS 6.1 on it.  I have trouble getting it to display all the album artwork that I have on my computer.  Not all of my music has it, but about 90% of it does.  Is there any way I can make it display everything that's on my computer?  I have iTunes 11 on it and it is a Windows 7 computer.  Thanks!

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • Desktop is no longer displaying all the colors on it's monitor.

    My desktop computer is no longer displaying all the colors on its montior.  I've replaced the monitor with a known good one and the problem remains the same.  The desktop is 6 months old and when I purchased it, the first one had to be replaced because of this exact same issue. This appears to be a common problem.  Is anyone else experienced this is issue and has HP recalled any of these specific desktop's because of it?  

    Wjile there can be no consolation with your plight, you do have the replacement option under warrant.  BTW, it does help if you state the exact model or product #.   Saying a "series" is like called out that I had a Chevy.

Maybe you are looking for