How to manage the same counter based on Order Number and Order Items

Hi All,
   we need some help to build an infocube and a query as described in the following scenario.
ODS 1 (Order Numbers aggregated at month level) defined as:
- Order Month
- Customer
- Counter
ODS 2 (Order Items aggregated at month level) defined as:
- Order Month
- Customer
- Product
- Counter
We would like to build an InfoCube that allows us to create a query through which we are able to compare:
-  ODS 1 - Counter, that means the number of orders without considering the product
-  ODS 2 - Counter, that means the number of orders where a specific product is included
For example:
ODS 1:
Order Month........Customer........Counter
200701...............20001.............10
200701...............20002.............5
ODS 2:
Order Month.............Customer...................Product..........Counter
200701.....................20001.......................A....................1
200701.....................20001.......................B....................10
200701.....................20002.......................A....................4
200701.....................20002.......................C....................5
The desired query should show the following result
Ord Month.Customer..Product.....Counter....Counter
.................................................(ODS2).....(ODS1)
200701......20001.......A..............1..............10
200701......20001.......B..............10.............10
200701......20002.......A..............4..............5
200701......20002.......C..............5..............5
Do you have any idea how to get this result?
Thanks
Kind Regards

Hi Valeria,
    Have a look,
<a href="http://sapbwneelam.blogspot.com/2007/08/sap-tables.html">How to... Count the occurrences of a characteristic</a>
<a href="http://sapbwneelam.blogspot.com/">More Docs .....</a>
Hope it Helps
Srini

