BPC 10 Copy Package - One to Many members

Hi all
The standard BPC copy package only allows you to copy data on a one to one relationship.
Our user would like to copy a value from a specific member to several other members.
The system prompts to says "The number of selected members in the source and destination should be the same".
Is there an easy way to do this without diving into the world of BADI's ?
Any help or examples would be very much appreciated.
Thanks, Ian

Hi Vadim,
Ending with an error when I run the data manager package
Please look at the script logic
*XDIM_MEMBERSET TIME = $SOURCE$
*WHEN TIME
*IS *
*FOR %M%=$DEST$
   *REC(EXPRESSION=%VALUE%,TIME=%M%)
*NEXT
*ENDWHEN
And data manager script i used to pass the parameters
PROMPT
(SELECTINPUT,%SOURCE%,,,"%TIME_DIM%")
PROMPT
(SELECTINPUT,%DEST%,,,"%TIME_DIM%")
INFO
(%EQU%,=)
TASK
(/CPMB/ALLOCATION_LOGIC,EQU,%EQU%)
TASK
(/CPMB/ALLOCATION_LOGIC,SUSER,%USER%)
TASK
(/CPMB/ALLOCATION_LOGIC,SAPPSET,%APPSET%)
TASK
(/CPMB/ALLOCATION_LOGIC,SAPP,%APP%)
TASK
(/CPMB/ALLOCATION_LOGIC,SELECTION,%SELECTION%)
TASK
(/CPMB/ALLOCATION_LOGIC,LOGICFILENAME,Test.LGF)
TASK
(/CPMB/ALLOCATION_LOGIC,REPLACEPARAM,SOURCE%EQU%%SOURCE%)
TASK
(/CPMB/ALLOCATION_LOGIC,REPLACEPARAM,DEST%EQU%%DEST%)

