Need help with a BR - Please help !

Hi,
I would please request you to help me with your ideas on achievening the below requirement. I have ideas on doing this but I am not able to put together everything to make it work. Please let me know your thoughts. Will be a great help.
Requirement:
The requirement is that if the user enters a data value for Account member "P" on the data form at any level (Top most parent level, intermediate parent levels or 0 level) it should work in the following way.
1) It needs to check at which level the user entered the value for "P". We have a relation that V = P * T. So what I thought is if I dynamically calculate the "V" value everytime for every product I should know at which place they changed it as if they change the "P" value it would change the "V" value too as both are linked. So, basically I am comparing the stored "V" value with dynamically calculated "V" value.
2) If the "V" value has been changed at that level (i.e. if stored V Dyn. V) and this condition is met then, all the descendants of that current member should get the same P value as entered by the user for the current member.
3) This should work irrespective of which parent level they enter and should start filling in the values from that level. And if they enter "P" value at 0 level members, then it should leave them as it is without overriding it and should be used in consolidation.
This is what I could think -
Please suggest changes as this is not working still as per the requirement.
FIX(..........)
IF (@ISDESC ("LB") AND "V"->@PARENT(@CURRMBR(Product)) P->@PARENT(@CURRMBR(Product)) * T->@PARENT(@CURRMBR(Product)))
P->@CURRMBR(Product) = @PARENTVAL (Product,P);
Similarly IFELSE for another condition
ENDIF
ENDFIX;
But this is not working for all the cases. Lets say I have 3 levels in my hierarchy for Product and if the users are entering at level 2 it is not working and replacing the input value with its parent value which I am not sure why as it should in first place not enter the loop only as the condition wont be met. Reason, the user changed at level 2 and not 3 so it should do nothing from what I understand.
Please let me know your thoughts.
Thanks.

