ZIP FileName (Additional Files)

Hi, My sender FTP channel picks two files Main& Additional file suing adavanced options and zips it using Payloadzipbean and writes to the target without any mapping,however the name inside the zipped file is "MainDocument & File"
How can i get the original file name as in the source directory inside my zipped file? I think I need a module for this but not sure how to access the source filenames inside the module any help would be greatly appreciated.
Thanks,

Thanks Ryan, as i cannot attach the screenshot here is how the soap header looks..
<Inbound Message>
<Soap Header>
<Soap Body>
<Payloads>
     MainDocument (application/xml)
     <File> (application/xml)
<Receiver Identification >
The two payloads when doubleclicked opens up the pdf documents, The dynamic Configuration contains the name of the Main Document i.e..
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Inbound Message
  -->
- <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">601070461-601070461-WB.pdf</SAP:Record>
  </SAP:DynamicConfiguration>
Now when I use PayloadZipBean in my reciever File adapter the zip file is written as
Output.zip->when Unzipped>MainDocument &_File_  , with no extensions.
I have tried to include a custom module before PayloadZipBean to set the ContentType of the MainDocument and gave the parameter zip.filenameKey = contentType ,but still the Archive filename in the zip file does not change.
Kindly let me know if you need further info..struggling wid this ) i could send the screenshots to ur mail(if u ok to provide)
Many Thanks,