Similar Messages

  • Copy package(One to many)

    Hi friends,
    Using copy package i'm tring to load actual data to Budg_01,selections
    source selection-> desination selection
    Actual -> Budg_01
    inputcurr(all) -> same
    R_ACCT(all) -> same
    enitty(GLOBAL)->same
    time(2010.JAN) -> 2010.JUL,2010.AUG,2010.SEP,2010.OCT,2010.NOV.2010.DEC,2011.JAN,...2011.JUN
    here  system not allowing to do one to many(next button is disabled). I tried with 12 times coping same month in source time(i.e
    2010.JAN,2010.JAN,2010.JAN,2010.JAN,2010.JAN,2010.JAN,2010.JAN,2010.JAN,2010.JAN,2010.JAN,2010.JAN,2010.JAN)
    Even then system copying to only one month i.e starting month of destination time selection.
    Could anyone share any ideas how can do this? via input form that we have one option.
    if you have code related script, can u plesase share?
    thanks,
    naresh

    Hi Naresh,
    You can use a script logic to do this:
    *XDIM_MEMBERSET CATEGORY = ACTUAL
    *XDIM_MEMBERSET ENTITY = GLOBAL
    *XDIM_MEMBERSET TIME = 2010.JAN
    *WHEN R_ACCT
    *IS *
       *REC(TIME = 2010.JUL)
       *REC(TIME = 2010.AUG)
       *REC(TIME = 2010.SEP)
       *REC(TIME = 2010.OCT)
       *REC(TIME = 2010.NOV)
       *REC(TIME = 2010.DEC)
       *REC(TIME = 2011.JAN)
       *REC(TIME = 2011.FEB)
       *REC(TIME = 2011.MAR)
       *REC(TIME = 2011.APR)
       *REC(TIME = 2011.MAY)
       *REC(TIME = 2011.JUN)
    *ENDWHEN
    I can try to make the script dynamic, if you can provide me inputs on that.
    Hope this helps.

  • BPC copy package doesnt consider selections

    Hi all,
    we work with BPC 7.5 Frontend- & Backendpatch 07 on NetWeaver.
    We use normaly load_infoprovider package on process chain "/CPMB/LOAD_INFOPROV_UI" to load initial data in our BPC-System. After that loading process we copy the loaded data to other dimension members; for example from "2011.JAN" into "2011.FEB". We always start these two packages with a packagelink which loads the data first and then copy it.
    One of our users told me, that he made selections in these packages (in both of it) and the package doesnt consider these selection. For exaple he gave in some selection for a specific month in the copy package of the package link and the package link didnt consider these selection and loaded the data for all month. When I look at the packagelog --> no selections are listed.
    Does anybody ever heard about such a problem with these two packages? Maybe its an issue about the package link?!?
    Thanks in advance
    Christian

    Hi,
    Log below:
    /CPMB/MODIFY completed in 0 seconds
    /CPMB/CM_CONVERT completed in 1 seconds
    /CPMB/CLEAR_SOURCE_CUBE completed in 0 seconds
    /CPMB/APPEND_LOAD completed in 0 seconds
    /CPMB/CLEAR completed in 0 seconds
    [Selection]
    SCATEGORY = ACTUAL
    TCATEGORY = PLAN
    TIMESEL = /ENV/MODEL/PRIVATEPUBLICATIONS/USER/TempFiles/
    FROM.TMP@@@SAVE@@@@@@EXPAND@@@|
    DIMENSION:TIME|2015.02
    [Message]
    Task name CONVERT FOR COPYMOVE:
    Reject count: 0
    Record count: 0
    Skip count: 0
    Accept count: 0
    Task name CLEAR SOURCE DATA:
    Submit count: 0
    Reject count: 0
    Task name APPEND LOAD:
    Replace and Clear Submit count: 0
    Replace and Clear Reject count: 0
    Submit count: 0
    Reject count: 0
    model: MODEL. Package status: SUCCESS
    Doesnt say much apart from it didnt work...

  • Copy Package: Different number of members

    When I do a standard copy package of two categories into one, I get a warning:
    Warning: Different number of members
    Is this new to OS 5? I don't remember having this issue with 4.2. Can you not copy data from two categories into one?

    Even in 4.2 the standard copy packages would only support 1:1 member relationships.  We always ended up writing either a custom package or a short logic script to combine data.  If you were doing this in 4.2 and it was working, then it was something customized.

  • BPC Copy Package

    Hello:
    I'm trying to make a standar Copy from one source to a multiple destination in time dimension. For example:
    Source: 2009.NA
    Destination: 2009.JAN,2009,FEB,2009.MAR
    When I Run the package, it shows no errors, but when I see the results, it only copy the values on the first value in the destination ( 2009.JAN only).
    Is it the way it works? I'm using Merge values instead of clear because I have not actived the Work Status.
    Thanks,
    Luciana

    Hi,
    The number of members mentioned in Source must be the same as in Destination. You may instead write a simple script logic to do this copy.
    Karthik AJ

  • Standard BPC Copy Package Fails

    Has anyone experienced the standard copy package failing in BPC?  I get the error message: 'Object variable or With block variable not set'.

    I tried to submit data via an input template and received the same error (Object Variable or With block variable not set).  I checked the security and the ID has all functionality access.  The member is a base member.  I also had the server rebooted and still no luck.
    Below is the detail log of the copy pkg:
    TOTAL STEPS  3
    1. Dump:           completed  in 3 sec.
    2. Convert:        completed  in 3 sec.
    3. Load:           Failed  in 2 sec.
    [Selection]
    CLEARDATA= No
    RUNLOGIC= No
    CHECKLCK= No
    (Member Selection)
    Category: ACTUAL
    Time: 2006.JAN
    RateSrc:
    Rate:
    InputCurrency: 
    (Destination Member Selection)
    Category: ACTUAL
    Time: 2007.JAN
    RateSrc:
    Rate:
    InputCurrency: 
    [Messages]
    Object variable or With block variable not set

  • SAP BC, Copying package

    Hi,
    I copied package one server to another server.
    And I wanted to select replace some files, leave others and delete others.
    So I released like an attached file 'e01.doc'.
    But it failed as below.
    Replace some files : success,
    Leave others : success , 
    Delete some files : failling. 
    What's the problem?
    I want to release package and delete some files from the target package.
    Plz tell me the way of the copy.
    (I'm sorry that I'm poor in english.)
    thanks.
    Edited by: Heui-Kyung Jeong on Feb 2, 2009 8:18 AM
    Edited by: Heui-Kyung Jeong on Feb 2, 2009 8:24 AM

    you can add the pakages in Default package in SAP BC. With this you need to copy node and flow files in /ns folder
    example
    if you want to import a package name : Checklist
    then go to SAP BC installation folder and then go to /server.
    There you will find Default , SAP etc.
    Copy your packages to Default/ ns/
    and then restart Server and Developer, to make changes effective..

  • Reg:Copy package problem BPC 7.5

    Hi Experts,
                        i am using standard data manager COPY Package to copy data from one category to another .While copying i use merge functionality but it clear all data in destination category and replaces the data.not sure its BI issue or BPC issue?
    Regards,
    Vikram

    Hello,
    I know this post is old, but maybe someone is still looking.
    In order not to lose data, you need to try and restrict the dimensions in the left side of the prompt to the members that you want to change, because the copy package first removes all data from destination and then writes the new records. It considers that if you want to copy something over, then data is already present so it doesn't need the old data. The records that will be deleted are selected using the key defined in the right side.
    If you want to change a record with key ACC1+B1 to ACC1+B2, you need to specify on the left side ACC1+B1 and on the right side ACC1+B2 (obviously) and data on ACC2+B2 ACC3+B2 and ACC4+B2 will not be deleted, BUT only if this 2 fields represent your entire key.
    If the key in your BPC Model contains also other dimensions, and you do not specify a member for them (left side ANY and right side SAME), the package will first delete all data using the right key and then copy the records from the source.
    Let's say you also have the dimension TIME, so we need to copy ACC1+B1+2014.01 to ACC1+B2+2014.01, and we already have a record ACC1+B2+2014.02 present. If you set filter to ACC1+B1 on the left side and ACC1+B2 on the right side, the package will first use the right key ACC1+B2 to delete all data present (so the record ACC1+B2+2014.02 present will be removed) and then copy your data changing B1 to B2. However, if you also specify the field TIME in your filter, then the package will use the combination ACC1+B2+2014.01 in order to delete the data present in the system (at this point nothing) and then copy the data.
    Hope it helps,
    Ana-Maria

  • Package not getting Copied from One Team Folder to Other.

    Hello Experts,
    I am working on SAP BPC MS 7.5 Ver. and while trying to Copy Package from one Team Folder to other ( i.e. Copy Import package from Company Folder to any other Team Folder) via Organize package List,but I am not able to do so.
    The package is getting copied successfully but not getting saved in the respective team folder.
    I have aasigned the destination Team folder, the Execute Access of Data Manager.
    Can anyone pelase help on the same?
    Regards,
    Apoorva

    Hi Apoorva,
    you have to set the destination team and group, click on ok this will copy the package and at the end the save button to apply the changes.
    You can also copy manually from one folder to the other the dtsx file and after you can made it visible via Organize package List by adding the package.
    Regards
         Roberto

  • Copy Exchenge rate from many Delivery to one AR invoice

    Hi all!
    I face with the problem. My customer need copy exchange rate from many Delivery that in one delivery we have different exchange rate for different date. After done all delivery, we will copy them to AR invoice, and customer need keep exchange rate the same with delivery.
    How can i do that because SAP B1 prevent this??? i don't know reason why?
    Thanks!

    Hi,
    If the AR invoice date is the same with Delivery date, the Exchenge rate will be the same. However, if you want to Copy Exchenge rate from many Delivery to one AR invoice, you may only have one rate for the invoice date.
    Thanks,
    Gordon

  • COpy Package not working as it should in BPC V 5.0

    Problem:-
    When I choose Replace and Clear Data Values, it merges them .. I have run it few times and each time the data was duobled.
    When I chose, Merge Data Values, it cleared and the numbers !!. 
    Possiable Cause:-
    The function seems to be working in reverse order, Could this be bug in the SAP BPC v5.0?
    If any of you have any idea how to fix this, I would appreciate it.  Thanks.
    Sam

    Hi Sam,
    Check the modify script for the copy package by going to modify package, view script and advanced tab.
    In script, in the prompt comand, '0' should be assigned to Merge data values and 1 to clear data. If it is in reverse order, change it and save it back.
    Note that if you are using sql 2005, you can directly modify the script, if it is 2000, you need to modify the EVmodifyscript task in the DTS assigned to Copy package.
    Hope this helps,
    Kranthi

  • Copy of inspection lot results from one to many batches

    Dear All,
    I have a batch managed material in sap & inspection lot is generated for all the batches. I want some of the values of  inspection results to be copied from one lot to many
    to save the result recording time since value entered in 5 to 6 batches are same. please note that product is common for three plants.
    Or I have to do it through Z development.
    Thanks

    First you have to customizing the functionality of Copy of Inspection Results using the following path, where you have to entry the inspection types, plant .etc., where you want to have the functionality.
    SPRO -> Quality Management -> Quality Inspection -> Make Settings for Copy of Inspection Results
    Then when you are in Record Result screen you select Menu -> Edit -> Copy Inspection Results ,
    then a pop-up window is displayed and you filled in with the inspection lot which has the results and then another pop-up window is displayed to select the characteristics that you want to copy.
    A.P.

  • Difference between copy value and use one as many

    hi
    what  is the difference between copy value and use one as many?
    thanks

    [http://help.sap.com/saphelp_nw2004s/helpdata/en/26/d22366565be0449d7b3cc26b1bab10/content.htm]
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/content.htm]
    Much better understanding of UseOneAsMany: [http://help.sap.com/saphelp_nw2004s/helpdata/en/38/85b142fa26c811e10000000a1550b0/content.htm]
    Edited by: Praveen Gujjeti on Feb 18, 2010 11:42 AM

  • Script BPC Admin Packages

    Is there a way to script several BPC packages?  We load actual financial results several times a month.  This involves running a few packages in a specific order.  We also need to wait for the packages to complete prior to executing the next package.
    The order we run the packages is as follows:
    Clear Package u2013 To Clear Out preliminary actual results
    Import Package u2013 Imports the latest actual results into BPC into an Actual Version.
    Copy Package u2013 Copies actual results from the Actual Version into a Forecast Version.
    Ideally we would like to string these together into one script or package such that we only run one job as opposed to hand holding the multiple jobs.
    We cannot start a job prior to the preceding job completing.  So we need some guidance to see if there is a way to check status.
    Thanks for your help,
    -Dan

    Thanks for your input so far.  I'm getting there... but still running into some issues.<br><br>
    I've been able to successfully combine a clear and import package.  Ultimately, I want to create a Clear>Import>Clear>Copy>Custom Package chain.  <br><br>
    1) If I try to use an Execute Package Task to just call the current .dtsx tasks, I don't get any of the prompts to show up when running the package through data manager in Excel.<br><br>
    2) If I rebuild the packages and combine the values in the MODIFYSCRIPT variable (example below), it will only allow input for one copy, or one clear.  If I try to combine a copy and clear only the clear inputs show up when running the package through data manager.  Any tips on how I can get this to work properly?<br><br>
    Here is the control flow for my "Clear & Copy" package, along with the MODIFYSCRIPT variable.  All tasks are "2008" versions and as I mentioned above, doing a clear-->import package in this manner works correctly.<br><br>
    Export_Zero(Dumpload Task)>Load Cube(Dumpload Task)>Clear Comments (Comment Task) >Dump (Dumpload Task)>Convert(Convert Task)-->Load(Dumpload Task).<br><br>
    MODIFYSCRIPT variable:<br><br>
    'DEBUG(ON)<BR>PROMPT(SELECTINPUT,%SELECTION%,,"Select the members to CLEAR",%DIMS%)<BR>PROMPT(RADIOBUTTON,%ENABLETASK%,"Do you want to clear comments associated with data regions in BPC?",1,{"Yes","No"},{"1","0"})<BR>PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when deleting comments.",1,{"Yes, delete comments with work status settings","No, do no delete comments with work status settings"},{"1","0"})<BR>INFO(%TEMPFILE%,%TEMPPATH%%RANDOMFILE%)<BR>TASK(EXPORT_ZERO,APPSET,%APPSET%)<BR>TASK(EXPORT_ZERO,APP,%APP%)<BR>TASK(EXPORT_ZERO,USER,%USER%)<BR>TASK(EXPORT_ZERO,FILE,%TEMPFILE%)<BR>TASK(EXPORT_ZERO,SQL,%SQLDUMP%)<BR>TASK(EXPORT_ZERO,DATATRANSFERMODE,2)<BR>TASK(LOAD CUBE,APPSET,%APPSET%)<BR>TASK(LOAD CUBE,APP,%APP%)<BR>TASK(LOAD CUBE,USER,%USER%)<BR>TASK(LOAD CUBE,FILE,%TEMPFILE%)<BR>TASK(LOAD CUBE,DATATRANSFERMODE,4)<BR>TASK(LOAD CUBE,DMMCOPY,0)<BR>TASK(LOAD CUBE,PKGTYPE,0)<BR>TASK(LOAD CUBE,CHECKLCK,%CHECKLCK%)<BR>TASK(CLEAR COMMENTS,APPSET,%APPSET%)<BR>TASK(CLEAR COMMENTS,APP,%APP%)<BR>TASK(CLEAR COMMENTS,USER,%USER%)<BR>TASK(CLEAR COMMENTS,DATATRANSFERMODE,0)<BR>TASK(CLEAR COMMENTS,SELECTIONORFILE,%TEMPFILE%)<BR>TASK(CLEAR COMMENTS,ENABLETASK,%ENABLETASK%)<BR>TASK(CLEAR COMMENTS,CHECKLCK,%CHECKLCK%)<BR>BEGININFO(%SQLDUMP%)<BR>select %FACTDIMS%,0 as SIGNEDDATA FROM ( SELECT %FACTDIMS%,0 as SIGNEDDATA FROM TBLFACT%APP% WHERE %SELECTION% UNION ALL SELECT %FACTDIMS%,0 as SIGNEDDATA FROM TBLFACTWB%APP% WHERE %SELECTION%  UNION ALL SELECT %FACTDIMS%,0 as SIGNEDDATA FROM TBLFAC2%APP% WHERE %SELECTION%) as ZeroTable  group by %FACTDIMS% OPTION(MAXDOP 1)<BR>ENDINFO<BR>PROMPT(RADIOBUTTON,%CLEARDATA%,"Select the method for copying the data from the source to destination database",0,{"Merge data values (Copies specified records, leaving all remaining records in the destination intact)","Replace && clear data values (Copies specified records, and clears the data values for any records that mirror each entity/category/time combination defined in the source)"},{"0","1"})<BR>PROMPT(RADIOBUTTON,%RUNLOGIC%,"Select whether to run default logic for stored values after copying",0,{"Yes","No"},{"1","0"})<BR>PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when importing data.",1,{"Yes, check for work status settings before importing","No, do not check work status settings"},{"1","0"})<BR>PROMPT(COPYMOVEINPUT,%SELECTION%,%TOSELECTION%,"Select the members to COPY and where to",%DIMS%)<BR>INFO(%TEMPFILE1%,%TEMPPATH%%RANDOMFILE%)<BR>INFO(%TEMPFILE2%,%TEMPPATH%%RANDOMFILE%)<BR>TASK(DUMP,APPSET,%APPSET%)<BR>TASK(DUMP,APP,%APP%)<BR>TASK(DUMP,USER,%USER%)<BR>TASK(DUMP,FILE,%TEMPFILE1%)<BR>TASK(DUMP,SQL,%SQLDUMP%)<BR>TASK(DUMP,DATATRANSFERMODE,2)<BR>TASK(CONVERT,INPUTFILE,%TEMPFILE1%)<BR>TASK(CONVERT,OUTPUTFILE,%TEMPFILE2%)<BR>TASK(CONVERT,CONVERSIONFILE,%CONVERSION_INSTRUCTIONS%)<BR>TASK(LOAD,APPSET,%APPSET%)<BR>TASK(LOAD,APP,%APP%)<BR>TASK(LOAD,USER,%USER%)<BR>TASK(LOAD,FILE,%TEMPFILE2%)<BR>TASK(LOAD,DATATRANSFERMODE,4)<BR>TASK(LOAD,DMMCOPY,1)<BR>TASK(LOAD,CLEARDATA,%CLEARDATA%)<BR>TASK(LOAD,RUNTHELOGIC,%RUNLOGIC%)<BR>TASK(LOAD,CHECKLCK,%CHECKLCK%)<BR>BEGININFO(%SQLDUMP%)<BR><BR><BR>select %FACTDIMS%,SUM(SIGNEDDATA) AS SIGNEDDATA FROM (SELECT %FACTDIMS%,sum(SIGNEDDATA) as SIGNEDDATA FROM (SELECT     %FACTDIMS%, SIGNEDDATA FROM TBLFACT%APP%  WHERE %SELECTION% UNION ALL SELECT %FACTDIMS%,SIGNEDDATA FROM TBLFACTWB%APP% WHERE %SELECTION% UNION ALL SELECT %FACTDIMS%,SIGNEDDATA FROM TBLFAC2%APP% WHERE %SELECTION%) AS SourceTable GROUP BY %FACTDIMS% union all SELECT %FACTDIMS%,0 as SIGNEDDATA FROM (SELECT %FACTDIMS%,0 AS SIGNEDDATA FROM TBLFACT%APP%  WHERE %TOSELECTION% UNION ALL SELECT %FACTDIMS%,0 AS SIGNEDDATA FROM TBLFACTWB%APP% WHERE %TOSELECTION% UNION ALL SELECT %FACTDIMS%,0 AS SIGNEDDATA FROM TBLFAC2%APP% WHERE %TOSELECTION%) AS zeroTable     GROUP BY %FACTDIMS%) as TotalTable    group by %FACTDIMS% OPTION(MAXDOP 1)<BR><BR>ENDINFO<BR>
    Edited by: Dan Frost on Mar 7, 2011 1:16 PM

  • Urgent : java bean having bidirectional one to many relationship

    Hi,
    We have complex requirement in our application.
    We need to copy java bean having bidirectional one to many relationship to another javabean having bidirectional one to many relationship..
    E.g
    Class Basket1 {
    public String color;
    pubic String type;
    public List<Basket1> basketList = new ArrayList()
    Class Basket2 {
    public String color;
    pubic String type;
    public List<Basket2> basketList = new ArrayList()
    We need to exact copy Basket1 to Basket2. We are in trouble to copy List of child because we do not have how many child Basket1 have of same type..
    Can someone help us how we can implement such kind of complex object bidirectional one to many relationship??

    I can't see anything bidirectional about these relationships. What I can see is a couple of BasketN classes that look identical so I don't know why they both exist, and they both contain lists of themselves as members, which suggests some kind of tree structure. Nothing bidirectional there. I can see tat these things can form circular object graphs but I don't see why you would want to do that.
    We need to exact copy Basket1 to Basket2And I don't know what that means. Please explain.

Maybe you are looking for