How to append Target File(reciever side) .

Hi PI Gurus,
I have a scenario where i need to append the target file. It goes like this:
files(idoc's) keep coming from the source at any time of the day.
target file is sent only once in a day. The target file is appended each time a new source file recieved.
Need to do this without using BPM.
Pls help me  out.
Thanks in advance.

Hi Pankaj,
Kindly go through the following link which will help you surely:
http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6830e67f2a6d12e10000000a1553f6/content.htm
In the receiver file adapter, go to the Processing tab page. Then  Select the File Construction Mode as Append. Look at the link for the other configurations in the adapter.
You can also take a look at the scenario 2 in the following link:
http://wiki.sdn.sap.com/wiki/display/XI/MorewiththeFileAdapter
Hope it helps you!!!!!
Thanks
Biswajit
Edited by: 007biswa on Feb 21, 2011 5:39 PM

Similar Messages

  • How to append a file in a trigger?

    I'm writing from a table to a file, and have created a trigger that works great...however, I need to append the file so it doesn't overwrite the file every time the trigger fires.
    Here's the code...but I can't figure out how to append the file instead of just write to the file:
    CREATE OR REPLACE TRIGGER checkout_trg
    AFTER UPDATE OF movie_qty ON mm_movie
    FOR EACH ROW
    DECLARE
    fh UTL_FILE.FILE_TYPE;
    BEGIN
    IF :NEW.movie_qty=0 THEN
      fh:=UTL_FILE.FOPEN('ORA_FILES','chekcout.txt','w');
      UTL_FILE.PUT_LINE(fh, 'Date: '||sysdate||', Movie ID: '||:NEW.movie_id||', Quantity: '||:NEW.movie_qty);
      UTL_FILE.FCLOSE(fh);
    END IF;
    END;
    /

    > It's for an assignment...I think thye're just trying to show us what's possible.
    Just as it is possible to show a learner driver to jump a red light, drive on the wrong side of the road, or do doughnuts in an intersection...
    But none of this will make that learner driver a good driver. Never mind able to correctly handle high performance cars on the professional circuit.
    Sorry mate - what they are showing/teaching you is pure bs. A trigger is not the "same thing" as a callback event in client programming.
    And feel free to give them this URL and tell them that I think they are full of it. Let's see how they defend their non-real world, totally irrelevant and wrong assignments in this very forum.

  • How to open PSD file recieved via email on iPad using Photoshop Touch without Creative Cloud?

    Hi, how to open PSD file recieved via email on iPad using Photoshop Touch without the need of using Creative Cloud? Thanks.

    Hi Super Nemo
    Currently the only way to open psd files on Photoshop touch is via the creative cloud. Also, the layers you created from Photoshop on your desktop machine will be flattened when opened with Photoshop touch on your iPad. But you can retain the layers from the touch app when opening the psdx file on your desktop photoshop.
    This link might help you: http://forums.adobe.com/docs/DOC-1336
    -Sharon

  • How to get target file name and buffer the incoming messages?

    Hi Experts
    I have one scenarion like
    I wanted to find whether is there any file existing in target folder. If it exists I dont want to overwrite it but I have to buffer the incoming messages in some queue or something like that. And when ever the request comes next time I have to send the data buffered in queue first.
    I dont want to add any time stamp for target file to avoide duplication.
    Can we do this using XI. If yes please suggest me how to achive this.
    Regards
    Sowmya

    >
    Sowmya wrote:
    > Hi Experts
    >
    > I have one scenarion like
    > I wanted to find whether is there any file existing in target folder. If it exists I dont want to overwrite it but I have to buffer the incoming messages in some queue or something like that. And when ever the request comes next time I have to send the data buffered in queue first.
    >
    > I dont want to add any time stamp for target file to avoide duplication.
    >
    > Can we do this using XI. If yes please suggest me how to achive this.
    >
    >
    > Regards
    > Sowmya
    there is no standard way to achieve this. I suggest a redesign.
    post the files to a different directory and write a script which will move the file to the required target directory only if it is not present there.

  • How to append a file directory and its contents in a jTextArea

    how will i display the contents of this file and file directory in a jTextArea or ...let's say it will display the content of "c:/AutoArchive2007-05-24.csv" in a jTextarea
    say this file "c:/AutoArchive2007-05-24.csv"contains the ff:details
    user:jeff AutoArchive-Process Started at Thu May 24 15:41:54 GMT+08:00 2007
    and ended at Thu May 24 15:41:54 GMT+08:00 2007
    Message was edited by:
    ryshi1264

    use the append(...) to append data to the text area.

  • How to append to files

    Hey all I have made a few custom JS scripts that modify default behavior of a few RoboHelp functions, this works nicely however I have to manually include the JS file on every page. So my question is this; how do I programmatically append my script tags to the bottom of each page ether at build time or as a RoboHelp Scrip?
    Thanks

    There are two ways to do this (depending on your RoboHelp version)
    1. Add the JS to the footer of a master page and assign the master page on generation. (In the SSL settings.)
    2. Use the afterPublish event to run a script automatically whenever an output was generated. See Using the new RoboHelp 10 scripting events | Adobe Developer Connection for an introduction.
    Kind regards,
    Willam

  • How to append recorded files.

    Two questions.
    I am using adobe dvrcast to record my live streams. the problem I am having is when I stop the encode during a live stream, a new file is not created, the existing stream is written over. How can I preventive this from occuring.
    Is there a way to have all vod files that are in one folder to roll over to the next file during play back.

    Thanks for the quick response. I am using FMLE 3 and FMS 3.5. I have changed the code per your suggestion. However, the file still does not append when i press the stop button in FMLE. After pressing stop, when I press start button in FMLE again, the file size starts at zero.
    here is my code: ExDVRStream.asc
    /*----------------------------------------------------------------------------+
    |       ___     _       _                                                    |
    |      /   |   | |     | |                                                   |
    |     / /| | __| | ___ | |__   ___                                           |
    |    / /_| |/ _  |/ _ \|  _ \ / _ \                                          |
    |   / ___  | (_| | (_) | |_) |  __/                                          |
    |  /_/   |_|\__,_|\___/|____/ \___|                                          |
    |                                                                            |
    |                                                                            |
    |  ADOBE CONFIDENTIAL                                                        |
    |  __________________                                                        |
    |                                                                            |
    |  Copyright (c) 2008, Adobe Systems Incorporated. All rights reserved.      |
    |                                                                            |
    |  NOTICE:  All information contained herein is, and remains the property    |
    |  of Adobe Systems Incorporated and its suppliers, if any. The intellectual |
    |  and technical concepts contained herein are proprietary to Adobe Systems  |
    |  Incorporated and its suppliers and may be covered by U.S. and Foreign     |
    |  Patents, patents in process, and are protected by trade secret or         |
    |  copyright law. Dissemination of this information or reproduction of this  |
    |  material is strictly forbidden unless prior written permission is         |
    |  obtained from Adobe Systems Incorporated.                                 |
    |                                                                            |
    |          Adobe Systems Incorporated       415.832.2000                     |
    |          601 Townsend Street              415.832.2020 fax                 |
    |          San Francisco, CA 94103                                           |
    |                                                                            |
    +----------------------------------------------------------------------------*/
    load("ExUtil.asc");
    * An example dvr stream class that handlings requests initiated from the
    * publisher and subscribers.
    * @param name    live streams name as visible to the client subscribers
    * @param numsubscriber  number of subscribers
    * @param subscribers  a map of subscribing client based on the client id
    * @param publisher   publishing client
    * @param streamInfo  holds default DVR stream info or stream info provided
    *       by the publisher
    * @param startRecTimer  Id returned by the scheduler to start recording
    * @param stopRecTimer  Id returned by the scheduler to stop recording
    * @param broadcastTimer Id returned by the scheduler to broadcast stream info
    *       to down stream servers
    * @param broadcastInterval how often to broadcast stream info
    function ExDVRStream( name ) {
    this.name = name;     // clients subscribe to this stream name
    this.numsubscriber = null;   // number of subscribers
    this.subscribers = new Object(); // map of current subscribers
    this.publisher = null;    // client publisher, this is only set in the origin
    this.streamInfo = null;    // streamInfo provided by the publisher
    this.startRecTimer = null;   // scheduler id to start recording
    this.stopRecTimer = null;   // scheduler id to stop recording
    this.broadcastTimer = null;   // scheduler id for broadcasting
    this.broadcastInterval = 5000;  // set the interval to 5 sec by default
    this.isRecording = false;   // flag to indicate if the stream is recording
    // Public interface
    * This function gets call when a client is added as a subcriber of the stream.
    * If the client is already a subscriber, it will be a no-op.
    ExDVRStream.prototype.addSubscriber = function( client )
    if (this.subscribers[client.id] == null)
      this.subscribers[client.id] = client;
      this.numsubscriber++;
    * Removes a client from the subscriber list. 
    ExDVRStream.prototype.removeSubscriber = function( client )
    if (this.subscribers[client.id])
      this.subscribers[client.id] = null;
      delete this.subscribers[client.id];
      this.numsubscriber--;
    * This function broadcast streamInfo to all the subscriber which
    * is acting as a server
    ExDVRStream.prototype.broadcastStreamInfo = function()
    debug("Inside ExDVRStream.broadcastStreamInfo - stream name: " +
      this.name);
    for (i in this.subscribers)
      subscriber = this.subscribers[i];
      if (subscriber.isProxyServer)
       subscriber.call("DVRSetStreamInfo", null, this.getStreamInfo());
    * Set the publishing client
    ExDVRStream.prototype.publish = function( client )
    this.publisher = client;
    * Clear the publishing client
    ExDVRStream.prototype.unpublish = function()
    this.publisher = null;
    * This function returns a boolean to indicate whether the stream is in use
    ExDVRStream.prototype.isInUse = function()
    if (this.numsubscriber > 0 || this.publisher)
      return true;
    return false;
    * This function cleans up all the resources used by this stream
    ExDVRStream.prototype.shutdown = function()
    debug("Inside ExDVRStream.shutdown");
    clearInterval(this.startRecTimer);
    clearInterval(this.stopRecTimer);
    clearInterval(this.broadcastTimer);
    this.startRecTimer = null;
    this.stopRecTimer = null;
    this.broadcastTimer = null;
    * Returns the default streamInfo if no streamInfo has been
    * set by the publisher
    ExDVRStream.prototype.getDefaultStreamInfo = function( DVRStreamInfo )
    //If server restarts and no publisher is coming in, we check
    //the length of the recorded stream and see if we should make
    //the dvr content available.  However, user can customize this
    //function and make an external call.
    streamLen = Stream.length(this.name);
    if (streamLen || this.publisher)
      //found a dvr stream, so return it
      DVRStreamInfo.code = "NetStream.DVRStreamInfo.Success";
      this.streamInfo = new Object();
      //setup default value
      this.streamInfo.streamName = this.name;
      this.streamInfo.callTime = new Date();
      this.streamInfo.startRec = new Date();
      this.streamInfo.stopRec = new Date();
      this.streamInfo.maxLen = Stream.length(this.name);
      this.streamInfo.begOffset = 0;
      this.streamInfo.endOffset = 0;
      this.streamInfo.append = false;
      this.streamInfo.offline = false;
      this.streamInfo.currLen = Stream.length(this.name);
      this.streamInfo.isRec = false;
      DVRStreamInfo.data = this.streamInfo;
    else
      DVRStreamInfo.code = "NetStream.DVRStreamInfo.Failed";
      DVRStreamInfo.data = null;
    * Get streamInfo and create a default one if no streamInfo
    * has been set.
    ExDVRStream.prototype.getStreamInfo = function()
    debug("Inside ExDVRStream.getStreamInfo");
    DVRStreamInfo = new Object();
    if (this.streamInfo == null)
      this.getDefaultStreamInfo(DVRStreamInfo);
    else if (this.streamInfo.offline)
      DVRStreamInfo.code = "NetStream.DVRStreamInfo.Failed";
      DVRStreamInfo.data = null;
    else
      DVRStreamInfo.code = "NetStream.DVRStreamInfo.Success";
      DVRStreamInfo.data = this.streamInfo;
      DVRStreamInfo.data.isRec = this.isRecording;
      DVRStreamInfo.data.currLen = Stream.length(this.name);
    return DVRStreamInfo;
    * Set streamInfo, also handleStreamInfo to start/stop a recording
    ExDVRStream.prototype.setStreamInfo = function( streamInfo )
    debug("Inside ExDVRStream.setStreamInfo");
    //Right now, this only get called from the FMLE when
    //the publisher start/stop a recording
    currDate = new Date();
    currTime = currDate.getTime();
    this.streamInfo = streamInfo;
    this.streamInfo.lastUpdate = currDate;
    startRecTime = 0;
    stopRecTime = 0;
    if (streamInfo.startRec == -1 || streamInfo.startRec == undefined)
      startRecTime = -1000;
    else if (streamInfo.startRec instanceof Date)
      startRecTime = streamInfo.startRec.getTime();
    else
      //invalid startRec format
      return;
    if (streamInfo.stopRec == -1 || streamInfo.stopRec == undefined)
      stopRecTime = -1000;
    else if (streamInfo.stopRec instanceof Date)
      stopRecTime = streamInfo.stopRec.getTime();
    else
      //invalid stopRec format
      return;
    if ( startRecTime == -1000 && stopRecTime == -1000 )
      //broadcast the change to all the downstream server
      this.broadcastStreamInfo(streamInfo);
      return;
    if (stopRecTime != -1000)
      //We are about to stop a recording, so clear the timer
      clearInterval(this.stopRecTimer);
      this.stopRecTimer = null;
      if (currTime < stopRecTime)
       timeDiff = stopRecTime - currTime;
       //we will broadcast the streamInfo to all the downstream server
       //when we actually stop the recording inside onStopRecord
       this.stopRecTimer = setInterval(this, "onStopRecord", timeDiff);
      else
       //stop recording immediately
       this.onStopRecord();
    if (startRecTime != -1000)
      //We are about to start a recording, so clear the timer
      clearInterval(this.startRecTimer);
      this.startRecTimer = null;
      if (currTime < startRecTime)
       timeDiff = startRecTime - currTime;
       //we will broadcast the streamInfo to all the downstream server
       //when we actually start the recording inside onStartRecord
       this.startRecTimer = setInterval(this, "onStartRecord", timeDiff);
      else
       //start recording immediately
       this.onStartRecord();
    * This is called when we are about to stop a recording
    ExDVRStream.prototype.onStopRecord = function()
    this.isRecording = false;
    clearInterval(this.stopRecTimer);
    this.stopRecTimer = null;
    s = Stream.get(this.name);
    s.record(false);
    //notify the downstream server immediately
    this.broadcastStreamInfo(this.streamInfo);
    //also stop the periodic broadcast because the stream is not growing
    this.stopStreamInfoBroadcast();
    * This is called when we are about to start a recording
    ExDVRStream.prototype.onStartRecord = function()
    debug("Inside ExDVRStream.onStartRecord");
    this.isRecording = true;
    clearInterval(this.startRecTimer);
    this.startRecTimer = null;
    s = Stream.get(this.name);
    if (this.streamInfo.append)
      s.record("append");
    else
      s.record("append");
    //notify the downstream server immediately
    this.broadcastStreamInfo(this.streamInfo);
    //also start the periodic broadcast because the stream is growing
    this.startStreamInfoBroadcast();
    * Stop the timer to broadcast streamInfo to downstream servers
    ExDVRStream.prototype.stopStreamInfoBroadcast = function()
    clearInterval(this.broadcastTimer);
    this.broadcastTimer = null;
    * Start the timer to broadcast streamInfo to downstream servers
    ExDVRStream.prototype.startStreamInfoBroadcast = function()
    debug("ExDVRStream.Inside startStreamInfoBroadcast");
    this.stopStreamInfoBroadcast();
    this.broadcastTimer = setInterval( this, "onStreamInfoBroadcast",
      this.broadcastInterval)
    * This is called by scheduler to broadcast streamInfo to the
    * downstream servers
    ExDVRStream.prototype.onStreamInfoBroadcast = function()
    debug("Inside ExDVRStream.onStreamInfoBroadcast");
    this.broadcastStreamInfo();

  • How to append to file

    i have a file which contains the fomat like this
    <mailbox>
    <mail>
    <from>shankar</from>
    <to>sun</to>
    <subject>help</subject>
    </mail>
    <mail>
    <from>shan</from>
    <to>sun</to>
    <subject>help me</subject>
    </mail>
    </mailbox>
    i want to append the following after </mail> or before<mail>but not between <mail> </mail>
    i.e i want to append a message in the xml file
    please help me
    thanks in advance

    FileOutputStream has a constructor that allows you to open a file for appending:
    FileOutputStream out = new FileOutputStream("myfile.xml", true);But "appending" means that you can only add new data to the end of the file. There is no way to insert new data somewhere in the middle. If that's what you want to do, you need to make a program that opens the original file, copies the data until the point where you want to insert something to a new output file, insert the new data, and copy the rest of the original file.

  • How to repost the file while getting an error

    Hi
             Friends , this is shalini shah.
    Iam facing one problem from  sender side(i.e file ) iam already send two files to IDOC,
    now one more file is sending to XI, here i faced problem.the third file got an error,
    it will be not posted to XI, so how to repost the file(sender side).
    i think do the same procedure from scratch(date types ,messagetypes,and message inteface)it is correct or not.
    please reply, thanks in advance.
    Regards
    Shalini shah

    Hi Shalini,
    You can resend it from Runtime work bench,while monitoring.
    If you rectify the problem.
    Ex: If any configuration mistakes can be altered and resend it again.
    OR
    If Data it self is wrong ,then change the data and Activate the scenario.
    Need not to do it from the scratch..
    Regards,
    Ramesh.

  • How do i add time and date to target file

    hello,
    1. When do we generally go for FCC?
    2. Is it possible to assign field seperator without FCC on the reciever side file adapter?
    3. how do I add timestamp as well as DATE to the target file?
    thnks
    venkat

    Hi venkat
    1. When do we generally go for FCC?
        we can do the FCC at sender side as well as at the receiver side.
        Sender side: we do the FCC at the sender side only if we are getting a flat file   from the sender, and so that it can be understand by the XI,because XI can understand only the XML.
         Receiver side:we do the FCC at the receiver side only if the receiver requires the flat file.
    2. Is it possible to assign field seperator without FCC on the reciever side file adapter?
    no, it is not possible.
    3. how do I add timestamp as well as DATE to the target file?
    if you want to add date and time in the target file for this you have to select the parameter
      File Construction Mode* : AddTimeStamp
    in the processing parameters of the file adapter(Receiver).
    Thanks
    Rinku

  • How to merge/append two files in sequence using BPM

    Hi All,
    My senario is to append two files data into a  new file on target system, only if the two files are available on source system. In case one file on the source system, no need to process file. Data in the new file should be in sequence means 1st file data then 2nd file data.
    Please suggest me how can i achieve this functionality using BPM.
    Thanks & Regards
    Sreeni

    For the first part (two files required) design as per Prateek's suggestion
    Data in the new file should be in sequence means 1st file data then 2nd file data.
    create a data structure which will be a combined structure of File1 and File2....target structure should have first reference for File1 and then for FIle2....than having two MTs (File1 and File2) at the source and the target MT at the receiver create your mapping......this will ensure that File1 data occures first and then File2 data.
    Regards,
    Abhishek.

  • Batch combine files into one illustrator document - how to open target document?

    I am making a script which will:
    1) Open a folder of Illustrator files
    2) Open each file in the folder (these files are called the source files)
    3) Select all the contents of the source file
    4) Copy the contents of the source file
    5) Paste these contents into a target file as a new layer
    6) Ensure the new layer has the same name as the old source file
    However, I don't know how to tell Illustrator where my target file is. How can I do this?
    Also, when I paste, how can I turn off paste rembers layers. (So the layers get pasted into the new layer that has the same name as the old document).
    Here is my code:
    // JavaScript Document
    //Set up vairaibles
    var destDoc, sourceDoc, sourceFolder;
    // Select the source folder.
    sourceFolder = Folder.selectDialog('Select the folder with Illustrator files that you want to mere into one', '~');
    // If a valid folder is selected
    if (sourceFolder != null) {
              files = new Array();
              // Get all files matching the pattern
              files = sourceFolder.getFiles();
              if (files.length > 0) {
                        // Get the destination to save the files
                        destDoc = document.selectDialog('Select the final saved document', '~');
                        for (i = 0; i < files.length; i++) {
                                  sourceDoc = app.open(files[i]); // returns the document object
                                  var myLayers = sourceDoc.layers; // All layers in Active Document
                                  //Go through all layers of source document and copy artwork
                                  for (i = 0; i < myLayers.length; i++) {
                                            myLayers[i].hasSelectedArtwork = true;
                                  with(sourceDoc) {
                                            var count = pageItems.length;
                                            for (var i = 0; i < count; i++) {
                                                      pageItems[i].selected = true;
                                            redraw();
                                            copy();
                                            for (var i = 0; i < count; i++) {
                                                      pageItems[i].selected = false;
                                  //Create a new title variable that has the title of the source document
                                  var title = sourceDoc.name;
                                  var title = title.substring(0, title.length - 4); //(remove extension from name)
                                  //Close the Source Document
                                  sourceDoc.close(SaveOptions.DONOTSAVECHANGES);
                                  //Open the Destination Document and create a new layer in it that is named after the title variation
                                  var newLayer = destDoc.layers.add();
                                  newLayer.name = title;
                                  //Paste into this new layer
                                  destDoc = app.paste();
              else {
                        alert('No matching files found');
    Thanks in advance for any help   
    Edit: Also, when pasting, how can I paste in place instead of just pasting.

    I have been studying this script. It is similar to what I need except it places the source files (Instead of copying & pasting them)
    http://kelsocartography.com/blog/?p=204
    I have adapted the script to my needs and it works perfectly, except it has the same problem as before: It pastes the first source file, but then it endlessly starts pasting the second source file (in a loop) and so I have to force quit.
    So my new question is, when looping through files how can you get illustrator to move on the next one?
    The original kelsocartography had this line:
    thisPlacedItem = newLayer.placedItems.add()
    thisPlacedItem.file = imageList[i];
    I belive this line is what makes Illustrator move onto the next file, but I am not sure how to adapt it to my code.
    Here is my code so far:
    function getFolder() {
              return Folder.selectDialog('Please select the folder to be imported:', Folder('~'));
    function importFolderAsLayers(selectedFolder) {
              // if a folder was selected continue with action, otherwise quit
              var myDocument;
              if (selectedFolder) {
                        myDocument = app.documents.add();
                        var firstImageLayer = true;
                        var newLayer;
                        var thisPlacedItem;
                        // create document list from files in selected folder
                        var documentList = selectedFolder.getFiles();
                        for (var i = 0; i < documentList.length; i++) {
                                  // open each document in file list
                                  if (documentList[i] instanceof File) {
                                            // get the file name
                                            var fName = documentList[i].name.toLowerCase();
                                            var sourceDoc = app.open(documentList[i]); // returns the document object
                                            var myLayers = sourceDoc.layers; // Select All layers in Active Document
                                            //Go through all layers of source document and copy artwork
                                            for (i = 0; i < myLayers.length; i++) {
                                                      myLayers[i].hasSelectedArtwork = true;
                                            with(sourceDoc) {
                                                      var count = pageItems.length;
                                                      for (var i = 0; i < count; i++) {
                                                                pageItems[i].selected = true;
                                                      redraw();
                                                      copy();
                                                      for (var i = 0; i < count; i++) {
                                                                pageItems[i].selected = false;
                                            //Create a new title variable that has the title of the source document
                                            var title = sourceDoc.name;
                                            var title = title.substring(0, title.length - 4); //(remove extension from name)
                                            //Close the Source Document
                                            // check for supported file formats
                                            if ((fName.indexOf(".eps") == -1)) {
                                                      continue;
                                            } else {
                                                      if (firstImageLayer) {
                                                                newLayer = myDocument.layers[0];
                                                                firstImageLayer = false;
                                                      } else {
                                                                newLayer = myDocument.layers.add();
                                                      // Give the layer the name of the image file
                                                      newLayer.name = fName.substring(0, fName.indexOf("."));
                                                      // Place the image on the artboard
                                                      sourceDoc.close(SaveOptions.DONOTSAVECHANGES);
                                                      //Paste into this new layer
                                                      newLayer = app.paste();
                        if (firstImageLayer) {
                                  // alert("The action has been cancelled.");
                                  // display error message if no supported documents were found in the designated folder
                                  alert("Sorry, but the designated folder does not contain any recognized image formats.\n\nPlease choose another folder.");
                                  myDocument.close();
                                  importFolderAsLayers(getFolder());
              } else {
                        // alert("The action has been cancelled.");
                        // display error message if no supported documents were found in the designated folder
                        alert("Rerun the script and choose a folder with images.");
                        //importFolderAsLayers(getFolder());
    // Start the script off
    importFolderAsLayers(getFolder());

  • How to append records in a file, through file adapter.

    Hi All,
    How to append records in a file, through file adapter.
    I have to read data from database and need to append all records in a file.
    Thanks in Advance.

    Hi,
    I think you have a while loop to hit the DB in your Process (As you said you have to fetch data from DB 10 times if 1000 rec are there)
    First sopy your DB O/P to one var
    and from second time append to previous data.(Otherwise you can directly use append from starting instead of copy and append)
    When loop completes you can transform to File adapter Var.
    Otherwise you can configure yourFileadapter such that it will aapend current records to previous records.
    You can use 'Append= true' in your file adapter wsdl.
    It will append previous records to current records in the same file.
    Regards
    PavanKumar.M

  • How to create Same file names for source and target.

    hi
    Can any body send Procedure for below requirement.
    how to create the dynamic file names for a source and save the file with same name in the Target, because it has to identify that which sender had sent the file and the target file should be again sent back to the customer as a link.
    Please help me.
    Thanks

    Hi,
    See the below link
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - sender file name as receiver file name
    Regards
    Chilla

  • How to create variable record length target file in SAP BODS

    Hi All
    I have a requirement to create target file which will have various record layout; meaning different record length (similar to cobol file format), but this is for the target. Please let me know what is the best practice and how to solution this requirment.
    Thanks
    Ash

    Hi Shiva,
    Thanks for your feedback. My issue is that I have 10 different detail records (each record type is fixed length).
    For each customer account, I have to write to file the header record, the detail records in the exact order, then continue with next account and so on and then write the trailer record. I have given sample layout below. Highlighted text is the record identifier in this exmaple while the underlineds are account numbers. Fields are fixed length right padded with space or 0.
    220700000000SA00    Wednesday     2014-12-12  ASA00034 334 000   ---> (this is header)
    220700000010SA10 AAb   00000+000000+ Akab xxxx bb   0000000000943 3433 --> (detail rec)
    220700000010SA14 AAA  00034354 DDD 000000000+    --> (detail rec)
    220700000010SA15 888e a88 00000000+            --> (detail rec)
    . . . . . remaining detail records
    220700000012SA10 AAb   00000+000000+ Akab xxxx bb   0000000000943 3433 --> (detail rec)
    220700000012SA14 AAA  00034354 DDD 000000000+   --> (detail rec)
    220700000012SA15 888e a88 00000000+           -->  (detail rec)
    . . . . . remaining detail records
    220700000000SA99    Wednesday     2014-12-12  d334 000   --> (trailer is header)

Maybe you are looking for

  • Download Oracle SQL Plus for Queries

    Hello everyone, Could any one let me know whether I can download free version of sql plus in order to build JDBC programs and execute SQL Queries? If so, could any one forward me the url where I can download the free version of sql plus? Thanks, Prat

  • Aperture 3.3 Facebook Issue

    Since upgrading to Aperture 3.3 I constantly get a message that says: "There was a problem connecting to Facebook." If I leave Aperture running for a while the error messages will stack up and I can't quit Aperture. Any ideas/solutions? Thanks!

  • How do you install Co Pilot Live 6 n a nokia n95 8...

    I've tried putting it in its own folder and everything and still cant install it. Please someone help. Message Edited by djteknovibe on 08-Apr-2008 01:57 PM

  • Replication Synchronization Mirroring

    I have a project where I've been asked to provide some (!) fault tolerance. The application is a JDBC/Web application. I've partitioned all the JDBC/SQL stuff into my 'DAO' classes. The app runs on a server with it's own database. My boss wants the a

  • Does logic pro 9 compatible with FCP 10.0.8

    Does Logic pro 9 is compatiblewith FCP 10.0.8 coz when trying to export file from FCP 10.0.8 in .XML format it import in logic pro 9 but only audio comes no video comes