Similar Messages

  • How to find the Org.key based on Job key and Org Unit.

    Hi,
      Please Let me know how to find the Org.Key based on the Job Key and org Unit.
    Regards
    nagendra.

    On recent ThinkPad, the Product ID Key sticker has been moved from the bottom of the unit to behind the battery.
    You need to contact Lenovo technical support directly to ask about recovery media.

  • How to have the same iTunes library on a laptop and a desktop and be able to sync an iPod and iPhone to each one

    I currently have iTunes 10 build 10.6.1.7 on my Win 7 home premium 64 bit laptop.  I used this computer as my desktop for a few months until I rebuilt my old desktop.  Now I want to put iTunes on the new desktop Win 7 64 bit computer.  I have both an Piod Classic 80 gig and an iPhone 4 16 gig.  Do to space limitations, I only sync a few of the items in the library with the iPhone.  I sync the entire library with the iPod.
    I want to be able to have the same library on both the laptop and desktop and sync both devices as descrbed above.  Is this possible?  If not possible, what is the reason for being able to have up to five machines auithorized for iTunes?  I'm thinking that it h as something to do with the apple ID, but I'm not sure.
    If I can't do this as I've described, what is the best way to accomplish something similar?
    BTW, iTunes on the laptop says version 10.6.3 is available, but when I click download, nothing happens.  How do I fix this?
    I've always found iTunes to be vrey confusing.
    Thanks for your advice.

    Is it possible to have an Iphone and an IPAD on the same Itunes account on a PC?
    yes.
    the number of mobile devices you can use with a single instance of iTunes is virtually unlimited.
    How to use multiple iPods with one computer

  • How to keep the same cost in Sales order and return order?

    Hi experts,
    When I create a sales order with item cost 100 USD.
    Then the cost of item changed and down to 90 USD.
    When I do goods return refer to the sales order. How can I keep the same cost (VPRS) 100 USD but not 90 USD?
    I made a test the cost in sales order is 100 USD but 90 USD in return sales order.
    I want the cost in return sales order is 100 USD.
    How can I do?
    Thanks,
    Lance

    Hi,
    Let me tell u my understanding of your requirement, after the sales the cost of the item is changed to some thing low than it was in sales order or invoice, in this scenario you need to transfer the cost of the material as it is in the sale order or invoice (which you are taking as reference to create a Return Order), am i right?
    If so, you can proceed like this.
    In the copy controls of Billing to Sales orders ( F2 to RE) we have the pricing type N assigned to it ( Transfer pricing components unchanged, New Cost) here the system is reading the change of the cost again from the material master. if you don' t want it to read the material master data again we can have a change try with pricing type 'D'  (Copy Pricing elements unchanged), and try now.
    let me know the result.
    hope this will solve your problem.

  • How to use  the same channel to send a file and messages to the server

    I'm trying to develop a simple program that will send and receive files from the server and in the same time I need to communicate with the server through the messages
    I'm using TCP Socket
    my problem is
    I have only one channel
    so, I have no option, either I can use it for sending the file itself or sending the message .. but not both !
    my question is : How can I use the same channel for sending and receiving (file & message)
    I would appreciate for any clue or hint
    best

    kajbj wrote:
    kmarwani wrote:
    Thanks for reply
    yes, that what I'm thinking to do
    but, in case of sending binary file, if I attached a flag on its header, will it corrupt the file ?
    bestThe other end would of course need to decode the messages that you get, and only write the "data" part to the file.Thanks
    I'm gonna try to hard-code what you suggest and i will post what happen with me here
    even though I'm not sure how can I add header to a binary file and remove it from the file at other end. (coz I read it as stream and send as array without touching its contents)
    this how I'm sending the file
    ConnSocket = CSocket.accept();
    ToClient = new DataOutputStream(ConnSocket.getOutputStream());
    File myFile = new File("abc.jpg");
    FileInputStream myFileInStream = new FileInputStream(myFile);
    BufferedInputStream mybuffInStream = new BufferedInputStream(myFileInStream);
    myBytArray = new byte[(int) myFile.length()];
    mybuffInStream.read(myBytArray, 0, myBytArray.length);
    ToClient.write(myBytArray, 0, myBytArray.length);
    ToClient.flush();
    myFileInStream.close();best

  • How to use the same variable value for data entry and the planning sequence

    Hi,
    the scenario is the following:
    Using the WAD template a user enters cost center plan data. The cost center is selected by the chosen value for the variable "V1".
    Afterwards he shall push a button which starts a planning sequence (including saving the data and further functions). This planning sequence uses a filter that also contains the variable "V1".
    What or where has it to be defined that the planning sequence uses automatically the same value for the variable "V1" as selected for the data entry?

    You have to define in the planning function. The planning sequence is only a sequence and it read the planning functions underneath it.
    Ravi Thothadri

  • How to use the same external hard drive for OSX and XP

    Hello to all. First off, thanks for all of the helpful comments that have been posted in the discussion board, they have helped me a lot with my problems and curiosities. My question has been touched on in the past, but nothing concrete so I figured I'd ask a bit more specifically.
    I recently loaded Windows XP (FAT32)onto my MacBook. Everything is running smoothly, but I was just curious how I could format my external HD so that both operating systems can read it, i.e. I only have 20 GB's partitioned for Windows XP, and i'll be using it to download music and movies. I would like to be able to play these straight from my external rather than use up the disc space. Let me know if anybody can help! Thanks.

    Unfortunately, Disk Utility doesn't just move everything around. It has to erase everything, and then resize. I find it a little odd, seeing as other disk utilities can resize everything just fine. Anyway, yes, you will have to erase your drive to reformat it as FAT32. What I usually do is try to copy everything from the drive to free space in the internal drives. I haven't had too much data on my drive yet, so I've been lucky so far. I don't know if you have enough free space on whatever drives you have, but that's probably the best way to do it.
    1) Transfer everything over to a folder on the internal drive
    2) Use Disk Utility to reformat the drive as FAT32
    3) Transfer everything back to the external drive
    2.0GHz MacBook 1st Gen   Mac OS X (10.4.8)   2GB RAM

  • How to populate data in the same table based on different links/buttons

    Hi
    I'm using jdeveloper 11.1.4. I have a use case in which i need to populate data in the same table based on click of different links.
    Can anyone please suggest how can this be achieved.
    Thanks

    I have a use case in which i need to populate data in the same table based on click of different linksDo you mean that you need to edit existing rows ?
    What format do you have the date in - table / form ?

  • I am currently managing 20 iPads on a macbook. I would like to manage the same 20 iPads on a new macbook pro. I have logged into the iTunes account on the new machine and see our apps but not the devices. How do i get the devices to be shown on new comp?

    I am currently managing 20 iPads on a macbook. I would like to manage the same 20 iPads on a new macbook pro. I have logged into the iTunes account on the new machine and see our apps but not the devices. How do i get the devices to be shown on new comp?

    Has anyone used apple cpnfigurator for this purpose?

  • How to get the FILE COUNT from File directory

    Hello,
    i have to develop a scenario like, get  the file count from source file directory and validate whether the file count is 5 or not. if 5 files exist i need to process those 5 files to DB tables. if file count is not equal to 5 then i need to send a mail to customer that files are missed at source directory. (subject as files were missed at source directory and in content i need to display the file names exist at source file directory. So that missed file will be generated by the customer based on this mail).
    Could you please let me know how to get the count of files from source file directory. if it is possible only with UDF please provide the Java code
    Best Regards,
    SARAN

    Do these files have some fixed names?
    Can you try to use the option Advanced Selection For Source File to make XI  pick all 5 files in one shot?
    Check this blog on the same -
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    If this is not a option - BPM sounds the only possible way.
    Regards,
    Bhavesh

  • How to get the row Count of a ResultSet

    How to get the row Count of a ResultSet

    Hi
    I'v tried rennie1's way ,but I only get zero,my code is:
    rs.executeQuery("select count(*) from t_test");
    if (rs.next()) int rowCount=rs.getInt(1);
    I also tried barni's way ,but the method rs.last() and rs.beforeFirst() throw a same Exception
    I tried another way,the code is:
    while rs.next(){
    // Do nothing ,just move the cursour to the last row
    int rowCount=rs.getRow()
    However,the rowCount still equal zero
    Any help would be greatly apprecite!
    note:
    I get connection by DataSource's JNDI name from client, the Server is Weblogic Server 6, the DBMS is Oracle.

  • How to do the same form element alignments on two different regions

    Hi,
    I have two different regions on the same page as the second one is underneath of the first one. Both the regions have some form elements like text field, select list etc. However the alignment of the elements on these two regions are not the same. In the individual regions, it just aligns the input fields based on the maximum length of the label within the region only, so it creates two different vertical alignments per region. How to have the same alignment for the input elements across the regions?
    (I wish to upload the screenshot of the page but there is no provision in this forum to do so).
    Thanks in advance.
    Natarajan

    The basic approach is to set the width of the item labels using a CSS embedded style sheet in the page HTML Header:
    <style type="text/css">
    label {
      display: block;
      width: 15em;
    </style>If you want to limit this to items in specific regions, then give these region(s) static region IDs (such as <tt>region-1</tt>) for use as CSS selectors:
    <style type="text/css">
    #region-1 label,
    #region-2 label {
      display: block;
      width: 15em;
    </style>

  • "Data only" csv export. How to get the same data?

    When I export to csv I get more data than when exporting to "data only". Why and how to get the same as when using "data only". I suppose it is because of some supressed lines, but why there is difference in the view (which is right) and in the export file?
    I do not want to export to xls with "data only" and save as csv, because the exported csv is being read by another application, which is unable to convert it automatically.
    The other way is to put constraints in the data selection for the whole report (and not by supressing lines). How to say {table.date}>=maximum({table.date}) in the  in the data selection? There is not possible to use "maximum". Probably possible with array?
    Thanks in advance
    Edited by: Kiril Bojilov on Aug 4, 2009 12:34 PM
    Ok, I managed it: I put the constraint in the group selection
    Edited by: Kiril Bojilov on Aug 4, 2009 12:46 PM

    New customers get more options because new customers didn't already agree to complete a 2yr contract before being able to get a new phone. If you had a line that wasn't under contract, you would get a better deal than new customers because while they pay $35 activation fee for a new line, you pay $30 upgrade fee for using an upgrade. You just have to finish your end of the deal before you can start a new one.

  • Does anyone know how to manage the hotspot connections?

    Does anyone know how to manage the hotspot connections? Is there a way to see who is connected, disconnect a particular user, etc.? All I can see is the blue bar announcing the number of of connections.

    I should have phrased that better. I have multiple devices connected at the same time, sometimes I want to disconnect one only 1 of them. To do this I need to go to the device and disconnect or turn off the device. Is there a way I can disconnect selected devices on the phone? Not so much a matter of knowing who/what is connected, rather having control of these individual connections from the phone. Is this possible?

  • How to Reduce the Gate count of a Design(RTL gate count)

     
    Hi All,
    I am a newbie to FPGA design and implemetation. I have a design (H.264 Encoder) and implemented on zynq zc702 (which is having Artix7 FPGA fabric). Now we need to implement it on zynq zc706 with reduced gate count ( because we are going to add some more blocks like rate control etc.,)
    How to reduce the gate count ?
    Please guide me regarding this query.
    Thanks,
    Ramesh

    
    Try to reduce the overall control set. Registers in the slice shares the same control set so if the number of registers in the control set do not divide cleanly, some registers may go unused.
    Make sure correct DSP and BRAM blocks are getting inferred by the tool
    Try to map FSM in BRAM.
    Use Synthesis and Implementation level strategies.
    See if any module is having high utilization and can be reduced by changing RTL: report_utilization -hierarchical  -file utilization.txt
    Thanks,
    Anusheel
    Search for documents/answer records related to your device and tool before posting query on forums.
    Search related forums and make sure your query is not repeated.
    Please mark the post as an answer "Accept as solution" in case it helps to resolve your query.
    Helpful answer -> Give Kudos
     

Maybe you are looking for

  • Sharing Itunes Library with several users on the same computer

    Hi, I'm trying to share the iTunes library on a SP2 system. I placed the Itunes folder on a partition and setted iTunes to use this folder in each user account but... When one add musics to the library, thoses musics are not visible once switched to

  • New ipod nano doesn't fit new ipod hifi

    I just bought a new 4 meg ipod nano and apple ipod hifi from the London Apple Store. The ipod nano doesn't fit in its adapter. Anyone know of this problem? I'm gobsmacked that Apple's quality control let this happen! Thanks

  • How do i unlock my ipod when you forget password?

    I put a lock on my ipod yesterday and now i try to put it in and it wont work but then i think that i forgot my password so my question is how can i unlock it i tried and tried but i cant seem to get it right so can you please help me with my situati

  • How do I get MacBook Air to see Windows Home Server and show it in Finder?

    New to Mac (having used Windows for years) so this may be a dumb question. Have a MacBook Air (new) and have a home network with a Windows Home Server on the network. I can't figure out how to get the MacBook Air to see the Windows Home Server. It do

  • ADF Tree creation

    Hi, I am creating a Tree structure from an iterator whose SQL has a Variable, I am setting the Variable through VariableValueManager, I want to execute the query with the SQL. But the SQL is not getting updated, i am unable to find an API which propa