Error in Logic when and endwhen

Hi Experts,
My logic is erroring at (UJK_VALIDATION_EXCEPTION:Invalid when/endwhen: Line #25 : Invalid when/end) which is ENDWHEN LOOKUP(PPO)
*XDIM_ADDMEMBERSET ACCOUNT_CMP = AC.RECEIPTS,AC.PRODVOL,AC.RAWMATERIALS
*XDIM_MEMBERSET RPTCURRENCY = <ALL>
*XDIM_MEMBERSET GEOGRAPHY = <ALL>
*XDIM_MEMBERSET COMPANY = <ALL>
*XDIM_MEMBERSET PROFITCENTER = <ALL>    //EXPAND SCOPE FOR RECEIPTS RECORDS
*LOOKUP OCD
*DIM PPO:DATASRC="MANUAL"
*DIM PPO:COMPANY = "CC.NOCOMPANY"
*DIM PPO:CUSTOMER = "NO_CUSTOMER"
*DIM PPO:PLANT = "NO_PLANT"
*DIM PPO:GEOGRAPHY = PRODUCT.RCVGEO
*DIM PPO:PROFITCENTER = PRODUCT.PROFITCENTER
*DIM PPO:RPTCURRENCY = "LC"
*DIM PPO:ACCOUNT_CMP = "AC.PURCHPRICE"
*ENDLOOKUP // OCD
*WHEN ACCOUNT_CMP
*IS AC.RECEIPTS
  *WHEN LOOKUP(PPO)
     *IS <>0       //PPO MUST BE <> 0 TO USE FOLLOWING CALC
     *REC(ACCOUNT_CMP = AC.PURCHPRICEVAR,DATASRC=MANUAL,RPTCURRENCY="USD",EXPRESSION=%VALUE% * (LOOKUP(PPO) - GET(ACCOUNT_CMP="AC.RAWMATERIALS",DATASRC="MANUAL",GEOGRAPHY="NO_COUNTRY",RPTCURRENCY="LC")))
     *ELSE   
     *REC(ACCOUNT_CMP = AC.PURCHASEPRICEVAR,DATASRC=MANUAL,RPTCURRENCY="USD",EXPRESSION=0)   
  *ENDWHEN LOOKUP(PPO) //PPO <> 0
*IS AC.PRODVOL
  *REC(ACCOUNT_CMP=AC.TEMPMFGSCRAP,DATASRC=MANUAL,FACTOR=GET(ACCOUNT_CMP="AC.RAWMATERIALS",DATASRC="MANUAL",GEOGRAPHY="NO_COUNTRY",RPTCURRENCY="LC",COMPANY="CC.NOCOMPANY"))
*ENDWHEN  //ACCOUNT_CMP
*COMMIT
Currently we are in BPC NW 7.0
Thanks in advance
Reg
Ram

Hi,
1) You cant use GET function in NW, it doesnt supports GET.
2) Hope You know what transaction data is, it is the data we key across various dimension members.
Say you have,
Acct  Time              Entity  Category  Data
A       2010.JAN       E1       Actual      1000
in the above, 1000 is transaction data and the other values across which the data is saved is master data.
Consider the example i have given, if the LookUp function is used to fetch the value in this the valriable used will fetch 1000.
This value can be used in some calculations inside WHEN and ENDWHEN statements. But not in condition check.
And in your script you have used ACCOUNT_CMP="AC.RAWMATERIALS", So for this to work you should be having a dimension AC with property RAWMATERIALS and the values of that property should have IDs of ACCOUNT_CMP.
The same applies to all statements of this type in your script.
Hope this helps,
Regards,
G.Vijaya Kumar

