Running custom packages within BPC 5.1

Hi,
Current Enviroment:
BPC Ver: 5.1
SQL Server: SQL 2005
I have used earlier versions of BPC 5.1 which used SQL 2000 as a back end and was able to utlise functionailty within the EVMODIFYSCRIPT object to perform certian SQL based tasks such as creating a new bespoket table.
In trying to re-perform the same process with BPC 5.1 and SQL 2005 I am unable to run a simialr bespoke package from DataManager.   To highligh the problem I have included below the syntax that I once used for SQL 2000 (- which worked in the earlier version of BPC 5.1) and which will now not not work with BPC 5.1 and I am not sure if it is because SQL 2005 requires a different aproach for the syntax it will accept or whether it is because the EVMODIFYSCRIPT object which has now become a MODIFYSCRIPT variable and as a result has lost some of its functionailty.
The syntax (as an example) for SQL 2000 that I have used successfuly in the past would have been something like the following:
PROMPT(TEXT,%CATGVALUE%,"Enter the category for the current year",,"actual,budget")
TASK(EXCUTESQL,SQLSTATEMENT,%SQLSTRING%)
BEGINFO (%SQLSTRING%)
SELECT * INTO COPYTBLFACTWB WHERE CATEGORY IN (%CATGVALUE%)
ENDINFO
The above syntax runs fine in Visual Studio 2005 Integrated Services however it fails (with no indication of why) when run from BPC .. any thoughts on what I may be doing wrong ?
Thanks

I've never had any success directly updating a Package Variable from within the MODIFYSCRIPT value.   In DTS you could modify a GLOBAL Variable from the EvModifyScript task and the package could utilize that value.  However, in SSIS, the GLOBAL Variable no longer exists and Package Variables have "replaced" them.  But I do not believe the EvModifyScript Task replacement of the variable MODIFYSCRIPT has the ability to directly update a Package Variable.
However, within the MODIFYSCRIPT value, you can update properties of the tasks and connections included in a package. 
In your scenario, you could use a Prompt and dynamically build the sql statement with the variable holding the user provided value.  Then passed the sql statement to the property of the Execute SQL Task.
ie:
<<in the MODIFYSCRIPT  -- not exact code, just off the top of my head so I might have some syntax wrong>>
PROMPT(TEXT,%USERINPUT%,"Enter value",)
BEGININFO(%SQLQUERY%)
    Insert Into tblFac2Finance
    Select * from tblFactFinance
    Where Category=%USERINPUT%
ENDINFO
TASK(Execute SQL Task, SQLSTATEMENTSOURCE,%SQLQUERY%)
But if you wish to provide the user with member selectors for the input, you could use the SELECTINPUT prompt with the appropriate dimensions.   The user selections are then recorded in a txt file within the PrivatePublications Temp directory for the user executing the package.  The location of this file is stored in the BPC MODIFYSCRIPT variable %SELECTIONFILE%.  I have created packages with a flat file connection that can be updated in the MODIFYSCRIPT with the selectionfile location.
CONNECTION(UserSelectionFile,CONNECTIONSTRING,%SELECTIONFILE%)
Then within the package, I add a Script task that performs file processing against the UserSelectionFile to parse the values into the appropriate package variables that can then be used throughout the package.
I would be very interested in discovering a more direct way to update a package variable from within the MODIFYSCRIPT.
Hope this helps,
Sara Lee McLindon

