Workforce HBR "Wrkforce_Add_TBH_Salary" uses NumTBH.

Our "out of the box" Workforce HBR script "Wrkforce_Add_TBH_Salary" uses a
Global Variable called NumTBH. It is not incrementing correctly when we exceed 10 new hires - NumTBH goes back to being 2 and so it creates a TBH02. Unfortunately, we already have a TBH02 and so HBR overrides existing TBH02. Is there a bug? Anyone knows what we are doing wrong?

Hi,
I don't think there is any significant difference in our code from original. I don't think problem is in the code.
So here is my question.
Original code says to pull Var numTBH from global Variable NumTBH
VAR numTBH = [NumTBH];
So where does HBR store the next available NumTBH ? Your HBR is not working and it is storing the wrong number in global Variable NumTBH. For example, if I hired 4 new hires, HBR should store 05 in global Variable NumTBH. Instead, it is storing 02, which causes Add_TBH_Salary to override our existing TBH02.
Anyways, here is the top half of our code - which has relevant portion of code referencing global Variable NumTBH
VAR numTBH = [NumTBH];
VAR validTBH = 0;
FIX([Scenario], [Version],[Entity],[Dept],"Local", "HSP_InputValue")
SET CREATENONMISSINGBLK ON;
FIX(@CHILDREN("New Employees"),"No Project")
FIX(@LEVMBRS("Periods", 0),"No Year")
"Start Month"
IF (@ISMBR("BegBalance"))
validTBH = 0;
/* First determine the first unused TBH member */
IF (numTBH > 0 AND @MAXS(SKIPMISSING, @CHILDREN("Employee Properties")) == #MISSING )
"Start Month" = [StartMonth]->"Cal TP-Index";
numTBH = numTBH - 1;
validTBH = 1;
"TBH Desc" = 1;
ENDIF

Similar Messages

  • Security on HBR using Command Line

    Is it possible to setup and remove HBR security using command line? There is a command line utility to launch HBRs, Is there a similar way to update security programmatically, rather than manually changing it.

    Unfortunately you can't set the security by command line, in V11 you can use LCM to export/import business rules which contain provisioning but this a is a full rule and it is not so clever at overwriting if the rule already exists.
    If you are on V11 and using calc manager then you can use a utility to import the security.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error while using between operator with sql stmts in obiee 11g analytics

    Hi All,
    when I try to use between operator with two select queries in OBIEE 11g analytics, I'm getting the below error:
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <select>: Syntax error [nQSError: 26012] . (HY000)
    can anyone help me out in resolving this issue.

    Hi All,
    Thank u all for ur replies, but I dint the exact solution for what I'm searching for.
    If I use the condition as
    "WHERE "Workforce Budget"."Used Budget Amount" BETWEEN MAX("Workforce Budget"."Total Eligible Salaries") AND MAX("Workforce Budget"."Published Worksheet Budget Amount"",
    all the data will be grouped with the two columns which I'm considering in the condition.
    my actual requirement with this query is to get the required date from a table to generate the report either as daily or weekly or monthly report. If I use repository variables, variables are not getting refreshed until I regenerate the server(which I should not do in my project). Hence I have created a table to hold weekly start and end dates and monthly start and end dates to pass the value to the actual report using between operator.
    please could anyone help me on this, my release date is fast approaching.

  • Calling Java API from HBR

    Hi guys,
    I’m trying to use Java API to update ASO cube from Planning forms. So there are several steps:
    1.     Planning form passes variables to HBR
    2.     HBR passes variables and calls Java CDF
    3.     CDF performs some operations and uses JAPI classes to update ASO cube.
    When I run CDF as runtime command or from JDeveloper/Netbeans if works fine. When I run CDF from HBR but do not use JAVA API methods it works too. But when I call CDF from HBR AND use JAPI methods it doesn’t execute JAPI methods. I do not receive any error; methods that use JAPI methods are simply not executed.
    Any ideas why it happens?
    Thanks,
    Dmitry

    Hi,
    Have you tried running it from an essbase calc script first and run the essbase server in the foreground (not as a service if you are on windows) then if you have any System.out.prints on errors or in your code they should be outputted to the window.
    It usually easier to get it running from a calc script first because you sometimes get better messaging than business rules.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Workforce Initalization in 11.1.2.2

    Hello Experts,
    This many sound a bit odd, but I am not able to locate initalize workforce option in planning in 11.1.2.2.
    Can anyone help me with it?
    It is not where we find in 11.1.2.1 i.e. in Admin->Initilize Workforce.
    Sandy

    Hi,
    Use admin login.
    One can find this option in Administration->Application->Manage Application.
    Then select the required application from the application list.
    Later click on Action-> Initialization.
    Select which module you need to initialize.
    And click OK.
    Hope this helps.
    Regards
    -SM

  • Problem setting the value of a substitution variable in a calc script

    Hi, All.
    I'm trying to update the value of a substitution variable inside an IF statement and I'm having trouble.
    Here's the code:
    *"Jan"(*
    IF  (LoopCounter = 1) &varEntity = "100";
    ENDIF;)
    the error I get back from EAS is:
    Error: 1200336 Error parsing formula for [Jan] (line 54): [(] without [)]

    I know CL knows a lot about HBR, if he's around today... LOL
    As a matter of fact, I just used an HBR (not using Calc Manager till I have to)'s macro functionality to drive fx for different Scenarios in a Planning app. Here's how I call the macro:
              /*     Call the macro mcrFxCoreOutYears for the four fx rate types for ALL 12 months of the year.     */
              FIX(&BudYear)
                   %mcrFxCoreOutYears(Constant)
                   %mcrFxCoreOutYears(Comparable)
                   %mcrFxCoreOutYears(Estimate)
                   %mcrFxCoreOutYears(Actual)
              ENDFIXI pass the Scenarios Constant, Comparable, Estimate, and Actual to the macro mcrFxCoreOutYears. You can apply HBRs against Essbase.
    I believe (I can't remember what exactly -- is it that templates don't accept parameters? That seems hard to believe. Looking at a CM template, that does seem to be the case. Bummer if I'm right.) that Calc Manager BRs have less functionality wrt templates, but I haven't worked with CM for over a year.
    It works really well -- a single place to maintain code and no appreciable performance cost.
    You cannot launch a HBR from a MaxL script but HBRs can be launched from command lines -- this may constrain where you place your automation (it basically has to run off of whatever the EAS server is. You may end up shelling out of MaxL to execute the HBR or even execute scripts across servers -- that does get more complicated.).
    Anyway, if you have any more questions, ask away -- it really is a very powerful component. I will have to look at CM more closely (sooner or later I will lose the HBR vs CM argument and at least need to know if templates support parameters) to see if I'm right on what I wrote above.
    Regards,
    Cameron Lackpour
    P.S. You cannot define an ARRAY in an HBR macro because ARRAY arrayname[value] gets read as a parameter. I ended up declaring the array in the calling HBR.
    P.P.S. I really need to write up the fx approach in a blog post -- it is wicked fast and really easy to use. Too many other posts in the queue already.
    Edited by: CL on Aug 24, 2011 1:48 PM

  • Business rules macros

    Hi,
    Anybody used macros in business rules? If yes, can you please provide some info on pros and cons of marros in business rules
    1. We are using global variables
    2. Some implementing company proposing macros and in the macros all the common stuff like house keeping things, fix statements etc.
    I have not seen any company putting house keeping things in macros.
    Thank you
    Venky

    Anybody used macros in business rules?^^^I use macros all the time for commonly used snippets of code all the time.
    1. We are using global variables ^^^Not a problem. Declare them at a global level, use them in the macro.
    2. Some implementing company proposing macros and in the macros all the common stuff like house keeping things, fix statements etc.^^^I don't use them that way.
    Typically, I write the code once in good old Calc Script Editor, then copy into HBR (the EAS editor for HBRs finally tabs correctly), then replace with global variables. Once I id common code across HBRs (or if I'm clever, and actually think ahead), I remove that code block and stick it into a macro.
    Could you stick a FIX statement and other things into a macro? Sure, I do it all the time.
    Do I use macros exclusively for FIXes and other housekeeping items? Only if they were being repeated again and again. I would wonder if that really made sense as those are the bits of code that tend to change over time as the app changes -- do you really want that to happen to all HBRs that use the macro? Maybe, maybe not.
    Regards,
    Cameron Lackpour

  • Camera adjustments

    Needing to change the resolution of pics taken for for files. Default setting eat up too much memory.  Any suggestions? Apps to download to be able to adjuste setting?
    Thank  you!

    I believe it already is, and it didnt seem to make that much difference in the storage capacity of the quantity of pictures we take on a daily basis.  Is there another option available to set at a lower resolution thru a downloable app or something? I know the options are limited in the settings on the iphones.  Most people want awsome pictures. We caputre rental equipment and don't really care how awesome they are. But..the iphones work great with the mobile workforce we are using...
    Thank you!

  • WFA_FORECASTING error while attempting to Post WFAFC_A01 Idoc

    Hi All,
    I am attempting to load Historical Data into the WFM (WorkForce Management) system using Idocs.
    I am getting the error message WFA_FORECASTING071 "Sample set failed to insert any data" when processing using function module IDOC_INPUT_WFAFCHV.
    I am using message type WFAFCHV.
    On E1WFAFSH segment
    I populate ORG_OBJID with objid,
    IND_EXT_KEY with the key,
    STAT_FORM= 00 (actual)
    UPDATE_TYPE=1(add)
    STAT_GRAIN=00 (quarter-hour)
    On E1WFAFTM segment
    I populate STARTDT and ENDDT with the same date,
    STARTIDX = 0 (midnite) and ENDIDX = 96 (number of quarter hours in day)
    TIMEZONE = CST
    On first E1WFAFVI segment
    I populate TOTROW = 2 (I have 2 E1WFAFVI segments on Idoc)
    CURROW = 1 (this is first of 2 rows/segments)
    TOTCOL = 50 (max number of values/misses allowed on segment)
    MISS1- MISS36 with an X because we do not expect values
    VALUE37 - VALUE50 with numbers we want loaded.
    On second E1WFAFVI segment
    TOTROW= 2, CURROW = 2, TOTCOL = 46
    VALUE1-VALUE34 with numbers we want loaded
    MISS35-MISS46 with X because we do not expect values.
    Anyone have any ideas what i can do to fix this/get by this error ???
    Thanks,
    Mike

    Consulted with other source, they suggested changing endidx to 95 , update type to 3. No difference, same error.
    Thanks in advance for any suggestions/help.
    Mike

  • Work Force Deployment

    Hi,
    Is there a way that in the service desk, the service request gets automatically assigned to a agent based on his load.
    Please note: I am not using CTI.
    Thanks,
    Rinkal

    Vinod
    Welcome to SDN
    Workforce deployment is used in Netweaver technalogy. Please check this link but it's not in English. Wil Try to find out english version
    http://help.sap.com/saphelp_nw04/helpdata/en/da/3c51403ab46f13e10000000a1550b0/RN_BW_DE_neu.pdf
    Hope this helps
    Thnaks
    Sat

  • EPSON Workforce 310 "scanner reported an error" when using document feeder

    I'm having trouble using my EPSON Workforce 310 printer/scanner with my new MacBook Pro (late 2012, 2.5 GHz i5, OS X Mountain Lion 10.8.2).
    Using the flatbed I can scan without a problem. But when I try to use the document feeder, I get the following error right after I click Scan and before the scanner has done anything (at least I don't hear anything moving inside the EPSON):
         Scanner reported an error
         An error occured during scanning
    The EPSON's display doesn't show any error or special message.
    This is repeated whether I use Image Capture, Preview's Import from Scanner, or the printer's native app (PrinterProxy, the one that shows up in the doc whenever the printer is printing or scanning).
    I have no problem doing the scanning from my old iMac (2006, 2GHz Core Duo, Snow Leopard). After scanning to the MacBook fails I can walk over to the iMac and scan from there without problem and without resetting anything on the EPSON.
    The EPSON is connected the home network via ethernet to a Time Capsule. Both computers are connected to the network via WiFi.

    Syd,
    My wife's iMac with 10.6.6 stopped working with her Epson 2480 Photo scanner. Get the error message "SCANNER reported an error. An error has occurred during scanning" I am trying to use it from the Image Capture App or from the print/fax option in Settings which opens Image Capture. I ran the uninstall program and then reinstalled the ICA 13969 .dmg but get the same error. Not sure what else I can do.

  • Using Epson Workforce 40 with Snow Leopard and an AirPort Extreme

    Hi. Long night working on this but I figured something out, that might help others out there in the same/similar situation.
    I have an Epson Workforce 40, and an AirPort Extreme. I had previously set up the EPWF40 (Epson WorkForce 40) before I had installed Snow Leopard. After installing Snow Leopard, the printer would not work and would not be recognized by my MBP 15". The document would just hang and I would have to force quit the printer or delete the document.
    Bullet points on how I made it work:
    - the most important thing is to have the printer recognized by the router and have an IP address installed and registered first, then you can install the Epson Mac EasyPrint software and "find" the printer over your wireless network
    - Goto:
    http://www.epson.com/cgi-bin/Store/support/supDetail.jsp?oid=108743&prodoid=6307 5463&BV_UseBVCookie=yes&infoType=Downloads&platform=Macintosh&x=28&y=3
    and download the Epson EasyPrint v3.10 file called: "epson12433.dmg"
    - Unfortunately, Epson does not make software to "install" the printer to the router for Snow Leopard
    - I re-installed the printer to the router using my wife's HP laptop and the original CD that came with the EPWF40.
    - Follow the instructions on the CD for the install for "First Time" setting up the printer.
    - After following the original instructions from the CD on her PC, the router assigned a new IP address to the printer, and the printer was "connected" to the router wirelessly
    - Then, on my MBP running Snow Leopard, I ran the dmg file downloaded earlier from the Epson website.
    - After running, go to the printer/fax preferences, click the "+" sign and add a new printer.
    - As long as you are connected wirelessly to the router, under default, your mac should "find" the Epson printer. It is called something like "EPSON5A2EAA". There should be at least one, if not two options.
    - One of the options should be "EPSON5A2EAA Bonjour" and the other "EPSON5A2EAA IP". Click on one, install it, and then go back and click on the other and install it (just to be sure).
    - You will not be able to use the standalone Epson Apps installed from the DMG, however, the printer preferences for the epson, will be available through the printer preference boxes when you go through the system preferences.
    It didn't make any sense at first for me either. Once I understood that:
    - you can't install the printer from a Mac to your router
    - after the printer is installed and linked with your router, your Mac can find it and use it
    ...I was able to complete the installation and have a fully functional wireless network printer.
    Feel free to drop me a question. I'm just glad I was able to make it work.
    -j

    Sota Boy wrote:
    I installed Snow Leopard but my Epson WorkForce 500 printer is not compatible. I saw an article about loading Rosetta and this would solve the problem. I can't find the article and I have never used Rosetta.
    Actually, you have.
    Rosetta was incorporated into both Tiger and Leopard. But it was invisible, of course. Snow Leopard is the first OS that offers the choice of whether to install it or not.
    Any suggestions on how I find the recent article or make my printer work with Snow Leopard?
    Don't know about the "recent article", but you can install Rosetta by inserting your Snow Leopard DVD and clicking on the Optional Installs package. When the configuration choice window comes up, just check Rosetta alone and carry on.
    Good luck with it!
    Archie

  • Is anyone able to use any version of Firefox with Kronos Workforce Central?

    We use Kronos Workforce Central 5.1 and it requires Java. We installed Java 6 update 30. We were able to login to Kronos using Firefox for about a week. Then, we started to see Firefox hourglass when trying to see someone's timecard when logged on as superuser.

    Note that the Nightly build gets updated daily (and sometimes more than once in case of a respin) and it is always possible that something goes wrong and it doesn't work properly, so be prepared for issues if you decide to stay with the Nightly build and make sure to have the current release with its own profile installed as well in case of problems.
    See also:
    * http://kb.mozillazine.org/Testing_pre-release_versions
    *http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    *http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    *http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • Use of EXCLUDE in HBR

    Hi All,
    I was wondering if anyone knows if the EXCLUDE command has definitively been left out of HBR. We are using v11.1.1.3.
    Thanks,
    Brian

    Unfortunately, it doesn't work for me either. I too have an 11.1.1.3 instance. I dunno about 11.1.2.
    You can (pretty much) get around EXCLUDE with a FIX and @REMOVE. Yes, it's not the same thing and it really ought to be there, but it's close.
    If it's any consolation, EXCLUDE appears to syntax check in Calculation Manager. If your need for EXCLUDE is great, perhaps that's an alternative?
    Regards,
    Cameron Lackpour

  • HBR Error thrown when using @NEXTSIBLING or @SHIFTSIBLING within the FIX

    Hi,
    I'm working on a HBR that works fine, when using the following code:
    SET CREATENONMISSINGBLK ON;
    +FIX("BegBalance",[KHSA_PLAN2_ACCOUNT],[KHSA_PLAN2_CUSTOM3],[KHSA_PLAN2_CUSTOM4],"E-00000","FY10","Budget","Robocza",[KHSA_PLAN2_CURRENCY],HSP_InputValue)+
    FIX(T4)
    +"C2-00000"= 2;+
    ENDFIX
    ENDFIX
    Now, I'd like to use the @NEXTSIBLING or @SHIFTSIBLING within the second FIX statement, so the BR code looks like this:
    SET CREATENONMISSINGBLK ON;
    +FIX("BegBalance",[KHSA_PLAN2_ACCOUNT],[KHSA_PLAN2_CUSTOM3],[KHSA_PLAN2_CUSTOM4],"E-00000","FY10","Budget","Robocza",[KHSA_PLAN2_CURRENCY],HSP_InputValue)+
    FIX(@NEXTSIBLING(T4))
    +"C2-00000"= 2;+
    ENDFIX
    ENDFIX
    When launched, the HBR throws an error: Detail:Cannot calculate. Essbase Error(1200315): Error parsing formula for [FIX STATEMENT] (line 3): invalid object type
    I'm missing sth, am I not?
    Thanks for help, regards
    Marcin Stawny

    It truly helped, however I went further and wanted to use @SHIFTSIBLING where the shift integer comes from a sum of data values. The code looks like this:
    SET CREATENONMISSINGBLK ON;
    +FIX("BegBalance",[KHSA_PLAN2_ACCOUNT],[KHSA_PLAN2_CUSTOM3],[KHSA_PLAN2_CUSTOM4],"E-00000","FY10","Budget","Robocza",[KHSA_PLAN2_CURRENCY],HSP_InputValue)+
    FIX(@MEMBER(@SHIFTSIBLING("T1", (@SUM(@DESCENDANTS("Transactions"))))))_
    +"C2-00000"= 1;+
    ENDFIX
    ENDFIX
    The @SUM(@DESCENDANTS("Transactions")) calculates the sum properly (verified this part of the code in another place), however it seems that it has to be passed as an integer to the @SHIFTSIBLING, hasn't it?
    How can I do that?
    Regards
    Marcin Stawny

Maybe you are looking for

  • Mic not picking up my voice

    So my issue is that whenever I am on Skype, the person on the other end can hear all of my laptop's sounds (e.g. music, videos, etc) and doesn't pick up my voice or external sounds at all. Does anyone know how to fix this issue? Thank you!

  • Error COM_PRODUCT812 when syncing products with Attribute Set Type

    Good Morning, I was wondering if anyone could help me with an error I am receiving when synchronizing products over with a set type for the MARC table. I get the following error for some products when I load them initially.  I only get this error on

  • Can't open Fireworks CS4 Trial on Mac

    Hi, I just donwload the Fireworks CS4 Trial and install it with no problems. But when I tried to run it, the yellow fireworks window show, but after a few seconds the programs crashes... I'm using leopard 10.6.2 on a iMac. Any suggestions please ? Th

  • No tv shows

    i downloaded 2 free episodes of friends and they are showing in my itunes but when i connect my ipod to my computer, they wont download onto it..any help would be appreciated..thanks

  • Update graph realtime

    Hello, In the attached VI in labview 8.5, I wanted to display two plots on the same graph in real-time.  That is, for every iteration in the "for loop", the graph updates.  I am only able to do this with one of the plots (y1) but would like both sets