Creating addititional records from one record and spreading total accross

Can anyone help me with the following script logic scenario...
We have an account with $$ and wish to spread it accross the remaing months of another scenario. 
For example, In 2012.Jan, we have an Actual amount = 10,000.  Also, 2012.Jan Forecast = 5,000. 
I need to take the difference -5,000 and push it into Forecast 2012.Feb, 2012.Mar, ... 2012.Dec and spread it evenly (-454.55).

Hi Danny,
Welcome to the forums!
Here is a sample script to get you going:
//Scope in the ACTUAL and FORECAST categories
*XDIM_MEMBERSET CATEGORY=ACTUAL,FORECAST
//Only scan through the actual data and only use the forecast data in the GET command within the *REC statement down below
*XDIM_NOSCAN CATEGORY=FORECAST
//Scope in the time period 2012.DEC
//You should eventually make this dynamic using a *SELECT statement
*XDIM_MEMBERSET TIME=2012.JAN
*WHEN *
*IS *
//This for loop should become dynamic using a *SELECT statement. Choosing the months to forecast
*FOR %MYTIME% = 2012.FEB,2012.MAR,2012.APR,2012.MAY,2012.JUN,2012.JUL,2012.AUG,2012.SEP,2012.OCT,2012.NOV,2012.DEC
//Note you will need to add a property to your CATEGORY dimension called FCST_NUM and put a value of 11 for the ACTUAL member. This value will need to be updated as the number of months to forecast changes.
*REC(EXPRESSION=((%VALUE%-GET(CATEGORY="FORECAST"))/FLD(CATEGORY.FCST_NUM),CATEGORY=FORECAST, TIME=%MYTIME%)
*NEXT
*ENDWHEN
*COMMIT
Two caveats is that data must always reside in the ACTUAL category. Since the logic is looping through every record in the ACTUAL category. Also, all the other data must be at the same intersection or else the GET statement will be looking in the wrong place. i.e. DataSrc for the Actuals and Forecast has to be at the INPUT member or else you would need specify where the data is for forecast category in the GET statement.
Let me know how this goes.
Thanks,
John

Similar Messages

  • Taking data from one column and spread it out into multiple columns

    I have a table that I wish to take the multiple values out of one column and stick each into its own column..
    The data looks like this:
    subscriber id benefit plan
    12345 Med
    12345 Drg
    98765 Med
    98765 Drg
    I want it to look like:
    subscriber_id pc_med
    12345
    select distinct subscriber_id,
    (select grp07_benefit_plan from martin_7265_anoc
    where grp07_benefit_plan_type = 'MEDICAL ') pc_med,
    (select grp07_benefit_plan from martin_7265_anoc
    where grp07_benefit_plan_type = 'DRUG ') pc_drg
    from martin_7265_anoc

    user12296489 wrote:
    I have a table that I wish to take the multiple values out of one column and stick each into its own column..Multiple values in a single column is a violation of relational design. Makes it very difficult to implement data integrity. And there is the inevitable complexity and performance knock when trying to extract distinct values from the single column.
    Thus your attempt at fixing it is hopefully a permanent solution and not a a hack trying to make a broken db design to work?
    As Daniel said, it is very hard to make any sense of the example you have posted. But this is not the first time here that a poster wants to extract multiple values from a string column - so the basic principles of how to do it, remains the same.
    You need to have a means to identify each distinct value. This is usually done by identifying the separator character used between values. Such as a space or a comma.
    If the values are fixed length, then you can use sub-strings with explicit positions and lengths to extract the values from the string.
    The typical case is the former, which means you need to tokenise (split) the string. There are a number of ways to do this. I posted an example in {message:id=1807978} that shows how to do it via a PL/SQL function. There are numerous other ways, such as using SQL only. If you search for a keywords like "+splitting string+", it should turn up these examples.

  • Hi, I need to take my daughter off from our Apple account and set up her own. So, delete her from one account and create her own. Realize I sound imbecilic for not knowing how to do this. Any ideas? Thank you so much. Jules

    Hi, I need to take my daughter off from our Apple account and set up her own. So, delete her from one account and create her own. Realize I sound imbecilic for not knowing how to do this. Any ideas? Thank you so much. Jules

    You don't have to take her off your account exactly: she needs to sign out from your account on her computers and devices. Then she can obtain an Apple ID at http://appleid.apple.com and use it to sign into System Preferences or Settings>iCloud.
    However, there are some issue about this. If she has been syncing her calendars and contacts to your account then the data will disappear from her devices, but remain on your account. Individual calendars can be exported  as .ics files and reimported into her account, but if she has her contacts mixed up with yours she will have to enter them individually in the new account (or export yours, import them into hers, and delete the ones she doesn't want.
    More intractable is the email issue. She cannot move an address from your account to hers, so if she has been using a alias on your account to have her own address she cannot transfer it. She will have to create a new email address.

  • Distinguish b/w Automatically created Info Record and created thru ME11

    Hi,
    How can we distinguish between Automatically created Info Record and manually created Info Record (By User through ME11 transaction).
    Where we can see the difference???
    Plz guide...

    Hi,
    In case of Automatically created Info record, Net price and Effective price fields will be blank where as in case of manual info record, you maintain the price under "conditions" manually and which gets updated in net price and effective price fields.
    Also Run Reports ME1M and ME1L, Info records with "Condition       No Price Found" are automaically created. And manual info records will have have "Condition XXX Amount"

  • Send PO from one system and create a SO in another system

    Hello Gurus
    ii am learning ALE IDOC and would like to do a complete hands on practice. I have been doing some basic scenarios and so far i am progressing well.
    What i am planning to do:
    Now i would like to do an end to end scenairo of sending a PO idoc from one system and this should create a SO in the other system.
    Steps i am planning to do:
    1). Configure the sending system for a outbound PO idoc
    2). Configure the receiving system for a Inbound SO idoc
    3). Maintain VOE2(EDPAR) and VOE4(EDSDC) tables for partner information and organization information respectively.
    Questions:
    1). Am i missing any steps?
    2). I am confused on what to maintain in VOE2 and VOE4. Which information of PO should i maintin in VOE2 and VOE4 in the receiving system?
    ~Suresh

    Hi Suresh,
    this might be of some help.
    ALE IDOC
    Sending System(Outbound ALE Process)
    Tcode SALE - for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 - Create Model View
    Tcode BD82 - Generate partner Profiles & Create Ports
    Tcode BD64 - Distribute the Model view
    Message Type MATMAS
    Tcode BD10 - Send Material Data
    Tcode WE05 - Idoc List for watching any Errors
    Receiving System(Inbound ALE )
    Tcode SALE - for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 - Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 - Idoc List for inbound status codes
    ALE IDOC Steps
    Sending System(Outbound ALE Process)
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 - Create Model View
    Tcode BD82 - Generate partner Profiles & Create Ports
    Tcode BD64 - Distribute the Model view
    This is Receiving system Settings
    Receiving System(Inbound ALE )
    Tcode SALE - for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 - Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 - Idoc List for inbound status codes
    Message Type MATMAS
    Tcode BD10 - Send Material Data
    Tcode WE05 - Idoc List for watching any Errors
    1)a Goto Tcode SALE
    Click on Sending & Receiving Systems-->Select Logical Systems
    Here Define Logical Systems---> Click on Execute Button
    go for new entries
    1) System Name : ERP000
    Description : Sending System
    2) System Name : ERP800
    Description : Receiving System
    press Enter & Save
    it will ask Request
    if you want new request create new Request orpress continue for transfering the objects
    B) goto Tcode SALE
    Select Assign Client to Logical Systems-->Execute
    000--> Double click on this
    Give the following Information
    Client : ERP 000
    City :
    Logical System
    Currency
    Client role
    Save this Data
    Step 2) For RFC Creation
    Goto Tcode SM59-->Select R/3 Connects
    Click on Create Button
    RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
    give the information for required fields
    RFC Destination : ERP800
    Connection type: 3
    Description
    Target Host : ERP000
    System No:000
    lan : EN
    Client : 800
    User : Login User Name
    Password:
    save this & Test it & RemortLogin
    3)
    Goto Tcode BD64 -- click on Change mode button
    click on create moduleview
    short text : xxxxxxxxxxxxxx
    Technical Neme : MODEL_ALV
    save this & Press ok
    select your just created modelview Name :'MODEL_ALV'.
    goto add message type
    Model Name : MODEL_ALV
    sender : ERP000
    Receiver : ERP800
    Message type :MATMAS
    save & Press Enter
    4) Goto Tcode BD82
    Give Model View : MODEL_ALV
    Partner system : ERP800
    execute this by press F8 Button
    it will gives you sending system port No :A000000015(Like)
    5) Goto Tcode BD64
    seelct the modelview
    goto >edit>modelview-->distribute
    press ok & Press enter
    6)goto Tcode : BD10 for Material sending
    Material : mat_001
    Message Type : MATMAS
    Logical System : ERP800
    and Execute
    7)goto Tcode : BD11 for Material Receiving
    Material : mat_001
    Message Type : MATMAS
    and Execute --> 1 request idoc created for message type Matmas
    press enter
    Here Master Idoc set for Messge type MATMAS-->press Enter
    1 Communication Idoc generated for Message Type
    this is your IDOC
    Change Pointers
    I know how to change the description of a material using ALE Change Pointers.
    I will give the following few steps
    1) Tcode BD61---> check the change pointers activated check box
    save and goback.
    2) Tcode BD50---> check the MATMAS check box save and comeback.
    3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
    4) Tcode BD52---> give message type : matmas press ok button.
    select all what ever you want and delete remaining fields.
    save & come back.
    5) 5) go to Tcode MM02 select one material and try to change the description and save it
    it will effects the target systems material desciption will also changes
    6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
    give Message type : MATMAS and Executte
    ALE/IDOC Status Codes/Messages
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    Inbound Status Codes
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    for 51 or 56 Errors do the following steps
    goto WE19 > give the IDOC Number and Execute>
    Press on Inbound function Module
    for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
    kindly reward if helpful.
    cheers,
    Hema.

  • HT203998 If I login from one account and logout from them

    If I login from one account and logout from them, I can not see the user which I made hidden using the above commands, but when I restart my mac I can see that hidden user on login screen, please help, I don't want to see the hidden user even after restart.

    Hi uddipatel,
    Welcome to the Support Communities!  Here is how you hide a user account in the login window on your Mac:
    How to hide a user account in OS X - Apple Support
    http://support.apple.com/en-us/HT203998
    Hide a user account in OS X Yosemite
    You can prevent a user account from appearing in the login window in OS X Yosemite by using these steps:.
    1. Log in as an admin user.
    2. Use this Terminal command, substituting the short account name name of the user you wish to hide for “hiddenuser”:
    sudo dscl . create /Users/hiddenuser IsHidden 1
    If you later want to show the hidden user, set the user’s IsHidden attribute to 0 like this:
    sudo dscl . create /Users/hiddenuser IsHidden 0
    You can optionally delete the IsHidden attribute instead of setting it to 0.
    Additional Options
    You can also move the hidden user's home directory to a place not visible from the Finder, and remove the hidden user's Public Folder share point.
    The following command moves the home directory of "hiddenuser" to /var, a hidden directory:
    sudo mv /Users/hiddenuser /var/hiddenuser
    The following command updates the user record of "hiddenuser" with the new home directory path in /var:
    sudo dscl . -create /Users/hiddenuser NFSHomeDirectory /var/hiddenuser
    The following command removes the Public Folder share point for the user with the long name "Hidden User”:
    sudo dscl . -delete "/SharePoints/Hidden User's Public Folder"
    Hide a user account in earlier versions of OS X
    There are three ways you can hide a user in versions of OS X earlier than Yosemite.
    Set the Login window to display name and password fields
    In the Users & Groups preferences pane (Accounts pane in Mac OS X v10.6 and earlier), click Login Options, then select "Display login window as: Name and password".
    With this enabled, no user accounts are listed in the Login window.
    If changing the Login Window to only display the name and password fields does not meet your needs, then you can use the following steps in this article to hide a user account.
    Add users to the HiddenUsersList (advanced)
    With Mac OS X v10.4 and later you can hide users from the Login window by adding them to the HiddenUsersList array in the /Library/Preferences/com.apple.loginwindow.plist file. The following command will hide the users "mei" and "anne" from the Login window:
    sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add mei anne
    Note: These users will still appear in the Accounts (Mac OS X v10.6 and earlier) or Users & Groups (OS X Lion) pane in System Preferences.
    Lower the user's UID and enable the Hide500Users option (advanced)
    You can use the advanced steps below to change a user's UID, adjust their home directory permissions and enable the Hide500Users option. An example user account "tom" is used below.
    The following sample Terminal command changes the user tom's UID to 401. Note: Check to make sure the new UID is not in use before making this change.
    sudo dscl . -create /Users/tom UniqueID 401
    This command adjusts the permissions of the user's home directory:
    sudo chown -R tom /Users/tom/
    Enable the Hide500Users option with this command:
    sudo defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool YES
    Last Modified: Dec 8, 2014
    All the best,
    - Judy

  • How to get the data from one table and insert into another table

    Hi,
    We have requirement to build OA page with the data needs to be populated from one table and on save data into another table.
    For the above requirement what the best way to implement in OAF.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    Thanks

    You can achieve this in many different ways, one is
    1. Create another VO based on the EO which is based on the dest table.
    2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
    3. commiting the transaction will push the data into the dest table on which the dest VO is based.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
    Tapash

  • How can you take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in.

    As the title says I need help on how to take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in. Right now when I want to move a picture from one event to another I drag it to my desktop then delete it from iPhoto then I drag it back into iPhoto and put where I want it.An example would be taking a photo from the Christmas event and add it to a specific person event.  Can I do that within the events section without all the dragging. Also is there anyway I can remove duplicates from iPhoto without going through each and every file. Any help would be greatly appreciated.

    Apple doesn't make it easy to do what you want.  However, here's how I do it. 
    Select the photo you want to move and create a new Event for it via the Event ➙ Create Event menu option.
    In the Event mode select the new Event with the one picture and drag it onto the Event you want to move the photo to.

  • Can you edit a person from one photo and add them to another photo?

    Can you edit a person out of one photo and add them to another photo?  Like if you need the head shot from one photo to replace closed eyes in the other photo?  Thanks.

    Thank you very much!  Does this require software to be purchased?  I'm new to Photoshop. 
    From: Bill Hunt <[email protected]>
    To: Kittie Gugenheim <[email protected]>
    Sent: Monday, April 25, 2011 11:46 AM
    Subject: Re: Can you edit a person from one photo and add them to another photo?
    Welcome to the forum.
    Yes, this is done often. You will need to create a Mask of that person, to separate them from the background of the original Image.
    I like to do this with a Layer Mask, as it offers control, and really does not alter the Image, so you can go back and make changes.
    Let's say that you have Image 01 w/ the head of your subject, and want to place it into Image 02. In Image 01, make a rough Selection. I would include a bit of extra background, as we will take care of that in a moment. With that Selection active, Copy the head shot. Go to Image 02, and Paste it. It will Paste in its own Layer. Ctrl+T (Free Transform) can be used to Scale and also position that Layer with the head. Once you have that Scaled and positioned about where you want it, create a Layer Mask. In QuickMask Mode, just paint in the additional Mask to remove all traces of the background that came in with the head shot. As you can paint OUT, and also paint IN the Mask, you can work on this, as many times as you wish - even next year.
    For getting that Layer Mask looking good, work slowly, also see this http://graphicssoft.about.com/od/photoshop/l/blrbps_5agirl.htm.
    I've got another tutorial, that addresses the hair area, and will post that, when I find my bookmark.
    Good luck,
    Hunt

  • Howto make created folders/ files from one teacher, read only for other teachers?

    Hello there,
    as an admin @ school I was wondering how to make created folders/ files from one teacher, read only for other teachers?
     - In a 2008domain, created a group "teachers"
     - created a folder "teacher data" where all teachers have read/write permissions
    ideal,a teacher who make's a folder in "teacher data" should be the only oen who is able to add file's to that folder and dele that folder or files. Other teachers may be able to read the content of the folder.
    Is this possible to set up and how?
    many thanks.
    Nico.
    rds

    Hi Nico,
    You could set the permissions below to resolve the issue:
    For the root folder "teacher data": give the full control permission to CREATOR OWNER – "Subfolders and files only" and give the read/write permissions to the group "teachers"– "This folder only".
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How can I copy a row from one sheet and paste it in a column in another sheet?

    I would like to copy a row of numbers from one sheet and paste it into a column in another sheet.  Is it possible to do this with numbers?

    Hi Dennis,
    Numbers doesn't have a built-in Paste Special > Transpose the way you have in Excel.  However, there are ways to do this in Numbers that are not difficult. 
    Here are two ways:
    Approach 1:
    Select the row of numbers, and command-c to copy to the system clipboard.
    Click on the canvas and command-v to paste, automatically creating a new table.
    With that new table still selected, in your menu choose Table > Transpose Rows and Columns.
    Select the cells in the transposed table, command-c to copy, click once in a cell of the destination column of your target table, and command-v to paste.
    Approach 2: (after a quick installation, very similar to Excel's built-in Paste Special > Transpose)
    Download this Copy Transpose Automator Service, and double-click to install (if necessary choosing Open Anyway in System Preferences > Security and Privacy).
    Thereafter to use just:
    select the row of numbers you want to copy
    with the cells still selected, choose Copy Transpose from the Numbers > Services menu
    click once in the destination column and command-v to paste the transposed values.
    Note that the second approach does not handle cells with formulas, whereas the first approach will.
    SG

  • I have an extensive aperture library on my computer's hard drive and I want to break it up into separate smaller libraries on external hard drives.  How do I take projects from one library and add them to another one?

    I have an extensive aperture library on my computer's hard drive and I want to break it up into separate smaller libraries on external hard drives.  How do I take projects from one library and add them to another one?

    Coastal,
    Frank gave you the exact answer to your question. 
    However, I would like to ask if you are indeed asking the right question.  Do you really want different libraries?  The implications are that you have to "switch" libraries to see what's in the others, and so that your searches don't work across all of your pictures?  If so, then you asked the right question.  If not, you may be more interested in relocating your masters to multiple hard drives so your library gets smaller, instead of breaking up the library.
    nathan

  • How do you take pictures from one library and put in another library??

    How do you take pictures from one library and put in another library??

    Options:
    1. Export from iPhoto A to the Finder, then import to iPhoto B
    This gets the photo over, but no versions, no edit history and not all the metadata
    2. Use iPhoto Library Manager
    This gets everything: versions, edit history and all the metadata.
    Regards
    TD

  • HT204053 My wife and I have an iphone each using one apple id. How do we stop items being deleted from one phone and then find it has been deleted from the other?

    My wife and I have an iphone each using one apple id. How do we stop phone contacts being deleted from one phone and then find it has been deleted from the other?
    Also this works when one of us downloads an app it appears on the other iphone

    You need to use separate iCloud accounts. This will mean that you can both have your own separate contracts and calendars and put an end to them being deleted by each other.
    Whether or not you have a separate iTunes account, is up to you. If you have a separate iTunes accounts you will not be able to access the music, books, apps that have been purchased by the other. This may be exactly what you want, but it also means that you both may end up purchasing the same item.

  • Is there anyway to take a downloaded app from one computer and put it on another without rebuying it. I have a macbook that I bought the new iMovie and iPhoto on, but I would rather it be on my iMac. So is there anyway I can change it?

    Is there anyway to take a downloaded app from one computer and put it on another without rebuying it. I have a macbook that I bought the new iMovie and iPhoto on, but I would rather it be on my iMac. So is there anyway I can change it? I thought that if I bought it the apps on my macbook, they would be avaliable on my imac like the mobile devices operate. The macbook has 10.6.8 cause its a older model and I think lion would slow it down. Any help??

    Just redownload it on the other computer by logging into the App Store with the same Apple ID you used to purchase it.

Maybe you are looking for

  • How do I get the microphone back to use for messages and emails?

    I downloaded ver 8 and I have lost the microphone that I had with V 7.  The microphone on the messages doesn't work and I don't see any microphone for use with emails.  I have emotes which I don't use!

  • Where can I get help re: a file missing from Pages in iCloud?

    Where can I get help re: a file missing from Pages in iCloud?

  • How to keep Track of the wagetype Changes

    Hi Experts, How to keep Track of the Changes after changing the wagetype values.If any body has made changes to the existing wagetype, how do we keep a track of what changes has done, is there any standard Tcode through  which we can get the informat

  • Problem with AV DWH refresh and purge process

    We are working on a POC for a client and our env is Oracle Linux, Oracle 11g as Source with SYS.AUD$ auditing, Audit vault 10.2.3.1 and Agent all configured in a single server as of now. The problem I am facing is 1) The load process is really weard

  • Finder question

    I have been trying to learn about "Finder" on my iMac and have a question on items that show up on the left side. When I read or watching  videos about "Finder", I notice all examples show a catagory for "Downloads", "Pictures", "Music", or Moives.