Similar Messages

  • Problem running Script in a custome package in BPC

    Hello Experts,
    I am having an issue running a custom package in BPC 7.0 SP05. Package is to process all dimensions for an application. It runs fine in BI Studio 2008, but gives me login failed error when i run it with BPC. Here is a script i have problem with:
                Dim ExcelCon As String = _
                "Provider=Microsoft.Jet.OLEDB.4.0;Data Source =" _
                & ExcelPath & ";Extended Properties=Excel 8.0"
                Dim excelConnection As System.Data.OleDb.OleDbConnection = _
                New System.Data.OleDb.OleDbConnection(ExcelCon)
                excelConnection.Open()
                Dim OleStr As String = "Select * into [ODBC; Driver={SQL Server}; Server=" _
                    & ServerName & ";Database=" & DBName & ";Trusted_Connection=True;].[" _
                    & InsertedTableName & "]  FROM [MEMBERS$];"
                Dim excelCommand As New System.Data.OleDb.OleDbCommand(OleStr, excelConnection)
                excelCommand.ExecuteNonQuery()
    It's inserting Excel table (dimension members) into SQL Server table.
    I'm am running package with BPC admin account (which is sysadmin and local admin).
    Is BPC using some Anonymous credentials to execute packages if you don't pass any credentials? I'm not passing any parameters into the package.
    I'd appreciate any info...
    Thanks,
    Akim
    P.S. it's a VB.NET script.
    Edited by: Akim Zubarchuk on Oct 19, 2009 9:49 PM

    Hi
    you have to use DM and you can pass parameters or setup global vatiables trough the Global Varialble MODIFYPKG.
    Into you VB script you have to use DTS_GLOBALVARIABLE("Nameofvariable").value to be able to get value of global variable.
    It is difficult to provide exactly what you have to do but I hope these two information will help you to build your custom package.
    Kind Regards
    Sorin Radulescu

  • How Tou2026 Create Custom Menu within BPC NW - OPENFILE issue

    Hi Guys,
    I built a custom menu in BPC 7.5 using the step-by-step procedure available in u201CHow Tou2026 Create Custom Menu within BPC NWu201D. It uses the OPENFILE option with EvMnu to open dynamic templates describing this limit:
    The OPENFILE option within the NW Version can only open workbooks from cached directories in local PC. Therefore, it is a best practice to ensure that OPENFILE only refers to templates that are available as dynamic templates that are cached (updated template version) on all client PCs that are using the EvMnu based workbook.
    At the moment Iu2019m working with more than 40 users, which surely will increase. So, I have to find others solutions or automate the local saving:
    - Do I have to ask our users to save locally all dynamic templates?
    - Do you know if I can save automatically (not manually one-by-one) all dynamic templates in all client PCs allowing the OPENFILE option to work correctly?
    - Do you know if there are others solutions, like commands or macro (not BPF), to open dynamic templates from custom menu without local saving?
    Thanks for your answers.

    Hi Nilanjan,
    Thank you for your quick answer. I need to open a single dynamic report for each link, not the complete report folder.
    OPENWEBFOLDER works correctly, but unluckily it doesnu2019t cover my issue.
    OPENWEBFILE could be the solution, but it doesnu2019t work. I used this syntax: 
    =EVMNU("OPENWEBFILE"," optional text ","REPORTS\TestReport.xlt")
    Clicking it, the system shows this message u201COPENWEBFILE: macro not supportedu201D.
    Do you know if OPENWEBFILE works correctly in BPC 7.5 NW?
    Thanks for your support.
    Edited by: D-Mark on Sep 16, 2010 4:21 PM

  • Error While Running an Package in BPC 10

    HI Experts,
    while running an Package I am getting the Attached Error
    I am not able to find the logs for that in the Backend
    I have also attached the 2 POA profiles  to the user in the back-end
    Any inputs will be highly Appreciated
    Regards
    Bhupendra Arya

    Hi Bhupi -
    Go to SU53 T-code from the back end , you can find the authorization issues;  It will clearly mention what authorizations are missing in Red.
    Hope this helps!!!

  • Running package within forms

    Does anybody know how to run a package within forms (in the background?)
    Example: I need to run a package to update some tables but I don't want the user to have to wait for that package to complete before making modifications to the form. It is less than a 10 second wait but it appears that the form is hung up.
    thank you.

    Before you start the process, your form could display a stacked canvas telling the user to wait, and then after the package returned control to the form, the form could hide the canvas.

  • Run SSIS Package (SQL Database on Different Server) from Data Manager.

    Hi- How to run a SSIS package from BPC Data Manager -This package connects to another SQL Server Database and creates a text file. This text file is the source to BPC custom tasks CONERTTASK and DUMPLOAD task to load to BPC.
    Here is the  flow of the complete package- Dataflow (Create the text file from a SQL Database)
                                                               CONVERT TASK (Convert the file to BPC Format)
                                                                DUMPLOAD TASK (Load the converted file to BPC)
    Any pointer will be a great help.

    Hello Pam,
    When you run SSIS package with BPC DM it runs on the application server. You don't really have to run a package on a different server in order to get data from a remote database and dump it to a file. That task can be done in your SSIS package using various data sources/destinations. If that's what you are trying to do. The only thing is, your BPC admin user (the one you used to install BPC) has to have an appropriate privileges on a remote server.
    Hope that helps.
    Regards,
    Akim

  • How to run a top down allocation within BPC NW

    Hi,
    I tried to reply the "How to run a top down allocation within BPC NW" i've found in the SDN download area. I made step by step the same of the paper i check several times all the Scripts the package, the process chain, but i haven't found any mistake.
    I made from the beginning in another appset, copy from appshell
    But my result isn't the same as in the paper. My final template is empty without data.
    After running the package (it ends without error) i check the detail and in the formula log
    in some lines it says things like "No records generated" or "records queried out".
    I don't know what happens.
    Anybody who had tried before, could help me?
    Thanx in advance

    Hi,
    Based on the Entity dimension sheet provided in the How to guide, the allocation should be done in the ratio of 15:70:5:10. If you have maintained the same and the amount you want to allocate is 50000, then the allocation will be 7500, 35000, 2500, and 5000.
    Hope this helps.

  • Issue while running a custom package:ORA-20100: File o2670336.tmp creation for FND_FILE failed.You will find more information on the cause of the error in request log. in Package PA_OPPORTUNITY_MGT_PVT Procedure modify_project_attributes ORA-20100: File o

    Hi Guys,
    We have created a custom package where in we are trying to call the standard API's of Oracle projects i.e PA_PROJECT_PUB.When we are trying to call these APIs we are facing the below issue.
    We have tried testing in two instances ,Initially it worked in both instances.
    Using the same API's multiple times we tested the same data set in these instances.
    For the first few runs it works fine.But when we go on using the same API's again and again for our testing we face now and then the below issue.
    Standard API's
    =========
    add_task
    update_project
    change_structure_status
    create_draft_plan
    Error:
    ORA-20100: File o2670336.tmp creation for FND_FILE failed.You will find more information on the cause of the error in request log. in Package PA_OPPORTUNITY_MGT_PVT Procedure modify_project_attributes ORA-20100: File o2670336.tmp creation for FND_FILE failed.
    You will find more information on the cause of the error in request log. in Package PA_PROJECT_PUB Procedure update_project:ORA-0000: normal, successful completionError while publishing the task
    Please let us know if anyone of has come across the same situation.
    Regards,
    Vijay

    But have issue only with validating invoice batch. I followed metalink ID's 605542.1, 167990.1,261693.1,1088553.1,749491.1, 461271.1 and few more.Was this working before? If yes, any changes have been done recently?
    Please see if these docs help.
    APXAPRVL: Invoice Validation Errors With MSG-00001 and REP-1419 [ID 333305.1]
    Invoice Validation Errors When Others:101505:Non-Oracle Exception Rep-1419 [ID 464125.1]
    Invoice Validation Fails with REP-1419 Error in Ap_approval_matched_pkg.Execute_matched_checks [ID 293425.1]
    Invoice Validation Failing On Fnd_file Could Not Write To File L0202306.Tmp [ID 461520.1]
    Invoice Validation (APPRVL) Errors ORA-20001 APP-SQLAP-10000 PSA_FUNDS_CONTROL_PKG.glxfck [ID 463184.1]
    Validate Invoice Error With ORA-20001: APP-SQLAP-10000: AP_FUNDS_CONTROL_PKG.Calc_QV [ID 432702.1]
    Invoice Validation Program Is Erroring Out [ID 382844.1]
    Error On Validation Of Invoices From Previous Periods [ID 412814.1]
    Thanks,
    Hussein

  • Receiving error in BPC Data Manager while running Export package.

    We are in a multi server environment and receiving below error message while running Export package.
    Have anyone seen below error message in BPC 5.1
    An error occurred while executing a package.
    Package Error Events:
    ErrorCode = -1073668060
    Source = Dump Data
    SubComponent=
    Description = The task "Dump Data" cannot run on this edition of Integration Services. It requires a higher level edition.
    IDOfInterfaceWithError= {8BDFE889-E9D8-4D23-9739-DA807BCDC2AC}
    Thanks
    Sridhar

    Below are our BPC versions:
    BPC on Server Manager: 5.0.486
    Data Manager from eData: 5.0.484
    BPC from eTool: 5.0.486
    Below is the total error message as per your suggestion to run Export package. (even with service account which we used to install the software we are getting same error message.)
    TOTAL STEPS  2
    1. Dump Data:     Failed  in 0 sec.
    [Selection]
    FILE=\ApShell_SK\FINANCE\DataManager\DataFiles\SKTEST.TXT
    TRANSFORMATION=\ApShell_SK\FINANCE\DataManager\TransformationFiles\System Files\Export.xls
    MEASURENAME=PERIODIC
    (Member Selection)
    Category: ACTUAL
    Time: 2006.JAN
    Entity:
    Account:
    DataSrc:
    IntCo:
    RptCurrency: 
    [Messages]
    An error occurred while executing a package.
    Package Error Events:
    ErrorCode = -1073668060
    Source = Dump Data
    SubComponent=
    Description = The task "Dump Data" cannot run on this edition of Integration Services. It requires a higher level edition.
    IDOfInterfaceWithError= {8BDFE889-E9D8-4D23-9739-DA807BCDC2AC}

  • Run Data Package from custom Menu00F9/VBA macro

    HI guys,
    I have a problem:when creating VBA macro to run Data Package.
    I get the pop-up error "400" . This is the VBA code I'm using:
    Application.Run "MNU_eDATA_RUNPACKAGE(""Opening""; ""/CPMB/Opening_Balances""; ""Company""; ""Financial Processes"")"
    Have you any suggestion for me?
    Thanks
    Marco Uccello

    Hi Marco,
    I'm guessing by prompts you mean user inputs for Entity, Category, Time etc.
    These are controlled by the dynamic script associated with the data package.
    If you go to the menu eData -> Organise Packages then select a package and go through :
    Modify Package -> View Package -> Advanced
    You should get to the Data Manager Dynamic Script window.
    The following is an example of what should be in here. This is taken directly from the SAP How to Guide "How To Pass Dynamic Parameters to script logic.pdf"
    It's the "PROMPT" parts at the start that control the prompts shown to the user (and passed to the data package) :
    PROMPT(SELECTINPUT,,,,"%ENTITY_DIM%,%CATEGORY_DIM%,%CURRENCY_DIM%,%TIME_DIM%")
    PROMPT(TEXT,%WS_PERCT%,"Input W/S Percent in decimals",)
    PROMPT(TEXT,%EXP_PERCT%,"Input Exp. Percent in decimals",)
    INFO(%EQU%,=)
    INFO(%TAB%,;)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,TAB,%TAB%)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,EQU,%EQU%)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,SUSER,%USER%)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,SAPPSET,%APPSET%)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,SAPP,%APP%)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,SELECTION,%SELECTION%)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,LOGICFILENAME, INCREASEPERCENTAGE.LGF)
    TASK(ZBPC_PROMPT_EXP_RUN_LOGIC,REPLACEPARAM,WS_PERCT%EQU%%WS_PERCT%%TAB%EXP_PERCT%EQU%%EXP
    _PERCT%)
    If you paste that in exactly it will resolve into the right package information which can be seen one step back (via Modify Package -> View Package).
    You can modify the prompts as appropriate for the script you are running - the one above from the how to guide has two inputs for percentages which are used within the associated script logic calculation.
    Hope this helps.
    Thanks.
    Bradley Newcombe.

  • How to write a procedure to run the call the custom package from backend

    Hi All
    Oracle 10g
    Oracle Apps R12
    I am working with oracle order management here we have a customize Package called (Pick Release).Due to some problem we have running this concurrent program by manually giving Route_id as parameter. The route_id is taken from the route Table. By using this query
    select distinct route_id from route@DB_LINK_APPS_TO_ROADSHOW
    where trunc(route_date) = trunc (sysdate+2).
    so daily we have nearly 42 routes and we are running this concurrent program manually nearly times.
    so now how to write a procedure for this
    Step 1 Getting the route from route table.( By cursor we can get the route_id Accordingly)
    Step 2 How to trigger the custom package from back end and execute accordingly to that output of the cursor(route_id)
    If the cursor get 40 routes is it then the concurrent program runs 40 times according to that route_id.
    can some could provide the steps to do this
    Thanks & Regards
    Srikkanth.M

    This is about 4 or 5 lines of PL/SQL and the name of the custom package is not provided.
    If you request someone in this forum to do your work for free -because obviously you didn't even try to write it, which must be considered abusing this forum- you must at least provide sufficient info so someone can do it.
    And no, I won't do it for you.
    Sybrand Bakker
    Senior Oracle DBA

  • How to schedule a package to run with package scheduler in BPC 5.1 MS

    We are on BPC 5.1 Service Pack 2.
    I have a few schedules that run import packages that were set up by a consultant who is no longer with the company. I need to know how to change the userid associated with the package schedules so that they can reflect my name and not the consultant's. I attempted to select the edit parameters but it didn't have the userid on it as an area to update or change.
    Also, how do I create new package schedules to run as I have other packages that I would like to set to run automatically on the system? I did not see an option to create the package schedule in the selections.
    Any help would be greatly appreciated.
    Thanks,
    Eleasha

    I find it easier & more reliable to create a new package schedule, rather than edit an existing one, when trying to change the user. Likewise, I've never been able to transport a schedule from one environment to another. Easier to just set up a new one.
    Go to eData -> Packages Schedule Status to delete the existing job. (Before deleting, make sure you note the scheduling options, and any other package-specific options that have been scheduled.)
    Then eData -> Run package, and choose "schedule" instead of "run now". The schedule here will be set up under the user ID you've used to log into BPC. After you've created the schedule in this way, you can go back later and edit it further (with greater scheduling options) in the "packages schedule status" interface, or via Windows scheduled tasks.

  • Custom run-time menus within dynamically called sub-VIs?

    How do you use custom run-time menus within sub-VIs that have been dynamically called? I'm using Labview 6.02.

    Since you say within subVIs, I am assuming that you have the subVIs open their front panels when called. Each subVI must have the RTM defined when the subVI is created. You can use the same RTM for each one (use the open function in the menu editor).
    If necessary, you can dynamically add and remove menu items using the Application Control->Menu functions. I have some subVIs that add items to the main RTM when they are loaded and remove the items when they finish.
    Rob

  • How to Run a Top Down Allocation within BPC NW - Excel Files

    Hello
    I Read the article How to Run a Top Down Allocation within BPC NW and I would like to replicate the sample. Where can I get the supporting excel files with dimension data.
    Thank you

    Hi,
    The dimension data are available alongwith the how to guide. You need to click on the "attachments" sign to see the attached files.
    Hope this helps.

  • Error when run Process Chain via BPC NW

    Hi Gurus,
    I am implementing SAP BPC 7.5 NW in a customer and I´m facing the following error when try to run a process chain via Data Manager: "Failed to analyze instruction ,TAB,%TAB% ".
    Here is the scenario: we created a process chain that will be able to capture values recorded in a BPC application, load them into an DSO (make some transformations there) and finally send those transformed values to an specific table at ECC. This process will be started after some simulations at BPC and, when the user ends its simulation, start this process chain via BPC; this process chain is named as PC_ECC.
    We made a  copy of /CPMB/DEFAULT_FORMULAS and named it PC_FORMULA and, before step /CPMB/CLEAR, I assigned my process chain PC_ECC.
    So, at Data Manager, I add this process chain (PC_FORMULA) and in Advanced button, I put this statement:
    INFO(%EQU%,=)
    INFO(%TAB%,;)
    TASK(PC_FORMULA,TAB,%TAB%)
    TASK(PC_FORMULA,EQU,%EQU%)
    TASK(PC_FORMULA,SUSER,%USER%)
    TASK(PC_FORMULA,SAPPSET,%APPSET%)
    TASK(PC_FORMULA,SAPP,%APP%)
    //TASK(PC_FORMULA,LOGICFILENAME,DEFAULT.LGF)
    //TASK(PC_FORMULA,REPLACEPARAM,TESTE3%EQU%%TESTE3%%TAB%ASARENT%EQU%%ASARENT%%TAB%SOURCE%EQU%%SOURCE%%TAB%TARGET%EQU%%TARGET%)
    As we do not have any script logic to be executed, we commented the two last statements.
    When we run this package via DM, it gives us the message error:  "Failed to analyze instruction ,TAB,%TAB% "
    Looking through SDN forum we found two posts similar to this issues:
    But the suggestion to supress the statement TASK(PC_FORMULA,TAB,%TAB%) do not work; when we comment this statement, the message error gives us the message:"Failed to analyze instruction ,EQU,%EQU% "; when we comment the statement TASK(PC_FORMULA,EQU,%EQU%) and the previous (with TAB). the DM gives us the message: TASK(PC_FORMULA,SUSER,%SUSER%) and so on, until nothing has left to comment.
    Anyone of you view or has some similar case of error?
    Thanks in advance to you all
    Best Regards
    Adriano

    Hi Rich,
    Thanks for your answer.
    I checked the parameter at my process chain and it has a variant (/CPMB/DEFAULT_FORMULAS_LOGIC) with the parameters:
    TAB
    SUSER
    SELECTION
    SAPPSET
    REPLACEPARAM
    MEMBERSELECTION
    LOGICFILENAME
    EQU
    So, when I put in the task PC_FORMULA, TAB, %TAB%, it will be able to be recognized by the task...and the other parameters too. And when I take one of them off the task instructions, the system complains.
    Any other suggestion?
    Once again, thanks..a.nd best regards
    Adriano

Maybe you are looking for

  • Download IR to excel produces an empty report

    Hi all, I'm using APEX 4.0.1 and I'm trying to download an Interactive Report to excel. The download works without any errors, but the file contains only the header of the columns and the rest of the file is empty! I get the same result when I try to

  • Getting the device name

    hai all, Is there any way through which we can query the device name using midlets. Can we set an image in the background of a form in MIDlets Thanks Jinesh

  • Problems with Enterprise Manager Oracle 10gR2

    Hi, The installation of 10gR2 on Windows 2000 seems to work. I only have a problem with web enterprise manager. I can connect to the database correctly and I can manage the database (creating tables, users and so on). The only problem is in the first

  • How to stop iTunes web preview from automatically launching iTunes?

    Any time you go to an iTunes web preview page (which a lot of app sites/reviews link to), it automatically launches iTunes, completely defeating the purpose of having a web preview page in the first place. How can I make it stop doing this? I've look

  • PersistentProxy class usage for 3rd party super class

    Hi, I am using PersistentProxy class for 3^rd^ party super class. Please see code below for proxy class. @Persistent(proxyFor=AIAMessageHeader.*class*) public class AIAMessageHeaderProxy implements PersistentProxy<AIAMessageHeader>{ public AIAMessage