Similar Messages

  • Deletting the file that has been used in 'Additional Files' in FILE SENDER

    Hi people.
    I've developed an interface that has to send a ZIP file to an email address.
    I pick that file using a dummy file. This file is picked as an attachment and has been defined in 'additional parameters' of SENDER FILE.
    My problem is that i want to delete that 'additional file' once it has been procesed. I think that this could be done running an operating system command.
    My problem is that i don't know how to do this in UNIX systems.
    Can anyone tell me how to delete (in UNIX) a file with name dummy.zip located in folder /usr/sap.../ ?
    Regards,
    Inigo

    You can probably do this by executing a shell script on the server!
    You can only run commands on the PI Server
    See here for details and help on writing shell scripts!
    http://www.injunea.demon.co.uk/pages/page205.htm

  • Access control Exception - additional file in project

    Hello, I'm trying to add 2 files to my project, it all works when I run it by netbeans, but when I try to run it from dist/*.html or dist/*.jnpl I'm getting error :
    java.security.AccessControlException: access denied ("java.io.FilePermission" "\milionerzy\pytania.xml" "read")
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at java.io.File.isDirectory(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
         at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
         at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
         at milionerzy.Pytanie.getPytania(Pytanie.java:33)
         at milionerzy.GameWindow.start(GameWindow.java:53)
         at milionerzy.Milionerzy.start(Milionerzy.java:26)
         at com.sun.javafx.applet.FXApplet2$1.run(Unknown Source)
         at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
         at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
         at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Pytania.xml is inside dist/ Directory
    Code in java :
    Document doc = builder.parse(new InputSource(filename));
    How and where should I add permission for additional files?

    Access the files through the class getResourceAsStream function or sign your app using the documention in the javafx deployment guide or at the net beans site.

  • Adapter Module Filename in File Receiver Channel

    Hi All,
    is it possible to set the Filename in File Receiver Adapter from Adapter Module?
    I know that it is possible to read the data      
    Channel ch = new Channel(moduleContext.getChannelID());
    path = ch.getValueAsString("file.targetDir");
    I Need to set the filename in Adapter Module, using of Payload is not possible because Payload is not xml.
    Dynamic Parameters in Message Header is not possible because it is an multi mapping process an i need dynamic Filename for each Part
    payload after mapping is like
    MainDocument
    SubMainDocument
    MainDocument
    SubMainDocument
    i need special Name for each SubMainDocument in FileReceiverAdapter
    regards
    ralf

    Hello Stefan,
    interface mapping is an mapping  like this:
    outbound_interface => Inbound_Interface1
                                 => Inbound_Interface2
                                => Inbound_Interface3
    in sxmb_moni this looks like this
    Soap_Header
    Soap_Body
    Payloads
         =>MainDocument ( application/xml )
        => SubMainDocument ( text/xml )
         =>MainDocument ( application/xml )
        => SubMainDocument ( text/xml )
    First SubMainElement is routing to FileReceiverAdapeter A   where Filename has to be like "NameA%nr%"
    second SubMainElement is routing to FileReceiverAdapeter B   where Filename has to be like "NameB%nr%" 
    %nr% is som value from the Payload.
    Payload is not xml  because using of Conversion Argent!!
    I Think there is only one Dynamic in Header for all subelements, i have test it!
    ralf

  • Retaining original filename in FILE- SOAP- SOAP- FILE

    We have faced a scenario where I have to retain original filename in File-> SOAP-> SOAP ->File. The issue is that we don't have any ESR objects and neither do we intend to create any. So its purely configuration to transfer file from one folder to another.
    Any suggestion would be highly appreciated.
    Thanks,
    Swati

    Hello Swati,
    Even after trying the above steps suggested by Praveen, if you don't get the results use Dynamic Configurations module in the Receiver channel along with the above settings.
    1) Make sure the above settings are done (given by Praveen)
    2) Assign a new variable as the file name parameter under receiver channel configurations.
    3) Assign the "message:interface_name" value to the variable under Variable Substitution
    4)Under Module Tab do the following:
    Let me know if you still face any further issue.
    Regards,
    Simran

  • JS scripted needed to add custom text plus filename to file info in document title

    Would greatly appreciate any help with this one...
    JS script to add custom text plus filename to file info in document title
    many thanks

    Super :O)
    I have a folder of say 50 images and I want to run a JS script batch
    example in the document title :  image Nr 81205
    custom text is "image Nr" +  file name "81205"
    activeDocument.info.title =" image Nr" + decodeURI(activeDocument.name);
    would this be correct without seening the file ext
    many thanks

  • Additional Files in Sender File Adapter

    Hi
    I have to collect 2 files (IN.txt, IS.txt) and attach 2 files as an attachment to mail.
    So I opted Additional Files in Sender File Adapter
    Source Directory = D:\usr\sap\pitest\LoadTest\Output\Invoice
    File Name = IN.TXT
    Additional Files
    File List <IS.TXT>
    <IS.TXT>.namePart               ".TXT"=".TXT"
    <IS.TXT>.optional                  NO
    <IS.TXT>.type                       TXT
    But I am able to Pick only one file (IN.TXT) from the Source Directory.
    IS.TXT file is not at all picking.
    Please give me your suggestion.

    I reply just want to close this issue.
    if file Name = Item.TXT and additional file name is ItemText.csv then configuration as following.
    File List <Item.TXT>
    <IS.TXT>.namePart               ".TXT"="Text.csv"
    <IS.TXT>.optional                  NO
    <IS.TXT>.type                       TXT
    for namePart parameter, we should give the str which need to be replaced. for your example, we could give as <IS.TXT>.namePart               "IS.TXT"="IN.TXT"
    replace all the file name.

  • Get additional file attachements with file adapter

    Hello,
    Has anyone ever had the following situation:
    A Sender interface sends a little bit of data to XI.
    This data contains the filenames of some files on a FTP server.
    Based on these filename the file needs to be retreived from a FTP server and further handled as an attachement of the XI message?
    Is it possible to trigger a sender file adapter with a variable directory and filename from XI, in a BPM or Mapping?
    Warm Regards,
    Leon Boeijen

    hi,
    >>>>Is it possible to trigger a sender file adapter with a variable directory and filename from XI, in a BPM or Mapping?
    no it's not possible to start a file adapter from BPM
    you can use a java proxy that will do the trick
    we've used a solution like this many times with no big issues
    remember that it's better to use an async java proxy
    (with correlation) then a sync one...
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to read data from a zipped MS Access file?

    How to read data from a zipped MS Access file?

    RPJ,
    You do not need to use the Close Zip File.vi when you unzip a folder.  This VI is used when you are creating a zip folder.
    As for examples, I found a couple of ActiveX based MS Access examples.  These programs look to be pretty basic.  For more in depth example I would search Microsoft Developers Network
    http://zone.ni.com/devzone/cda/epd/p/id/2188
    http://zone.ni.com/devzone/cda/epd/p/id/1694
    Regards,
    Jon S.
    National Instruments
    LabVIEW R&D

  • Zip a text file and send as email attachment

    Hi,
      I have a requirement to zip a text file and send it as an email attacment. I saw many posts with similar discussion on the forum but none gave me a very clear answer. Have anyone done this? If so please help.
    Regards,
    Hari.

    Hi Durairaj,
    I am working in ECC 6.0 and all ZIP classes are available in my system. I am converting the ABAP spool to PDF. My PDF is too long (57MB) that i need to convert it to ZIP  before i send it as a mail attachment. How do i do this?
    Thanks,
    RS

  • How to zip a text file and send as email attachment in SAP version 4.6c?

    Hi Guru,
    How to zip a text file in SAP version 4.6c which doesn't have class CL_ABAP_ZIP?
    Please help.
    Thanks & Regards,
    Ari

    Hi,
    Try this link
    [http://sap.ittoolbox.com/groups/technical-functional/sap-dev/sapr3dev-zip-file-from-sap-1707099?cv=expanded]
    Cheers,
    Surinder

  • Time Machine: External Hard Drive with Additional Files + Back-up

    Hi-
    I am hoping someone can clarify something for me. I use a 500GB external drive (WD-My Book) to back-up my macbook periodically (2x month). I also use this same external drive to store additional files from an old computer.
    I just spoke with some folks at Apple and they confused me and made me think that I might have inadvertently deleted some of the original non-back-up files. However, I have scoured the drive and everything seems to be there IN Addition to the backups.backupdb folder.
    Can someone reassure me that I have not somehow corrupted/lost either the original files or the back-up files?
    I have read the tutorials posted in 2009 - and realize that I should have partitioned the drive, but I didn't. Moving forward I will purchase a dedicated drive just for back-ups - but want to be able to sleep tonight and not worry . . .
    Thanks!

    claisb wrote:
    Wow-Thanks again.
    Apple Support was marginally helpful. After the rep told me I probably lost data, my anxiety rose . . .
    My original Time Machine question to Apple Support =
    My MacBook cannot handle all the media I have. So, I bought a Seagate 1TB to hold movies, photos, and music. If I have the 1TB Seagate plugged in to my MacBook at my designated back-up time, will Time Machine back both the HD and Seagate 1TB to a new (yet-to-be-purchased) 2TB External drive (which will be purchased solely for Time Machine files)?
    Yes, as long as both are formatted for a Mac (see #1 in Formatting, Partitioning, Verifying, and Repairing Disks).
    The Seagate might have been automatically excluded from backups; if so, it's easily removed, via Time Machine Preferences > Options. If it's listed in the exclusion box +*in black,+* (while it's connected) just select it and click the minus sign at the bottom. If it's listed in gray, it's not formatted properly -- Time Machine can't back it up, and you can't remove it from the exclusion list.
    I'm having a difficult time knowing if I'm utilizing Time Machine properly. Since I have a MacBook it doesn't make sense for me to have Time Machine continuously running in the background. So, I only back-up 2 or 3 times a month. And, each time - I seem to get nervous that I'm not doing something correctly.
    Time Machine was designed to back up hourly. On a desktop Mac, it's best to let it do just that.
    On a laptop, of course, that's rarely practical. But you probably should back up more often -- when your internal HD fails (they all do, sooner or later), or something else awful happens to your Mac, you risk losing everything you've done since the last backup. Think of your Address book, browser bookmarks & history, documents, and especially your media files.
    You might want to consider backing-up over your network. It doesn't sound like you also have a desktop Mac, but if you do, you can back up to a "shared" drive on it.
    It's a lot more money, but Apple designed the Time Capsule as a combination wireless router and hard drive specifically for Time Machine backups. Most folks do the initial backup while connected via an Ethernet cable, but subsequently Time Machine can do those hourly backups wirelessly, as long as your Mac is awake and in range of the Time Capsule. See http://store.apple.com/us/product/MC344LL/A/Time-Capsule-2TB?fnode=MTY1NDA0Mg&mc o=MTMzNzU2MjI
    But as long as you're diligent about doing your backups regularly via an external drive, a TC may not be worth the big bucks, especially if you already have a wireless router.

  • What is the use of additional file(s) in  sender file adapter?

    Hi experts,
    what is the use of  additional files parameter in sender file adapter?
    give me some example.......
    Thanks & Regards
    E.Ravi Chandra Reddy

    Hi,
    please check the below link,
    you can specify additional files to be included in the XI message as attachments.
    http://help.sap.com/saphelp_tm90/helpdata/en/44/692ab8a4b633eae10000000a1553f6/content.htm
    Regards

  • How can i access filename from file (sender)

    hi All,
    can anybody tell me
    how can i access filename from file (sender)?
    thank u
    swari

    See:
    "SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean"
    SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean
    "Accessing Adapter-Specific Attributes through User Defined Function"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516

  • Specifying Additional Files in an FTP Sender Adapter

    Hi,
    Has anyone worked out how to specify additional files in a File/FTP Sender Adapter using the FTP transport protocol? This functionality comes 'standard' in the File/FTP Sender Adapter using NFS transport protocol so that additional files can been included as attachments, however, it doesn't seem to be available when trying to use the FTP protocol.
    Thanks in advance.
    Regards,
    Reuben.

    Yes this is available in only NFS mode check sap help
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/frameset.htm
    Thanks!

Maybe you are looking for

  • Vista problems with iPod reset utility

    I can't even run the installation program. I keep getting a message saying that "iPod Reset Utility requires that your computer is running Windows 2000 or Windows XP". My OS is Windows Vista. Anyone have any solutions? Many thanks...

  • 16:9 Resolution List | Why The 1.85:1 or 2.39:1 Ratio Wasn't Standardized?

    Hi. The 16:9 resolutions can be seen on the Display Control Panel in the System Preferences but where can a complete list of just 16:9 resolutions be had including those below 1280 x 720 if any and those above 2560 x 1440 for future displays higher t

  • Crash while merging pdf's

    I have an application written in  vb.net using IAC calls to acrobat to merge a series of pdf's.  It is installed on 10 different PC's running acrobat 9.3 pro on XP pro.  On three of the PC's the application periodically crashes when it tries to open

  • Interface between SAP and OSI - PI

    Team, Appreciate your response for a query from a customer. Find below Kindly help us to get some more details from SAP about the connectivity between OSI-PI system and SAP (PP,EHSM and QM). Because, we might use only for one way communication (pull)

  • Books and INDD

    I have searched long and hard and cannot find my answer ANYWHERE. My company deals with spec sheets (hundreds of spec sheets). They need to be updated on a weekly basis in some cases. Right now, the same spec sheet is duplicated among many catalogs,