You can try something like this. Instead of dynamic V account add "P_Stored" member. If "P" account has data copy that data to "P_Stored" at all levels of the Product hierarchy. Based on your post I understand that Product hierarchy is evenly distributed than business rule can be like this:
FIX(@LEVMBRS("Product",2))
"P_Stored" (
IF("P_Stored" != @PARENTVAL("Product","P")
"P_Stored"=@PARENTVAL("Product","P");
"P"=@PARENTVAL("Product","P");
ENDIF
END
FIX(@LEVMBRS("Product",1))
"P_Stored" (
IF("P_Stored" != @PARENTVAL("Product","P")
"P_Stored"=@PARENTVAL("Product","P");
"P"=@PARENTVAL("Product","P");
ENDIF
END
FIX(@LEVMBRS("Product",0))
"P_Stored" (
IF("P_Stored" = "P")
/* I believe do nothing */
1==1
ELSEIF("P_Stored" != @PARENTVAL("Product","P")
"P_Stored"=@PARENTVAL("Product","P");
"P"=@PARENTVAL("Product","P");
ENDIF
END
FIX(@LEVMBRS("Product",3))
"P_Stored" (
IF("P_Stored" != "P")
"P_Stored"="P";
ENDIF
END
If Product hierarchy is ragged then code should be changed...
Regards,
Yuri
Edited by: yrozen on Oct 26, 2011 6:48 AM

Similar Messages

  • Need help with Portal Themes -- Please help

    I need help with Portal Themes.  I have read every document I can find but I am having no luck.  All I want to do is change the colors for the Exceptions on one of my queries.  I have created my own Portal Theme where I have changed the colors but I do not know how to assign my newly-created Portal Theme to my query.  Can someone please give me the detailed steps on how to do this? Please help because this is driving me crazy.
    Thanks.
    Ryan

    Hi,
    Refer
    Exceptions - How to change the colors
    This may help.
    Thanks,
    JituK

  • SQL I need help with this query Please help

    List the names of all the products whose weight unit measure is “Gram”.  Order the list by product name.  Do not use JOINS, but use the IN clause with a sub-query.
    select Name
    from UnitMeasure
    where Name= 'Gram'
    order by Name
    I did this, but it seem that the requirement is different.

    As a guess:
    Select Name from Product
    where UnitMeasure in (Select Name from unitmeasure where name = 'Gram')
    Andy Tauber
    Data Architect
    The Vancouver Clinic
    Website | LinkedIn
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Need help with an RMA - please help

    Mt Zen Micro 5GB is busted - the headphone jack issue...yuk So I attempted to fix this using the online guide and it did not work. I am certain that the solder connections are solid now, but still only one channel will play. I am willing to pay to have this fixed, but Creative tech support is ignoring my question as to how to get an RMA and they are sending me email that says I can pay $2.99 for a support session and speak with someone. All I want to do is get an RMA so I can send them the money and the unit for them to fix! If someone could buy those tiny circuit boards for the Zen Micro they would make a mint selling them - it seems like there are a lot of busted Zen Micro's floating around out there.
    Please - someone help me figure out how to get an RMA and a price to repair the Zen Micro - I am missing my tunes....

    you ant get a rma u broke the waranty contract if yoy try fixing the player your self the warranty is then invalid you can still pay for them to fix it or you can get a new mp3 player rma only works if your warranty is still valid not valid is torugh normal tear and wear tampering breaks the contract

  • Need help with case structures- please help :)

    Hey all.
    I'm currently trying to program a infrared furnace. I'm setting a temperature, subtracted my set temperature from the actual temperature (thermocouple hooked up to SCB-68), and voltage is being sent to the controller of the furnace accordingly. However, I need to hold the set temperature for a certain amount of time. I need help programming this: when the VI reads the set temperature from the thermocouple, it results in a timer running down. When the timer runs down to 0, the While Loop ends. I'm thinking case structures is most appropriate, but if you have a better suggestion, please let me know.
    Thanks

    You should probably implement a state machine.
    The state machine would keep track of the temperature and making ajustments on a timely basis.
    There is a template of a state machine is you select under the File menu > New > From Template.
    You can also look under Help > Find Example > and do a search for state machine.
    There are lots of state machine examples on this forum, some of which may be quite useful.
    RayR

  • Need Help with random numbers, please help

    Hi guys;
    I need your help for a school project. I need to generate a random number from 1.0 to 2.0. How would I do that?
    Regards,

    http://java.sun.com/j2se/1.3/docs/api/java/util/Random.html#nextFloat()

  • Need Help with Typography. Please Help.

    I have final cut studio 3 and want to do some typography, I can only find tutorials on how to do it in after effects. I do not have after effects and do not have that kind of money to buy it. I know motion 4 is capable of doing typography but how. I need someone to explain how exactly to do it or can someone give me a link to a tutorial of how to do typography in apple motion 4 (or 3). Please I really need to do do a typography project. How can I do this in motion 4.

    Check out Mark Spencer's website. I believe he has a tutorial on typography there.
    [AppleMotion.net|http://www.applemotion.net]
    It's bascially the same idea in Motion as it is in AE. It's not that complicated; it just takes a lot of work.
    Andy

  • Help with JEditorPane :). Please help...

    Hi there,
    I can not find out how the JEditorPane get's its' information on which Text to show.
    I know that there is a Document, representing the text information and an EditorKit, offering main functionality for editing, but what methods are actually called from where to get the text that is stored in the document?
    What methods are called from where?
    Could anyone help me please, I am rather desperate.
    Thank you very much
    Charly

    Here is a link to a section in the Swing tutorial that shows you how to use text components (JTextField, JTextArea, JEditorPane, JTextPane):
    http://java.sun.com/docs/books/tutorial/uiswing/components/text.html

  • PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    http://kb.mozillazine.org/Recovering_deleted_mail_accounts

  • I need the drivers for earl 2011 macbook pro 13 inch i7 4 gigs for windows 7 64 bits i tried downloading with bootcamp butt it never completes allways ends up with an error please help

    i need the drivers for earl 2011 macbook pro 13 inch i7 4 gigs for windows 7 64 bits i tried downloading with bootcamp butt it never completes allways ends up with an error please help if any one has the drivers or knows were i can download them

    Doug...
    If you don't have it for reference, the manual might come in handy > US/Boot_Camp_Install-Setup.pdf
    After it loads, Command + F to find information regarding the drivers.

  • HT4623 my voice call services is not working with cellular network...only works fine with wifi..please help?

    my voice call services is not working with cellular network...only works fine with wifi..please help?

    Since you have already done some sort of reset on your Airport Express, you might as well make sure it was a "hard reset" - follow the instructions for a hard reset found at:
    http://docs.info.apple.com/article.html?artnum=108044
    Since your Mac is running Leopard, you need to configure the Airport Express using the Airport Utility found in the Applictions->Utilities folder. You cannot install the old software that was supplied on the CD you got with the Airport Express.
    In future - if you do something bad with network settings on your Mac, do NOT try to fix it with the Airport Utility. The Airport Utility is only used to configure the Airport Express - and since the problem you have created is on the Mac and not the Airport Express, there is no need to be using the Airport Utility and especially there is no need to be resetting the Airport Express.

  • Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help

    Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help if you've the knowledge.
    Many Thanks

    Yep, i just did it again. The entire scroll-bar widget, complete with formatted text, graphics, etc., pasted itself nicely in another book. Two different files, the same widget.
    I use the scroll-bar widgets for most of my texts. (I have audio buttons on the side, and the scripts are within the widget, to the side). My only text is within widgets, and text boxes, naturally. 
    I am following your recommendation: cleaning files, etc. I am remaking the book anew. I need to convince the EPUB bot or whatever that my file looks and works nicely on all my devices. You would expect an error message when previewing the book: 'Hey Amigo, your file is flawed, stop working on it, and get back to the drawing board." Should be able to try again next Monday.

  • When i am trying to restore backup to my iphone, its coming up that back is not compatible with iphone. Please help me restore backup.

    Hi
    When i am trying to restore backup to my iphone, its coming up backup is not compatible with iphone. Please help me restore.
    Thanks
    Mandy

    From the article that the question was posted from:
    Error 1611
    This error typically occur when security software interferes with the restore and update process. Follow Troubleshooting security software issues to resolve this issue. In rare cases, this error may be a hardware issue. If the errors persist on another computer, the device may need service.
    Try reading the solutions you find in the future and follow them.

  • Help with Wireless thingy Please!!!

    Hi, could someone please help with this? I am quite computer literate except when it comes to anything wireless or networking as it is something I've never used, so heres the problem - I bought ATV, and put a wireless card in the computer - do i need a seperate router to create a network? ATV searches for a network, and finds one, but I am not sure its mine!! ATV not coming up in itunes. Ive tried everything, but its just not happening. If I need a router, fine I'll get one, but if not could I have some instructions please?!!!! Like what on earth do I put in if adding network to atv manually? How do I know what my network name is? Tried with firewalls disabled, and added ports 3689 and 5353 to exceptions. Bearing in mind I need translations for things like DHCP etc! Its a Belkin Wireless G+ Network Card, compatible with ATV. Please help as this is the only thing standing between me and music heaven!!thankyou!

    On a mac you could create an ad hoc network with a mac with wi-fi card only and internet sharing enabled, I've not done it and I don't know whether one has the choice to name the network or whether it will be identified as the mac's network name. I guess you will need advice from a PC guy as to whether this can be done on a PC, but my guess is that it can.

  • Microphone of my iphone is not working when i call anyone nobody can listen but me, its working with headphone but its also working with videocam recording, please help me to solve this probelm.

    microphone of my iphone is not working when i call anyone nobody can listen me its working with headphone. but it is working with videocam recording, please help me to solve this probelm.

    Try this:
    1. Reset the iPhone by pressing and holding the sleep/wake and home buttons and releasing them, when the Apple logo appears on the display. Now test again.
    2. If the issue persists: Restore the iPhone without any of your own content, using this description from Apple: http://support.apple.com/kb/HT4137
    3. If the issue persists, Your iPhone need repair.

Maybe you are looking for