Deletion and creation of Configuration Objects using JAVA Transports

Hi Guys
I hope you guys can help me make some sense out this situation.
We have 2 systems in the QA Landscape which shares the Integration Server, Lets call it SYS.A1 and SYS.A2. In the SLD both SYS.A1 and SYS.A2 have the transport track pointing to SYS.PROD as the Production Environment. In QA env. we have 2 receiver determination for these 2 systems. This means in the PROD Environment we will have One object(Receiver Determination) which represents connections from these 2 systems in the QA Environment. (In prod we have one system which represents both the system in QA).
Recently there was a transport that came in from the QA env to PROD which contained a deletion of the receiver determination for SYS.A1 and modification of receiver determination for SYS.A2. So by the end of the transport we expected to see a modified receiver determination for the PROD environment, but what we found was the object that was there in PROD was deleted and nothing was modified.
So Can you please tell me what the transport sequence is? is there a priority given to deletion over creation? Or is there some kind of versioning applied for Directory Object transport?
I read from the forum that there is some sort of versioning applied on repository transport.. is it the same case here??? Any help in explaining this would be much appreciated.
Thanks & Regards
Prav

I have to remove the monthly spread sheet every time
and create a new spread sheet while executing the
code. The problem is when I run the code the records
inserted into same spread sheet along with the
previous records. So I need to delete the excel file
and create new one. I am using POI to create the
spread sheet. ICan anyone help me on this? I am
posting the code below.I don't think I want to read all that code. If you want to replace the data, you can remove the sheet and create a new one with the same name. HSSFWorkBook has methods removeSheetAt() and createSheet().

