Creating query results in a report without data

Hi ABAP consultants,
First of all I would like to explain you all I am not ABAPPER and this is the first time I work with ABAP Query (I just receive orders...).
I need to do some reports about account receivables and I decided to work with the following tables: VBAK, VBAP, LIPS, LIKP, VBEP, VKDFS, VEPVG, VAPMA, KNB4.
Despite there are information on those tables when I test the query SAP  retrieves that "There are no data selected". Why does that happen? Is there any logic that I disrespected?
Thank you all and have a nice day.
Naej

Hi,
check for contents in tables in tcode -se11 once u find the records try this one
Ex:
TABLES vbak.
select * from vbak.
write:vbak-vbeln.
ENDSELECT.
or
tables vbak.
data: t_vbak type table of vbak.
select * from vbak into table t_vbak.
loop at t_vbak into vbak.
write:vbak-vbeln.
endloop.

Similar Messages

  • How to upload the exported report without data to BO ?

    Hi all,
    The version is BO XI3
    As captioned, there is data in the exported report. while upload the report to BO in java program, even  setKeepSavedData(false) , but the uploaded report still has data.
    IReport boReport = (IReport) reports.get(0);
    IFiles boReportFiles = boReport.getFiles();
    IRemoteFile boReportFile = (IRemoteFile) boReportFiles.get(0);
    boReportFile.overwrite(localFileName);
    boReportFile.commit();
    boReport.setKeepSavedData(false);
    boReport.refreshProperties();
    infoStore.commit(reports);
    How to upload the exported report ( which has data) without data to BO in java program ?
    Thanks
    Forest

    Exported report will always have data. Simply copy ther eport from the FRS server to where ever. Un-clear why you would want to do this.

  • How to create 'Query Result Object' entity?

    Hi Gurus,
    I have come across a situation where i need to create an entity [not a value node] of object type 'Query Result Object', and set the values.
    Its possible to create an entity of type 'Root object', but was not able to find a way to create other object types.
    Please find below, the details of the query result object:
    Component: CRMAUI
    Object: AUIHANAQR
    Object type: Query Result
    Attribute Structure: CRMS_AUI_SRCH_RESULT_HANA
    The above entity is part of the collection which in turn is the result set of a dynamic query search. Due to a particular requirement, we need to add some more entries of the same object type in the result in the 'search event' itself.
    Please find below, the details of the corresponding dynamic query object:
    Object: AUIQueryHANA
    Object type: Dynamic Query
    Kindly let me know if you have come across such situation before and please share the solution if you have any.
    Your help will be much appreciated.
    Thanks and regards,
    Arun N  K.

    Hello,
    In fact there is not really entities for query result object, it's entries in the result table.
    So you need to modify the search to add more results, usually there are some badi to do so, or maybe you can extend the class used to perform the query in order to add some results.
    Regards,
    Benoît

  • Dynamic query results parsing/ dynamic reports

    Is there a way of creating a cursor at runtime, then querying the contents of the the fields of the cursor, without knowing the names and field type of the individual columns at design time?
    Say I did as a basic example
    Create table testtable( id number,name varchar2(200), address1 varchar2(200),address2 varchar2(200),address3 varchar2(200),dateopened date);
    Create or replace procedure testproc(v_query in varchar2(2000)) is
    type cur_typ is REF CURSOR;
    c_cursor cur_type;
    BEGIN
    open c_cursor for v_query;
    loop
    fetch the row into some sort of dynamic record dynrec;
    exit when _cursor%notfound;
    something like
    if dynrec.fields(3).field_type='Date' then
    dbms_output.putline( to_char(fields(3),'dd/mm/yy'));
    else
    dbms_output.putline(fields(3));
    end if;
    end loop;
    close c_cursor;
    END;
    then i'd be calling it with
    testproc('select name, address1,dateopened from testtable where id=24');
    or
    testproc('select address1,address2,address3 from testtable where id=24');
    how do I define the dynamic record without knowing what table it refers to? And, how do I get the column contents?
    Thanks for your input
    James

    You'll need a combination of USER|DBA|ALL_TAB_COLUMNS and the DBMS_SQL package.
    Sorry, don't have time for more of a hint than that.

  • Query for Software Updates Reports Install Date for only Some of the Installed Updates

    We use the following query to retrieve a list of software updates for a specific collection and software update group.  There are many cases where the installation status of a software update is 'installed' but there is no corresponding 'install
    date'.  Can anyone tell me why?
    declare   @AuthListLocalID as int
    declare @CollID as varchar(8)
    Select @CollID=CollectionID
    from v_Collection
    WHERE CollectionID='ZSV0000A'
    select @AuthListLocalID=CI_ID from   v_AuthListInfo
    where    CI_UniqueID='ScopeId_EAD5EB80-CC39-4EA2-B08F-A45BB84F1D76/AuthList_4DEAD110-5740-495E-8BD8-467A55C50A0C'
    select
    rs.Name0 as ServerName,
    catinfo.CategoryInstanceName as Vendor,
    catinfo2.CategoryInstanceName as   UpdateClassification,
    ui.BulletinID as BulletinID,
    ui.ArticleID as ArticleID,
    Case ui.Severity WHEN 10 THEN 'Critical' WHEN 8 THEN 'Important' ELSE LTRIM(ui.Severity) END as Rating,
    ui.Title as Title,            
    Targeted=(case when ctm.ResourceID is not   null then '*' else '' end),
    Installed=(case when css.Status=3 then   '*' else '' end),
    IsRequired=(case when css.Status=2 then   '*' else '' end),
    Deadline=cdl.Deadline,            
    CAST(CASE   IsNull(AddRem.InstallDate0,CAST('1/1/1900' as smalldatetime)) WHEN   CAST('1/1/1900' as smalldatetime) THEN AddRem64.InstallDate0 ELSE   AddRem.InstallDate0 END as Date) as 'Install Date',
    ui.InfoURL as InformationURL
    from v_UpdateComplianceStatus css
    inner join v_UpdateInfo ui on   ui.CI_ID=css.CI_ID
    inner join v_CIRelation cir 
    on ui.CI_ID=css.CI_ID and cir.ToCIID =   ui.CI_ID -- add this
    inner join v_CICategories_All catall on   catall.CI_ID=ui.CI_ID 
    inner join v_CategoryInfo catinfo on   catall.CategoryInstance_UniqueID = catinfo.CategoryInstance_UniqueID and   catinfo.CategoryTypeName='Company' 
    inner join v_CICategories_All catall2 on   catall2.CI_ID=ui.CI_ID 
    inner join v_CategoryInfo catinfo2 on   catall2.CategoryInstance_UniqueID = catinfo2.CategoryInstance_UniqueID
    and   catinfo2.CategoryTypeName='UpdateClassification'
    left outer join v_CITargetedMachines ctm   on ctm.CI_ID=css.CI_ID
    and ctm.ResourceID = css.ResourceID
    left outer join v_GS_ADD_REMOVE_PROGRAMS   AddRem on css.ResourceID = AddRem.ResourceID and ui.Title =   AddRem.DisplayName0
    left outer join   v_GS_ADD_REMOVE_PROGRAMS_64 AddRem64 on css.ResourceID = AddRem64.ResourceID   and ui.Title = AddRem64.DisplayName0
    left outer join (select atc.CI_ID
    ,CreationTime=min(a.CreationTime)
    ,ExpirationTime=min(a.ExpirationTime)
    ,StartTime=min(a.StartTime)
    ,EnforcementDeadLine=min(a.EnforcementDeadLine)
    ,LastModificationTime=min(a.LastModificationTime)
    ,Deadline=min(a.EnforcementDeadline)
    from v_CIAssignment a
    inner join v_CIAssignmentToCI atc on   atc.AssignmentID=a.AssignmentID
    group by atc.CI_ID) cdl  
    on cdl.CI_ID=css.CI_ID
    left outer join v_R_System rs ON   css.ResourceID=rs.ResourceID
    where    css.ResourceID in (
    Select vc.ResourceID
    FROM v_FullCollectionMembership vc
    WHERE vc.CollectionID=@CollID)
    and cir.FromCIID=@AuthListLocalID
    and cir.RelationType=1  
    order by
    catinfo.CategoryInstanceName
    , catinfo2.CategoryInstanceName
    , ui.ArticleID

    Hi Mate,
    Its really difficult to do get the installed date of the patches as there is no table available in SCCM  DB to pull this info i had a requirement in the past but i was unable to do had done it via work around.
    This can be done after editing of sms_def.mof file or else using the power-shell script in windows server 2008 where the powershell is a feature by default.
    H/W inventory: 
    For the 2000 servers this has to be installed but if we enable this its mentioned it may utilize upto 100 % of the Memory during the h/w inventory you can check that in your SMS_DEF.MOF  -
    QuickFixEngineering you can see the warning.uickFixEngineering
    http://support.microsoft.com/kb/279225/en-us
    Powershell script:
    http://msmvps.com/blogs/richardsiddaway/archive/2011/10/23/1760058.aspx
    the warning for the quick fix engineering is not there on 2012 but there on 2007 hope the info help you to achieve your output.
    Kamala kannan.c| Please remember to click “Mark as Answer” or Vote as Helpful if its helpful for you. |Disclaimer: This posting is provided with no warranties and confers no rights

  • Create time dimension table in repository without data warehouse

    Hi,
    I want to implement only BI repository solution in my customer (not datawarehousing). Is it possible to transform the data by repository tools, so that the times columns in fact tables are categorized by the "time dimension" table?
    To be more explanatory:
    The "Sales" table has the "time of sale" column. It contains the timestamp when the sale was performed. I have imported this table in "physical layer" of the repository. Now I want to create a new "time dimension" table, something like:
    CREATE TABLE dimension_time (
    Day_Key INT NOT NULL PRIMARY KEY,
    Day_Timestamp DATETIME NOT NULL,
    Day_Name NVARCHAR(32) NOT NULL,
    Day_Text NVARCHAR(32) NOT NULL,
    INSERT INTO dimension_time VALUES (20110101, {d '2011-01-01'}, '1/1', 'January 1', 'Saturday', 0, 6, 1, 1, 185, 1, 201052, 'W52', 'Week 52', 52, 201101, '01', 'January', 1, 7, 1004, 'Winter', 'Winter', 20111, 'Q1', '1st Quarter', 1, 20103, 'Q3', '3rd Quarter', 3, 20111, 'S1', '1st Semester', 1, 20102, 'S2', '2nd Semester', 2, 2011, '2011', '2011', 2010, '10/11', '2010/2011', 0);
    INSERT INTO dimension_time VALUES (20110102, {d '2011-01-02'}, '2/1', 'January 2', 'Sunday', 0, 7, 2, 2, 186, 2, 201052, 'W52', 'Week 52', 52, 201101, '01', 'January', 1, 7, 1004, 'Winter', 'Winter', 20111, 'Q1', '1st Quarter', 1, 20103, 'Q3', '3rd Quarter', 3, 20111, 'S1', '1st Semester', 1, 20102, 'S2', '2nd Semester', 2, 2011, '2011', '2011', 2010, '10/11', '2010/2011', 0);
    and after to add a new column in "sales" fact table for "time dimension ID" and through the repository populate this column based on the "time of sale" column and the corresponding "time dimension ID".
    I know that the ETL process might perform it, but I do not want to go for Data Warehousing (it is not real - time, needs more resources, etc).
    Is it possible to perform such action only on repository?
    Thank you.

    Hi,
    I can do it, but this would be usefull only to create "time dimension" table. But also the "sales" fact table needs to be altered (thus, the "time" column will not contain the value of the time, but the ID of the corresponding time in the "time dimension" table).
    I know that on DW this procedure is done automatically by the ETL process.
    My question is that does the repository has any tools similar to this?
    Thank you.

  • Store SQL query results in db table

    Hi,
    I have a SQL query that produces a report table.
    Is it possible to automatically store the query results (or the report table) as a db table - without interrupting the current report building proces?
    Thanks,
    Dave
    Message was edited by:
    Dave Judge

    Hi Dave,
    You can also insert records into an existing table:
    INSERT INTO TABLEB (colA, colB, colC, etc) SELECT valA, valB, valC, etc FROM VIEWA WHERE etc etc
    This can be done during a page process that runs "Before Header" and you can base your report on the TABLEB. Obviously, you will need to maintain that table to ensure that it is only truncated where necessary, that one user doesn't try to access another user's data on that table and that each time your page is loaded it doesn't try to repopulate the table when you don't need it to.
    Another possiblity is to use a collection - which is user session based
    Andy

  • Drill down report without using heirarchies in OBIEE11g

    Hi,
    Can we create multiple column drill down report without using hierarchies in OBIEE11g?
    Kindly let me know the solution.
    Thank you!
    -Harshith

    Yes, It can be done, but for each drill level you will require one seperate report. Drilling can be achieved using OBIEE Report Navigation.
    For eg. If I have to create a drill report which starts from Year and goes to QTR and then to Month level. That means I have to create 3 reports.
    1. A year report which will have report data at year level (Consider Year, Product, Order_QTY and Order_Amt are the columns)
    2. A QTR report which will have report data at Qtr level. This report will have Year column in filter section as IS PROMPTED (Consider Qtr, Product, Order_QTY and Order_Amt are the columns).
    3. A Monthly report which will have report data at Month level. This report will have Year, Qtr column in filter section as IS PROMPTED (Consider Month, Product, Order_QTY and Order_Amt are the columns).
    Then we can go to Yearly report and put the OBIEE navigation on Year column and our target report will be QTR report. Similarly in Qtrly report put the OBIEE navigation on QTR column and our Target report will be Monthly report.
    This way you can impliment drilling without hierarchy.
    For step by step see below URL:
    http://www.askjohnobiee.com/2012/07/how-to-drill-through-guided-navigation.html
    Appriciate if you can mark Correct.
    Thanks,
    Kashi
    Edited by: K N Yadav on 4 Jun, 2013 10:27 PM

  • Help with CF Reports and Dates

    Can anyone here help me with
    This
    post ? I have been waiting for 3 days and after 4 posts no one
    has been able to answer, please help!! I'm stuck on my project only
    because of this. Thank you very, very much.
    Nelson.

    Sorry, I don't use cfreport so I would not be any help with
    what may be inside the total_sales_report_by_date.cfr template.
    However, shouldn't you be executin your query inside of your .cfm
    emplate, then passing the query result to your report as a query
    parameter within your cfreport tag, rather than passing the date
    parameters in cfreportparam tags?
    Phil

  • Prepare templates of the existing reports and data objects.

    Hi,
    I'm trying to create templates of the reports and dataobjects created in oracle BAM. I've created some reports on a server and i need the same reports with same dataobjects on other servers. Is there any method to create the template of existing reports and data objects.
    Thanks,
    Rajdeep

    Hi
    You will have to export the Data Objects and Repots and import in the other environments using icommand.
    TO preserve the report id's you can use option preserveid
    and also supposeyou have 1 report which internally calls three other reports you can export the main report using dependencies option with icommand export use dependencies 1 and this will export all ur sub reports with main report..
    If u need more help on icommand check this doc
    http://www.oracle.com/technology/products/integration/bam/10.1.3/TechNotes/TechNote_BAM_Migration.pdf

  • Format my partition without data loss

    Can you create new partitions once it has been formatted and the operating system loaded?
    Lastly, I looked for the solutions from internet, I found MiniAide Magic Partition can help me. It can create new partitions and format partitions without data loss. It totally helped me.
    MIniaide Magic Partition Tool
    Share it here and hope it can also help you manage your partitions/disks.

    Windows has a capability to paritions without the loss of data. Refer the following weblinks:
    http://www.sevenforums.com/tutorials/2672-partitio​n-volume-shrink.html
    http://www.howtogeek.com/howto/windows-vista/resiz​e-a-partition-for-free-in-windows-vista/
    I am an HP employee.
    Regards,
    Vidya
    Make it easier for other people to find solutions, by marking my answer “Accept as Solution” if it solves your problem.
    ***Click on "Thumbs up" button to the bottom right side of my post to say thanks!***

  • How to create a report without any data

    HI All, <BR> Can anyone help me in writing a report without any data. I want to create a report with list of memebers from a dimension where UDA is "My UDA". I wrote a report "<UDA(CHANNEL,'My UDA')" but this fetches me data too in the report. How to eliminate the data in the report. <BR><BR>Thanks<BR>Murali

    Hi<BR><BR>Assuming you are using the essbase report writer the following script will work: <BR><BR>{ SUPPAGEHEADING }<BR>{ SUPCOLHEADING }<BR>{ SUPFORMATS }<BR>{ SUPFEED }<BR>{ NOINDENTGEN }<BR>{ FIXCOLUMNS 1 }<BR> <ROW("Dimension") <BR> <UDA(Dimension,MyUDA)<BR>!<BR><BR>the fixcolumns 1 will ensure that you only get the UDA without it you will get the variable followed by the corrosponding value.<BR>

  • Create report without query wizard

    Hi,
    I want to create report without using query wizard in SAP B1. Can it possible by code?

    Maybe your question is related to this thread :
    Re: Execute report  query using vb.net code

  • Desktop apps: Report Builder 3.0 (x86) that does not let me allow query result which I created Customers Report. Here is the error message returns.:

    Desktop apps: Report Builder 3.0 (x86) that does not let me allow query result which I created Customers Report. Here is the error message returns as following.
    Database query from: AdventureWorks2014
    System.Web.Services.Protocols.SoapException: The permissions granted to user 'SQLServer2014\Mubs' are insufficient for performing this operation. ---> Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to
    user 'mujb-HP\mujb' are insufficient for performing this operation.
       at Microsoft.ReportingServices.Library.ReportingService2010Impl.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
       at Microsoft.ReportingServices.WebServer.ReportingService2010.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
    The permissions granted to user 'mujb-HP\mujb' are insufficient for performing this operation.
    Is there anybody help me out, pl
    My MSSQL Server express 2014 edition x64  and My desktop "Report Builder (RB) 3.0' is 32bit (x86).
    Does Report Builder x64 exist? I didn't see anywhere so I downloaded x86 RB

    Hi mujb,
    Per my understanding you are using the report builder 3.0 to design the report and when you click the query designer button to execute the query you got the error message above, right?
    I have tested on my local envornment and your issue can be caused by the user "SQLServer2014\Mubs"  and "mujb-HP\mujb"  haven't grant permission to the report server or the shared dataeource/dataset if you have used this.
    I would like to confirm if you have assigned both the Item-Level and System-Level role of the user above to sucessfully access the report server, If you haven't grant any access to the above user and when you connect to the report server in the report builder,
    you may got the error message:
    More details information below for your reference:
    Please execute the query in the microsoft SQL Server Management Studio to see if you have permission to execute the query.
    If the query works fine in step1, please run the report builder as Administrator and if you are using the shared datasource/dataset the issue can be cause by the you haven't grant access the share datasource, Double click to open the Datasource
    and click the "Test Connection" as below to test if it can connect successfully:
    If the "Test Connection" failed, please click the shared datasource/dataset on Report Server to check if you have grant correct permission.
    Related information about the grant permission to report server for your reference:
    https://msdn.microsoft.com/en-us/library/ms156034.aspx
    http://www.allenkinsel.com/archive/2013/01/adventures-in-ssrs/
    If your issue still exists, please try to provide more details information.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Results in Query Builder Differ From Report Results

    I've got a report I built in SSRS using an SSAS dataset. The problem is that the results differ between the query builder result set and the actual report. For some reason, when running the actual report, certain rows are being filtered out, but yet those
    same rows appear in the result set when validating the query in the query builder.
    Here's the result set as it appears in query builder:
    ...and here are the results of the actual report:
    As you can see, 3M and Angie's popcorn are not returned in the report. I have no filters defined on the report at all.
    This appears to be happening with other result sets for the same report.
    No idea why the results are accurate in query builder and then off in the actual report.
    Any help would be appreciated!
    A. M. Robinson

    Hi A. M. Robinson,
    The issue may be caused by the data cache. When we preview a report, the report processor runs all the queries for datasets in the report using the current parameter defaults, and saves the results as a local data cache (.rdl.data) file. We can continue
    to design our report without incurring the overhead of retrieving this data again if we make no changes to either the report dataset queries or the report parameters. Please to delete the cache (.rdl.data) file try to solve the issue.
    Reference: http://technet.microsoft.com/en-us/library/ms157366.aspx
    Alternative, you can create a similar report to check if the issue is persist.
    If the issue is persist, could you please post more detail information about your report design?  It is benefit for us to do further analysis.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

Maybe you are looking for