Odd Requirement

Hello, my client gave me the following requirement and I am having a bit hard time trying to code it....Here it is.
Data is coming in like this
Reporting App
Time      Category    Company   Costcenter  Shipto     Account     Signeddata
2011.jan  Actual     CO123        CO95         India      ABC123     1039
Now based on some combinations of Company/costcenter/shipto, there will be new shipto assigned to it. these rules/criterias will be stored in a new app that has signed data like this
Criterias app
Time    Category   Company Costcenter Shipto Account Newshipto   Signed data
2010.jan  actual      CO123     CO95       India    ABC123   Canada         1
So basically, whenever data is loaded, the default logic needs to look at all ruls/criterias in criteria app and see if the combination matches, if it does than change shipto to newshipto. i dont even know if Newshipto dimension is needed, may be there is another way?? I am not sure how the script logic will work because Lookup can only return signed data. thanks.

Mac, I'm following where you're going with this, but I have one complication. Both the "hours" and "dollars" measures live on the same fact table. And for one measure (hours), everyone should see everything. For the other measure (dollars), the security is as mentioned.
I'm thinking now what I may need to do is create two aliases for that fact table in the physical model, and then map one of those to hours and the other to dollars. In theory, I think that I can then apply your methodology to the "dollars" fact, and leave the "hours" fact alone.
I'm also wondering if there is something simpler - maybe some sort of CASE statement that I could use. I found some postings that talk about figuring out dynamically if you're at the year / quarter / month / day level by using some hierarchy logic. Possibly I can do the same with a case statement, something like:
case when priviliged_user = 'N' and hier_level = 'Employee' then NULL else fact.dollars end
The issue is that I'm working with the BI applications pre-developed RPD - and it's fairly complicated. Trying to find a solution that requires as little customization as possible.
Thanks for the ideas - I'll post what I finally decide on once I get there.
Thx,
Scott

