Report sq01 query

Hi Gurus,
Hi,
Please could you let me know if there is a report either in SQ01 or in SAP in general that shows the following:
Sales order
PR00 price (Header level)
Condition type (ZFRE Freight) and the value
MWST Output tax and the value
Net Value of the order
Basically I need to be able to enter a whole list of sales orders into the report and see if the sales orders had the ZFRE freight as a seperate condition type.
Thanks
Bawa

Hi,
In your query, you can use the logical database VAV (sales order) or VFV (invoices).
Another solution : add abap code in SQ02 (in new field) to read table KONV from VBAK-KNUMV.
For example :
Clear VAL_ZFRE.
SELECT kwert
INTO VAL_ZFRE
FROM KONV
WHERE KNUMV = VBAK-KNUMV
AND KPOSN = VBAP-POSNR
AND KSCHL = 'ZFRE'.
Endselect.
Regards,
Lionel

Similar Messages

  • Sap query report sq01

    Hello all
    I want to create new sap query in sq01 , the requirement is like this eg:- customer a/b/c , I want to generate the  list of last created sales order for the customers a/b/c here I have given 3 customers but I have to execute for 1500 customers
    If customer A creates 3 sales order in that 3 sales orders I want to pick last sales order on 12.09.2010 / 15.09.2010 /17.09.2010 in that I wnat to pick the last sales order 17.09.2010
    So in query report sq01 how to create, plz provide step by step procedure with this logic
    With regards
    Rahul
    Moderator Message: Search.
    Edited by: kishan P on Sep 17, 2010 4:47 PM

    Hi,
      better search in Google with the keyword 'SAP query tutorials',
    you will get lots of tutorials in the net with step by step approach.

  • Output of SQ01 Query to a file in background

    Hello,
           I have created a SQ01 query for a certain specific outpur from my SAP system. I need to get the output of this query to a file. While i have tried executing this report from the frontend; it works smoothly, and based on the variant it creates the output and writes to a file at a remote location. But while i am trying to process the same query using background job, it creates a spool request and doesnt export the data to a file.
           Can someone please help me in getting me right in case i am doing anything wrong.
    Regards,
    V

    Hi,
    SAP have created a standard program RSTXPDFT4 to convert your Sapscripts spools into a PDF format.
    Specify the spool number and you will be able to download the sapscripts spool into your local harddisk.
    It look exactly like what you see during a spool display.
    Please note that it is not restricted to sapsciprts spool only.  Any reports in the spool can be converted using the program 'RSTXPDFT4'.
    Regards,
    Pavan

  • How to add a selection criterion to a SQ01 query based on logical database SDF?

    Hi,
    How should I add a selection criterion to a SQ01 query based on the logical database SDF? Is it possible through additional code? How to make use of the custom selection fields? I need a selection criterion based on BKPF-CPUDT (creation date).
    Thanks.

    Hi John,
    Please check the given below link in addtion to Atul post.
    http://scn.sap.com/community/erp/sd/blog/2012/04/16/query-report-tips-part-2--mandatory-selection-field
    Thanks,
    Senthil Maruthappan.

  • SQ01 query - Drilldown total level larger than 0 and drilldown function

    Hi everybody,
       I have made a sq01 query and set the call up report at "Report assignment" function. The drilldown total level of my query is 1 and I found that this makes the report can't pass the selected data (with cursor) to the receiver report correctly. I can't change the drilldown total level as 0 due to the user requirement. May I ask is there any other way to solve this problem? Thank you.

    Hi everybody,
       I have made a sq01 query and set the call up report at "Report assignment" function. The drilldown total level of my query is 1 and I found that this makes the report can't pass the selected data (with cursor) to the receiver report correctly. I can't change the drilldown total level as 0 due to the user requirement. May I ask is there any other way to solve this problem? Thank you.

  • Unable to create report. Query produced too many results

    Hi All,
    Does someone knows how to avoid the message "Unable to create report. Query produced too many results" in Grid Report Type in PerformancePoint 2010. When the mdx query returns large amount of data, this message appears. Is there a way to get all
    the large amount in the grid anyway?
    I have set the data Source query time-out under Central Administration - Manager Service applications - PerformancePoint Service Application - PerformancePoint Service Application Settings at 3600 seconds.
    Here Event Viewer log error at the server:
    1. An exception occurred while running a report.  The following details may help you to diagnose the problem:
    Error Message: Unable to create report. Query produced too many results.
            <br>
            <br>
            Contact the administrator for more details.
    Dashboard Name:
    Dashboard Item name:
    Report Location: {3592a959-7c50-0d1d-9185-361d2bd5428b}
    Request Duration: 6,220.93 ms
    User: INTRANET\spsdshadmin
    Parameters:
    Exception Message: Unable to create report. Query produced too many results.
    Inner Exception Message:
    Stack Trace:    at Microsoft.PerformancePoint.Scorecards.Server.PmServer.ExecuteAnalyticReportWithParameters(RepositoryLocation analyticReportViewLocation, BIDataContainer biDataContainer)
       at Microsoft.PerformancePoint.Analytics.ServerRendering.OLAPBase.OlapViewBaseControl.ExtractReportViewData()
       at Microsoft.PerformancePoint.Analytics.ServerRendering.OLAPBase.OlapViewBaseControl.CreateRenderedView(StringBuilder sd)
       at Microsoft.PerformancePoint.Scorecards.ServerRendering.NavigableControl.RenderControl(HtmlTextWriter writer)
    PerformancePoint Services error code 20604.
    2. Unable to create report. Query produced too many results.
    Microsoft.PerformancePoint.Scorecards.BpmException: Unable to create report. Query produced too many results.
       at Microsoft.PerformancePoint.Scorecards.Server.Analytics.AnalyticQueryManager.ExecuteReport(AnalyticReportState reportState, DataSource dataSource)
       at Microsoft.PerformancePoint.Scorecards.Server.PmServer.ExecuteAnalyticReportBase(RepositoryLocation analyticReportViewLocation, BIDataContainer biDataContainer, String formattingDimensionName)
       at Microsoft.PerformancePoint.Scorecards.Server.PmServer.ExecuteAnalyticReportWithParameters(RepositoryLocation analyticReportViewLocation, BIDataContainer biDataContainer)
    PerformancePoint Services error code 20605.
    Thanks in advance for your help.

    Hello,
    I would like you to try the following to adjust your readerquotas.
    Change the values of the parameters listed below to a larger value. We recommend that you double the value and then run the query to check whether the issue is resolved. To do this, follow these steps:
    On the SharePoint 2010 server, open the Web.config file. The file is located in the following folder:
    \Program Files\Microsoft Office Servers\14.0\Web Services\PpsMonitoringServer\
    Locate and change the the below values from 8192 to 16384.
    Open the Client.config file. The file is located in the following folder:
    \Program Files\Microsoft Office Servers\14.0\WebClients\PpsMonitoringServer\
    Locate and change the below values from 8192 to 16384.
    After you have made the changes, restart Internet Information Services (IIS) on the SharePoint 2010 server.
    <readerQuotas
    maxStringContentLength="2147483647"
    maxNameTableCharCount="2147483647"
    maxBytesPerRead="2147483647"
    maxArrayLength="2147483647"
                  maxDepth="2147483647"
    />
    Thanks
    Heidi Tr - MSFT
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Report Using Query

    Hi Gurus,
    In Lead Transaction, Details Tab there is field called Campaign, i req. the table name for that field bec. i have to generate the report using Query?

    Hi Milind,
    Create a new Transport Request.
    Now Go to RSA1->Transport  connections, select your query and drag to the Right hand side.
    Now select all the query elements for that query and click on the Truck (Transport button), It will ask you for the transport Request. Provide the Transport Request Number you have just created.
    Once done, just to be sure, check the Transport requests elements in SE09. Check if all the query elements have been included in the report.
    Now you will be able to modify the query in Query designer. If still not able to, then you must missed some of the query elements. Again check this in Transport Connection.
    Regards,
    Pratap Sone

  • Difference: SAP BW Report iview - Query iView - URL iView

    Hi,
    I want to show BW reports on the portal. Can anybody suggest me the different ways of doing it ? And also let me know about checklist of steps that need to be performed.
    Can anybody tell me the difference between showing BW reports through URL iviews, showing reports through Query iView and showing reports through SAP BW Report iView ?
    Which one can i use for showing BW reports taking into consideration the implementation of SSO between the two? I tried the URL iView (using the Web URL of reports generated by BW) but it asks for Username/password. Is that the problem with SSO. How can i check if SSO parameters have been set or not. I have imported the verify.der to BW System and added that to ACL. Is there anything else which is required?
    Thanks in advance.
    Rgds,
    MA

    Hi Manoj,
    I feel BW report iview will solve your problem. You can create a query sting in BW query designer and give the same in BW query  string text area while creating BW report iview.
    In the case of an url iview you are just giving a URL link of the BW report (this will ask for username/password).
    But, in the case of a BW report iview you can view the required query as an iview (user mapping can be successfully done in this case) You should give fully qualified domain name in Was server option while creating the system.
    While using the logon ticket Login id of both the system (ie BW and Portal) should be the same.
    Refer the link for SSO using logon ticket)
    User Mapping-based Single Sign On
    Regards,
    Vinod

  • Error while executing report in query designer

    Dear Folks,
    I am geting following error while executing report in query designer.
    Error:500 E
    an exception raised because of 0analysis pattern.
    Hence,i am unable to execute any report.
    Need help.
    Thanks

    Hi Kitu G,
    I think this is something to do with the bex web 0ANALYSIS* objects not being installed in your BW system.
    I would try and do the following:
    - Goto RSA1 > BI Content > BEx Web Template (BTMP)
    - Then double-click on Select Object.
    - Highlight all objects that start with 0ANALYSIS_PATTERN
    - Click on Transfer Selections, and then Install.
    If you can't do the above in prd, do it in DEV, then transport the objects to prd.
    After all this, try re-running your queries.
    Any questions/clarification just let me know
    Cheers.
    Darwin

  • Combine two reports in query designer using key figure with sap exit

    Hi experts,
    i want to combine two reports in query designer using key figure with sap exit
    in the report 1 key figure calculation based on the open on key date(0P_DATE_OPEN)
    to calculate due and not due in two columns
    in report 2 key figure calculate in the time zones using given in variable Grid Width (0DPM_BV0) like due in 1 to 30 days, 31 to 60 days...the due amount based on the open on key date(0P_DATE_OPEN)
    to calculate in 1-30, 31-60, 61-90, 91-120, 121-150 and >150 days in 6 columns
    now i have requirement like this
    not due, 1-30, 31-60, >60, due,1-30, 31-60, >60 in 8 columns
    or
    not due, due, 1-30, 31-60, 61-90, 91-120, 121-150 and >150 in 8 col
    thank you

    Hi Dirk,
    you perhaps know my requirement,
    for the management to make used in one report,
    we have in reporting finacials Ehp3.
    Vendor Due Date Analysis - which show due, not due
    Vendor Overdue Analysis - show only due and analysis in time grid frame
    i want to combine in one report that show NOT DUE, DUE, DUE time frames in grid.
    krish...

  • Embedding a report designer query into a template - errors out

    In a template i want to include the report designer query, with the web item type - report, when i drag the report item into the template and try to edit it, it takes me to the report designer, there I'm able to open my report designer query - then when i go to - menu - transfer to web apllication designer - it takes me back to WAD but errors out saying it encountered a problem. Did anyone come across this issue? And how did you overcoem this? Any help or pointer would be appreciated and rewarded.
    Please find the error log below:
    3:45:25 PM.686 ########## END  ##########
    3:45:25 PM.686 ########## --> com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main ##########
    3:45:25 PM.686: For Info: WAD Start. Revision: 7005.5.1100.277
    GetSystemInformation
    SUNI Const: 1.602272
    CommunicationFactory.GetSystemInformation (Setting Conn 1)): 1.602272
    CommunicationFactory.GetSystemInformation (Setting Conn 2)): 7.110082
    CommunicationFactory.GetSystemInformation (Setting init Propties)): 7.110082
    CommunicationFactory.GetSystemInformation (SUNI.FUNCTION_EXISTS)): 7.710934
    RSR_XLS_RFCtrc: 8.51207
    CommunicationFactory.GetSystemInformation (RSR_XLS_NET_INTERFACE)): 18.02556
    CommunicationFactory.GetSystemInformation (XML Stuff)): 20.0284
    CommunicationFactory.GetSystemInformation (Prop Stuff)): 20.0284
    CommunicationFactory.GetSystemInformation (Version)): 20.0284
    CommunicationFactory.ObtainSystemInformationandCheckVersion (GetSysInfo)): 20.128542
    BExTextPool.New1: 0.300426
    BExTextPool.New2: 0.400568
    BExTextPool.New3: 0.400568
    BExTextPool.New2: 0.400568
    CommunicationFactory.ObtainSystemInformationandCheckVersion (CheckAfterLogin)): 1.00142
    CommunicationFactory.LogOnUsingComConnection (ObtainSystemInfo)): 21.129962
    CommunicationFactory.LogOnUsingComConnection (MainConnectionChangedEvent)): 0
    CommunicationFactory.LogOn: 21.730814
    3:45:41 PM.458: Connected. System: BID
    <?xml version="1.0" encoding="utf-16"?>
    <I_T_SEARCH_ATTR xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
    <?xml version="1.0" encoding="utf-16"?>
    <I_T_SEARCH_ATTR xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
    RSR_XLS_RFCtrc: 0.700994
    BExThemes.LoadFromBackend: 2.50355
    BExThemes.LoadFromBackend: 0
    BExThemes.LoadFromBackend: 0
    Vert
    BExThemes.LoadFromBackend: 0
    <?xml version="1.0" encoding="utf-16"?>
    <I_T_SEARCH_ATTR xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
    BExThemes.LoadFromBackend: 0
    Vert
    BExThemes.LoadFromBackend: 0
    3:47:41 PM.198 ########## END com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main ##########
    3:47:41 PM.198 ########## --> com.sap.bi.et.wad.RDHost.WADRDHostFactory.MaintainItem ##########
    -EXCEPTION-START- 3:47:41 PM.198: External exception in Report Designer (execution) ---
    Exception Message: Specified cast is not valid.
    Exception    at com.sap.bi.et.ReportDesigner.RDbReportDesigner.getCookies()
       at com.sap.bi.et.ReportDesigner.RDbReportDesigner.RunFromWAD()
       at com.sap.bi.et.wad.RDHost.WADRDHostFactory.MaintainItem(XmlElement iItemTagNode, XmlElement iLibItemTagNode, IWADHostServicesProvider iServicesProvider, Boolean iIsLibItem)
    Full Stack:
         at com.sap.bi.et.wad.Debug.WriteTraceToFile(Level, String, Exception)
         at com.sap.bi.et.wad.Trace.Exception(Exception, String)
         at com.sap.bi.et.wad.RDHost.WADRDHostFactory.MaintainItem(XmlElement, XmlElement, IWADHostServicesProvider, Boolean)
         at com.sap.bi.et.wad.rdcontrolhost.WADHostFactory.MaintainItem(XmlElement, XmlElement, IWADHostServicesProvider, Boolean)
         at com.sap.bi.et.wad.wiz.WADsF4GUIServices.CallCustomItemDialog(XmlElement, Form)
         at com.sap.bi.et.wad.man.WADfrmMainWindow.mnuCTXTEditTagCustom_Click(Object, EventArgs)
         at System.Windows.Forms.MenuItem.OnClick(EventArgs)
         at System.Windows.Forms.MenuItemData.Execute()
         at System.Windows.Forms.Command.Invoke()
         at System.Windows.Forms.Control.WmCommand(Message&)
         at System.Windows.Forms.Control.WndProc(Message&)
         at System.Windows.Forms.ScrollableControl.WndProc(Message&)
         at System.Windows.Forms.ContainerControl.WndProc(Message&)
         at System.Windows.Forms.Form.WndProc(Message&)
         at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
         at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
         at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
         at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32, ApplicationContext)
         at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32, ApplicationContext)
         at System.Windows.Forms.Application.Run(Form)
         at com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main()
    -EXCEPTION-END----

    Hi Voodi,
    I have the same problem too. Worked  fine in SP 9 . Now we are in SP11 with FEP also in SP11 revision 277.Did you resolve the issue if so how?
    Thanks,
    Karthik

  • Query for recurring reports using Query Builder in Business objects

    1. How to count webi Recurring reports using query builder in business objects? (Need Query for this)
    2. How to count Crystal Recurring reports using query builder in business objects? (Need Query for this)
    I am able to get summerized recurring reports using Query Builder.
    For Example we have 343 reports which are under recurring (This includes both Webi Reports and Crystal Reports).
    we need to get individually how many webi reports are under Recurring and Crystal reports are under Recurring.

    1. How to count webi Recurring reports using query builder in business objects? (Need Query for this)
    2. How to count Crystal Recurring reports using query builder in business objects? (Need Query for this)
    I am able to get summerized recurring reports using Query Builder.
    For Example we have 343 reports which are under recurring (This includes both Webi Reports and Crystal Reports).
    we need to get individually how many webi reports are under Recurring and Crystal reports are under Recurring.

  • SQ02 Infoset returns different results in SQ01 Query vs. Segment Builder TG

    I want to get Segment Builder to use the same InfoSet and return the same results so, that I can then make a Target Group...but, I'm sure I'm missing some step along the way.
    My SQ01 query returns 79 contact persons, but my segment builder only finds 42, none of which appear to actually be the Contact Person, but are in fact the Business Partner the Contact Person has a Relationship to.
    I started by copying the CRM_MKTTG_BP_ADDR InfoSet and added the BUT051 table to it, which is when the SQ01 began returning the needed results.
    I suspect the problem may be in the Master Group where I am using the B2B/B2C Program, but I don't know if that's the answer or not.  I am not declaring an FM as I am using the BP-GUID in the data source, so I don't 'think' that's the issue...
    Here's what I'm currently trying as my Data Source settings in case that will help:
    Origin Type              03 InfoSet                                                              
    RFC dest.                                                                               
    Name of InfoSet          ZCRM_MKTTG_BP_ADDR                                                      
    Business Partner         BUT000-PARTNER_GUID                                                     
    Function Module                                                                               
    Sampling InfoSet         ZCRM_MKTTG_BP_ADDR_SMP                                                  
    Sample                   BUT000-PARTNER_GUID                                                     
    Object                                                                               
    Partner Function                                                                               
    Description              Z BP Address                                                            
    I already read every Segment Builder forum thread and the Sap Library on the subject, but either I missed something or there is a step not listed.
    Anyone have any suggestions?

    Solved!!
    I was wrongly using AND/OR options to add filters in the segmentation tool...ups!

  • App-V Reporting: SQL query for Excel Pivot Table to display App Usage (H/M/S)

    I recently posted this in the Gallery.  If anyone has any modifications or enhancements please feel free to contribute!  One thing that I'd like to be able to add to it is the ability to only display information for applications/packages that are
    still published, so if anyone can figure out a crafty way to do it...  Thanks!
    http://gallery.technet.microsoft.com/App-V-Reporting-SQL-query-6695d3c3

    I recently posted this in the Gallery.  If anyone has any modifications or enhancements please feel free to contribute!  One thing that I'd like to be able to add to it is the ability to only display information for applications/packages that are
    still published, so if anyone can figure out a crafty way to do it...  Thanks!
    http://gallery.technet.microsoft.com/App-V-Reporting-SQL-query-6695d3c3

  • Report by query

    Hi all!
    I am doing a report by query. In the Infoset query i have given PO Number(EBELN) as output along with some other fields. But the PO no is not displaying in the output while i execute the query. I have not ticked PO Number field as selection field. Its only output field.   What may be the reason?
    Can anyone tell me the reason?
    Yuvi.

    Hi raju!
    I am making query as below...
    List all the materials for a particular period which has been done GR with the output as PO No - Material Docu No- excise invoice No.
    So PO should be displayed as output..
    I am refering MSEG and J_1IPART1.
    Any inputs?
    Yuvi.

Maybe you are looking for

  • The report engine add a blank page at the end of report

    I have configured a group with the option "New page after" checked. The problem of that seems the engine add a new blank page at final of report. Exists some way for avoid that? Perhaps is possible add a formula for don´t allow that when is in the la

  • CD/DVD Drive won't work - Help Please??

    I have a fairly new laptop (2 months old maybe) running windows 7 pro 64-bit. The CD/DVD drive stopped working after I upgraded from Windows 7 Home Edition and installed iTunes so I'm not sure which one is causing the problem but I'm leaning towards

  • Need alot of help

    I am creating a program so that games can be purchased, which was going well up until i added the add and remove code. I get multiple compilation error messages from most of the files as they are working in conjunction with each other. I have created

  • Deque and enque

    Hello great programmers, please i will like to ask of a question.. i want to create a software that looks loops through all the links in a site and extract specific datas from each of them. the line of each link is shown below: <p class="row" data-pi

  • Cutom T-Code for seding customer details thru IDoc Debmas

    Hi Experts, I have a requirment where in.. I need to send customer details thru IDoc from a custom screen which has cutomer text box and a submit button. After entering cutomer and clicking on submit debmas06 Idoc has to be triggered. I am not an ABA