Similar Messages

  • How to create and edit a .ini file using java

    Hi All...
    Pls help me in creating and editing an .ini file using java...
    thanks in advance
    Regards,
    sathya

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

  • How to read the data from Excel file and Store in XML file using java

    Hi All,
    I got a problem with Excel file.
    My problem is how to read the data from Excel file and Store in XML file using java excel api.
    For getting the data from Excel file what are all the steps i need to follow to get the correct result.
    Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
    Thanks & Regards,
    Sreenu,
    [email protected],
    india,

    If you want someone to do your work, please have the courtesy to provide payment.
    http://www.rentacoder.com

  • I need to change my iCloud e-mail to my new e-mail because my old e-mail account has been deleted and i haven't been using it for a while.

    i need to change my iCloud e-mail to my new e-mail because my old e-mail account has been deleted and i haven't been using it for a while.
    my new e-mail is my apple ID but my iCloud one wont change over.

    If the old ID ("email address") is an earlier version of your current ID, try temporarily recreating the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • AutoCAD objects using Java program?

    How to control AutoCAD objects using Java Program?

    You can try AjaX (http://www.brainon.ch/AjaX/).
    But seems that this project is unsupported now.

  • Creating URM Physical objects using Java

    Hi,
    I am able to create electronic documents and folders using CIS (UCPM api's).
    I am looking for some help in creating Physical contents in Oracle URM programmatically.
    I would appreciate, if anybody could share the approach on getting this done(Creating physical objects like BOX, Physical folders, physical documents in Oracle URM programmatiically) .
    Regards,
    Rick

    hi ,
    I am new to ECM . in your post I have seen that you are able to create folders in UCM using cis apis (java related), I have worked with these and able to checkin, checkout and search files. Can you please help me in creation of folders in UCM using java apis.. Thanks in advance.
    Edited by: user4785188 on Feb 14, 2010 8:54 PM

  • Intersecting Objects using Java

    Hullo everyone,
    I've got a problem at the moment so I've decided to turn to these forums once again for some helpful insight as 2 + hours of Googling hasn't helped me in the slightest. I'm trying to create a mini-scale Katamari game (hopefully you're familiar with it, basically it's one ball rolling over other balls to grow in size) on Java and I've finally got all my graphics and move directions in place. Now though I can't seem to get the collision to work...
    I'm trying to make the Katamari circle intersect with the little circle items on the playing field but currently the ball circle just ghosts over them. So basically I'm trying to get a circle to collide with other circles but I have no idea where to start. :S
    My circle items contain int x, y and radius fields and have been automatically set to their respective sizes by the game.
    I was thinking of working something out like:
    boolean testIntersection(Item item)
    if (distance between katamari ball and item <= radius of ball + radius of item)
    return true;
    else return false;
    But whenever I put something like that in, it still doesn't detect collision. Any thoughts or help on this would be very much appreciated. :)

    If you use object that implement Shape, then there is a contains and a collision implemented in the Shape interface.
    Aside from that, you need to calculate from the center point of both your objects to get a true distance:
    if your objects use an upper left corner for the drawing location and that is what your x and y represent, then you need to translate that to the center of your object. The distance between you objects can be given by:
    sqrt((X2-X1)^2 + (Y2-Y1)^2)
    Where X1, X2, Y1, and Y2 are center coordinates of your object.
    Note this well always be a positive value.
    The tolerance of your distances for an intersection would be R1+R2 so you will get the resulting conditional:
    if((R1+R2)<sqrt((X2-X1)^2 + (Y2-Y1)^2) {
      //what ever collision code you want
    }Please note, that you may want to include equality into your conditional and use the "<=" comparator, to include the condition that they "kiss".
    Also please note that these values need to be implemented in double, rather than int to do away with errors introduced by integer math and when you do implement using double, then double introduces it's own set of errors due to incapability to absolutely represent values not inherently reproducible by the double type. To over come that you may want to implement using a delta value or "close enough:
    {code}
    if(delta < abs(((R1+R2)-sqrt((X2-X1)^2 + (Y2-Y1)^2)) {
    //what ever collision code you want
    {code}

  • How to create database connection and how to call it using Java

    Hi,
    Good day! I'd like to know how I can create a db connection in JDev, then use this connection to retrieve data using a Java Class? I've seen using New Gallery > Database Connection. But I'm not sure how I can access this connection using Java and display some output from the retrieved records.
    Any steps/tutorial link is appreciated.
    Thanks in advance,
    Rian

    Hi,
    If you need to access the connection in the entity object then refer http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcadvgen.htm#BABEIFAI i.e in MODEL.
    But if you want to access connection in ViewController part of application then you need to do it manually.For this i am giving you my code for reference.------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import javax.faces.context.FacesContext;
    import oracle.jdbc.pool.OracleDataSource;
    public class DataHandler {
    String jdbcUrl = null;
    String userid = null;
    String password = null;
    Connection conn;
    public static final String CONNECTION_STRING =
    FacesContext.getCurrentInstance().getExternalContext().getInitParameter("connectionString");
    public static final String USER_NAME =
    FacesContext.getCurrentInstance().getExternalContext().getInitParameter("userName");
    public static final String PASSWORD =
    FacesContext.getCurrentInstance().getExternalContext().getInitParameter("password");
    public DataHandler(String jdbcUrl, String userid, String password,
    boolean shouldConnect) throws SQLException {
    this.jdbcUrl = jdbcUrl;
    this.userid = userid;
    this.password = password;
    if (shouldConnect) {
    connect();
    public void connect() throws SQLException {
    OracleDataSource ds;
    ds = new OracleDataSource();
    ds.setURL(jdbcUrl);
    conn = ds.getConnection(userid, password);
    public Connection getConnection() {
    return conn;
    public ResultSet executeQuery(String sql) throws SQLException {
    Statement s = conn.createStatement();
    return s.executeQuery(sql);
    public void closeConnection() throws SQLException {
    if (!conn.isClosed()) {
    conn.close();
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • Failed to delete a file in MS Vista using java.io.File.delete()

    while trying to delete a file using java.io.File.delete(), it returns true but the file lies intact.
    i'm sure there is no handle or stream open on the file..
    the same code is running fine in XP..
    if anyone can help me.. thanks

    thanks all..
    the problem is diagnosed further..
    MS Vista does not let a user program to delete any file from 'windows' or 'program files' directories..
    Even when the file is deleted manually thru explorer a confirmation is taken from the administrator.. even when he is logged in..
    i for now have opted to install and use my program in Vista outside 'program files' directory...
    more clarification welcome..

  • How to ZIP the files and folders/sub folder files using java

    HI All,
    I'm New to this Forum, Could anybody tell me how to zip the files and folders/sub folders using java. For example I have a folder with the name testfolder and side that folder I have some files and some sub folders inside subfolders I have some other files. I need to ZIP the files and folders as they are in same hierarchy.
    Any pointers or help wolud be appritiated.
    Thanks,
    Rajeshbabu V

    [http://www.devx.com/tips/Tip/14049]

  • How to compare and edit Resource bundle file using java programe

    Hi All
    I have two resource bundle with key, value and some comments. I need to write a java code to compare both of the values of the keys and if the values are different then i want to replace the second value with the first value.
    Its a programe which will udpate the second file with the first file values.
    I tried using Properties class but it didnt worked because when i am saving the file using store method it removes all the comments and the order of text also got disturbed.
    How I need to do this any help appriciated.
    Please elt me know if someone needs more info.
    Thanks in advance.

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

  • Creation of relationship instances using Java

    Hi,
    I have the same problem as described in this thread: Creating a Relationship between 2 PublicObjects needs admin privilages
    Because nobody answered the original question, I post mine now:
    I am trying to create a custom relationship between two iFS documents. I follow exactly the procedure described in the developpers guide of Oracle 9iFS (9.0.1). It is nowhere mentioned that administrative rights are needed to instanciate relationships. However this is exacly the compaint iFS is sending back to me: I must switch to administrative mode before creating the relationship between two objects.
    I guess I am not the second people trying to instantiate relationships in iFS. Is it a policy, property or ACL problem ?
    Is there a workaround for this ? Unfortunately, I have no admin session available at the time of the relationships creation.
    Thanks,
    Tristan

    I finally managed to create relationships without switching to administrative mode.
    The clue is in the "<oracle.ifs.beans.PublicObject>.addRelationship" method.
    The code on page 6-52 of the Developer Reference of iFS 9.0.1.1.0 describes how to relate two objects po1 and po2 with a relationship.
    po1 is set as the left object and po2 is set as the right object.
    rdef is an object describing the to be created relationship.
    The last statement is:
    Relationship r =(Relationship) session.createSystemObject(rdef);
    This is what I used in my code and was not working. Now, I am using the method "addRelationship(rdef)" to create relationships (described in the JavaDoc), and that one is working as expected:
    po1.addRelationship(rdef);

  • Delete Running Request in DSO Objects using Process Chain

    hello...currently i have one process chain that load the data from 3.5 datasource into the dso objects in BI 7.0. When i trigger the process chain and when there are no data from the source system, the dso will having the request in yellow color. And when comes to data activation in the dso, it will givin out error and stop the loading of data into the infocube using DTP process. I am just wondering is there any item that can be used in process chain to delete the yellow request in the DSO Object.
    thanks!

    Hi,
    I gues you can solve this problem in a much simpler manner, with out having to add any
    new process step or any thing.
    In your SAP system, the system wide setting to deal with a load if it fetched zero records
    is to consider it as incomplete i.e. mark it as YELLOW request.
    You just have to change this setting, and make the system to consider it as a complete
    request i.e GREEN, so that it gets activated with out fail.
    Select your data load -> Open Process Monitor /  Goto RSMO -> Menu -> Settings ->
    evaluation of reqest-> if no data is available from request, here you have to select successful
    Hope this resolves your concern....
    Cheers,
    Habeeb

  • Deletion and creation of Schedule line for Line Item

    Hi BW Experts,
    In P.S.A. when i have checked for first schedule line 001 reqdelqty is 50 , after deleting 001 and after creation of second schedule line in R/3 there are two records transferred from R/3 for schedule line 002 first with reversal indicator 'X' and delivery quantity -50 and next record with Reversal Indicator blank with value 50. which in turn results Reqdelqty zero.
    Reason of wrong data in BW: -
    Schedule line category for an item is being deleted forcefully. R3 doesn’t allow deletion of a schedule line category if delivery is already created. Here user is creating one same schedule line and then he deletes the order quantity from earlier one. This forces system to pick up schedule line 2 in the document flow
    · User shouldn’t delete schedule line.

    Hello Ganesh,
    Schedule line number sequence will not be in control of the user.
    once delivery for a schedule line is completed, no way you can delete the schedule line (except renumbering case). This is general SAP logic relates to schedule lines.
    Let me know how they are deleting the schedule lines even though delivery is completed.
    Now coming to Data load problem in BI.
    When you delete schedule line 001, the generated record should be with schedule line 001 with Reversal Indicator as R and delivery quantity -50.
    And for new schedule line 002, reversal indicator as blank and delivery quantity 50
    Regards,
    Nandakumar.A

  • Deletion and creation of SNP Planned order

    Hi,
    I need to delete the SNP Planned order i.e ATP category of type 'EE' and I have to create the orders of ATP category EE  through programetically. Please let me know if any BAPI's or Function modules are existed for the same.
    Appriciate your help.
    Regards,
    Ratna

    Hi Ratna.
    To delete orders in SNP use transaction:
    /SAPAPO/RLCDEL
    BAPI to create planned orders:
    BAPI_MOSRVAPS_SAVEMULTI3
    There is also a BAPI to delete planned orders if this is more suitable.
    BAPI_MOSRVAPS_DELEMULTI
    Hope this helps, M

Maybe you are looking for

  • Filling JButton with different texture?

    Hi All, This may be a silly question, but is there a way to change the filling of a jbutton besides changing the color or loading it with an image? What I'm trying to do is, have the filling-texture change when the button color changes. For example:

  • Camera to ipod solution??

    ok well i have a ipod video 30gb and a casio ex-s600 and a 512 mb sd card. the problem is that my camera doesnt have a mini usb port, and the only way to connect the camera to the ipod is to put it in my camera's cradle and then connect it to the ipo

  • Display Image from Local path "c:\image.gif"

    Hi Experts, Is there anyway to display an image from local path i.e "c:\img.jpg". I need to display an image from the path in Dialog(Screen) programming. I need to do it using program not any other way... Can anyone suggest me a method please. Thanks

  • I cannot import music I bought from another site into iTunes.  The files are there but they won't import into Itunes.  How can I fix this?  Thanks!

    I cannot import music I bought from another site into iTunes.  The files are there but they won't import into Itunes.  How can I fix this?  Thanks

  • How to convert table to control

    In my attached VIS, I am giving user input values to controls,the user input control values i am passing to a table and writing text file.how can i do exactly opposite of that what i am doing now.that means reading same text file(that i already writt