Similar Messages

  • Restrict Product Allocation if Planned order is not getting created

    Hello All,
    We have a scenario that when ever a Sales Order is getting created, Product allocation assignment will be done automatically and planned orders will be created for that requirement in APO.
    There are some cases where in because of wrong Variant Configuration, Planned orders wont be created. Our requirement is to delete the Product Allocation automatically or to stop the product allocation assignment if the planned orders are not created.
    Do we have any standard setting for doing so or Kindly suggest me some BADI's which can be used for it.
    Thanks in advance.
    Best Regards,
    Srinivas.D

    Srinivas,
    A rather odd requirement.
    Have you tried in SCM APO 'Maintain check instructions' to perform the product check first, then allocation?  I would think that if the product check failed, then allocation would not be consulted, and no allocation therefore assigned.
    IMG > APO > GATP > General Settings > Maintain check instructions
    Best Regards,
    DB49

  • Can I connect an external Optical drive to Omni 10

    I am thinking to buy an Omni 10 tab. I want to confirm thad does it support external Optical Drives via USB OTG.
    I have found from other threads on HP Support that it supports External HDD bt I am not sure about External ODD.
    I asume that External ODD Requires more power than External HDD.
    This question was solved.
    View Solution.

    @ Ritaban: The micro-USB port on an Omni 10 is capable of supplying only a limited amount of power to operate attached devices (500 mA maximum). Most USB devices which contain motors (hard drives, scanners, optical drives) require substantially more sustained power than an Omni tablet can deliver. (for example, HP-branded portable DVD drives require 2 Amps — that's 4x what an Omni can deliver.) 
    However, there is a straightforward solution to attaching a wide variety of high-power USB peripherals to an Omni tablet, if they are connected via a Powered USB Hub. Although the Omni micro-USB port limits data transfers to USB 2.0 speeds, I recommend employing a USB 3.0 hub, because they typically are bundled with higher-output power supplies than their USB 2.0 counterparts.
    Most low-power USB devices — keyboard, mouse, flash stick, card reader — can usually be connected directly to an Omni tablet, via a micro-usb adapter cable, and won't require any supplemental operating power. However, if you intend to operate an Omni tablet for sustained periods with any USB devices attached, time between charges will be substantially reduced, so attach the supplied charger as well, whenever possible ...
    I hope to see you back here at some point, to tell us about how-much you're enjoying your new Omni 10 tablet! Your questions are welcome as well...
    Enjoy!

  • Using a heirachical key name in bean:message

    This is sort of an odd requirement but it will help me out greatly if I can find a way to do this.
    I am working on creating a JSP which generates vxml. I am using a resource properties file to read in text that I need to speak, or the names of wave files that I need to play. I grab these using a bean:message tag lib call. This all works fine but now I need to extend this app to handle several different States (Kentucky, Ohio, etc) which may or may not have small variations in their verbiage.
    Tell me if I am going about this entirely wrong but this is what I think would be nice to do:
    I would like to use the name of the key in this form:
    "prompt.company.state"
    Where an example resource properties file might be like this:
    mainmenu.columbia.ky=mainmenu_ky.wav
    mainmenu.columbia=MM_Columbia.wav
    mainmenu=mainmenu.wavWhat I would like to happen is if I request the key "mainmenu.columbia.ky" it returns the "mainmenu_ky.wav", but if I request "mainmenu.columbia.oh" it would return "MM_Columbia.wav"
    The idea is that a company may operate in different states and customize its prompts for that state if custom prompts exist but if they do not exist it uses the default for that company. Also there could be different company names also so if I asked for "mainmenu.northface" I would receive "mainmenu.wav"
    This is sort of like localization but I want to have all the keys in one file.
    My thought is that I would need to create my own taglib that extends bean:message and then parses the key name accordingly until I find a matching key. My problem is I have no idea where to start when doing that. I am while I have a strong Java background its been almost 4 years since I've worked on a project using it, and all this Struts and JSP and JSTL stuff is quite new to me.
    Does anyone have any tips for me? Maybe there is another tag lib out there which does exactly what I need and I just don't see it. Help anyone?

    This is sort of an odd requirement but it will help me out greatly if I can find a way to do this.
    I am working on creating a JSP which generates vxml. I am using a resource properties file to read in text that I need to speak, or the names of wave files that I need to play. I grab these using a bean:message tag lib call. This all works fine but now I need to extend this app to handle several different States (Kentucky, Ohio, etc) which may or may not have small variations in their verbiage.
    Tell me if I am going about this entirely wrong but this is what I think would be nice to do:
    I would like to use the name of the key in this form:
    "prompt.company.state"
    Where an example resource properties file might be like this:
    mainmenu.columbia.ky=mainmenu_ky.wav
    mainmenu.columbia=MM_Columbia.wav
    mainmenu=mainmenu.wavWhat I would like to happen is if I request the key "mainmenu.columbia.ky" it returns the "mainmenu_ky.wav", but if I request "mainmenu.columbia.oh" it would return "MM_Columbia.wav"
    The idea is that a company may operate in different states and customize its prompts for that state if custom prompts exist but if they do not exist it uses the default for that company. Also there could be different company names also so if I asked for "mainmenu.northface" I would receive "mainmenu.wav"
    This is sort of like localization but I want to have all the keys in one file.
    My thought is that I would need to create my own taglib that extends bean:message and then parses the key name accordingly until I find a matching key. My problem is I have no idea where to start when doing that. I am while I have a strong Java background its been almost 4 years since I've worked on a project using it, and all this Struts and JSP and JSTL stuff is quite new to me.
    Does anyone have any tips for me? Maybe there is another tag lib out there which does exactly what I need and I just don't see it. Help anyone?

  • AppleScript Math Issue

    Can anyone explain why this happens? Just seems like an odd requirement to ensure accurate math.
    set a to 12.0
    set b to 9.6
    set c to b / a
    --c is 0.7999999999999999 instead of 0.8 (unless casted to string in next line)
    --set c to (c as string) as real
    if (c is 0.8) then
      display dialog "c is 0.8"
    else
      display dialog c
    end if

    Hello
    My pleasure. Glad to know it helped.
    Well, there's one line I'd like to retract in my example, for it is misleading, that is -
    set a to 12.0
    set b to 9.6
    set c to b / a
    return roundn(c, -10) = 0.8 -- => true
    Indeed it returns true but it is only happy coincidence.
    We must carefully avoid "raw" real numbers in any comparison and round the both operands except for literal integers. Such as -
    return roundn(c, -15) = roundn(0.8, -15)
    or preferrably for performance's sake -
    return roundn(c - 0.8, -15) = 0.0
    Here's some unhappy coincidence -
    set x to 0.3 + 0.4
    set y to 0.3 + 0.4
    --return x = y -- => true
    return roundn(x, -1) = y -- => false
    --return roundn(x, -2) = y -- => false
    --return roundn(x, -3) = y -- => false
    --return roundn(x, -4) = y -- => false
    --return roundn(x, -5) = y -- => false
    --return roundn(x, -6) = y -- => true
    --return roundn(x, -7) = y -- => true
    --return roundn(x, -8) = y -- => false
    --return roundn(x, -9) = y -- => false
    --return roundn(x, -10) = y -- => false
    --return roundn(x, -11) = y -- => true
    --return roundn(x, -12) = y -- => true
    --return roundn(x, -13) = y -- => false
    --return roundn(x, -14) = y -- => true
    --return roundn(x, -15) = y -- => false
    --return roundn(x, -16) = y -- => true
    --return roundn(x, -17) = y -- => true
    --return roundn(x, -18) = y -- => true
    --return roundn(x, -15) = roundn(y, -15) -- => true (trivial if x = y)
    --return roundn(x - y, -15) = 0.0 -- => true (ditto)
    on roundn(n, d)
            number n : source number
            integer d : target rounding place so that n is rounded to 10 ^ d's place
        set h to 10 ^ d
        (round n / h rounding to nearest) * h
    end roundn
    Let us tame the floating devils by proper rounding!
    All the best,
    H

  • Variable number of document info record parameters

    Hi guys,
    I have a question about adding additional information to document info record.
    The situation is following:
    Our customer wants us to link original purchase order (PDF file) with it's document info record in SAP. The document itself is stored in another document management system and we have succeeded in linking this object with it's document info record in SAP.
    He also wants to have some description data stored in document info record (date, description, name, etc). One odd requirement is copying information about cost centers and costs per each cost center from fields in document management system to some fields in document info record.
    The problem is that each purchase order can have various number of cost centers and costs per each cost center!
    So, is there any possibility to define some fields in document info record to which I can store variable number of parameters (for example in one case 3 fields, and maybe in another case 1 field)?
    Any kind of information will be valuable for me!
    Thanks for help!

    Hi,
    But my next question is how can I know how much cost centers will be for some document? If I need to define number of cost centers in advance, then this solution is not very flexible. The best solution would be if I could add values to classification flexibly (for example: one time 3 values and the other time 1 value).
    :-Check box additional values in values tab of char. that will allow to enter flexible number of values any time
    The other question is about values of parameters. For each cost center I need to enter two values (cost center number, and costs for that cost center). So, for each cost center I need to add 2 values. Is that possible using classification?
    :-Create classification with chara. cost center, cost center value and check box additional values as above that will allow you to add values for cost center and cost center value.
    Anirudh.

  • How to Change Label Size When Publishing a PDF

    We are attempting to print barcode labels from XML Publisher.
    This question is not about fonts but rather label size.
    In our Word template, we selected a label size under Page Setup.
    But we have an odd requirement to publish that document as a PDF for remote printing. When we currently publish to PDF, it only treats the page size as Letter. It's ignoring the selected page size from the Word template.
    Does anyone know how to get XML Publisher force the PDF-published document treat the page size as a Word label size (or custom size)?
    Note: We are on XML Publisher 5.5 on a Red Hat Linux server.

    Hi Tim,
    Need help. We need to print labels (width 6 inches, height 4 inches). Earlier we used to use optio and for labels we had a thermal printer which would print the labels in the exact size required.
    But now, we want to replace Optio and roll out to XML Publisher for labels. I have no idea how to go about this. Can you please help.
    Thanks
    B.S

  • Oracle BIEE installation issue: Application Server default OC4J name error

    Hi all,
    I am installing OBIEE 10.1.3.3.2 windows 32bit version on windows 2003 sp2. Before the installation I have installed the JDK 5 and Application Server 10.1.3.1.0(J2EE Server and Web Server) on the same server according to the pre-install section in the OBIEE installation guide.
    When I install OBIEE (advanced installation), I got the error when I specify the Oracle Application server location:
    Please specify a valid Oracle Application Server 10g installation location. A valid Oracle Application Server 10g installation must have the default OC4J instance named home and that home OC4J instance must be enabled.
    When I install the Application Server 10.1.3.1.0, I have change the default OC4J name to "oc4j-soa", I think this is the root reason I got the error. I have tried to create another OC4J instance named "home", but failed coz the name is used for another directory.
    Then can I have another way to continue the installation? Why OBIEE installer have this strange constrain while not any words about this issue in the installation guide (coz I follow the each steps in the guild before I take action)? I have search some threads and the only information is to install a simple installation, but it would create another application server..... and the simple installation type is not what I want.
    Can anybody give me some hint or information about this issue? otherwise I have to purge and reinstall the server...... Thanks
    Scott

    Reinstalling the App Server and naming oc4j instance to be called "home" resolves the issue but this is an odd requirement. I have an OC4J instance already running and it is named something else. Is there any other alternative to make this work?
    Swapan.
    PS. I can always create a new oc4j instance named "home" but this is wasting of server resources.

  • MIRO without Service Entry Sheet

    Hi,
    We have a odd requirement to have the MIRO done before the Service Entry Sheet. The business process is as follows:
    1. User will raise a Service PR and then a Service PO will be raised.
    2. The services will be carried out at the plant.
    3. There will be a central location for Invoices and the vendor might send the invoice before the Service Entry Sheet is created.
    4. To manage the huge load, the MIRO will be posted and will be blocked (Since Service Entry Sheet is not created).
    5. The Blocked Invoice will trigger a workflow which will be sent to the requestor reminding that a Serv Entry Sheet has to be created.
    6. The requestor will then create a Serv Entry Sheet and the Invoice will be cleared.
    Std SAP does NOT allow the MIRO without the Serv Entry Sheet.
    Any feedback will be appreciated.
    Amit

    Hi
    you can do this way-
    step1-
    You can change the Error message into warning which you are getting during invoice posting ( in absence of SE) or
    make the changes in std SAP invoice posting code
    see at which stage SAP code validate whether Service Entry is exist for given PO.
    If SE is not there then instead of allowing to throw an error message, and bypass the error message with warning message.
    Step2
    you pass the MANUAL BLOCK on invoice via user exist . As soon as you post the invoice, Invoice will have header level block (you can see the invoice in RSEG table RSEG-SPGRQ)
    Step3
    there should be one function module which will fetch the requisitioner ID from Purchase Order ( ARNAM or AFNAM, based on company policy)
    logic- if invoice has manual block , then get the requestor's ID and send a notification via WF to requestor 2) you need to schedule a job which will call T code MRBR with option Manual Block to release the invoices
    Process- Once SE is done by requestor  and subsequent GR is created automatically, the job will run as per the schedule and invoice will be unblocked
    Hope this will help you

  • Mirror Imaging Text (RTL arabic-style languages)

    Hi,
    I have an odd requirement, to be able to display text typed into a purchase order or sales order and display it on the smartform as it's mirror image.
    The background is our Arabic smartforms need to display English as well as Arabic.  Arabic only is not a problem and works, SAP displays all text in it's correct right to left (RTL) format.  English only also work, text is displayed left to right (LTR) but to produce a smartform with both is a problem.  We have gotten around it so far by turning off the RTL function in Arabic smartforms and hard-coding the titles in Arabic as mirror images of themselves.
    But now, the business wants user to manually type some text into purchase or sales order and this text is to appear on the smartform.  This text will be in Arabic and needs to be displayed RTL as a mirror image of itself.  So, the business has asked me to write a function module which accepts text strings and converts them into mirror images of themselves.
    I have to admit I'm stumped - 8 years of ABAP and I've never been asked to do this before.
    Any suggestions?
    Gill

    Check FM STRING_REVERSE
    Regards,
    Naimesh Patel

  • Star schema - History

    Say I have a star-lite schema with just 2 dimension tables and 1 fact table. The classic many-to-many relationship with a resolver/intersection table.
    For discussion purposes, let's take the standard student/test/score tables. Student and Test are the dimensions and Score is the fact. In addition to capturing the test score, the requirement is to capture a snapshot of student and test (dimension) attributes when the Score is recorded.
    This would mean duplicating the Student and Test attributes in the Score fact table, right? Are there any other ways to model this requirement?
    Thanks

    VANJ wrote:
    . In addition to capturing the test score, the requirement is to capture a snapshot of student and test (dimension) attributes when the Score is recorded.Seems like a faintly odd requirement but anyway.
    This would mean duplicating the Student and Test attributes in the Score fact table, right? Denormalisation is a fairly common feature of data warehouses. We trade more space for speedier queries.
    Are there any other ways to model this requirement? Are there any other ways to denormalise attributes without duplicating them? No. But there is more than one way of implementing the desired outcome. For instance, instead of storing additional attributes with the SCORE you could build a Materialized View which joins STUDENT, TEST and SCORE together. Then allow Query Rewrite to use the MView to satisfy pertinent queries rather than the underlying tables.
    This clarification of the requirement was added after I posted:
    The requirement is to record the current Student & Test attributes as of the time the Score is recorded.If the requirement is to maintain a history - and I suppose the clue really is in the question - then there is no alternative but to duplicate the STUDENT and TEST attributes in the SCORE table. In an OLTP environment I would suggest using a separate sub-system of journalling tables to track changes but that wouldn't make a lot of sense in a SWH context.
    Cheers, APC
    Edited by: APC on Apr 26, 2013 2:04 PM

  • Display a odt File in a Swing Panel?

    Hello
    I need a library to display odt files in a swing panel.
    I know that open office can be embedded in panels but this does not work for mac and i want my application to be cross plattform.
    It should also have a commercial license.
    best regards

    hbral wrote:
    ..I need a library to display odt files in a swing panel.ODS (Open Document spread sheet files) are just zipped XML. I expect ODT would be the same.
    So extract the XML, apply an XSLT that produces HTML or equivalent, and you should be set to drop that HTML into a JEditorPane (into a JScrollPane &) in the JPanel.
    ..It should also have a commercial license.You mean, the solution cannot be LGPL or GPL? That is a very odd requirement.

  • Add moved /users to new install

    Hello,
    I moved my /users directory using the 'Advanced Options' under Accounts in System Prefs to another drive.  My boot drive is simply for apps and only maintains an 'admin' user account for recoverability purposes.  My issue is that I recently installed a fresh image of Snow Leopard on the boot drive and am having a tough time adding that account that exists on another drive (that was created via a prior System) back to my newly installed system.
    Did I have to 'import' that user partition on installation setup (as asked by the install process)?  or is there a way that I can re-use that /users account that is on a different drive with my new fresh install?
    Any help is appreciated,
    -J

    You may need to check the Unified Messaging profile setup in Unity to ensure it still has access into the new store.  In 2003, it uses WebDav, so if the account you are using is not setup to use WebDav on the new store, Unity can not deliver nor retrive information from this new store.  Also note, there is some sort of odd requirement with Microsoft and WebDav.. the account that uses WebDav must have a mailbox setup and at least one message sent and received to it.   (Or just logged into at least once for it to be active).  I have no idea why, but its documented at MS and seemed to fix a problem for me during a prior install with CUC and 2003 Exchange

  • Is it possible to write a doPost() method inside a doGet() method??

    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class check extends HttpServlet
         protected void doGet ( HttpServletRequest rq, HttpServletResponse rp ) throws ServletException, IOException
              protected void doPost ( HttpServletRequest rq, HttpServletResponse rp ) throws ServletException, IOException
    }I tried the above code and failed. So, if someone could answer me, I'd be really grateful!
    Thanx in advance.

    I tried the above code and failed. So, if someone could answer me, I'd be really grateful!
    Thanx in advance.This code is simply illegal Java code. It has nothing to do with "doPost()" or "doGet()". Go back to school/books and carefully learn Java.
    If you want to write logic for GET requests, implement doGet(). If you want to write logic for POST requests, implement doPost(). Otherwise just leave it away. If you want GET and POST requests behave both the same (I have never had such an odd requirement, but that's another story .. you're the developer here), then just let them call both the same method. Add private void doSomething(req, res) and let the doGet() and doPost() call it. Simple, isn't it?

  • ME53N Prevent user from making a change

    How do you prevent a user from making a change to a purchase requistion via transaction ME53N?  We want the user to make a change to the purchase requisition using transaction ME52N not transaction ME53N.  When the user is in transaction ME53N and clicks on the pencil to change the purchase requisition we want to prevent the user from making any changes by sending a message or force the screen to go to display mode.  Thank you in advance.

    Sharon,
    I don't believe that your exact requirement can be met with standard SAP.
    However, this is a very odd requirement.  It sounds like you are saying that it is OK for a user to make a PR change in ME52N,  but for the same user it is not OK to make a PR change in ME53N.
    In most companies, if it is not OK for a user to make a PR change in ME53N, it is therefore also not OK for this user to make a PR change in ANY transaction, including ME52N.
    It is a straightforward matter to allow a user access to ME53N and ME52N, but to block his ability to change any PR at any time.  If this  is your requirement, then consult with your authorization team about the authorization objects that are checked in the ME5* series of transactions.  As I recall, it is possible to tailor authorizations (create/change/display etc) by plant, by Purchasing group, by purchasing org,by  document type, etc.
    Rgds,
    DB49

Maybe you are looking for