Re-name package objects

Hi
Is there some way to re-name entity objects, view objects and their packages after creating them?
I think one option can be to rename the various folders on my PC where I am storing all the source code, but I am not sure whether this is the way to do it.
Any pointers will be appreciated.
Thanks
Ajay K. Garg

You have to create the package (Directory) structure manually in the file system, then move all the renamed EO/VO/AM (and all realted files) to appropriate directories.
After you do this, you need to open each file in some text editor (esp for XML files) and change the package structure there.
Thanks,
Tapash

Similar Messages

  • Multiple SQL task objects inside a package object is not generating proper DTSX

    
    I am programmatically adding multiple ExecuteSQLtask objects inside a package. I am specifying all the required properties to the ExecuteSQLtask objects.  However, when I save the package object to dtsx, the package looses the properties of some
    of the ExecuteSQLtask object.
    In the below example, I have created 3 ExecuteSQL task objects using the function AddSqlTask. However, once you run it, one of the objects will loose its properties. What makes it more weird is the fact that sometimes, object 1 looses the properties,
    some times, its object number 2. Its random. I know that these objects are COM objects. Is there something I need to careful of when setting the properties ? Why are the values lost when I save them to DTSX ?
    using System;
    using System.Collections.Generic;
    using System.Configuration;
    using System.Data;
    using System.Data.SqlClient;
    using System.Globalization;
    using System.IO;
    using System.Linq;
    using System.Text;
    using System.Threading;
    using System.Threading.Tasks;
    using System.Timers;
    using Microsoft.SqlServer.Dts.Runtime;
    using Microsoft.SqlServer.Dts.Runtime;
    using Microsoft.SqlServer.Dts.Tasks.FileSystemTask;
    using Microsoft.SqlServer.Dts.Tasks.BulkInsertTask;
    using Microsoft.SqlServer.Dts.Runtime;
    using Microsoft.SqlServer.Dts.Pipeline;
    using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
    using Microsoft.SqlServer.Dts.Tasks.ExecuteSQLTask;
    using Microsoft.SqlServer.Dts.Tasks.ExecutePackageTask;
    namespace PackageCreator
    class Program
    static void Main(string[] args)
    #region Package 1
    Package package1 = new Package();
    #region ConnectionString
    AddSqlConnection(
    package1,
    ConfigurationManager.AppSettings["ServerHostName"],
    ConfigurationManager.AppSettings["SqlServerDefaultDB"]
    #endregion
    AddSqlTask(package1, "P1 - Task1");
    AddSqlTask(package1, "P1 - Task2");
    AddSqlTask(package1, "P1 - TaskFinal");
    #region Add Dependencies
    package1.PrecedenceConstraints.Add(
    package1.Executables[0] as TaskHost,
    package1.Executables[1] as TaskHost
    package1.PrecedenceConstraints.Add(
    package1.Executables[1] as TaskHost,
    package1.Executables[2] as TaskHost
    #endregion
    #endregion
    #region Package 2
    Package package2 = new Package();
    #region ConnectionString
    AddSqlConnection(
    package2,
    ConfigurationManager.AppSettings["ServerHostName"],
    ConfigurationManager.AppSettings["SqlServerDefaultDB"]
    #endregion
    AddSqlTask(package2, "P2 - TaskFinal");
    #region ExecutePackageTaskClass
    Executable exec1 = package2.Executables.Add("STOCK:ExecutePackageTask");
    TaskHost th = exec1 as TaskHost;
    ExecutePackageTask myTask = th.InnerObject as ExecutePackageTask;
    myTask.PackageID = package1.ID;
    #endregion
    #region Add Dependencies
    package2.PrecedenceConstraints.Add(
    package2.Executables[0] as TaskHost,
    package2.Executables[1] as TaskHost
    #endregion
    #endregion
    //new Ispac(package1, package1.ID).DeployAndRun();
    SavePackage(package1);
    SavePackage(package2);
    var packageList = new List<Package>();
    packageList.Add(package1);
    packageList.Add(package2);
    new IspacPackageCollections(packageList).DeployAndRun();
    Console.Read();
    private static void AddSqlTask(Package package, string component)
    //Thread.Sleep(5000);
    package.Executables.Add("STOCK:SQLTask");
    ExecuteSQLTask executeSQLTask = (package.Executables[package.Executables.Count - 1]
    as TaskHost).InnerObject
    as ExecuteSQLTask;
    executeSQLTask.Connection = package.Connections[0].ID;
    executeSQLTask.SqlStatementSource = "insert into [dbo].[SupersetPackageDependencies] (Component) values ('" +
    component + @"')";
    private static void SavePackage(Package package)
    string packageNetworkLocation = @""
    + ConfigurationManager.AppSettings["packageNetworkLocation"]
    + @"\" + package.ID + ".dtsx";
    new Application().SaveToXml(
    packageNetworkLocation,
    package,
    null
    //new Application().SaveToSqlServer(
    // package,
    // null,
    // "ANUPN8470P",
    // null,
    // null
    #region AddConnectionManager
    private static ConnectionManager AddSqlConnection(Package package, string server, string database)
    return AddConnection(
    package,
    "OLEDB",
    String.Format(
    CultureInfo.InvariantCulture,
    "Provider=SQLOLEDB.1;Data Source={0};Persist Security Info=False;Initial Catalog={1};Integrated Security=SSPI;",
    server,
    database)
    private static ConnectionManager AddConnection(Package package, string type, string connectionString)
    ConnectionManager manager = package.Connections.Add(type);
    manager.ConnectionString = connectionString;
    manager.Name = String.Format(
    CultureInfo.InvariantCulture,
    "{0} Connection",
    type);
    return manager;
    #endregion
    public static void AddExecuteSqlTask(
    Package _package,
    string _componentId
    _package.Executables.Add("STOCK:SQLTask");
    // Get the task host wrapper
    ExecuteSQLTask executeSQLTask = (_package.Executables[_package.Executables.Count - 1]
    as TaskHost).InnerObject
    as ExecuteSQLTask;
    #region Set required properties
    executeSQLTask.Connection = _package.Connections[0].ID;
    executeSQLTask.SqlStatementSource = "insert into [dbo].[SupersetPackageDependencies] (Component) values ('" +
    _componentId + @"')";
    #endregion
    //return executeSQLTask;

    Why you do not tell what properties get lost?
    And why is the same get repeated (you want parallel?):
    package1.Executables[0] as TaskHost,
    package1.Executables[1] as TaskHost
    package1.PrecedenceConstraints.Add(
    package1.Executables[1] as TaskHost,
    package1.Executables[1]
    And why not to add them
    like
    package1.PrecedenceConstraints.Add(
    package1.Executables[0] as TaskHost);,
    package1.PrecedenceConstraints.Add( package1.Executables[1] as TaskHost
    Arthur
    MyBlog
    Twitter

  • Can't access packaged object type in Java

    Hi
    I am getting the following error while accessing an oracle packaged object type. Can You please give me an advise..!!
    java.sql.SQLException: invalid name pattern: XXGW_RMA_CREATION_PKG.XXGW_RMA_RECRegards

    HI
    I am not asking how to search in google. If You know how to resolve my problem..then help me. I don't what this kind of answers.
    This is my problem
    Error in java.
    java.sql.SQLException: invalid name pattern: XXGW_RMA_CREATION_PKG.XXGW_RMA_REC
    This is my package
    create or replace package xxgw_rma_creation_pkg
    is
    type xxgw_rma_rec is record (dealer_name varchar2(40), dealer_desc varchar2(300));
    type xxgw_rma_line is table of xxgw_rma_rec; --(item_name varchar2(40), item_desc varchar2(300)) index by binary_integer;
    xx_rma_rec  xxgw_rma_rec;
    xx_rma_line xxgw_rma_line
    procedure xxgw_rma_creation (p_rma_rec in xxgw_rma_rec ,p_rma_line in xxgw_rma_line,p_rma_no out varchar2);
    end;
    create or replace package body xxgw_rma_creation_pkg
    is
    procedure xxgw_rma_creation (p_rma_rec in xxgw_rma_rec ,p_rma_line in xxgw_rma_line,p_rma_no out varchar2)
    is
    l_rma_rec xxgw_rma_rec := p_rma_rec;
    l_rma_line xxgw_rma_line := p_rma_line;
    begin
    dbms_output.put_line(l_rma_rec.dealer_name||'  '||l_rma_rec.dealer_desc);
    for i in  l_rma_line.first..l_rma_line.last loop
    dbms_output.put_line(l_rma_line(i).dealer_name||'  '||l_rma_line(i).dealer_desc);
    end loop;
    p_rma_no := '20';
    end;
    end;Rekha

  • Using variable names for object names

    Is there any way you can use a String variable to name an object? I.e., something like:
    String name = "objectName";
    \\ create an Image object named objectName
    Image (name.valueOf()) = new Image();
    This code obviously does not work, but I'm working on a map applet which uses a map composed of thousands of tiles, and then shows only a portion of the map by drawing the appropriate tiles into the window using the x/y coordinates and a nested for loop to determine which tiles to draw. However, unless I want to manually declare and then call each of these Image objects, I need to have a way to have the actual name of each image object be a reference to a variable, which I will then initalize according to the name of the tile I'm using. Does that make sense at all? Anyway, I was just wondering if anyone knows of any way to do this. Thanks.
    -Ari

    Typically this is done using a Collection, for example:
    Image[] img = new Image[100];
    for (int i=0; i<img.length;i++)
      img[i] = new Image();... Sort of thing.

  • The technical name of object QVIW zabcd is not valid

    Hello Gurus
    I am facing a weird problem.
    I run a query it works fine but when I try to save the view by right click -- save view it ask me for the Description and Technical name after putting this information I press save. Istead of saving it it gives me error "The technical name of object QVIW zabcd is not valid"
    Please help me asap
    Our system is on SP18 both for abap and Java

    Hi Bala Duwuri,
    Thanks for the input...
    Can you please give me your valuable inputs on this ........
    I have a standalone custom web dynpro application which needs to be linked to standard team viewer application.
    What I want is I should be able to select the employee from the Team Viewer iView and supply the information to the Custom Application so that it gives me output based on that.
    Right now am following the below link But in that no where they were talking about the webdynpro eventing.
    then how come two views will get linked fucntionally so that team viewer will pass the information to my custom WD application??????????????????? Please help
    Please give me a clear view on how to integrate the team viewer application with custom development WD application.
    If code is required pls provide that also.............
    I would appreciate the useful inputs with higher points.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/how%2bto%2bread%2binformation%2bfrom%2bthe%2bteamviewer%2bin%2bweb%2bdynpro
    Thanks in Advance,
    Dharani

  • How Do I Convert a String that Names an Object to a Reference to the Object

    You get many program-specific object names in the XML that is returned by describeType.  Suppose I find an object that interests me.  What is the best way to convert the String that names the object (e.g. the id of the object) to a reference variable that points to the object? 

    Sure.  I am working on a complex application that involves several ViewStacks, several Accordions, some checkboxes, some radio buttons, some text boxes.  These components are scattered about, but all are children of a base class that is successfully enumerated by
    var classInfo:XML = describeType(vwstk);
    Suppose I write a loop as follows:
     for each (var a:XML in classInfo..accessor){
    Inside that loop I have a series of tests like
    if (a.@type == "mx.controls::CheckBox"{
    Then, I iterate thru all of the children of the base class as in:
    for  
    (var u:Object in vwstk)
    {        if  
    Inside the if I persist the checked/not checked status of the checkbox.
    The tricky part is going from the string a.@name to the Object reference u.  I doubt my proposed method will work.  Do you have a better idea?

  • How to get text name text object and text id for long text

    Hi,
    I am trying to fetch Long text for a given order number from transaction CO04 in SAPScript. I know that I have to use Include X (OBJECT) XX ID XXX.
    How do I get the text name, text object and text id for the order header long text from Transaction CO04.
    Points will be awarded..
    Tushar

    Tushar,
    When you are in CO02, and are at the Long Text Tab,click on the Icon that is next to the Order Number at the top of the screen (this icon looks like a Pencil and a Pad of Paper and is called "Change Long Text"). When you click on this it will take you to the SAPscript Editor. Now hit Goto->Header and you will get the data you require.
    Hope this helps.
    Cheers,
    Pat.
    PS. Kindly award Reward Points as appropriate.

  • Medium Name detail objects can't able to drag into WebI filter panel

    Hi experts,
    In our OLAP universes on SAP BI Query we have medium name detailed objects, which we are not able to drag into Web Intelligence filter panel. Whenever we try it says that you can't drag this object into filter panel.
    The exact message is "You can not use this object in the filter pane".  This is not applicable to all, some of Medium Name detail objects are allowed at filter pane.
    Can any one throw some light on this. why we can't use medium name detailed objects in WebI Report filter panel.
    Regards,
    Ravi Kumar Garre
    Edited by: Ravi Kumar Garre on Sep 21, 2009 3:21 PM

    Hi Ingo,
    Based on my analysis found that the property for Condition panel is disabled only for Medium Name detail objects when BI InfoObject having text enabled for Medium Name (only).
    In case of short and long text this property is enabled on integration with out any manual efforts.
    Are there any special considerations (like performance) for medium name detail objects in doing so. I mean using medium name details objects in Condition panel are we going to face any performance issues. Is it recommended to have medium name details objects as condition?
    Highly appreciate on your inputs.
    Regards,
    Ravi Kumar Garre

  • Transport of a package object type DEVC

    Hello,
    when I create a transport task manually with package (object type DEVC) in SE10, does it
    a) only transport the package definition again
    or
    b) transport the package and all the objects in it?
    Thanks in advance for your help!

    Hi,
    When you transport the package it transports the package and all the objects in it.
    Regards,
    Renu

  • Is there a list of table name and object name? (oCompany.GetBusinessObject)

    Hi,
    How do I find the objects regarding the tables in SBO?
    Example Item Master, I use following statement:
    SAPbobsCOM.Items oItem;
    oItem = ( SAPbobsCOM.Items ) oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
    I like to find the object for SPP1.
    Is there a list of table name and object name?
    Thank you,
    Rune

    Thank you, Owen,
    Yes, I found the table name and method name in SDK Help Center:
    On your P/C, click START. Select All programs , SAP  Business One > SDK > SDK Help Center. Then select  DI API, then DI API Reference. If you scroll down this window you will find all existing classes. You will then find the SpecialPrices and the SpecialPricesDataAreas. All the information required to code is in there.

  • Table name for objects

    Hi all,
    is der any table where i can find the objects created by particular user in bw. I mean if i give user name can i find the total objects by him
    regards

    Hi,
    You can refer RSDIOBJ   Table which is Directory of all InfoObjects..
    other relevant tables....
    RSDIOBJT     Texts of InfoObjects
    RSDIOBJ       Directory of all InfoObjects
    RSDIOBJT     Texts of InfoObjects
    RSDATRNAV     Navigation Attributes
    RSDATRNAVT     Navigation Attributes
    RSDBCHATR     Master Data Attributes
    RSDCHABAS     Basic Characteristics (for Characteristics,Time Characteristics, and Units)
    RSDCHA      Characteristics Catalog
    RSDDPA     Data Package Characteristic
    RSDIOBJCMP     Dependencies of InfoObjects
    RSKYF      Key Figures
    RSDTIM     Time Characteristics
    RSDUNI     Units
    Regards,
    Umesh

  • Recover Database Package Object

    Hi, i accidently replace my package in my schema on last friday, how i gonna recover it back? my company is running a full backup of the database, and do not open up flashback function in that database. How I just recover only one object without causing the all data recovery?
    Please help.. urgent.
    vincent.

    kiddoo_81 wrote:
    my company's oracle version is 9iR2....i use the command create or replace package...... command, unfortunately, there are one package is the same name as mine... so i replace the old package with my new one... after 3 days... user came to me and complain that some of the old program cannot open.
    that is the situation. is my mistake thought... sob..
    vincent.Have you tried to use the method I've provided to you?
    Why don't you use supervision?
    How much the size of the database? If it's not so big, why don't you want to perform a disaster recovery (restore and recover the database on the different server) and get back the package you've lost?

  • Is there a way of calling out all values in a String to name an object?

    Is the above possible?
    As in the generic statement below,
    [class name] [objectname] = new [constructor];
    to be able to make the value of a String to be the objectname? such that if this instance
    String s = "Peter";
    Then the objectname will be Peter, as in
    [class name] [Peter] = new [constructor];

    you could do something like this:
    String str[] = new String[10];
    then you could get the value of a string from a user and place it in a String variable.
    TextField text1 = new TextField ();
    String nameofObject = text1.getText();
    now you can do something like:
    create a button to submit the new name and then check to see if the button was pressed. If the button was pressed, iterate through the loop and set the str array object equal to the value of nameofObject string. Do it something like:
    str[0] = nameofObject;
    now you should be able to refer to the newly created object as the string name entered into the TextField you retrieved.
    That is just off the top of my head. I am sure what you are trying to do can be done.
    Hope that helps,
    Kent

  • Change name of objects in JList ??

    Hi there,
    I'm building an adressbook. If I make some adress-objects and load them into a JList, I can see them fine and acces them, but they're called things like "adress@32897".
    Is there a way to change the name of these objects? (that is not the name as such, but the name under which they appear in the JList).
    Kind Regards
    Thomas

    I'm guessing the default renderer in a JList works (in most cases) by calling toString(), and rendereing the resulting text.
    Override that method to return what you expect.

  • Changing the display names of objects in the JTree

    Hi All;
    Is there a possibility of changing the display name of the nodes in JTree? I mean not the actual name of the JTree object, but only the display name? Is there any method available for that?
    Your help would be greatly appreciated
    Thanks in advance
    Regards Madumm

    If your tree node object has application-specific complexity, you should define a custom tree node class and a renderer for that. Or if you just could use DefaultMutableTreeNode, call setUserObject() method with a new String.

Maybe you are looking for

  • I am getting an error message on all devices when attempting to access mail.

    Although I have made no changes to an account I have used for over 5 years now, I suddenly am getting error messages on my iPhone, my wife's iPhone, my iPad, and my laptop when attempting to download mail from my account. The messages are all server

  • WebDynpro ABAP iView

    Hello experts.. we are creating several iViews for our portal, all these iViews are from WebDynpro, some of them WebDynpro for Java and some others are WebDynpro for ABAP. I have successfully created all the WebDynpro Java iViews. Now I need to creat

  • Getting contacts from my iphone to my mac

    I have been in the Apple Store today and they have advised that I need to delete all my phone history and set up as a new phone as having battery issues.  I am trying to transfer my numbers and contacts to my mac but I can't do it, it wont allow me a

  • How to update my iOS 4.2.1 iPod to iOS 5 or iOS 6?

    Okay so I'm using this old iPod touch and it's on version iOS 4.2.1 and I want it updated to iOS 5 or iOS 6. I have the latest version of iTunes too and I click on my iPod, I click "Check for Update" it says "This version of iPod software (4.2.1) is

  • How do I install OS 9 classic with OS 10.2.1

    I have an iMac 333 tray loader. I just upgraded it to 10.2 using OEM 10.2 discs and that seems to work fine. Now I need to install classic. I got a hold of a 9.0.4 imac installation disc and booted from it and ran the installation. It failed! Anybody