BPC MS - Custom copy Package

Hi guru,
I need to copy a selection of data but with a custom package because I need to fix a parameter:
E.g.:
Source:
CATEGORY TIME          DATASOURCE   value
B                   2011.10            DS_P               100
Target:
CATEGORY TIME          DATASOURCE   value
B                   2011.11            DS_P               100
The fixed parameter will be the datasource DS_P.
My question is:
is it possible to set default parameter DS_P in package in order to avoid user to copy only this datasource? in this case, how can I forbid the user to change this fixed parameter?
thanks in advance.
Marco

BEGININFO(%SQLDUMP%)
select %FACTDIMS%,SUM(SIGNEDDATA) AS SIGNEDDATA FROM (SELECT %FACTDIMS%,sum(SIGNEDDATA) as SIGNEDDATA FROM (SELECT     %FACTDIMS%, SIGNEDDATA FROM TBLFACT%APP%  WHERE %SELECTION% AND  DATATYPE IN ('DT_PERC','DT_DRIVER')
UNION ALL SELECT %FACTDIMS%,SIGNEDDATA FROM TBLFACTWB%APP% WHERE %SELECTION% AND  DATATYPE IN ('DT_PERC','DT_DRIVER')
UNION ALL SELECT %FACTDIMS%,SIGNEDDATA FROM TBLFAC2%APP% WHERE %SELECTION% AND  DATATYPE IN ('DT_PERC','DT_DRIVER')
) AS SourceTable GROUP BY %FACTDIMS% union all SELECT %FACTDIMS%,0 as SIGNEDDATA FROM (SELECT %FACTDIMS%,0 AS SIGNEDDATA FROM TBLFACT%APP%  WHERE %TOSELECTION% AND  DATATYPE IN ('DT_PERC','DT_DRIVER')
UNION ALL SELECT %FACTDIMS%,0 AS SIGNEDDATA FROM TBLFACTWB%APP% WHERE %TOSELECTION% AND  DATATYPE IN ('DT_PERC','DT_DRIVER')
UNION ALL SELECT %FACTDIMS%,0 AS SIGNEDDATA FROM TBLFAC2%APP% WHERE %TOSELECTION% AND  DATATYPE IN ('DT_PERC','DT_DRIVER')
) AS zeroTable  GROUP BY %FACTDIMS%) as TotalTable    group by %FACTDIMS% OPTION(MAXDOP 1)
ENDINFO

