File conversion and append file in receiver file adapter

Hi
I have a batch IDoc -> XI(3.0) -> file scenario with file conversion to create a flat CSV-like file. The problem is that because of the amount of data sent from R/3 (~20000 employees), the idoc is split into several idocs. In my receiver file adapter I want to append all the idocs contained in this data transfer to one flat file, before transmitting to FTP server.
For the next batch transfer (the next day) XI should start all over and create a new file and append all idocs contained in that transfer before transmitting the flat file to FTP server.
Can this be done using the 'Use Temporary File' and 'Append' options in the FTP connection Parameters in the comm-channel?
It is not an option to append the file in the FTP-server, because the files in the destination folder are moved immediately after arrival, so the file will be moved before file adapter can append all the files.
Does anyone have any suggestions to how to solve this?
Br
Kenneth

Hi Kenneth
Did you ever get a solution to this problem?
Regards
Russel Irvine
[email protected]

Similar Messages

  • Problem in Append Option at Receiver File Adapter

    Hi all,
    Iam doing Idoc---File scenario and doing FCC at receiver side.
    Iam using Shared Folder ( '
    sapdevxi\Files\XI_TEST\ ) to drop the files at receiver end. and set the File construction mode as APPEND
    I send one Idoc and created file at taregt Directory, now file is still there in target directory.
    now i sent 2nd Idoc , this time it should be append to the already existing file.
    But it is saying the error in Communication channel monitoring
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Target file '
    sapdevxi\Files\XI_TEST\item.txt' already exists and must not be overwritten
    Please suggest me
    Regards

    Hi Aamir,
    Iam droping the files on to my DEVXI Server itself, it is on Windows 2003 Server.
    The same is functioning on Pruction server, its strange, plz suggest me
    Regards

  • Setting up the File Name of email Attachment from Received File Name

    Hello All,
    I have to send the Received File in attachment to an Email if there is any exception. Here I can attach the file, but I cannot set the file name of attachment as the Received File Name. Is there anyway of doing this without using custom pipeline component.
    Here I am using the Orchestration and SMTP Adapter.Any help is greatly appreciated.
    Thanks

    It might work if you use a custom pipeline component on your send port and in the Execute method populate the MIME.FileName property of the body part.
    Something like:
    public IBaseMessage Execute(IPipelineContext pc, IBaseMessage inmsg)
    string filename = inmsg.Context.Read("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties");
    inmsg.BodyPart.PartProperties.Write( "FileName", "http://schemas.microsoft.com/BizTalk/2003/mime-properties", "filename);
    return inmsg;
    You can take reference from similar post here
    SMTP - Setting attachment filename
    Anther good article with MIME is here
    Setting attachment filename with the SMTP Adapter
    For MIME case your SMTP message construct statement would be like below
    multipartMessage.MessagePart_1= InMSG;
    multipartMessage.MessagePart_2="This is message part2 as a string";
    multipartMessage(SMTP.Subject) ="Email From Dynamic Port";
    multipartMessage(SMTP.From) ="[email protected]";
    multipartMessage(SMTP.SMTPHost) ="yoursmypserver.com";
    multipartMessage.MessagePart_2(MIME.FileName) = "Attachment_Name";
    multipartMessage(SMTP.SMTPAuthenticate) =0;
    Thanks
    Abhishek

  • I am trying to install Illustrator C6 on new system (Win8.1), Already de-activated from old system.  I downloaded the 3 files.  First file opened and had fonts, but second file (1.8Gb) does not open; does not appear to have an exe file. How do i install?

    I am trying to install Illustrator C6 on new system (Win8.1), Already de-activated from old system.  I downloaded the 3 files.  First file opened and had fonts, but second file (1.8Gb) does not open; does not appear to have an exe file. How do i install?

    what files (names and extensions) did you download?
    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 |12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.
    window using the Lightroom 3 link to see those 'Important Instructions'.

  • Appending data in receiver file adapter

    Hi EveryBody,
    I have an IDOC to File Scenario.I need to create a flat file in the receiver file adapter directory and want to append the data in the same file every time the IDOC is trigged.I have File Construction Mode as Append but still i am not able to append the data.It gives the following error : <b>Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: file already exists and must not be overwritten</b>

    Hi,
    In Order to Append the files do the following. It worked in my case.
    >change the file creation mode to create and select the check box for overwriting the file
    >After selecting the check box change the file creation mode to Append.
    You should be able to append the files now. Please award points if it works.
    Regards,
    Saipriya.

  • Excel file(.xls) as attachment and Body(Signature) via Receiver Mail Adapter

    Hi PI Experts,
    I have a requirement File(.txt) - PI(7.4) - mail (.xls attachment and signature in the body). Can anyone pls help me with the best approach to send excel file as mail attachment and signature in the body.
    Thanks,
    Sri

    Hi
    You can try this approach
    1. use mail package and java mapping to populate the mail package.
    inside the java mapping do the following
    a. read the text file and convert it to excel and then set it as additional attachment.
    b. map the signature and body with the field 'content' of mail package.
    2. on the receiver mail adapter check both mail package and keep attachment options.
    Hopefully this will work.
    Reference links
    excel write : Excel and Java - Read and Write Excel with Java - Tutorial
    set attachment: How to save MainDocument as additonal attachment in sender channel?

  • Conversion of XML tags in receiver file adapter

    Hi All,
    I am sending one xml file to receiver file adapter.
    But in case of receiver side I need to change the tags in XML structure,
    eg:
    if source aml file  has tag <NAME> then in receiver case I need to convert it to <FNAME>.
    How will I achieve it?

    Hi
    I also have the similar query
    The output message we get from XI has following format
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns1:name xmlns:ns1="urn:xiworkshop:changetag">
      </ns1:name>
    I want an xml with following format
    <?xml version="1.0" encoding="UTF-8" ?>
    <name>
      </name>
    I need to write the file with with this structure and format using file adapter.
    Can I do so in File adapter or mapping is required for the same?
    Any suggestion would be highly appreciated(with points obviously )
    Regards
    Vanita thareja

  • Video File Conversion and Adobe AIR

    Hello guys
    I want to work on a simple app which will actually convert large size video files to small size video files. It will be a multiformat (and atleast supports .flv)
    But i have no idea where to start!
    I mean how to achive this file conversion thing.
    Any blog, library or resource will be highly appreciated appreciated
    Bunch of Thanks

    Thanks a lot for the reply
    I have not yet tried Alchemey, Is it available to download?
    Secondly, I want to do all the conversion locally, So MERAPI might be a good choice, Let me try it
    Thanks once again

  • Acrobat X doing PS to PDF conversion and can view the PDF file in the Lower version?

    Hi,
    I am converting the Postscript file to PDF file using Acrobat X, but the end user is having the Acrobat older version. Can we use the lower Acrobat version for the viewing? Also it's under EULA?
    Thanks for looking into this.
    Thanks,
    KSK

    If you make PDF 1.7, Acrobat 6 and later can handle the file.
    If you make PDF 1.6, Acrobat 5 and later can handle the file.
    A little more on EULA: this is not official, but I have seen a lot of discussion in these forums about it. It seems to be that you cannot use Acrobat (or Distiller from Acrobat) as a server process, automating creation of PDF for others without the control of an individual even on a desktop.
    So, if these PostScript files are made by an individual who runs Distiller, this is fine.
    If the individual puts files from anywhere into Distiller that is fine.
    It is not fine if PostScript files are delivered from somewhere else and automatically processed.
    It is not fine if PostScript files are made automatically on this machine and automatically delivered to the file server for others to read.
    Distiller is for making files for its licensed user to read, or to share themselves manually.

  • Dynamic file name of the attachment in receiver mail adapter

    Hi
    I have configured a receiver mail adapter which receives the payload as an xml attachment.
    Right now the file name of the attachment is hardcoded to "invoice.xml".
    I want to set it to dynamic ie. instead of "invoice.xml"... i want it as "invoice<invoicenumber>.xml".
    Invoice number is present in the payload.
    please suggest a solution w/o the need to develop a custom adapter module.
    Thanks!
    Regards,
    Faria Mithani

    Hi,
    Go through this thread..
    Dynamic  File Name for Receiver File Adapter
    Regards,
    Sarvesh

  • File to JMS Scenario - Error is Receiver JMS Adapter

    Hi,
    I am working on File to JMS scenario. I have deployed all required jars for MQ 6.0.2 in SDM. Create all MQ related objects. I am getting following error for Receiver JMS adapter in CC Monitoring.
    Please let me know if I have missed anything. Is there anything to do in Visiual Administrator->JMS Provider or JMS Connector for these kind of Scenarios?
    Thanks in Advance...
    Error during channel initialization; exception trace: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'sap:QM_APPLE'
    at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:586)
    at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2110)
    at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1532)
    com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
    MQJE016: MQ queue manager closed channel immediately during connect
    Closure reason = 2009
    at com.ibm.mq.MQManagedConnectionJ11.(MQManagedConnectionJ11.java:212)
    at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:318)

    Hi,
    I have made my Qmanager as default Qmgr. Now the error is :- Socket connection attempt refused
    Recv JMS Communication Channel Error:-
    Error during channel initialization; exception trace: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'sap:QM_APPLE'
    at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:586)
    at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2110)
    at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1532)
    com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2059
    MQJE011: Socket connection attempt refused
    at com.ibm.mq.MQManagedConnectionJ11.(MQManagedConnectionJ11.java:212)
    at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:318)

  • Multiple files picked and to zipped at target file system

    Hi
    In my scenario multiple files to be picked from FTP server by using Sender File Adapter then it has to be Zipped at the receiver file system.
    Please help me in this scenario.
    Sri

    Hi,
    >> In my scenario multiple files to be picked from FTP server by using Sender File Adapter then it has to be Zipped at the receiver file system.
    First you need to pick multiple files by using advance selection source at file sender adapter.
    Once it' is  picked use module name is: AF_Modules/PayloadZipBean in receiver file system for zipping files
    Pls ref the blog :
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    Abid Mazhar.

  • Reduce File Size and Optimise PDF both increase file size

    Hi All
    I have exported a pdf (our college mag) at smallest file size from Indesign CS4 for online use. The problem is the resultant file size is a little under 19Mb. Using both or either Reduce File Size or Optimise functions simply result in an increase to 22Mb. The document is packed with images however I would have thought one or both of these processes would have helped reduce the file size to a more manageable download file size.
    A pdf is also produced to go to print so simply compressing all images prior to imcuding them in Indesign is not a preferable option - this would mean creating two separate Indesign documents, something which I would rather avoid if possible.
    Any help would be greatly appreciated as always.
    The file reside here if anyone cares to take a look http://www.ayrcoll.ac.uk/index.php?name=UpDownload&req=viewdownload&cid=11&orderby=dateD  It's the latest release (September 09)
    Thanks
    Colin

    You might want to do an audit of the PDF (button in PDF Optimizer) and try to figure out what the various parts are. It shows 58% is content streams (sorry, but I am not sure what that is), 26% is overhead, and only 12.7% is graphics. Since you are not storing bookmarks and such, you might want to try going back to ID and printing to the Adobe PDF printer for a comparison. It may be one technique is more efficient than the other.
    When I used the optimizer, the file did get larger. When I used Reduce File Size, it got slightly smaller. The key may be in figuring out what the various parts are from the audit. You might try copying one page of ID to a new document and play with various versions - different fonts (all were embedded and that is probably best), variations on graphics, etc. That is all I can suggest since I would simply be playing with different ways to produce the document and looking at what is causing the bloat. When the Images are only 12.7% and the fonts less than 1%, there is something going on to produce the size, and those 2 are typically the killers. I would mention tags that tend to bloat, but you do not have any (normally used for assessibility).
    You might want to try some of the preflight checks to find issues. I did the transparency check and got 170 instances in 22 pages. Flattening the page may help. There were some pages that seemed to be very bad. However, I did not get a big file size reduction. I did not get a lot of improvement by printing to a new PDF either. Certain pages seem to be part of the bloat problem. The print took a long time around pages 11 and 22.
    One troubleshooting technique would be extract pages to separate files and look at the details of each page to see what is causing the issue.
    Need to go. Good luck.

  • What is the correct way to format file paths and names in the structapp file?

    I am trying to create a structured application to export fm files as xml, and probably read the xml back to fm.
    In the structured application file (structapp), I need to specify the locations of the various files (DTD, read/write, template, etc). I would like to place these files on a shared server so others can use the same structapp file (that is, a cop of it). What is the correct way to format the file paths and names? Can folders folder names and file names have spaces in them? I tried the following, for example:
    \\serverName\shareName\folder 1\folder 2\file name.dtd
    I use the same format for the template file and the read/write rules file.
    When I try to save an fm file to xml, FrameMaker says that it cannot read the DTD; however, the resulting xml file appears to be well-formed. The DOCTYPE element in the resulting xml is formatted with forward slashes and spaces replaced with %20.
    I tried using forward slashes and replacing spaces with %20, but then I get an error about reading the read/write rules.
    NOTE: I have another structured application to read xml into fm. This application does not have a DTD file. The template and read/write rules files are specified as above. Except for complaining about a lack of a DTD, the application works fine; it even applies an XSLT in the process. Again, when I DO add a DTD to this latter application, I get the same complaint about not being able to read the DTD.
    I am using fully patched FrameMaker 9 in Windows XP.
    Thanks,
    Van

    Hi Van,
    The XML parser and FrameMaker are not the same thing. The Error Log says which component created which message. The XSL processor is another option that can throw messages. The "\\server\path\some.dtd" syntax in structapps.fm seems to be fine for some tools, as Internet Explorer with XML tools successfully finds the DTD which appears as "//server/path/some.dtd" in the XML. But apparently Xerxes, the XML parser bundled with FrameMaker, does not like this notation.
    If you have a path with a drive letter, "H:\path\some.dtd", FrameMaker turns that into "file:///H:/path/some.dtd". It seems, Xerces would like to see "file:/" in front of absolute paths.
    This is what I have in structapps.fm:
    Template: \\server\path\projecttemplate.fm
    DTD: some.dtd
    Read/write rules: \\server\path\projectrules.txt
    DOCTYPE: …
    Entity locations
      Entity search paths
        1: \\server\path\
    In the structapps.fm I have the DTD without path information. The resulting XML (without XSL postprocessing) then contains just the file name with a relative path back to the book folder (when saving a book as XML). It therefore requires the DTD to be available at this place. I handle this using an event script that fires for NotePreSaveXml and copies the DTD to the folder of the original document.
    As I always use XSL postprocessing and using XSLT1 it is not possible to have the doctype-system as a parameter I have this in my XSL stylesheet:
    <xsl:output doctype-system="some.dtd" />
    For the resulting XML the DTD is expected to be in the same folder as the XML file. This is handled by the same event script as above, it therefore copies the DTD to the source and the target folder.
    Bottom line: If you want/have to use UNC paths, you have to do some programming to work around a FrameMaker bug.
    - Michael

  • GID file recreation and unable to locate HLP file

    I am currently using RoboHelp Office Version 2000 to compile
    our Help System. Our application users are experiencing an error:
    "Cannot locate the <projectname>.HLP file. Do you want to try
    to find this yourself?" This error has been occurring since we
    decided to move the RoboHelp files into their own HELP directory
    instead of residing in the application executable directory. I
    tried deleting the GID file. After opening the Help System (the GID
    file then gets re-created), the error does not occur until running
    a Search or Find command. Is it a requirement that the Help files
    reside in with the application executable? If not, is there a path
    to the HLP file that gets stored in the GID file that could
    possibly cause the search engine to look in the wrong place for
    this file?

    The USB drive is formatted as NTFS. It can be read, but not natively written, on a Mac. If you want to drive to be both readable and writable on both platforms, it should be formatted as FAT32. To do that, you have to back up and erase it.

Maybe you are looking for