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.

Similar Messages

  • Error while running SSIS package from Integration service or via Job

    Hi All,
    I encounter the below error while running SSIS Package from Job or integration service. However on execution completes success fully while running from data tools. The issue occurs after migration to 2012 from 2oo5 dtsx. PFB the error.
    SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE DB Source returned error code 0xC02020C4.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by
    the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
    A buffer failed while allocating 10485760 bytes.
    The system reports 26 percent memory load. There are 206110765056 bytes of physical memory with 150503776256 bytes.
    free. There are 2147352576 bytes of virtual memory with 185106432 bytes free. The paging file has 208256339968 bytes with 145642921984 bytes free.
    The package also runs successfully from other servers. This happens only in one of our server.seems like issue with some sql configuration.

    Hi ,
    Are you running using SQL Agent Job and Data tools on same server or different?
    If it is executing fine using Data tools and failing with Job it might be User credentials issue.Try
    to run Job with your credentials by using proxy .
    Regards,
    Prathy
    Prathy K

  • Is it Possible to remove your data package from your smartphone?

    Is it possible to remove you data package from your smartphone. It doest work well where i live, but i love my phone.

    rcschnoor wrote:
    No, you must have a data plan on Verizon if you have a smartphone.
    Actually this also applies to at&t, t-mobile and Sprint.

  • Error with Data package execution from BPF or running package from custom b

    custom button.
    1.     When run package from BPF or custom button an error apear (for all users): "Subscript out of range".
    Package dynamic script
    PROMPT(SELECTINPUT,,,,"BUDGETHOLDER,CONTRACTOR,ENTITY,RPTCURRENCY,SCENARIO,VERSION")
    TASK(ZMF_BPC_LOGIC_RUN,EQU,%EQU%)
    TASK(ZMF_BPC_LOGIC_RUN,SUSER,%USER%)
    TASK(ZMF_BPC_LOGIC_RUN,SAPPSET,%APPSET%)
    TASK(ZMF_BPC_LOGIC_RUN,SELECTION,%SELECTION%)
    TASK(ZMF_BPC_LOGIC_RUN,SAPP,%APP%)
    TASK(ZMF_BPC_LOGIC_RUN,LOGICFILENAME,PAY_DEPT.LGF)
    2.     After click OK such selection screen appear.
    3.     When run package from eData menu u2013 Run package everything OK. And after running package from BPF or custom button everything become OK. (Only for user who run package from EData menu)
    4.     When Close BPC Excel and launch new BPC Excel error appear again.
    The partners have posted a Message 247960 / 2010
                                                                         created 23.03.2010 - 14:15:03 CET
    Could you please comment on the issue?

    Hi Usman,
    The solution is :
    1. Edit the files updateConfigProperties.properties and
    prependConfigProperties.properties in the installation directory:
    Replace the hostname with the value present during the initial installation.
    Note that the installation directory is the directory where SAPinst creates its log files.
    The original hostname should be reflected in the names of the profiles created by the installation
    (/usr/sap/<SID>/SYS/profile/<SID>_<Instance>_<hostname>).
    If the log files of the initial installation are still available the original hostname can also be found in the file jengine.properties in the value of the property box.number. This file is located in the installation directory the initial installation
    2. Restart the installation.
    This has to work,it worked for me.
    P.S: Give points,ok.
    Rgs
    vikas

  • Run Procedure/Package From APEX

    I want to be able to run a procedure/package from within APEX. The procedure is referenced from multiple sources, so I don't want to place it in APEX, it needs to stay in the package. There is no returning data. I have APEX 3.0 and 10g. It goes without saying that I'm very new to APEX, since I'm sure this is not a difficult process to perform. Thanks.

    Hi Jari,
    Finally got it to work. I created a Button that would trigger the Process. In addition to creating the Process, I had to create a Branch.
    So thanks to your direction, it is working.

  • Pacman -S faile to retrieve packages from [custom]

    Hi Forum
    I have installed Arch in an external USB HDD
    /dev/sdb1 -> /boot
    /dev/sdb2 -> /
    /dev/sdb3 -> swap
    /dev/sdb4 -> /mount/Arch_repo
    in .../Arch_repo I have a snapshot of [community], [core] and [extra];
    I have configured [community], [core] and [extra] in pacman.conf so as to point to the proper locations in the folders.
    I also have a /mount/My_repo
    in My_repo I dump all packages I built from AUR, plus my own packages created from my own PKGBUILDs and enabled [custom] in pacman.conf to point to that place.
    Yet when I run pacman -Syu ( academic example, since my Arch_repo is static, the snapshot is not supposed to change, since this setup will be used to create a LiveDVD as soon as a finish packing and installing everything I want ) pacman complaints it cannot find custom.db.tar.gz.
    Good point... it does not exist... ... so pacman does not know the contents of [custom] and whatever i dump there; I have compared to community.db.tar.gz, and found out this gzip is a whole set of folders with the names of packages containing each one the package manifest and the dependences list.
    Is there any tool to build this for a custom repo, or must I create this by hand...?
    My question is of particular importance since I am thinking about using a tool that checks the the existing packages in the system ( pacman -Q ) and then uses them to build a live Image of that system, ArchISO; if these packages cannot be "seen" inside some repo ( missing custom.db.tar.gz ) their inclusion in my live image is very likely not to occur...
    And lots of packages I want to include in my Live contraption are in [custom]... so how do i fix this thing....??
    I mean... for ArchISO to work, and include packages from a repo, the tar.gz of that repo's database must exist... is there some way I can create this for [custom]...?
    BRGDS
    Alex
    Last edited by Alexvader (2010-05-23 19:56:59)

    cd repodir/; repo-add reponame.db.tar.gz *.pkg.tar.*

  • How to run data merge from external hard drive?

    I attempting to merge a large document (~4,000 records) in CS3. The document that I'm merging the data into is also large (an 8 page newsletter). I have exported the pages of the document as a PDF and the imported them again (therefore minimizing the data/links/etc.) but the amount of memory it was consuming was still crashing the program when I ran it on my computer. I bought a TB external hard drive and would like to run the merge from there so that it is using that memory/RAM instead of my computer's. I moved the indesign file, all the pdf links, and the .csv file that is the data source to the external hard drive. That didn't solve the problem. Is the merge now running from the external hard drive and still not working or is there something further I need to be doing to get InDesign using the external hard drive memory instead of my computer's memory? Any advice would be wonderful, thanks!

    I attempting to merge a large document (~4,000 records) in CS3. The document that I'm merging the data into is also large (an 8 page newsletter). I have exported the pages of the document as a PDF and the imported them again (therefore minimizing the data/links/etc.) but the amount of memory it was consuming was still crashing the program when I ran it on my computer. I bought a TB external hard drive and would like to run the merge from there so that it is using that memory/RAM instead of my computer's. I moved the indesign file, all the pdf links, and the .csv file that is the data source to the external hard drive. That didn't solve the problem. Is the merge now running from the external hard drive and still not working or is there something further I need to be doing to get InDesign using the external hard drive memory instead of my computer's memory? Any advice would be wonderful, thanks!

  • Error running child packages from parent package - Error 0xC0011008

    Hey...
    I am running a parent SSIS package (running sp2, 9.0.3042) that calls several child packages.
    On our development server, we now cannot run this because we get 1 or more of these errors:
    "Error 0x80004003 while preparing to load the package. Invalid pointer  .  "
    "Error 0xC0011008 while preparing to load the package. Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.  .  "
    It is not occuring on the same packages.  It varies every time it is run.
    I can run every one of the child packages individually, using the same login ID that the parent is executed under.
    The parent package works fine on my local machine and other servers running the same version of SSIS.  Just not on this server.
    Does anyone have any ideas???
    Thanks
    BobP

    I have the same error with no parent child package relationship. I have changed the "Max Concurrent Executables" in each package from -1 to 10 and got  no change.  My code is below:
    List
    <string> fileList = new List<string>();
    private
    void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e)
    //this.fileList.Add(checkedListBox1.SelectedValue.ToString().Trim());
    this.fileList.Add("name");
    private
    void button1_Click(object sender, EventArgs e)
    string @fileName;
    foreach (string str in fileList)
    @fileName = str;
    string pkgLocation;
    Microsoft.SqlServer.Dts.Runtime.
    Application app;
    DTSExecResult pkgResults_Sql;
    pkgLocation =
    @"C:\" + @fileName + ".dtsx";
    app =
    new Microsoft.SqlServer.Dts.Runtime.Application();
    Package pkgIn = new Package();
    pkgIn = app.LoadPackage(pkgLocation,
    null);
    pkgResults_Sql = pkgIn.Execute();

  • Extract specific data packages from PSA

    Hi all,
    When loading 20 million records from the PSA to the DSO, 50 000 records (in 6 different data packages) have not been loaded (we got a dump).
    Now we want to do a delta load only containing these 50 000 records. Is it possible to choose exactly which data packages to extract to the DSO? Or do you have other ideas we could test?
    Thank you.

    hai,
    it is posible .u click the tab comes under dtp...first u click the dtp.under the delta u choose get data by request...after tat u load the data...so the data loaded package wise...if any one not loaded then only load that package only...
    thanks.
    prakasu.

  • Right Parameters for running a package in custom menu

    Hi Expert,
    In one of my project I am creating custom menu where I need to define various macros.I am getting error in one of the VBA code that is as follow:-
    Sub Step3_RunAlloc_Click()
    Application.Run "MNU_eDATA_SELECTPACKAGE", "Rent Allocation", "ZBPC_RENT_ALLOC", "Company",
    "Financial Processes"
    End Sub
    This code in giving error.Can anyone please suggest the solution and tell me what is the right parameters.I am working in SAP BPC 7.0 M.
    Thanks in Advance.
    Regards,
    Prakash

    Hi,
    Please find below the example from the BPC Help.
    Syntax for this command is MNU_eDATA_SELECTPACKAGE(ackage name>, <package file path>, <teamname>, <package group>)
    For only this menu command, the parameters are part of the MacroName so you must leave the Parameter section blank. For example, if you have MNU_eData_SelectPackage(""import"",""examples/import.dts"",""HQ"") in cell A1, FX Restatement in cell A2, your EvMNU function would be: EvMNU(A1,A2,).
    Can you please let me know what the error message you received?
    Best regards,
    Mihaela

  • Running SSIS Package from another server and performance

    I've built an SSIS package that integrates data from one SQL Server 2008 database to another SQL Server 2008 database.  However, since I needed to leverage some SSIS 2012 components, I've installed the package on another SQL Server 2012 in the network.
    Is there a performance hit (positive or negative) if I run a SSIS package on a SQL Server that isn't the source or destination server?

    Hi,
    we cannot tell for sure. It depends on so many things, amount of data to be transferred, processing needs to be done, overall capacity of the server, workloads that can be handleld by the servers, etc. The mos important aspect but nt the only one is the
    amount of data to be access / tranformed / processed / transmitted to the destination.
    This is a typical case for a test done representative amount of data in a load test on your side.
    -Jens
    Jens K. Suessmeyer http://blogs.msdn.com/Jenss

  • Run info package from an ABAP program

    Hi all,
    I need to run an info-package based on values entered by user in a selection screen.
    How can I implement these values in the info-package using the abap program?
    I've searched the forum and found FM RSSM_SDL_START_INFOPACKAGE and BAPI_IPAK_START but there is no option to enter the selections, also I have found the option to select var type 6 - abap code in the info-package (tab  data selection) but didn't understand if I can connect it to an external abap program.
    Thanks,
    Hagit

    Along with BAPI_IPAK_START, you need to use the FM "BAPI_IPAK_CHANGE"...
    there you have the table with structure BAPI6109SEL, which is used to pass selections to infopackage at the run time...
    Sequence u can use is BAPI_IPAK_START, then BAPI_IPAK_CHANGE and finally BAPI_IPAK_START as per ur requirements...

  • Running SSIS Package from SQL Job - with Set Values, a string containing";"

    Can anybody help with this problem please?
    I’m using “set value” in SQL agent to pass in an email address to my SSIS package, if I put in a value of:
    [email protected]
    It works fine, but if I attempt to input multiple email addresses it fails
    [email protected];[email protected]
    It doesn’t appear to like the “;”.
    Any ideas anyone???
    BoroFC

    Hi Jamie, many thanks for the response.
    If I look at my command line table when Email = [email protected], it looks like:
    /SET "\package.Variables[EmailAddress].Value";"[email protected]" /REPORTING E
    If I change the value to “[email protected];[email protected]”, it looks like:
    /SET "\package.Variables[EmailAddress].Value";"\""" [email protected];"" [email protected] ""\"" /REPORTING E
    But the weird thing is, if I close the job properties window and re-open it again, I lose this line from my set values screen all together!!!
    Help ???
    BoroFC

  • How can i change my data package from 64 to 32 bytes

    I have a serious problem with my internet conecction because the ping is to high and i need to make slower pakage, i mean 64 to 32. Any body could help me please?

    No. No one can help you. We are not your data support. You need to contact whoever provides your internet connection.

  • "VS_NEEDSNEWMETADATA" error while running a package created from C# code

    I have gone through most of the answers for similar questions here however none has resolved the issue. We have created a package using C# code which stages data from a source table to destination (ChildPackage.dtsx).
    Source Table : RowKey, Col1, Col2
    Destination Table : RowKey, Col1, Col2, RowID, RunID (RowID is an identity column in destination table and RunID is a derived column whose value is set using a variable)
    This package runs fine when we execute it directly however, we run these packages from a master package (MasterPackage.dtsx). When we are trying to run the package (ChildPackage) from a MasterPackage we get an error:
    [SSIS.Pipeline] Error: "Oledb Destination" failed validation and returned validation status "VS_NEEDSNEWMETADATA".
    We have tried setting DelayValidation to true for the ChildPackage and even tried setting the values for "ValidateExternalMetadata" for the source and destination component as "False" for the data flow task
    of the ChildPackage.
    There is no case difference between column names in source and destination and it runs fine when we run the ChildPackage directly.
    The only additional task that the Master package performs is to generate and set a variable that is used as RunID value by the child package.
    If we hardcode the RunID in the ChildPackage and run it directly, it runs fine.
    The MasterPackage.dtsx is not created from code and has a step to run ChildPackage.dtsx. We generate the ChildPackage.dtsx from code and replace in original solution.
    Any help would be appreciated.
    Gaurav Agarwal

    Where then this RunID is consumed?
    Arthur My Blog
    The RunID is set by the MasterPackage in a parameter, this parameter is used as value of derived column in the data transformation task of the ChildPackage.
    As mentioned ChildPackage has a RunID column.
    Gaurav Agarwal

