Using Allocation Engine

Hi,
We are currently having some problems when trying to use the allocation engine for the first time.
Our aim is to allocate planned amounts from an "input product" to the actual products within a product group, using the actuals which are held in the app "Budget" from the previous year by month.
An extract of our script is as follows:
//Perform Product Allocation
//BranBar Input
*RUNALLOCATION
*FACTOR=USING/TOTAL
*APP                  WHAT=DetailSOP;            WHERE=DetailSOP;    USING=BUDGET;    TOTAL=<<<
*DIM ACCOUNT   WHAT=EXTSALES;  WHERE=<<<;             USING=<<<;            TOTAL=<<<
*DIM CATEGORY WHAT=FORECAST; WHERE=<<<;             USING=ACTUAL;     TOTAL=<<<
*DIM TIME WHAT=BAS(%YEAR%.TOTAL); WHERE=<<<; USING=BAS(%YEAR%(-1).TOTAL); TOTAL=EACH(BAS(%YEAR%(-1).TOTAL))
*DIM ENTITY        WHAT=BAS(SALES); WHERE=<<<; USING=<<<; TOTAL=<<<
*DIM PRODUCT WHAT=IN_BRANBAR; WHERE=BAS(BRANBAR); USING=<<<; TOTAL=<<<
*ENDALLOCATION      
Although we do appear to get some results, they are not as expected.
We have 600,000 in the forecast for IN_BRANBAR for the month of January. When the allocation engine is run, we get
Product 1: 356,757
Product 2: 103,037
Which is .766 of the total 600,000 ??!!
However, the ratios between product 1 and product 2 are the same as those from the previous year actuals.
Do we have some syntax incorrect?
Any help would be greatly appreciated!!

hi Marcel,
The main application (DetailSOP)has the following dimensions:
Account
Category
CustGrp
DataSrc
Entity
ProdGrp
Product
RptCurrency
Time
The reference data is held in a different application (Budget) which has the following dimensions:
Account Category
CustGrp
Customer
DataSrc
Entity
ProdCat
ProdGrp
Product
Rpt Currency
Time
2) We are wanting the amounts to be allocated according to the values in the period and the entity, not by the total.
and finally:
We got the syntax from a how to SAP guide : "How to use the BPC Allocation Engine"
Thanks - Jill

