Query on MultiProvider by ignoring empty columns

Hi Experts,
I have a MultiProvider which contains 2 InfoCubes. InfoCube 1 (IC 1) contains Transport Request (TR) Status information, IC 2 contains Transport Request Object List information. Both ICs are related by the TR IDs. Not every TR has a Object List (better: Objects). Therefore, in IC 1 TRs exist that are not listed in IC 2.
This leads to empty columns in the MultiProvider due to the union operation which is processed on both ICs. In particular the object related columns (object name, type, etc) are empty, if the TR does have a status information but at the same time without having any object listing, e. g. :
TR ID - Status - Object Name - Object Type
T123 - Successfull - # - #
(# = Empty)
When executing a query on this MultiProvider which counts the number of Objects I get the correct result, when NOT reporting on the TR ID level. However, if I execute a query which counts the number of Objects per Transport Request (TR ID), I get at least a "1" for EVERY transport request even if there does not exist ANY object within that TR ID (see example above).
So my question: is there any way to ignore TR IDs when no object information exist for this Transport Request? Thus, the query would only report an object count > 0 if at least one object is associated to a certain TR ID.
Many thanks for your help!
Best regards
Tobias

I chose
Exception Agg: Counter for All Detailed Values That Are Not Zero, NUll, or Error
Ref Char: Object Name
Activated Calc after Aggr.
Did not change anything. I still get a table which shows the TR ID (eg T123), Object Name (Empty = #) and Object Count = 1
I don't get why empty cells are part of the calculation even if the excep. aggr. is configured as described above...
Any further ideas on that?
Many thanks!

Similar Messages

  • Creating an empty column in a query

    Is there a way to place an empty column in  a query? I would like to put acolumn with no information into the middle of a query. The reason is that the information that goes in that column is not available on any tables in my SQL databases.
    SELECT
    hier.dir_name 
    ,hier.am_name 
    ,hier.fm_name     INSERT BLANK COLUMN HERE
    ,hier.tech_name
    hier.tech_id

    Hi
    "no information" in database is usually NULL value. Is this what you are looking for?
    SELECT
    hier.dir_name
    ,hier.am_name
    ,NULL as fm_name
    --,hier.fm_name INSERT BLANK COLUMN HERE
    ,hier.tech_name
    hier.tech_id
    [Personal Site] [Blog] [Facebook]

  • How to get two empty columns in reporting?

    Hi Experts,
    How to get Two empty columns in  a report, i have taken a formula and i have given '=0' in the formula box after executing the query that two columns containing zero's, but i don't want zero's, i want to display empty columns.
    pl help to do this,
    thanks & regards
    venakt

    Hi
    In the Query designer go to Properties and Select Active n Zero Supression
    also select Supress Zeros from the drop down.
    Regards
    M.A

  • Hide or Delete Empty columns in dynamic internal table

    Hi,
                                I am having an dynamic internal table which contains more than 100 columns.
             I need to delete empty column from that table, can any one help this.

    Hello,
    If you are talking about ALV then you can just the the table for empty columns before populating fieldcataloge and hide the columns.
    If your query is still not answered please provide a detail requirement.

  • URGENT: Error with query on MultiProvider

    Hi,
    I am designing a query on a MultiProvider that combines a cube and ODS. the common characterisitics in the cube & ODS are Material, fiscal period, country.
    I have 2 rows & 1 column and several free characterisitics (mostly navigational attributes of Material).
    Rows: KF1 (from cube) & KF2 (from ODS)
    Column: Fiscal Period
    I have done all the selections & Identification in the multiprovider and set the ODS for BW reporting.
    I am not able to get data from ODS with query on MultiProvider.
    And i need to add another row that calculates the product of KF1 & KF2. KF1 is sales quantity and KF2 is price identified uniquely by Material/Country combination. When we report at Country level wihtout any material selection the output revenue should be SUM of individual products between KF1 & KF2 (if there are 3 materials (A) sold that have a price of X and 2 materials (B) sold that have a price of Y, the answer should be 3X + 2Y instead of (32) * (XY)/2.
    and also i have geographical hierarchy for 0country which is used in ODS & cube. can i use the geographical hierarchy for ODS as well for aggregation of values?
    Regards
    Emil

    Hi, i have solved the issue by impementing an SAP note.
    and the issue is the in Query i need to calculate a key figure based on the other 2 key figures.
    KF3 = KF1 * KF2
    the only issue here is i need to find the KF1 for each material/country/fiscal period from cube 1 and KF2 for each material/country/fiscal period.
    and multiply and then aggregate according to the filter & selection conditions.
    can anyone let me know how to do it..
    its very urgent..
    thank you
    Emil

  • Don't get result when I put empty column in addition

    Hi all !
    I've got some difficulty to get a total when I put empty column of a table in an addition in my sql query. All the data type are the same.
    Some one can help me with that please
    Thanks in advance
    Eric

    Thanks Richard.  My 5.1 mixdown type is Front+Rear+LFE.  I can see why I may not hear a center channel solo as my 5.1 amp does not have HDMI inputs and the MAtrox Mini Max only offers HDMI audio out or RCA 2 channel stereo out (which is what I have to use).
    However, with the meter levels showing plenty of audio in the center channel, I thought I'd at least hear it in the finished Blu Ray.  Could it be some setting in Surcode?  I basically get 4.1 with all speakers except the center giving sound.  If I put my ear up to the center channel I can hear slightly some sound.  My other home theatre system does the same.  I can find very little info on this from surcode manuals and they haven't responded to my emails.
    I have 6 stereo tracks I created from the original audio using Audition and imported them into Premiere and set the master to 5.1 with the 6 channels as standard.  The 5.1 mappings for channel assignments (device mappings for the Matrox player) match the rest of the sequence.
    Are you familiar with surcode?  Like I say I can hear the LS and RS, L&R, and LFE perfectly in the authored BD-RE (and it sounds wonderful even without the center channel), but I get nothing (or next to nothing) out of the center channel.  I have some future projects coming up where this would not be acceptable.
    I am a long time NLE editor going back to the 90s, but those were all DVDs and this is my first Blu-Ray and Surround sound project.
    Any more helpful suggestions?  It is much appreciated.
    Thanks
    Steve

  • Hiding empty columns in ALV

    Hi all,
    I want to hide some columns in ALV which are empty on display when calling
    cl_gui_alv_grid->set_table_for_first_display
    That is to say the internaltable will contain empty columns.
    I know that using the "no_out" attribute of field catalog we can hide columns.
    But the question is how to find these columns which are empty - should I have to loop through the itab to find it out OR
    Can we set it in ALV LAYOUT or field catalog attributes so that it wont display empty columns.
    any help is appreciated....
    Thanks
    P
    Edited by: pazzuzu on Mar 12, 2010 5:14 PM

    Hi,
    If i understood your question correctly,
    The you can try this
    TYPE-POOLS:slis,abap.
    TYPES:BEGIN OF ty,
          f1 TYPE c,
          f2 TYPE c,
          f3 TYPE c,
          f4 TYPE c,
          END OF ty.
    DATA:it TYPE TABLE OF ty,
         wa TYPE ty,
         wa_field TYPE slis_fieldcat_alv,
         i_fieldcat TYPE TABLE OF slis_fieldcat_alv,
         i_details TYPE abap_compdescr_tab,
         wa_comp TYPE abap_compdescr,
         ref_descr TYPE REF TO cl_abap_structdescr,
         lv_field TYPE abap_compname.
    FIELD-SYMBOLS:<fs>,
                  <fs1>.
    ref_descr ?= cl_abap_typedescr=>describe_by_data( wa ).
    i_details[] = ref_descr->components[].
    wa-f1 = 'A'.
    wa-f3 = 'C'.
    APPEND wa TO it.
    wa-f1 = 'X'.
    wa-f3 = 'Y'.
    APPEND wa TO it.
    if it[] is not initial.
    LOOP AT i_details INTO wa_comp.
      ASSIGN wa_comp-name TO <fs>.
      SORT it BY (<fs>) DESCENDING.
      CONCATENATE 'WA' '-' <fs> INTO lv_field .
      ASSIGN (lv_field) TO <fs1>.
        READ TABLE it INTO wa INDEX 1 transporting (<fs>).
      IF sy-subrc = 0 AND <fs1> IS NOT INITIAL.
        wa_field-fieldname = wa_comp-name.
        wa_field-seltext_m = wa_comp-name.
        APPEND wa_field TO i_fieldcat.
      ENDIF.
    ENDLOOP.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = sy-repid
        it_fieldcat        = i_fieldcat[]
      TABLES
        t_outtab           = it[].
    endif.

  • Getting Runtime error while executing Query on Multiprovider

    Hi ALL,
    When i m executing a query on multiprovider it is giving me runtime error as:
    *Error Reading the data of the infoprovider
    An Exception with the type CX_SY_ARITHMATIC_OVERFLOW occured
    overflow in the operation.*
    I ran this query today morning also it ran successfully, now it is giving this error.
    Please help me.
    Thank you.
    REDDY

    Hi check
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/sapsys-000-compute_int_times_overflow-cx_sy_arithmetic_overflow-1704462
    Thanks
    Reddy

  • Sql query slowness due to rank and columns with null values:

        
    Sql query slowness due to rank and columns with null values:
    I have the following table in database with around 10 millions records:
    Declaration:
    create table PropertyOwners (
    [Key] int not null primary key,
    PropertyKey int not null,    
    BoughtDate DateTime,    
    OwnerKey int null,    
    GroupKey int null   
    go
    [Key] is primary key and combination of PropertyKey, BoughtDate, OwnerKey and GroupKey is unique.
    With the following index:
    CREATE NONCLUSTERED INDEX [IX_PropertyOwners] ON [dbo].[PropertyOwners]    
    [PropertyKey] ASC,   
    [BoughtDate] DESC,   
    [OwnerKey] DESC,   
    [GroupKey] DESC   
    go
    Description of the case:
    For single BoughtDate one property can belong to multiple owners or single group, for single record there can either be OwnerKey or GroupKey but not both so one of them will be null for each record. I am trying to retrieve the data from the table using
    following query for the OwnerKey. If there are same property rows for owners and group at the same time than the rows having OwnerKey with be preferred, that is why I am using "OwnerKey desc" in Rank function.
    declare @ownerKey int = 40000   
    select PropertyKey, BoughtDate, OwnerKey, GroupKey   
    from (    
    select PropertyKey, BoughtDate, OwnerKey, GroupKey,       
    RANK() over (partition by PropertyKey order by BoughtDate desc, OwnerKey desc, GroupKey desc) as [Rank]   
    from PropertyOwners   
    ) as result   
    where result.[Rank]=1 and result.[OwnerKey]=@ownerKey
    It is taking 2-3 seconds to get the records which is too slow, similar time it is taking as I try to get the records using the GroupKey. But when I tried to get the records for the PropertyKey with the same query, it is executing in 10 milliseconds.
    May be the slowness is due to as OwnerKey/GroupKey in the table  can be null and sql server in unable to index it. I have also tried to use the Indexed view to pre ranked them but I can't use it in my query as Rank function is not supported in indexed
    view.
    Please note this table is updated once a day and using Sql Server 2008 R2. Any help will be greatly appreciated.

    create table #result (PropertyKey int not null, BoughtDate datetime, OwnerKey int null, GroupKey int null, [Rank] int not null)Create index idx ON #result(OwnerKey ,rnk)
    insert into #result(PropertyKey, BoughtDate, OwnerKey, GroupKey, [Rank])
    select PropertyKey, BoughtDate, OwnerKey, GroupKey,
    RANK() over (partition by PropertyKey order by BoughtDate desc, OwnerKey desc, GroupKey desc) as [Rank]
    from PropertyOwners
    go
    declare @ownerKey int = 1
    select PropertyKey, BoughtDate, OwnerKey, GroupKey
    from #result as result
    where result.[Rank]=1
    and result.[OwnerKey]=@ownerKey
    go
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How do I write an excel file and check what the next empty column would be to put the data in?

    I have somehow managed to write the portion of labview that prompts the user for a name. It checks a file to see if they are a new user or not and then assigns a number if they are. The program then acquires data that is to be put into a spreadsheet. Each subject will have ten trials which will have three columns. How do I get the information into the columns and then check each time to see which column it should go into (i.e. the next empty column for that subject). I have attached what I have thus far. I wrote this a long time ago and haven't touched it for some time so everything is a blur.
    Attachments:
    promptForSwimmerName.vi ‏76 KB
    Swimmers.dat ‏1 KB
    Main__dummy.vi ‏28 KB

    To perform those operations in excel you will use ActiveX. I will attach some examples of using Excel in LabVIEW and you can use these to do exactly what you want.
    These three examples show how to manipulate properties, write to excel and read from excel. Let me know if there is more I can do.
    Allan S.
    Applications Engineering
    National Instruments
    Attachments:
    BorderExample.vi ‏102 KB
    ActiveX_write_Rows_To_Excel2000.vi ‏90 KB
    ReadExample.vi ‏80 KB

  • How to ignore the column header in GUI_UPLOAD

    Hi,
    I am trying to use GUI_UPLOAD to upload data from text file into a table. However there is no parameter to ignore the column headers in this function. how can i set to ignore the column headers in this function?

    Check the function module documentation and also refer to the parameter: HEADER_LENGTH
    Length of Header for Binary Data
    Description
    Specifies the length of the header information. You must only set this parameter if the file type is 'BIN'. The default value '00' means that there is no header in the file.
    Default
    '00'

  • How to ignore empty text element while using DOM to parse xml??

    hi everyone,
    i am using DOM to parse an xml file. But i dont know how to cinfig the DocumentBuilderFactory to ignore empty text elements.
    For example, i have an xml file like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
        <child>Tom</child>
        <child>Jerry</child>
    </root>I used the following codes to parse:
    String fname = "Tom-and-Jerry.xml";
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setIgnoringElementContentWhitespace(true);
    factory.setIgnoringComments(true);
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    // Generate a DOM tree from the DOM builder.
    org.w3c.dom.Document dom = builder.parse(new File(fname));
    org.w3c.dom.NodeList list = dom.getChildNodes();
    for (int i=0; i<list.getLength(); i++) {
        System.out.println("Child No."+i);
        System.out.println("NodeName="+list.item(i).getNodeName());
        System.out.println("NodeType="+getType(list.item(i).getNodeType()));
        System.out.println("NodeValue="+list.item(i).getNodeValue());
        System.out.println();
    }The result is not exactly what i want ---- there are 5 children in list!! The 1st, 3rd and 5th are #text and their values are all empty. Only the 2nd and the 4th are the child that i expect.
    It is really troublesome to get all these silly empty texts as sub elements. I tried to get rid of them, but i failed. I just dont understand why factory.setIgnoringElementContentWhitespace(true) did not work.
    Anyone can help me? thanks.
    Heavy ZHENG

    I just dont understand why factory.setIgnoringElementContentWhitespace(true) did not work.That only does something if the XML has a DTD that enables it to know what whitespace can be ignored and what is significant. The API documentation for the method refers you to this document:
    http://www.w3.org/TR/REC-xml#sec-white-space

  • How to load empty column from flatfiles to tables in oracle using aql*loade

    HI,,
    i am trying to load data from flat files to oracle tables using sql*loader. i got empty column to load. while i am trying it is throwing an error as null colums canot load...
    plz help me with this...
    Thanks in adavnce..

    I believe you need to use 'trailing nullcols' as a parameter in your sql loader command.
    See example below:
    LOAD DATA
    INFILE *
    INTO TABLE load_delimited_data
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (  data1,
        data2
    BEGINDATA
    11111,AAAAAAAAAA
    22222,"A,B,C,D,"
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I need a method for ignoring empty lines

    Hi to all,
    i need a method for ignoring empty lines when my program reades a file like that
    start of file
    print "xoxox"
    //ignore this line
    println"xaxaxa"
    //ignore this line
    end of file
    cheers

    Are you having trouble detecting these empty lines? Or are you having trouble not processing them once you've detected them?
    For the first case, you neeed to define "empty." I assumed it meant "containing no characters," and that's what the first solution shows. Your example looks like "empty" means "starts with comment characters."
    For the second case, you ignore them by just not doing anything: read a line
    if (it is not empty) { // by whatever criteria you define for "empty"
       do something with it
    }

  • Query on Multiprovider with filter characteristic not in all infoprovider

    Hello,
    I do a query on multiprovider. I want to filter the profitcenters of the plants.
    One of the cubes is a cube which doesn't have the proficenter characteristic.
    When I restrict the profitcenter the data of the cube without the characteristic
    profit center is completly filtered out.
    I could solve this with restricted keyfigures but because all our plants have different
    profit centers I would have to create a huge amount of resctricted keyfigures.
    Is there a possiblity to set a filter on a characteristic and still get data out of those cubes
    of the mulitprovider which don't have this characteristic?
    Thanks.
    Regards, Lars.

    Your only choice is to use restricted key figures as you mentioned.  As you already know, you can only successfully filter on multiproviders if all data targets contain the characteristic which is to be filtered (eg profit centre).
    The only other solution would be to create another data target (ods) that contains plant and profit centre key combination you want to filter and add it to your multiprovider.

Maybe you are looking for

  • Windows Vista to Windows 7 Upgrade problems

    I have ASUS desktop. I upgraded Windows Vista to Windows 7. When i start my pc I get a message Can't Open ASIosys!!(2). The first day I installed Windows 7 everything ran pretty good except for getting this message. I then did all the Microsoft Updat

  • I forgot my restriction password

    I forgot my restriction password and I was wondering how to reset it also I have a app that will not let my get back the pro

  • Ran Onyx for Snow Leopard (cleanup) and now my Safari is GONE. HELP!

    Running the latest OS. I ran ONYX for Snow Leopard, the cleanup section I think, and now Safari is GONE. Help! I downloaded it again from Apple's site and installed but it will now show. Help! I ran a repair disk, repair disk permissions and all fini

  • Restoring burned cds (not backup cds) to itunes Library

    I was having memory issues with my computer. I burned all my tv video stuff to disk and delete them from Library. ended up getting new computer and had entire library transfered over. All but what I had on cd. Now cant play stuff on cd unless its in

  • Premiere Pro CS6 Family

    I can't access the Premiere Pro CS6 Family on my adobe creative cloud subscription.  Help!