Maybe you are looking for

  • Windows Vista claims for "Bluetooth Peripheral Device" driver

    When I connect my iPhone via bluetooth to my computer for "tethering", Windows Vista claims for "Bluetooth Peripheral Device" driver and i can´t connect. Where is the driver? Anyone knows it? Thanks!

  • Accounting document while VF01 for credit card payments

    Hi Friends, While creating billing document for credit card payments, system creates accounting document as under. One FI document for all the below line items. Dr. Customer Cr. Revenue Cr. Customer Dr. Card receivable. Instead is it possible to gene

  • Oracle linux install dies

    Hi all, I'm installing Oracle 8.0.5.1 on Redhat 6.1 (with updates from the updater service) and am running into a problem during the intall script. It seems to get most of the way thru the install and then blows up, same place always. It's when the s

  • Photoshop CS4 crashes on Mac Pro – log mention "ATIRadeonX1000GLDriver" etc.

    Hi! Since switching from Photoshop CS3 to Photoshop CS4 one users here at work started to get stability problems. He said it happens mostly when "painting" layer masks. Mac Pro (first generation) 2.66 GHz Mac OS X 10.5.6 5 GB RAM Photoshop CS4 Standa

  • EC-CS Begining Balance Upload

    Hello All; I am trying to implement EC-CS in our existing SAP system. I went through all the configuration steps. Now I need to uplaod the begging balances from FI into EC-CS as of 12/31/2006. so when I copy data from 2007 2008 2009 my ending balance