Similar Messages

  • Using accrual engine for reversal of month end provisions

    Hello everyone,
    I am working on a requirement to set up accrual engine for automatic reversal of month end provisions (like electricity expense provision at month end which will be reversed on first day of next month).
    I understand that accrual engine is meant for handling accruals and deferrals. But having seen the manual option of FBS1 and F.81, I felt there must be an option in the accrual engine also to handle provisions and their reversal. Also, I saw some comments in this forum that using accrual engine it is possible to automatically reverse the postings.
    So I set up a test scenario in sandbox client with basic configuration for Manual Accruals (accrual type, methods, object category, number ranges, account determination)
    After that I created an accrual object which automatically created an FI document for the provision entry. So far it is fine and working as expected. Now, for reversing the document, I see two options:
    1) Reverse entire accrual run; or
    2) Reverse the accrual object.
    By reversing the accrual object, I was able to post a reversal FI document. I am not sure whether reversal of entire accrual run is right option since SAP help recommends to use this in case wrong key date was used.
    But both options require manual execution for reversal.
    Am I missing some other option? Is there any other option/setting in the accrual engine where it is possible to set up automatic reversal of a month end provision? Only if this is not feasible, I would look at other solutions (like FBS1+F.81 or FBS1+background job for F.81).
    Any inputs/pointers from the learned members will be highly appreciated.
    Thanks in advance,
    Raghu

    Hello Raghu,
    As far as I know, all clients I worked with preferred using "FBS1+background job for F.81" as they found this more flexible (adapt job variant and possible dynamic selection), easy to maintain and well understood by accountants (rather than using accrual type, methods, object category...)
    Tamim

  • Take photo from image stream using capture engine technique in media foundation

    Hi,
    I am beginner for media foundation.I have to develop Win32 desktop application using capture engine technique in media foundation.
    I have to implement the following features:1)Show video streaming 2)Capture video 3)Capture photo from still-image stream.These features are implemented in capture engine.
    I am able to take photo from video stream not from image stream.I tried to configure the image stream index in Addstream() api,but its giving MF_CAPTURE_ENGINE_ERROR error.
    To trigger the still pin,use
    the IAMVideoControl::SetMode method
    in directshow. How do i implement this feature using capture engine technique in MF?My question
    is-is it possible do it in Media foundtion??I have searched many sites but no luck.
    Here the sample code which i used to capture an image.
    HRESULT TakePhoto()
    HRESULT hr = m_pEngine->GetSink(MF_CAPTURE_ENGINE_SINK_TYPE_PHOTO, &pSink);
    if (FAILED(hr))
    goto done;
    hr = pSink->QueryInterface(IID_PPV_ARGS(&pPhoto));
    if (FAILED(hr))
    goto done;
    hr = m_pEngine->GetSource(&pSource);
    if (FAILED(hr))
    goto done;
    hr = pSource->GetCurrentDeviceMediaType(1, &pMediaType); // 1 is Image stream index.I will get current image stream media type here.
    if (FAILED(hr))
    goto done;
    //Configure the photo format
    hr = CreatePhotoMediaType(pMediaType, &pMediaType2,GUID_ContainerFormatBmp);
    if (FAILED(hr))
    goto done;
    hr = pPhoto->RemoveAllStreams();
    if (FAILED(hr))
    goto done;
    DWORD dwSinkStreamIndex;
    // Try to connect the first still image stream to the photo sink
    if(bHasPhotoStream)
    hr = pPhoto->AddStream((DWORD)MF_CAPTURE_ENGINE_PREFERRED_SOURCE_STREAM_FOR_PHOTO, pMediaType2, NULL, &dwSinkStreamIndex); //Instead of MF_CAPTURE_ENGINE_PREFERRED_SOURCE_STREAM_FOR_PHOTO,i gave index as 1.i am getting error
    if(FAILED(hr))
    goto done;
    hr = pPhoto->SetOutputFileName(pszFileName);
    if (FAILED(hr))
    goto done;
    hr = m_pEngine->TakePhoto();
    if (FAILED(hr))
    goto done;
    return hr;
    HRESULT OnCaptureEvent(WPARAM wParam, LPARAM lParam)
    GUID guidType;
    HRESULT hrStatus;
    IMFMediaEvent *pEvent = reinterpret_cast<IMFMediaEvent*>(wParam);
    hr = pEvent->GetExtendedType(&guidType);
    if (SUCCEEDED(hr))
    if (guidType == MF_CAPTURE_ENGINE_ERROR) //i got this error if i give dwSourceStreamIndex as '1' in Addstresm api
    DestroyCaptureEngine();
    pEvent->Release();
    return hrStatus;
    Please help me to solve this problem.Past one week,I am working on this issue and i couldnt find the solution.Please give me a some idea or some sample code to solve this problem.
    Thanks in advance.
    Regards,
    Ambika

    Hi Everyone,
    Any help will be appreciated.
    Regards
    Ambika

  • IWeb Discoverable using search engines

    Hello - how do you make an iWEB blog discoverable using search engine without paying to have it come up in search results?

    +"iWeb websites are not made to be search engine friendly."+ ...Read more here:
    _SEO For iWeb: How to get your iWeb Websites into Google & Other Major Search Engines_

  • One solution to AME stops encoding using Mercury Engine with an "Unknown Error" - Mac only

    I recently switched from FCS to CS5.5 - it's been a somewhat rough ride - and I kept getting an "Unknown Error" if I tried to export a sequence while having the mercury engine gpu-enabled.
    After finishing my latest project just three days ago I found a solution, go figure. Well, here it is: the offender were imported dissolves from FCP. They play perfectly in PPro, they render perfectly in software mode, but never once while using the GPU. The solution to that is equally simple: deleting the offending dissolves and create a new dissolve, same length, same effect name, nothing's changed. But now, they render just beautifully using Mercury Engine in GPU mode.
    If somebody likes to look into that, I created a small project for re-checking.

    Sure, no problem. Where would you like me to put it? Including the sources, its about 50MB (I replaced to original footage with low-res, low-datarate stuff). Or do you only need the project file?

  • Multiple Reports using Application Engine

    Hi ,
    Can we generate multiple reports using App Engine..?
    if yes, how do we do tht..?
    cheers,
    Karthik
    oops...im sorry..i mean reports..dont know i typed questions...corrected the question now...
    Edited by: karthik tulasi on May 15, 2009 1:48 PM

    karthik tulasi wrote:
    Hi ,
    Can we generate multiple questions using App Engine..?
    if yes, how do we do tht..?
    cheers,
    KarthikWhat is "questions" ?
    Nicolas.

  • When i try to use search engine it show an error saying 500 internal server error

    Question
    when i try to use search engine it show an error saying 500 internal server error

    Which security software (firewall, anti-virus) do you have?
    Some have been reported to cause this error message, so you can check the settings for Firefox.

  • I have installed Grease Monkey plugin using unsafeWindow.Engine.init() function. It says unsafeWindow.Engine undefined. Please help as soon as possible.

    I have installed Grease Monkey plugin using unsafeWindow.Engine.init() function. It says unsafeWindow.Engine undefined. Please help as soon as possible.

    I have installed Grease Monkey plugin using unsafeWindow.Engine.init() function. It says unsafeWindow.Engine undefined. Please help as soon as possible.

  • Create an executable using tag engine

    it's impossible to execute an .exe using tag engine with a computer were labview DSC module is not install.
    please help me,i want to create an .exe wich is possible to execute on all computer explain me the process to create this.
    what are the files to be added to permit that???
    thanks for your request.

    Hello Julien,
    As explained in the tutorials linked below, there is 2 methods for distributing applications created with LabVIEW DSC module.
    * Distributing Applications Created with the LabVIEW DSC Module
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/d2cc543dc86e41b886256a6c005bdd98?OpenDocument
    * Building Applications Created with the LabVIEW DSC Module
    http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&57034D4A0F82844286256A1C006AC454
    * Datalogging and Supervisory Control Module
    http://digital.ni.com/softlib.nsf/webcategories/85256410006C055586256BBB002C0CF1?opendocument&node=132070_US
    Hope this helps.
    Best regards.
    Matthieu Gourssies
    National Instruments France

  • Passing dynamic prompt value using Report Engine SDK

    Hello Experts,
    I have created a webi report which contains prompt. Using SDK, I would like to catch the value of prompt which is selected by a user at runtime.
    e.g. If prompt contains values year, quarter, month, etc and user has selected value of u2018Quarteru2019 at run time, then I would like to catch that value using Report Engine SDK.
    I tried to implement prompt.getCurrentValues(). However that is not working.
    Can someone please help me to figure out the way to catch this dynamic prompt value using Report Engine SDK?
    Thanks,
    John

    Where is the prompt values being set, and where are you trying to catch it?
    Workflow description is missing here.
    Sincerely,
    Ted Ueda

  • Is a currency dimension required for the Allocation engine to work?

    Hello All,
    Currently working on an application with no currency dimension, and I can't get the allocation script to work.  Just wondering if the allocation engine will work without a currency dimension.
    Thanks,
    Hutch
    Edited by: hutchinsm on Jul 29, 2011 4:24 PM

    Just found my mistake in my allocation logic.  It works now, so the answer is No, the currency dimension is not required for the allocation engine to work.

  • Optimizing EtherCAT Performance when using Scan Engine

    Hello everyone,
    This week I have been researching and learning about the limitations of the LabVIEW's Scan Engine. Our system is an EtherCAT (cRIO 9074) with two slaves (NI 9144). We have four 9235s, two 9237s and two 9239 modules per chassis. That means we have a total of 144 channels. I have read that a conservative estimation for each scan is 10 usec. This means with our set up, assuming we only scan it would take 1.44 msec which would yield roughly a rate of 694 Hz. I know that when using a shared variable, the biggest bottle neck is transmitting the data. For instance, if you scan at 100 Hz, it'll be difficult to transmit that quickly, so it's best to send packets of scans (which you can see in my code).
    With all of that said, I'm having difficulties scanning any faster than 125 Hz without railing out my CPU. I can record at 125 Hz at 96% of the CPU usage but if I go down to 100 Hz, I'm at 80%. I noticed that the biggest factor of performance comes when I change my top loop's, the scan loop, period. Scanning every period is much much more demanding than every other. I have also adjusted the scan period on the EtherCAT's preferences and I have the same performance issues. I have also tried varying the transmission frequency(bottom loop), and this doesn't affect the performance at all.
    Basically, I have a few questions:
    1. What frequency can I reasonably expect to obtain from the EtherCAT system using the Scan Engine with 144 channels?
    2. What percent of the CPU should be used when running a program (just because it can do 100%, I know you shouldn't go for the max. Is 80% appropriate? Is 90% too high?)
    3.Could you look through my code and see if I have any huge issues? Does my transmission loop need to be a timed structure? I know that it's not as important to transmit as it is to scan, so if the queue doesn't get sent, it's not a big deal. This is my first time dealing with a real time system, so I wouldn't be surprised if that was the case.
    I have looked through almost every guide I could find on using the scan engine and programming the cRIO (that's how I learned the importance of synchronizing the timing to the scan engine and other useful facts) and haven't really found a definitive answer. I would appreciate any help on this subject.
    P.S. I attached my scan/transmit loop, the host program and the VI where I get all of the shared variables (I use the same one three times to prevent 144 shared variables from being on the screen at the same time).
    Thanks,
    Seth
    Attachments:
    target - multi rate - variables - fileIO.vi ‏61 KB
    Get Strain Values.vi ‏24 KB
    Chasis 1 (Master).vi ‏85 KB

    Hi,
    It looks like you are using a 9074 chassis and two 9144 chassis, all three full with Modules and you are trying to read all the IO channels in one scan?
    First of all, if you set your scan engine speed for the controller (9074), then you have to synchronize your Timed Loop to the Scan Engine and not to use a different timebase as you do in your scan VI.
    Second the best performance can be achieved with I/O variables, not shared variables and you should make sure to  not allocate memory in your timed Loop.  memory will be allocated if an input of a variable is not connected, like the error cluster for example or if you create Arrays from scratch as you do in your scan VI.
    If you resolve all these Issues you can time the code inside your Loop to see how long it really takes and adjust your scan time accordingly.  The 9074 does not have that much power so you should not expect us timing. 500 Hz is probably a good estimate for the max. Performance for 144 channels and depending on how much time the additional microstrain calculation takes.
    The ECAT driver brings examples which show how to program these kinds of Apps. Another way of avoiding the variables would be the programmatic approach using the variable API.
    DirkW

  • Schema Validation using Adapter Engine : Error

    Hello Guys,
    For SOAP message coming into PI, I am doing schema validation by adapter engine but getting below error message
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageFormatException: Schema Schema1.xsd not found in /usr/sap/PID/<Server>/j2ee/cluster/server1/validation/schema/af7c332075ce11e08e23ddce0a512253/urncompany.comcrmexternald2c/ServiceRequest_Out/urncompany.comcrm~enhancements/Schema1.xsd  (validation/schema)
    *     at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1178)*
    *     at sun.reflect.GeneratedMethodAccessor336.invoke(Unknown Source)*
    *     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
    *     at java.lang.reflect.Method.invoke(Method.java:585).........................*
    Here are some details
    -  Using standard SAP Message Type
    - Enhance data type
    - while exporting schema, there are 3 files in zip file
    1) mainschema (renamed it to MessageType name)
    2) Schema1.xsd
    3) Schema2.xsd
    I have followed the step according to below document
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d06dff94-9913-2b10-6f82-9717d9f83df1?QuickLink=index&overridelayout=true
    I have also checked schema1.xsd on PI server and File is there but still getting error.
    Any suggestions ?
    Thanks
    Edited by: chetan patel on Jan 31, 2012 10:50 PM

    Please make sure that main xsd uses import or include tag to reference both schema1.xsd and schema2.xsd. If the main xsd does not do it, Pi cannot verify it. Since you package all the files as zip file, also make sure the path for the secondary files are in proper location.
    In short, the import element allows you to use schema components from any schema; the include element allows you to add all the components of an included schema to the containing schema. If the target namespace is same for both then include tag should be good enough. If you don't find one, you might have to use include tag element in the main or parent xsd file.
    Edited by: Baskar Gopal on Jan 31, 2012 5:18 PM

  • Running Connected Query with Run Control Parameters using App Engine

    Hello,
    I created a connected query that has 1 parent query and 1 child query, and use this as DataSource for the report that I am going to generate. I created an app engine that willl be called to generate this report. However, I encounter the error "Error occurred while processing the request. (228,101) PT_CONQRS.CONQRSMGR.OnExecute Name:GetXMLData PCPC:59072 Statement:1309". What could be causing this issue? One cause I am thinking is that the Connected Query not returning any data since I am not able to pass / map the values to the CQ's prompt fields. How is this done in CQ? I've done it in PS Query by using the function SetPSQueryPromptRecord+. I'm trying to search for this function's equivalent in CQ. I was able to search for a workaround (http://mfinchps.blogspot.com/2011/05/how-to-launch-connected-query-xml.html), but I still prefer to have a CQ data source.
    Below is the code that should handle mapping of CQ prompt fields:
    &oConQrsInst = create PT_CONQRS:CONQRSMGR(&OperId, &ReportName);
    &result = &oConQrsInst.Open(&oConQrsInst.Const.InitExisting);
    &CQPromptsArray = &oConQrsInst.QueriesPromptsArray;
    &rcdQryRunParms = CreateRecord(@&PromptRec);
    &sqlSelectQryParms = CreateSQL("%Selectall(:1) WHERE OPRID = :2 AND RUN_CNTL_ID = :3");
    &sqlSelectQryParms.Execute(&rcdQryRunParms, &OperId, &RunControlId);
    /*Loop through the Connected Query "Queries" and fill in each query's prompts as needed*/
    For &arrCtr = 1 To &CQPromptsArray.Len
    &rcdQryPrompts = &CQPromptsArray.Get(&arrCtr).QueryPromptRecord;
    For &i = 1 To &rcdQryPrompts.FieldCount
    While &sqlSelectQryParms.Fetch(&rcdQryRunParms)
    If &rcdQryPrompts.GetField(&i).Name = &rcdQryRunParms.GetField(Field.BNDNAME).Value Then
    &rcdQryPrompts.GetField(&i).Value = &rcdQryRunParms.GetField(Field.BNDVALUE).Value;
    Break;
    End-If;
    End-While;
    End-For;
    &sqlSelectQryParms.Close();
    End-For;
    rem &oRptDefn.SetPSQueryPromptRecord(&rcdQryPrompts);  -> need to have equivalent of this+
    &oConQrsInst.Close();
    Thanks!
    Janet

    i think you have run the code to generate the XML file from your connected query...
    check the following things
    1. Check the Report definition is defined or not for the file that you want generate.
    2. if its defined check the RTF template is present or not.
    3.Check your code in Appengine whether you have mentioned the Report Definition and template name,

  • How to use chart engine for web dynpro java(EP) for Graphics generation.

    Hi Frndz..
    now lookiing out for different types of dynamic graphics generations according to my requirment, n i saw the followiing blog
    Testing BusinessGraphics in Web Dynpro for Java
    Itz very nice to see that we can generate planty of types, but here our server is EP 7.0(not CE 7.1) and i gone thru  these links also
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/86/243f403f0a9354e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/0b/79553b066d9414e10000000a114084/frameset.htm
    https://help.sap.com/saphelp_nw04/helpdata/en/0c/95c83956852b51e10000000a114084/frameset.htm
    here it seems to be Chart Engine n Chart Designer is mainly for BSP(R3), how best we can use this for web dyn pro java.
    Thanks in Advance
    Regards
    Rajesh

    hi
    if you want to use BusinessGraphics in WebDynpro java you have to configure IGS.
    IGS Configuration
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4846ac90-0201-0010-099d-d3b4e271849c
    Business Graphics docs.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3261cd90-0201-0010-268c-d8d72e358af6
    ChartDeigner Usage
    http://help.sap.com/saphelp_nw04/helpdata/en/18/d4d43fb9490c65e10000000a114b1d/frameset.htm
    Generating Gantt chart using web dynpro business graphics

Maybe you are looking for

  • Delivey for Multiple Sales orders

    Hi,   I am new to SD and would like to know how do we create a single delivery corresponding to multiple sales orders. Can someone please advice me about the same? Thanks and Regards,    Aditya

  • HP Photosmart Wireless B109n-z will come online but not STAY online!

    In a nutshell: I own a HP B109n-z. It will connect on power on as it should to my main wireless access point and print from all computers on the network. After a while the printer will go offline. Web-interface cannot be reached, the printer will not

  • Moving iPhoto files to external hard-drive

    Hi everyone, I've seen versions of this question asked many times but felt the need to ask myself before I go into the Genius bar to have someone help me. I take A LOT of high quality photos and they are currently taking up 60GB on my tiny 150GB hard

  • How to build JAVA script in CMD

    How to build JAVA script in CMD command prompt? I think it's build.all but it's not working plz help

  • Recounting  of material in physical inventory

    DEAR ALL, IAM NOT ABLE TO DO RECOUNTING OF PHYSICAL INVENTORY MATERIAL  BY USING  MI11, Can anybody proved me the detail step, how to do the recounting in physcial inventory.