Similar Messages

  • Error data file is empty in standard Copy package

    Hi,
    We have an appset that consists of four applications and we can't successfully run Data Manager Copy package in one of them. It launches the following tasks: Dump, Convert (execution fails in this step with error "Data file is empty") and Load. SSIS configuration in BIDS is defined by default and we haven't set any parameter.
    We have figured out this error appears when we select any member of a dimension in "COPYMOVEINPUT" prompt except for Time dimension. Previously there was a custom Copy package based on standard BPC and it only filters by Time dimension. Perhaps this error is related to application configuration to run custom package.
    We show code:
    INFO(%TEMPFILE1%,%TEMPPATH%%RANDOMFILE%)
    INFO(%TEMPFILE2%,%TEMPPATH%%RANDOMFILE%)
    TASK(DUMP,APPSET,%APPSET%)
    TASK(DUMP,APP,%APP%)
    TASK(DUMP,USER,%USER%)
    TASK(DUMP,FILE,%TEMPFILE1%)
    TASK(DUMP,SQL,%SQLDUMP%)
    TASK(DUMP,DATATRANSFERMODE,2)
    TASK(CONVERT,INPUTFILE,%TEMPFILE1%)
    TASK(CONVERT,OUTPUTFILE,%TEMPFILE2%)
    TASK(CONVERT,CONVERSIONFILE,%CONVERSION_INSTRUCTIONS%)
    TASK(LOAD,APPSET,%APPSET%)
    TASK(LOAD,APP,%APP%)
    TASK(LOAD,USER,%USER%)
    TASK(LOAD,FILE,%TEMPFILE2%)
    TASK(LOAD,DATATRANSFERMODE,4)
    TASK(LOAD,DMMCOPY,1)
    TASK(LOAD,CLEARDATA,%CLEARDATA%)
    TASK(LOAD,RUNTHELOGIC,%RUNLOGIC%)
    TASK(LOAD,CHECKLCK,%CHECKLCK%)
    Any variables as %CONVERSION_INSTRUCTIONS% aren't defined. Is it a system constant?
    Thanks.

    Hi Roberto,
    Thanks for having a look at my question.
    We're using .act files to upload data from SAP BW into SAP BPC.
    This is the content of  .act file that I'm trying to upload:
    ACTUAL
    1
    1
    GCN.CZN,2621.LC_.EUR,100.5000
    GCN.CZN,2621.TC_.CZK,7050.0000
    Transformation file looks like:
    Conversion files are:
    Time:
    Category:
    Entity:
    Counterpart:
    RCCinterco:
    IntercoCurr:
    Transcurrency:
    In case of any other info needed, please let me know.
    Thanks a lot in advance,
    Wai Yee Kong

  • 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

  • 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

  • Custom DTS package migration from BPC 4.2 ,SQL 2000 to BPC 7.0 M , SQL 2005

    Is there any changes required in the custom dts package when migration from BPC 4.2 , sql 2000 Environment to bpc 7.0 , SQL 2005/2008  Environment.
    or
    Please suggest process for migrating  custom dts package from BPC 4.2 ,SQL 2000 Envirnment to BPC 7.0 ,SQL 2005/2008 Environment

    When you say "custom dts package" that can mean many different things. What type of customization has been done?
    There are a few BPC-related features which changed from 4.2, which must be manually adjusted, if you're using those features.
    But SQL itself also changed dramatically in moving from SQL 2000 to 2005. So if your customer's packages are heavily customized around SQL 2000, this may require substantial re-work.
    The only migration process for custom DTS packages -- that I'm aware of -- is to use the SQL 2005 migration tool in SSIS, see how much it messed up, and then fix everything else that's still broken.
    But there also may be opportunities to improve the package overall. SQL 2005 has a lot of great new features in SSIS, over what was there in SQL 2000.
    I haven't started working with SQL 2008 yet, so I can't say what complexity there is in upgrading DTS packages from 2005 to 2008. From what I read in the BPC 7 release notes, it sounds like it's a very minor upgrade, compared to the jump from 2000 to 2005.

  • 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

  • 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%)

  • 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...

  • Auditing a Custom Import package

    We are having issues with BPC data auditing on a custom import package.  We are using the convert and dump load tasks just like in the standard import package.  The difference is that we have those surrounded by other SSIS tasks to perform other pieces of the import process.  The specific issue is that when we look at the detailed audit data, we are not seeing all of the records from our custom import.  We usually see that the import package took place, but we also usually see only a small fraction (if any) of the actual records that were posted (and which we can see in BPC) in the audit.
    My first question is, does the "Data Manager Import" option under the audit settings work with custom import packages using the convert and dump load tasks, or is it exclusive to the standard import package?  Secondly, if it does work with custom import packages, what might be some causes and/or resolutions to this issue?

    Just an update on the two issues that we are seeing...
    First, I have tested the standard Import and the Append into Fact Table packages, and both are audited correctly and completely.  This is important because our import package utilizes both of these styles of import.  One set of data is transactional, so it is loaded similar to the Append into Fact Table package.  The other set is a merge style import, so it is very similar to the standard import.  I see all records in the AuditDataFincance table in the Extra database for both of these packages.  This would lead me to believe that we are seeing some interference either between these two dump load tasks in the same package or some other SSIS package.  It is important to note that these dump load tasks are wrapped in foreach loops to pickup all files in a directory.  Looking at the package, my guess would be that either having two dump load tasks or having said tasks wrapped in a foreach loop would probably be the culprit.  My next step will be to strip the package down to test just these pieces.  Does anyone know if either of these would cause an issue with auditing?
    Secondly, I stated that we are not seeing the temp audit files in the STAGED or LOADED folders, which is making it more difficult to debug this issue.  After testing several packages, I noticed that the standard import and clear packages audit correctly, but they never create files in the STAGED or LOADED folders.  However, the Append into Fact Table package DOES create these files.  What I noticed in the AuditHdrFinance table in the Extra database was that the StagingCode values for these packages were different before they were loaded.  A value of 0 signifies that the package has already been loaded.  Append into Fact Table had a value of 1, which appears to signify that an audit file is waiting to be loaded in the STAGED directory.  The others had a value of 2, which I am guessing signifies that they are currently being staged in memory or some other location.  Does anyone have any information on what the different StagingCode values signify and why different packages have different codes?

  • Copy package returns error

    Hi,
    I am trying to run the copy.dtsx package (BPC 7.5) in my ownerhsip application but it returns an error.
    Time: 2010.JAN
    Entity:
    OwnAccount:
    ConsolView: KONZ
    IntCo: 
    (Destination Member Selection)
    Category: ACTUAL
    Time: 2010.MAY
    Entity:
    OwnAccount:
    ConsolView: KONZ
    IntCo: 
    [Messages]
    Record Count : 30
    Accept Count : 30
    Reject Count : 0
    Skip Count   : 0
    Incorrect syntax near '.'.
    The record count would be correct, but even though it says accepted, the data is not in the database when I check. I can manually enter data into the period in question and the copy package is identical to the one in the consolidation application where it works just fine.
    Does anyone have an idea what the problem could be?
    Thanks,
    Arnold

    Apologies, I didn't copy the whole message.
    TOTAL STEPS  3
    1. Dump:           completed  in 0 sec.
    2. Convert:        completed  in 0 sec.
    3. Load:           Failed  in 1 sec.
    4. Copy:           completed  in 1 sec.
    [Selection]
    CLEARDATA= Yes
    RUNLOGIC= Yes
    CHECKLCK= No
    (Member Selection)
    Category: ACTUAL
    Time: 2010.JAN
    Entity:
    OwnAccount:
    ConsolView: KONZ
    IntCo: 
    (Destination Member Selection)
    Category: ACTUAL
    Time: 2010.MAY
    Entity:
    OwnAccount:
    ConsolView: KONZ
    IntCo: 
    [Messages]
    Record Count : 30
    Accept Count : 30
    Reject Count : 0
    Skip Count   : 0
    Incorrect syntax near '.'.

  • 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.

  • How to print Photo Info in the Custom Print Package

    I am  using LR CC, latest version on a Windows7 PC.
    I am trying to print Photo Info in the Custom Print package. I have no trouble selecting Photo Info in the Single Image/Contact Sheet Layout Style, but when I switch to the Custom Print Package, the Photo Info check box in the Page panel, disappears. I can't find any reference to this in the manual as to why this would occur, or not be available.
    Appreciate any help with this matter.
    Best Regards
    Steve

    Hi,
    Have a look at: Lightroom Help | Print module layouts and templates
    Only on the Single Image and Contact Sheet layouts can you " ... print information about photos, such as the filename, title, caption, and keywords ..."

  • Is Custom print package "rotate to fit" still not implemented?

    On Dec 2, Al-R started a discussion thead for LR3 beta about a problem he was having with rotating an image to fit a frame he created using the Custom Print Package. He couldn't get the image to rotate to fit. I get the sense that the "rotate to fit" check box wasn't available. I never downloaded the beta of LR3 so I don't know this for sure, but that seemed to be the case based on the dialogue in his thread.
    Ian Lyons solved the mystery by pointing out that the Custom Print Package feature was not complete in the beta, and that Rotate To Fit was one of the things that hadn't been implemented. He said he expected it to be implemented in the final shipping release.
    While the Rotate To Fit check box is now available in the Custom Print Packate (shipping version 3.0), it doesn't have the intended effect. When dropping a portrait image onto a landscape frame in the Custom Print Package, the frame is ignored and the image expands to fit the paper size. Checking Rotate To Fit on and off has no effect. The only work-around I have found is to rotate the image prior to dropping it on the frame. Once the orientations match, the image fills the frame properly.
    Is this a case of the feature not making it into the final release, or is this a bug, or am I missing something really important here?
    Thanks for your help,
    Charlie

    What OS?
    Don
    Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.9 & Win XP, Pentax *ist D
    http://donricklin.blogspot.com/

  • Error while using Copy Package

    Hi,
    I want to copy data from category BudgetV1 to BudgetV2,
    I have tried to use Copy Package but I always get error with
    error message "The file is empty".
    Can anyone help me with the problem?
    Thanks in advance.

    Hi,
    Please check if you have data in category BudgetV1. This error normally occurs when there is no data in source specified in COPY package. Make sure to select appropriate members when you specify other source dimensions.
    Hope this helps.
    Regards,
    Shoba

  • Lightroom 2.7 custom photo package printing

    When I try to  print a custom photo package (multiple 4x6 images) on 16x20 photo paper, the individual prints come out slilghtly different in size relative to the 4x6 format.  I am using bordereless printing on a 16" roll (epson 7800) and I snap each pic to pic on the layout. The interior pics print  1/16"oversized of the 4x6 size, the edge pics print undersize by 1/8".  When I reduce the number of pics on the layout and leave a gap between each pic on the layout the pics print all oversize by about an 1/8".  The lightroom print controls;  Photo Border is not checked, Inner Stroke is not checked, Zoom to fill is checked.
    My question is- Can lightroom 2.7 print actual 4x6 prints using the custom photo package w/borderless printing?  If I layout four 4x6 pics side by side so that the entire width of the 16" paper is used, can I get lightroom and my printer (epson7800) to actually print each borderless photo exactly 4" instead of oversizing the two inner pics and thus shortening the two edge pics due to the oversizing of the two inner pics?  Am I missing an adjustment I need to make on the printer properties or the lightroom page setup?  Thanks for any help.

    You may need to download the package again.
    Make sure that you have administrative rights/credentials on this computer.

Maybe you are looking for