How to solve this issue in query definition

Hi Experts,
I need to solve an issue existed in a query.
This query is built on a infocube which main char and key figures as follow:
sales doc., item, material, fiscal year/period, ordered qty, billed qty.
The query has to show opened qty for specific sales doc / item level. the formula for  opened qty = ordered qty - billed qty. But some of the sales doc /item are partial delivered i.e. there are several deliveries' entries for same sales doc/itm. for example the entries as follow:
sales doc---- item--materailfiscal year/periodordered qty-- billed qty
20001------ --    30--- m1 2009/002  200--
  25
20001--    30 -m1 2009/002 -  200--
100
Then after the execution of the query we got the opened qty: (200 - 25) + (200 - 100) = 175. This is totally wrong because the correct opened qty should be 200 - 25 - 100 = 75.
Could any body provide a solution to get the correct result ?
Thanks a lot
Edited by: Leon Ouyang on Dec 15, 2008 4:12 PM
Edited by: Leon Ouyang on Dec 15, 2008 4:13 PM
Edited by: Leon Ouyang on Dec 15, 2008 4:43 PM

Hi Leon,
Somewhere in your infocube there must be an indicator whether it is the first delivery or not.
Change ordered quantity into a resctricted keyfigure using the restriction of the indicator first delivery.
Your overview will be:
sales doc---- item--materailfiscal year/periodordered qty-- billed qty
20001------ -- 30--- m1 2009/002 200--
25
20001-- 30 -m1 2009/002--
100
And your total will be correct.
Success,
Udo.