Similar Messages

  • JSP Compile Error when using dynamic ID in logic:iterate and bean:size

    Hello,
    I try to create a dynamic table with logic:iterate and bean:size tag. Dynamic means the attributes are written by scriptlet. Eg.:
    <logic:iterate id="customerBean" name="<%= formName %>"  property="<%= propertyName%>" length="<%= sRowSize%>">When I replace the id Attribute with propertyName I get compile errors, such as
    the compiler doesn't know the value at runtime:
    Unable to compile class for JSP An error occurred at line: 179 in the jsp file: /pages/formContent.jsp Generated servlet error: _newCustomer.java:1046: Missing term. java.lang.Object <%= propertyName %> = null; ^
    Whats wrong ?
    Thanks for your help

    Solution: don't use a runtime expression for the id attribute.
    The id attribute is used to declare
    - an attribute in scope
    - a scriptlet variable on the page
    These are only available for the duration of the <logic:iterate> tag
    The "id" is only used in your programming. You don't need to make it dynamic.

  • Not able to install Logic on mac with OSX.  10.8.2. Error message: Logic Studio.mpkg cannot be opened as the power pc programs are no longer supported. I have logic studio 8 software purchased in 2007 and upgraded with logic studio 9 (purchased in 2009)

    After an earlier attempt to move Logic from my other mac (OSX 10.6.8) with the migration assistant to my new mac with OSX 10.8.2. I've re-started the whole start up process by erasing the hard drive from the new machine and build it up from scratch. After a new "out of the box" start, I decided to install LOGIC from my disks : starting with my 2007 package Logic Studio 8 and upgrading with my Logic 9 package from 2009. When trying to start to install 2008 I got the error message : Logic Studio.mpkg cannot be opened as the power pc programs are no longer supported.
    What does this mean? HOw do I get this working under 10.8.2 as it works flawlessly under OSX 10.6.8. For sure I didn't buy a new machine to have OSX 10.8.2 but I suspect this is the roadblock to installing my logic package.
    Help!

    Mark,
    Sorry...
    I completely lost the thread (I actually got confused between you and another poster on a another forum that was asking the same basic question) and somehow ended up thinking you were trying to install on a PPC Mac
    My apologies and please ingnore those parts of my last post relating to the PPC Macs...
    You have an Intel Mac and therefore Logic Studio 2 Boxed Upgrade set should install/run on your Mac without issue. As I said earlier.. you do not need to try and install from the original Logic Studio 1 /Logic 8 Boxed set...(It won't work anyhow because you have an Intel Mac and that version had a PPC installer)  but just install from the Logic Studio 2 / Logic Pro 9 Upgrade Boxed setof DVDs instead...
    Have you tried the "Make Disk Image" solution I gave earlier? That normnally works under such circumstances as what you are describing can happen when your DVD drive cannot read the DVDs correctly... I have had this situation myself where one drive read them okay and another failed to do so for whatever reason. Making and then installing from Disk images of those exact same disks resolved the issue for me...
    You can try to reinstall directly from the DVDs of course though under some circumstances it may not allow you to reinstall Logic Pro itself if that part of the original installation attempt was successful... in which case you can also try this... (It's probably the easiest method if Logic 9 was already installed and present in your Apps Folder)
    If the Logic Pro App is in your applications folder..
    Run Software Updates to update Logic Pro to a version that will run under 10.8.2 (The initially installed version of Logic will not)
    Run Logic
    Go to the menu bar in Logic and select Logic Pro/Install Additional Content and select all content in there..
    This content is basically exactly the same as what is stored on the remaining DVDs of the boxed set so you might not need to use the rest of the DVDs to install from but download it all instead from Apple Servers...

  • Error code -50 when opening Logic virtual instruments

    I'm getting an error code -50 when trying to open any of the Logic's virtual instruments, VIs from other brands open without a glitch.
    I have searched the support forum but no results came back.
    Please help !!!
    Thanks in advance
    Marcello Azevedo
    G5   Mac OS X (10.4.8)  

    The plugins access the key to check they are authorised to run (remember, the main plugins were separate purchases once upon a time). Obviously, if you are on a USB port/hub that's not agreeing with the XSkey, then communication is unreliable and can take the form of a number of different effects on your system.
    That -50 error probably means the plugin failed to load, as the communication with the XSkey failed during the initialisation process.

  • Error out from MB01 and MIGO when using BADI "INSPECTIONLOT_UPDATE"

    Hi all:
    We are currently implementing Quality Level with Dynamic Modification Rule using SAP Quality Management module.
    We are trying to change stage level by modifying the field PRSTUFENAE of the table QDQL (Material Quality Level) using BADI: INSPECTIONLOT_UPDATE, new logic is successful for a goods receipt with a single lot if we use COMMIT WORK within BADI, but an error occurs from MB01 and MIGO when we are receiving multiple lots in same goods receipt.
    Have anyone else got across something similar?
    Thank you in advance,
    Regards
    Daniel Guillen

    Hi Paul,
    First of all, there is a How To Guide for RUNLOGIC implementation. It uses BAdI approach as well, but doesn't call WRITE_BACK that can change from version to version.
    Second, you should be able to see that method GET_DELTA is being called under
    IF D_CALC_DELTA eq abap_true and df_bw_delta eq abap_false.
    D_CALC_DELTA is set to TRUE only in Method WRITE_BACK_INT; I hope you aren't using that one.
    DF_BW_DELTA is taken from DM Package parameters. Can you check what you have there or put just a break-point in PACKAGE_LOGIC_1 to see what value those 2 variables have?
    Hope this helps,
    Gersh

  • When I download Itunes my computer tells me there was and error in the download and I have to downlooad again.  I have tried three times.  My computer in brand new. So what could the problem be

    When I download itunes my computer tells me there was an error in the download and I need to re-download.  It tried three times to re-download and got the same error.  Any help for this?  My computer is brand new.

    Go START/ALL PROGRAMS/APPLE SOFTWARE UPDATE"
    If it offers you a newer version of Apple Software Update, do it but "Deselect" any other software offered at the same time.
    Once done, try another iTunes download

  • HT201303 An unknown error has occurred when trying to sign in , and I know I putting in the correct info, this stinks can anyone help? Because apple isn't...

    An unknown error has occurred when trying to sign in , and I know I putting in the correct info, this stinks can anyone help? Because apple isn't...

    urgh... just noticed my previous post said i have mountain lion... i meant that i have snow leopard.  no idea why i messed that up!
    anyway, i just tried reinstalling snow leopard from the usb key that came with the computer. Then, I installed software updates until it told me there were no more updates. After that, I tried the app store again, and it still is giving me the unknown error. really irked by that. may have to take it back to the apple store yet again, to see if i can figure out why the app store won't work.

  • TS3258 I get error message -42408 when trying to download itunes update 11.0.2 and thus can not upgrade to latest version.  What should I do?

    I get error message -42408 when trying to download itunes update 11.0.2 and I therefore can not update to that latest version.  What can I do?

    Hey there davidgor2!
    I have found an article that should help you resolve this issue with updating your iTunes. The article can be found here:
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    and the specific part of the article you will want to look at first is right here:
    "Error 42023" through "Error 42408"
    These alerts might occur when trying to authorize iTunes or during launch when iTunes checks for authorization information.
    Install the latest iTunes from apple.com/itunes/download/
    Remove the SC Info folder.
    If that does not resolve the issue, see iTunes: "Error 42408" or "Error 42404" after upgrading to iTunes 9.0.3.
    Thanks for using the Apple Support Communities!
    Regards,
    Braden

  • I keep getting error code 4450 when I'm trying to burn a CD from itunes.  It keeps my CD and won't eject it and says "cancelling burn" forever then itunes locks up and my cd is ruined and NO songs on it.

    i can't burn cd's in iTunes anymore. I get error code 4450 when I'm trying to burn a playlist. Songs from my own cd's, or bought in iTunes (have not burned 7x's as I can't BURN any cd's at all!),  Then my cd gets stuck in the drive. and it says "cancelling burn" forever and then itunes freezes up. I have a Dell with Windows 7.
    -I've slowed down the burn as slow as it can go
    -I have bought 3 different brands of cd's
    -i have the latest version of iTunes.
    Can someone help me?

    I have Windows 7 on a Dell.  Open and play iTunes in the compatability mode and use Windows XP (service pack 2).  Disregard any messsages to disable the compability mode.  This has worked for me.  I have also reinstalled iTunes and played with burn speeds etc.  These ideas did not work.  Compatability mode works.

  • Firefox 4.0.1 closes with no error message. When I restore the session I get: Well, this is embarrassing. Firefox is having trouble recovering your windows and tabs. This is usually caused by a recently opened web page. What can I do?

    After opening certain websites, pogo, firefox 4.0.1 closes with no error message. When I restore the session I get: Well, this is embarrassing. Firefox is having trouble recovering your windows and tabs. This is usually caused by a recently opened web page.
    I have had this problem before and had to reinstall an earlier version of firefox.
    The error console has a long list of errors, many of them end with: does not implement nsIObserver. Is there a way to send the information on the error console to firefox support?
    Redownloading Firefox 4.0 will fix my problem until I either close firefox or turn off my computer. The problem recurs when I open firefox again.

    See:
    * http://kb.mozillazine.org/Firefox_crashes
    * https://support.mozilla.com/kb/Firefox+crashes
    It is also possible that there is a problem with the files [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/sessionstore.js
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
    Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • I have iTunes open in Windows XP and get an error 45048 message when I try to update apps thru the store. How can I fix this? I have reinstalled iTunes twice.

    I have iTunes, latest version, open in Windows XP and get an error 45048 message when I try to update apps thru the store. How can I fix this? I have reinstalled iTunes twice but problem continues.

    Try contacting iTunes via email to check if there is an issue with the account. go to apple.com/support/itunes
    Click on iTunes Store account and billing and select inquiries. On the right side click on "email us".
    Before doing that trying viewing your account information first. Open the iTunes on you mac, look at the menu and select store and select view my account. Try removing the card (this is only applicable if you don't have a pending charges with iTunes) and hit done. Sign out, quit iTunes and sign back in and try updating the apps again.

  • When I open itunes to play content I've already purchased and while attempting to view trailers for movies in the itunes store, I receive a generic error message from windows, and I'm directed to reinstall the latest version of itunes.  Not a fix.  Help?

    When I open itunes to play content I've already purchased and while attempting to view trailers for movies in the itunes store, I receive a generic error message from windows, and I'm directed to reinstall the latest version of itunes.  Not a fix.  Help?

    after perusing other subjects with playback issues: 
    this is the fix: 
    -Launch Control Panel - Double click Quicktime, If you do not see quicktime, look on the top left side of control panel and switch to classic view. This will then allow you to see Quicktime.
    -Now click the advanced tab and click on Safe Mode GDI Only, Apply, then ok.

  • I keep getting an error pop-up when I try to access my email. The pop-up says Cannot Get Mail  The connection to the server failed.  I get this pop-up on both my iPhone 5 and my iPad. I can still access my email, but the pop-up is real annoying.

    I keep getting an error pop-up when I try to access my email. The pop-up says Cannot Get Mail  The connection to the server failed.  I get this pop-up on both my iPhone 5 and my iPad. I can still access my email, but the pop-up is real annoying. Can someone please help me with this?  -Stu

    Hi StuNYC,
    Welcome to Apple Support Communities.
    It sounds like you're seeing an alert message when opening Mail on your iOS devices. Do you have multiple email accounts setup on the devices? Take a look at the article below, it provides suggestions that will resolve most issues that  cause an alert like that to appear in when starting the Mail app.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    I hope this helps.
    -Jason

  • I started the newest update for my phone but when it started installing it to the phone, a error message showed up and now my phone is stuck in recovery mode and itunes wont recognize it. what do i do?

    started the newest update for my phone but when it started installing it to the phone, a error message showed up and now my phone is stuck in recovery mode and itunes wont recognize it. what do i do?

    Any numbers or other details on the mesages given?
    Did you try to connect in recovery mode again? iOS: Unable to update or restore
    In case your network connection timed out, check your security software settings: iTunes for Windows: Troubleshooting security software issues

  • I get this message "The operation can't be completed because an unexpected error occurred (error code -50)" when I try and add any files to my Time Capsule

    I get this message "The operation can’t be completed because an unexpected error occurred (error code -50)" when I try and add or delete any files to my Time Capsule.  It just started happening a week ago.

    I would get an external drive today and copy all your stuff off the TC.. forget trying to load more onto it. There is a good chance after 3years (A 2TB should be only about 2years tops), the disk or the TC itself is on the way out. Do it immediately. If TM is also failing to backup you need to recognise symtoms of impending doom.
    Unfortunately the error messages are archane and it is hard to discover their meaning.
    You also cannot verify a network drive.. you can verify the TM sparsebundle though so do that.
    A5. http://pondini.org/TM/Troubleshooting.html
    Reboot the whole network from off.. certainly if you run later OS it can simply lose the drive..
    If you still fail to be able to copy to the TC.. then get that external and copy off it. Tell us if you can do that.

Maybe you are looking for

  • How can I host multiple domains on a single Mac?

    It's actually a little more complicated than that. I have a site, let's call it site.com, and it's hosted just fine on my Mac Mini, accessible via the Internet and everything. I want to use the .co domain of my site, which is pointed to the same IP a

  • I installed v12beta3. So, I need to return to v11: instructions?

    As I have problems with HISTORY options (allways OFF), and Session Manager addon, can't save (save button allways OFF), I need return to v11 from v12beta3.

  • Core i7 HP laptop super slow.

    Hi, my HP Pavillion DV6-3194CA laptop (XG752UA) starts freezing, lagging and generally being slow even in the simplest of tasks (even having a youtube video, or a few tabs open) it's much worse when doing such things as gaming (becomes unbearably slo

  • Can't open a website, please HELP!

    Hi, I'm a mac newbie here ^^ I'm having a hard time getting into this korean website: http://www.hellobada.com Whenever I try to open this website, I received an error "unterminated string literal". Does anyone know how to fix this problem? Please he

  • HP Officejet 6000 Wireless - Does not print black correctly.

    HP Officejet 6000 Wireless - Does not print black correctly. Previously the printer was printing fine. This evening I printed a diagram I made in MS PowerPoint. The diagram contained black and red text along with black, red, and blue lines. When I to