Bex Query - Display Rows, even when no database record exists?

Hi everybody,
im creating a Query with Bex Query designer and have a requirement which i cant cope with atm, so i hope you can help me.
I made a small screenshot with excel to explain how the query should be:
[http://yfrog.com/ncqueryj]
So, the requirement now is, even when for example there are no records for company A at all, the rows A-A1 to A-A4 should still be displayed in the query simply with no values.
The Accounts are already in an row structure, but it isnt an option to take the company into the row structure, as this would mean we have to do several thousands selections for one query and there is more then one query to do, with each time different accounts, so the row structure wouldnt be reusable too.
Do you know any way to achieve this without adding the company to the row structure?
I hope my explanation was comprehensible, if you still have any question just ask.
Thanks in advance
Noody

Hi Harry,
thanks for the answer, it was already very helpful, but my problem still isnt completely solved because actually they dont want to get all companies that exists, but only certain companies which then should always be displayed, even without records.
So for example they have company A, B, C and D, they always want to have A, B and C, even without values, but never D, even when D has values.
The companies they want to see in the Query are in an Hierarchy which is selected through filter, so actually they dont want all existing companies from master data but all existing companies from an hierarchy.
Regards
Noody

Similar Messages

  • Why when my ipad is switched off does new email display onscreen even when I havent unlocked it?

    Why when my new ipad air is switched off does new email display onscreen even when I hav'nt unlocked it.  I dont really want anyone whose near my ipad being able to read my mail.

    Show on lock screen>Off
    Settings>Notification Center>Mail>Alert Style

  • Can't delete master record when matching when matching detail record exist

    Hi
    on the rel. property:
    Delete Record Behaviour = cascading
    Prevent masterless Operation =yes
    Automatic Query = yesCan't delete Record Master & Detail...
    On delete getting error msg.
    Can't delete master record when matching when matching detail record exist
    am i missing something...!
    Regards,
    Abdetu...

    First of all, remember the ripple affect of cascading deletes and updates.
    Oracle database allows creating master/detail relationship between tables using foreign keys and allows cascading deletes by defining the FOREIGN KEY constraint with ON DELETE CASCADE clause.
    Oracle Forms on the other hand, handle cascade delete thing internally when you set the relation properties.
    Now if you have 3 tables with MASTER->DETAIL1->DETAIL2 relationship and you have a form defined with MASTER->DETAIL1 relationship only, it won't let you delete (and save) master or detail record since the third table (DETAIL2) is referencing the rows from DETAIL1 which you are trying to delete.
    If DETAIL2 were present on the form, it would have deleted with relation property CASCADING. If you really want that when you delete a master record, all its details should be deleted too, then consider defining FOREIGN KEY constraints with ON DELETE CASCADE and on the form set relation property CASCADING.
    And if all master/detail tables are on your form and still it is not allowing you to delete master with cascading, there must be some code preventing it. Check triggers like ON-DELETE, KEY-COMMIT etc what they are doing.

  • BEx Analyzer: Result Rows Suppressed when condition is on

    Hi All,
    I have a BEx Query with below details:
    Drill down characteristics - A, B, C, D, E, F, G, H, I (total 9)
    Result Row set to Display for - A & F characteristics
    Key Figures - P, Q, R, S
    Condition is Active on column - S:  less than 100 (Show all the values less than 100 for column S)- This is a percentage calculated key figure.
    Characteristic Assignment in the condition - Individual Chars. and Char.Combinations, selected all characteristics that are in the drill down (A to I).
    Issue: When I run the report, everything works fine except the result rows, For both column A & F result rows are not displayed. It is getting suppressed somehow.
    I tried by selecting the first option in the Character Assignment (All characteristics in the drilldown independently). This works & I get the result rows as required, but now it doesnt show all the values that supposed to be on report.
    This is causing inconsistent data to the Business, even though cube values are correct.
    We are on SAP BI 7.0 with SAPKW70019 support package.
    I did research OSS notes, but unfortunately couldnt find any.
    Please help with your ideas & let me know if you need further inputs.
    Thanks in Advance.
    Umesh.

    Hi Jagan,
    In fact i've no problem with positive or negative values. Let me tell,
    in my query, my one column ( X)  shows top 10 customers' debt values. Another column i am trying to get X's total amount. But when my formula is "SUMRT X", im getting my total 200 customers' total debit. So this new column doesn't use my first query condition.
    How can i do my condition effective for this column too?
    Clear? maybe my English is not so enogh to tell the problem. Sorry about that.
    Thanks.
    Htc

  • How to Ignore Fiscal Year Variant in BEx Query displayed with FISCYEAR?

    Hi All,
    I am developing a report.
    In which I have taken Fiscal Year in columns.
    When I executed the report Fiscal Year is showing with Fiscal Year Variant, I mean it is displaying as K5/2009.
    Please let me know the settings how to ignore Variant? I mean Fiscal Year should show 2009 only.
    Regards,
    HM.
    Edited by: Hariman on Nov 9, 2010 7:47 AM
    Edited by: Hariman on Nov 9, 2010 8:05 AM
    Edited by: Hariman on Nov 9, 2010 8:13 AM

    Hi,
    Fiscal year variant is compounded to Fiscal year. So in Bex query output it will be the format.
    In case you need to remove the fiscal year variant you need to write customer Exit code.
    -- Selva

  • Bex query is getting hanged, when trying to drill down only for one hierarchy node.

    Hi All,
    We have a bex query, in which we have multiple nodes. And we are able to expand almost all nodes except one hierarchy node called "BD1".
    when we trying expand the BD1 node, the report is executing on and on and getting hanged up.
    In RSRT the read mode is "H"
    The report is based on a multiprovider and it has 7 cubes of which 6 of them have aggregates.
    The characteristic for which we have issue is also having BWA.
    So, I am not sure why the issue is with only 1 node in the entire report. Can someone let me know the possible reasons and solutions.

    Hi Shilpa,
    The only way to show  long text is to maintain only long text for the info object.  Otherwise system always defaults to short text.
    Jaya.

  • Bex query structure authorization error when copying to Y name

    Hi Gurus,
    We are having a issue in BEX query. As per design, our IT team can copy Z queries to Y queries and modify/create Y queries in production but they cannot update/change Z queries.
    One of the Z query is having structure and BW IT team is trying to copy that query to Y namespace but they can't edit the structure/key figures within that new Y query. . We created a ‘Y Structure’ within a ‘Y Query’ but still cannot edit/modify that Y-Structure. S_RS_COMP and S_RS_COMP1 has full access restricted by Y* in reporting component field.
    Can anyone please help how should we proceed ?
    PS: We don't have problem with other queries which don't have structures.
    Regards,
    Salman

    HI Salman,
    Looks like the structure is globally defined and thats the reason why the team is not able to edit it
    Thanks
    Abhishek Shanbhogue

  • BEX Query error at Program SAPLRSDU_UTIL_DB2 - 'Table Does not Exist'

    Hello all,
    My BEX Query was running fine till yesterday in QAS system, but today when i try to execute either in RSRT/Analyzer i am seing this error:
    Runtime Errors         RAISE_EXCEPTION
    Date and Time          10/26/2011 14:03:44
    What happened?
         The current ABAP/4 program encountered an unexpected
         situation.
    Error analysis
         A RAISE statement in the program "SAPLRSDU_UTIL_DB2" raised the exception
         condition "TABLE_DOES_NOT_EXIST".
         Since the exception was not intercepted by a superior
         program, processing was terminated.
         Short description of exception condition:
         For detailed documentation of the exception condition, use
         Transaction SE37 (Function Library). You can take the called
         function module from the display of active calls.
    Trigger Location of Runtime Error
         Program                                 SAPLRSDU_UTIL_DB2
         Include                                 LRSDU_UTIL_DB2U35
         Row                                     41
         Module type                             (FUNCTION)
         Module Name                             RSDU_GET_PARTITIONING_TYPE_DB2
    Any suggestion?
    I would really appreciate you help!
    Thanks,
    DC

    Thanks you all for your response!.
    Checked the Info providers, Tranformations - All are active.
    Couple of reports which are based out of same MultiProvider are giving the same issue.
    I could figure out where the problem is!
    There is a RKF (in all the error giving queries) and 'GL Account' has been restricted with a Heirarchy 'ZZ21430  in it - but this restricted hierarcy is missing in 'RSH1'.
    Dev system - 'ZZ21430' doesnt exist in RSH1 and query doesnt give any error, is running fine.
    QAS system - 'ZZ21430' doesnt exist RSH1 and query is giving error!
    What could be the reason for this?
    I would appreciate your help!
    Thanks,
    DC

  • Outline agrement PR is deleting even when a contract is existing??

    Hi,
    in our ECC 6.0 implementation, it is possible to delete an Outline agreement PR even when there is a valid Contract exist (referred to said PR).
    I want to restrict that. How can i restrict user by deleting the PR when a contract is there????
    Pls advice
    Cheers

    control with help of ABAP develoment

  • Bex Query - Show rows from another characteristic

    Hi Guys,
    I have a problem, I need to create a query to be displayed in Excel that shows accounting informacion by number, like this:
    Account         Balance
    12110201       1 USD
    12110202       1 USD
    12110204       1 USD
    That works so far, the problem is that I need to add 2 more columns and in 1 of the new columns I need to show only some accounts, like this:
    Account          Balance        NewColumn1
    12110201       1 USD      
    12110202       1 USD            Balance of 12110202
    12110204       1 USD
    the other one is more challenging because it need to show informacion from a different account, like this:
    Account          Balance        NewColumn1            NewColumn2
    12110201       1 USD      
    12110202       1 USD           Balance of 12110202
    12110204       1 USD                                           Balance of 2406910000
    the first values came from my accounts tables that contain balance from sub accounts, but the value 2406910000 is in fact a sub account value.
    Can some of you expers can help me on this? Is it possible?
    Please help.

    hmmmm
    let me ask this:
    You have multiprovider A
    in that u have Chars
    Account
    Subaccount
    Source of subaccount
    & Keyfigures
    $ amounts
    okey now, lets say u want to display the data as follow:
    $amount-----newcolumn1
    Account----
    2244--$2200--
    2245--$3200--
    bal. of 1234
    2246--$4200--
    2247--$1200-----bal. of 734
    is that what u are asking to display....
    if yes, bring Account in Rows
    bring $amount in Collumns
    add new selection1, in that add $amounts, then add Subaccounts from characteristics
    that way it will show $ for subaccount
    for e.g. in above case it will show $value for 1234 which is subaccount of 2245.
    My question is when you say "Balance of 22140000" what is that you intend to display here....you want to show $ of Balance i.e $45, $56 etc, or
    do you want to show Subaccount Number i.e 1234 or
    do u want to show specific texts "Balance of 22140000"
    my response above was related to this only, what is that you want to show in ur reports?
    what is available in ur multiprovider?
    if you wanna show specific texts  "Balance of 22140000", this cannot be done because you cannot just create texts in Query designers.
    If you wanna show specific $ amounts for that subaccount, answer is create restricted keyfigure
    if you wanna show Subaccount Number i.e 1234 etc, that means  you will have to create Replacement path variable and then replace values of Subaccount number into that column.
    Maybe you will not need cell definition then.
    i hope you understand what i am trying to explain..
    dont hesitate to reply with detailed explaination, and any questions.

  • Query displays no output when run from sqlplus and from procedure its displ

    Hi Guys,
    When i ran the below query, it gives me "no rows selected". I made a procedure for the below query by making it a cursor. I just tried to display the total number of records in the procedure. When ran, it showed me some number. I dont understand , why when ran just as a sql query didnt showed any output and when ran as a procedure showing some output.
    select cust_account_id
    ,related_cust_account_id
    ,object_version_number
    ,ship_to_flag
    ,status
    from apps.HZ_CUST_ACCT_RELATE re
    where
    nvl(re.bill_to_flag,'N') ='N'
    and re.customer_reciprocal_flag = 'Y'
    and re.status = 'A';
    declare
    cursor c1 is the above query
    v_count number;
    begin
    for rec in c1 loop
    v_count := v_count + 1;
    end loop;
    dbms_output.put_line(' V-Count is:' || v_count);
    end;
    also tried to print the values of the select when count is 10, it showed some values. But why is it not showing any values when ran just as a sql query.
    Help Appreciated
    Thanks

    Thanks Warren n Dmytro,
    Actually, the problem is that table has 1769645 rows of data. I wrote a cursor as defined above in a procedure. With that where condition, it doesnt have any values and so displays no rows. Its taking 5 min to run that query and get me the output.
    In the begin, I want to open that cursor using "for rec in c loop" and write one more select statement which is:
    begin
    for rec in c loop
    begin
    select count(*) into l_count
    from hz_cust_acct_relate_all
    where cust_account_id = rec.cust_account_id
    and related_cust_account_id = rec.related_cust_account_id;
    exception
    when others then
    dbms_output.put_line(-265676,"SOme err msg");
    end;
    if l_count = 0 then
    now my question is, if my cursor is not returning any rows, then the query written to get l_count will be executed or not. I am passing the cursors cust_account_id and related_cust_account_id values to this query. but that cursor is returning no data.
    so what will happen to the code that i wrote. Will it hang or will it continue. Or should i write when no_data_found exception to handle when no rows are returned.
    or can in include " exit when c%notfound after for loop". when we use open fetch and close, then we will write this exit when. can we write when using for rec in c loop syntax.
    coz when i run that procedure, it jsut hangs like that forever. how to handle it or how to tune it.
    help appreciated
    thanks

  • How To Display Message Dialog when the Database is Empty

    Hello everybody...Im writing a mini app which uses swing GUI and JDBC. the program is a mini contacts book which adds data to the database thru the textfields and retrives the data to the textfield.now what i want to do is when the menu "show record" is clicked and then there is no data in the database, it should display "no records found" because the database is empty. how do i do that?I need urgent help thanks...

    Scrolling of results can be done in 2 ways.
    if ur result set are small, read them in one go and display as PREV / NEXT button is pressed,
    Or if ur result set is very large, maintain internal counters, and navigate with them.
    When u are at first / last entry, better dissable those button actions.
    I hope this will help you.
    Regards
    BS

  • Exception in BEX Query Designer 7.10 when restricting dataprovider in filte

    Hello,
    when I build a query in the Query Designer 7.10 and try to restrict the infoprovider in the filter
    to access a mulitprovider I get the exception:
    "Unhandled exception has occurred in your application.....
    Index was out of range........"
    Our System:
    Windows XP Servicepack 2
    .Net 2.0 Serivcepack 1
    Office 2003
    SAP GUI 7.10 Patchlevel 9
    BI Addon + Serivcepack 7
    BW 3.5 Addon + Servicepack 4
    Netweaver 7.00 packagelevel 11
    Has anybody seen the same erro or a oss note which fixes this problem?
    Thanks.
    Regards, Lars.

    Hi,
    I have not encountered this problem in the last days. We have made an upgrade
    in the support package level from 11 to 16 for Netweaver Basis and 12 to 18 for
    Netweaver BI. Sometimes there can arise problems when the support package level
    of the Application Server is to low in comparision to the SAP GUI.
    Maybe this was the problem. I am not sure.
    I would advise you to install the latest upgrades of your SAP GUI and keep the application
    server on a high support package level.
    Sorry, I can't give any other hint.
    Regards, Lars.

  • ODI updates all rows even when no change exists

    We use database triggers to update the created_by, creation_date, last_updated_by, last_updated_date columns on the records. From looking at these columns I can tell that ODI is updating every target record with the save values that are already present.
    I have tried using Journaling, but that I can't get that working, and I there are cases where I am not going to have the luxury of adding journal columns and triggers to my source database.
    Is there a way to have the interface only update records where the values have actually changed?
    Thanks,
    Kt

    In the interface diagram window, you will need to mark the columns created_by, creation_date, last_updated_by, last_updated_date to be executed on "Target".
    In addition,
    For created_by, creation_date, mark them for "Insert" only.
    For last_updated_by, last_updated_date, mark them for "Update" only.
    Hope that helps

  • Hi - tv slideshows don't display Titles even when selected and play fine on my Mac.

    Is there a setting I'm missing in iPhoto?
    Thanks, Tom

    +" ... Is there a way to make the audio device recognize the camera and play the audio through the speakers during capture? ..."+
    Simple answer - no. FCE has never played the audio during DV video capture. FCE captures both the video and the audio but does not play the audio during capture. You can see your video capture but there will not be any audio. It's always been this way with FCE.
    Possible workaround - if your camera has analog (a/v) outputs, you might try connecting the analog audio out to your audio interface at the same time it is connected via FW to your Mac during capture. It may or may not work. Many miniDV cams can be set for DV out or analog out but not both at the same time. Depends on what your camcorder supports.

Maybe you are looking for

  • Why won't my mail open?

    Why wont my mail open ? It been a couple of days that i havent been able to completely shut down my lap top because it say that mail mail does not let me.

  • Which IOS version for 3925 fixes CSCul63961?

    Hello everybody, A little while ago we ran into CSCul63961 on one of ours 3925 routers. I know, this bug-id speaks of Cisco 1900 integrated routers series, but according to Cisco TAC engineer we've been in touch regarding some other issue we had with

  • Extending RAM Memory

    Hello, on behalf of extending RAM memory my iBook G4 (1,42Ghz 14,1" 512MB) manual provides using rather PC2100 DDR 266 then PC2400 DDR 333 modules. As I was told these RAM modules are quite old I bought a PC2700U DDR 333 and put it in. My question is

  • Help! Trying to write to a BLOB column

    I am trying to write to a BLOB column. I insert a row with an empty BLOB (using the emppty_blob()) I then get the locator of the blob by using a select statement that is marked 'for update' (autocommit is set to 'false') I use the blob.getBinaryOutpu

  • New MBPs - how much speed do I need?

    I'm about to replace my ageing G4 with a new 15" MBP but need some help from you fine people on the best option. Only apps I use are iPhoto (30GB of photos and growing), iTunes (16GB incl some videos) and Safari. The only extra app I'm likely to use