Similar Messages

  • Transaction failed for unknown reason (100) Unable to complete backup at this time. Does anyone know how to solve this issue?

    Transaction failed for unknown reason (100) Unable to complete backup at this time. Does anyone know how to solve this issue?
    Thanks.

    The system is set up to backup files to the iCloud at the end of the day. This has ot happen for sometime now and the mesaage I get is the back up error.

  • When starting a rental movie, I get the message: "An error occured loading this content, please try again later". Any ideas how to solve this issue?

    When starting a rental movie, I get the message: "An error occured loading this content, please try again later". Any ideas how to solve this issue?

    Firstly, I should have typed speedtest.net previously.
    Now that's an interesting comment you make, out of interest do you have any purchased HD movies in your iTunes collection, if so, do they play on the Apple TV with your new tv.

  • I'm not able to enrol in a iOS developer program as individual. My browser says too many redirects. I'm using the Safari Browser. Please let me know how to solve this issue.

    I'm not able to enrol in a iOS developer program as individual. My browser says too many redirects. I'm using the Safari Browser. Please let me know how to solve this issue.

    Further to my earlier post, I have just read an entry noting that if you already own a domain name, and ask your hosting service to forward and mask your iWeb '08 created, web.mac.com site to your personal domain, chances are that due to the masking of the site on web.mac.com, Safari browsers interpret the masking as being the end of the site, and as such, just return a blank page?
    This may explain the problem. However, call me old fashioned, and possibly a little naive, but surely this cannot be the problem?? It's OK in Firefox!

  • Can't watch video on CNN with IPAD after installation IOS 6 any tip to solve how to solve this issue.

    Can't watch video on CNN with IPAD after installation IOS 6 any tip to solve how to solve this issue.
    Thanks for your support in advance

    I have a few TV type Apps that are doing the same think since the  IOS6 update . I figure the problem is at there end and there will be an update from them soon.

  • My 1st gen ipod touch has N/A in the WI-FI option can anyone tell me how to solve this issue please.

    My 1st gen ipod touch has N/A in the option menu for wireless, can anyone help solve this issue please???

    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    One user reported that placing the iPod in the freezer fixed the problem.
    If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
    Apple Retail Store - Genius Bar

  • How to solve this issue?

    To Whom It May Concern:
    I've purchased 11 books from web site and once i start to open the first two books i face issue about i'm not able to use them anymore because the Authorize option it's not clear for me because I've selected it by mistake on my desktop as Authorize. Later i try all best to fix this issue but now i can't use the all books at all even on (desktop, laptop, smartphone, or tablet).  May i get help, please.
    Your reply highly appreciated.

    Assuming that you have a user and password assigned in ColdFsuion Administrator for the DSN, what do you get if you try it this way?
    <cfstoredproc procedure="sam.getData" datasource="#dba#"></cfstoredproc>
    Phil

  • Sub query returns more than 1 value?? how to solve this issue ?

    Here my query is given below
    Declare @a as NVARCHAR(50)
    Declare @b as FLOAT
    SET @a=(SELECT U_WOType FROM IGE1 WHERE ItemCode=$[$13.1.0])
    SET @b=(SELECT $[$13.U_Quantity.Number])
    IF @a='Zinc Yellow Plating'
    BEGIN
    SELECT(@b * 14)
    END
    ELSE IF @a ='Powder Coating'
    BEGIN
    SELECT(@b * 16)
    END

    Hi Karthick,
    @b should be declared as DECIMAL(19, 6).
    For a strange reason, string fields read from the UI are of full size. So to be able to a test against a specific value (IF @A and ELSE IF @a lines) you have to trim the value first.
    So the line with the SET @a = (...) should be SET @a = RTRIM (LTRIM (...))
    From a SQL-Server point of view, you can also combine the two SET @a and SET @b into a single SELECT @a=..., @b=...
    Small performance improvement, with exactly no issues.
    The IF - ELSE IF test has a condition where it returns nothing (intended ?)...
    I personally would have written it like this:
    Declare @a as NVARCHAR(50)
    Declare @b as DECIMAL (19, 6)
    SELECT @a = LTRIM (RTRIM (SELECT U_WOType FROM IGE1 WHERE ItemCode=$[$13.1.0] AND IGE1.BaseRef=$[$13.61.0])), @b = (SELECT $[$13.U_Quantity.Number])
    SELECT
    CASE @a WHEN @a = 'Zinc Yellow Plating' THEN (@b * 14)
    WHEN @a ='Powder Coating' THEN (@b * 16)
    ELSE 0.0
    END
    Regards,
    Eric

  • How to solve this issue? partitioning, index or ....

    Hello,
    I've got question from developers.
    There is one table about 5mil rows and 95% of this row have one columm null. Other 5% have this column not null.
    They want quickly select this 5% and work with them.
    I thinking about partition. We can create one partition for users with column not nulll and second for users with null collumn and on the first partition I will create index on one collumn where are unique values. ( this 95% of users doesn't have this column filled ).
    Regards,
    Tom
    http://oracledba.cz

    Hi Soli
    It depends what your developers want to do with this 5% of data, approx. 250,000 rows.
    If they want to read and process all this data, then an index is unlikely to do you much good, especially if the 5% of not null values are evenly distributed amongst your data.
    Assuming an 8K block size, you would need to have an average row length of approx. 400 bytes or more to have fewer than 20 rows per block. If you have more than 20 rows per block and if the not null values are evenly distributed throughout your data, that means you would have to visit each and every block at least once on average to get a row of interest.
    Why would you use an index to visit each and every block ?
    If you have an average row length of approx. 200 bytes in total, you would have to visit each block twice on average to get the 5% of data of interest, again assuming even distribution of these not null values.
    Let's say you were lucky and you only had to visit say 50% of the table blocks. However, that's still reading 1/2 the table using single block reads when you could have read the whole table using multiblock reads. Unless you're only reading 2 blocks per multiblock read, which is highly unlikely, then a full table scan is still likely to win out, although it depends somewhat on the costs associated with each type of I/O.
    The point I'm making is that it all depends but to read 5% of a table via an index is unlikely to be beneficial.
    The idea of perhaps partitioning away the not null rows and reading just the 5% data of interest using a full partition scan has some merit, again assuming the developers truely need to access and process all 250,000 rows of interest.
    Cheers
    Richard Foote
    http://richardfoote.wordpress.com/

  • User  getting multiple labels in one copy instead of one label.how to solve this issue?

    user getting multiple labels in one copy instead of one label.
    The detail is unexpectedly prints several labels.The amount is variable, may be 10 or 20 such tags.
    any solution for the above issue?

    Hi sriram,
    may i know,Adjusting the SAPscript form will resolve the issue?
    device details:
    access method is "S"
    Thanks,
    Prasad.

  • Why when I try to buy a music on Itunes it says that occur an unknown error(-45054), and can't buy the any music. How can solve this issue?

    Please help as soon as possible. Thank you!

    Try repairing disk permissions in Disk Utility : https://discussions.apple.com/message/23478840
    If that doesn't fix it then try the suggestion a few posts further down on that thread by the same poster (wmark)

  • Photoshop CS4 licence failed ( 30 days counting... ) after Polish language plugin install. How to solve this issue ?

    Before installing language pack everything works with legal S/N.
    Adobe - Photoshop : For Windows : Adobe Photoshop CS4 11.0.1 update - multiple languages
    Paweł

    Before installing language pack everything works with legal S/N.
    Adobe - Photoshop : For Windows : Adobe Photoshop CS4 11.0.1 update - multiple languages
    Paweł

  • How to solve this problem "ORA-01466: Unable to read data -- Table definiti

    Hi,
    I had deleted the entry and i want back now and in between i done the following
    alter table pv_head enable constraint FK_PV_HED__CRF_HEDwhen i try in the following one
    SELECT * FROM PV_HEAD AS OF TIMESTAMP TO_DATE('28-FEB-2011 9:45:00','DD-MON-YYYY HH24:MI:SS')
    WHERE PV_NO IN (703705,703704) the error i am receiving           
    ORA-01466: Unable to read data -- Table definition has changed how to solve this issue.
    please guide me.
    Kanish

    You can not perform DDL and then perform a flashback query to before the DDL.
    One might wonder why you chose this particular time to perform an ALTER TABLE but you did. It is what it is.

  • After installing Lion os I cannot see my desktop 1 nor can I see my open windows when I go to finder, I just get the grey/black background that comes with mission control. Any ideas as to how to solve this problem?

    The top picture is what my Desktop 1 looks like. And the picture below is what my desktop looks like after clicking mission control. Ive tried changing wallpapers, changing preferences, etc. and I still can't figure out what's wrong. As you can see, on mission control you can't see any of the open windows, or anything that I have placed on my desktop. Any ideas as to how to solve this issue?

    Hello cor-el, thanks for your reply. I changed my settings for downloads to desktop and it has appeared on there. When I double click I am asked which program I want to open file. I click firefox and another box "opening install" says I have chosen to open the file which is an application and do I want to save it. This is the only real option so I press save file. I get a box saying this is an executable file which may contain viruses - do you want to run. I press ok and the final box showing C drive file name and desktop appears stating application not found.
    This happens the same whenever I try to install.
    To my untrained eye the application is not being recognised as an application and I cannot work out how to get it to do that.
    My plugin is still showing as out of date.
    Is there anything you could suggest. Thanks for your time.

  • HT6437 My itunes cannot locate my ipod. All the sync option are grayed out and diagnostics says that itunes cannot find usb ports and that no device is connected when it is. What should I do to solve this issue?

    So itunes is giving me problems. Since around Christmas time, itunes decided to stop reading my ipod. I connect it to my computer with the usb cable and my computer will recognize that a device is connected but itunes will not. If I go to file->devices and try to sync, all of my sync options are grayed out, while before it would just automatically sync.
    When I run diagnostics it tells me that under ports that it cannot find usb ports (it has a green circle?), a type of cable isn't found, and that no device is connected with the usb cable (which my ipod is). I have been trying to fix this issue but nothing is working. I've tried restarting my ipod, itunes, and my computer, i've also tried resetting my ipod and uninstalling itunes then reinstalling itunes but nothing seems to be working.
    Does anyone know how to solve this issue?

    Do the USB ports work for other devices?
    Does the iPod charge?
    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with                  
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - Then do the other actions of:
    iOS: Device not recognized in iTunes for Windows
    paying special attention to item #5
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

Maybe you are looking for

  • Bug in Oracle XML Parser?

    I have run the same .xsql page using the same .xsl style sheet via URL/Browser and programmatically as referenced in Steve's book. The problem is, the .xsql runs fine via the browser; however, if I call that same file programmatically I get this: ***

  • How to get The Collabration Admin Menu

    Hi All, Please Any one can tell me how to get  Collabration Admin menu in Netweaver like How we get System Administration , Content Administration and User Administration I want to create E-Mail Transport in the Groupware Admin Document they have giv

  • Binding Shared Variable to Source

    Dear all, I'm currently working on a project that requires the use of shared variables. The shared variables will be network published and programmatically created using properties nodes. However I encounter one error and one problem in the process o

  • Why I can`t import media file to my second disk?

    I install ssd on my mbp as startup disk,when I try to import media,I can`t select my HDD as save path? What should I do?

  • Debugging a code

    Hi experts, I have the following problem : I have added some code in a fm : if a set a breakpoint in the beginning of my new code , the code will run . Without breakpoint the code doesn't run . Any suggestion ? do i have to put the code in a FM and c