Pdf File Adapter

Hi All,
What should be done to send a PDF file by File adpater?
Edited by: Alfredo Rivera on Aug 18, 2010 10:35 PM

If you want to send PDF file ,You want to convert the content of the PDF file to XML ,conversion required??? or just you want to move from one location to other location using File Adapter??
If you want to move with IR objects you can do that,but if you want conversion you may need to write Adapter modules and attach to File Adapter.
REFER BELOW HOW TO DOCUMENT
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9913a954-0d01-0010-8391-8a3076440b6e?quicklink=index&overridelayout=true
Regards,
Raj

Similar Messages

  • PDF files in sender file adapter

    Hi,
    Can XI pick up pdf files (.pdf)  from a folder using File Adapter?
    If yes can u send me some blogs on this?
    Thanks in advance.

    Hi,
    It can be done by bypassing the payload from Integrationg engine.In this case this case XI will not process the PDF file but jus picks up the file from sender side and places it on the target side with no translations and message processing.No IR is required in this case.ID is enough.The file go thorough Adapter Engine it self.
    Jus follow the link provided it works.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/filetofilewithoutusingwithIntegration+Repository
    But if u want to read the contents of the PDF also then there is no other way than writing the Javabased Moudle and configure it .
    Thanks,
    Ram.

  • Pdf files in FILE Adapter

    Hi All,
    I just wanted to know whether we can process pdf files through FILE adapter in XI.
    If yes, Kindly let me know the procedure.
    Thanks in advance,
    Sudhasree.

    There are a lot of info about processing PDF files on [SCN|http://www.sdn.sap.com/irj/scn/advancedsearch?query=howtoPDFconversionagent]
    One of them:
    [How to Receive and Convert PDF Documents with SAP Exchange Infrastructure (NW2004)|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9913a954-0d01-0010-8391-8a3076440b6e]
    BR,
    Dzmitry

  • How to Write a PDF using File Adapter

    Hi All,
    Can anyone please let me know how to create a PDF file at the receiving end using a File Receiver Adapter. The source is an XML file. The scenario is as follows.
    XML-File ---> XI --->PDF-File.
    Any help would be highly appreciated.
    Thanks in Advance
    Anil.

    hi ,
    if u r using pi7.1 you  can  use agents concept.
    please find the links.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/43/fc39c16bfb025ee10000000a1553f7/frameset.htm
    How to get started using Conversion Agent from Itemfield
    More on the SAP Conversion Agent by Itemfield
    Integrate SAP Conversion Agent by Itemfield with SAP XI
    Conversion Agent a Free Lunch?
    How to get started using Conversion Agent from Itemfield
    https://websmp102.sap-ag.de/~sapdownload/011000358700001090982006E/ConvAgentDocSP16.zip
    https://websmp102.sap-ag.de/~sapdownload/011000358700004921152005E/ConversionAgent.pdf
    XI: Generate PDF file out of file adapter
    XI: Read data from PDF file in Sender Adapter
    The specified item was not found.
    regards,
    navneet

  • Creating PDF files using file adapter

    Hi,
    Is it possible to create a pdf file using, File/FTP adapter? If yes can someone please suggest how to do it.
    Thanks,
    Phani

    Hi Phani,
    I would say pdf files are binary files with a specialized format.
    You can move pdf files through BPEL or ESB (i.e. file/ftp -> file/ftp), or from file to database BLOB and database to file, by importing the schema as opaque.
    However I doubt that file adapter can create PDF files from a plain-text xml file, i.e. as PDFCreator would.
    In a sense a pdf file is much like a jpg, mp3, or zip file, it can be passed through bpel but not created.
    In other words if you have a base64Binary element in xml, that you know is the complete bytes to a pdf, jpg, or other file, you can write it out as a file using the File adapter.
    Thanks
    Steve

  • File Adapter giving Translation error while reading & moving pdf files

    Hello Gurus,
    I am on SOA 10.1.3.4 and using BPEL for the below procedure.
    The requirement I have is to move pdf files from one local directory to another as soon as the pdf files land in source directory. So I used a file adapter (FileAdapter_1) to poll the file and read as an opaque schema. Then I copied the name and directory in a header variable and passed the header variable to another file adapter(FileAdapter_2) which moves the file from source to target directory. The jca operation for FileAdapter_2 is as follows:
    <jca:operation
    InteractionSpec="oracle.tip.adapter.file.outbound.FileIoInteractionSpec"
    SourcePhysicalDirectory="foo1"
    SourceFileName="bar1"
    TargetPhysicalDirectory="foo2"
    TargetFileName="bar2"
    Type="MOVE">
    </jca:operation>
    It is working fine for all 90% of pdf files, but some files are failing with the following error in domain.log file.
    2012-02-24 11:15:12,170> <DEBUG> <custst1.collaxa.cube.translation> <TranslatorFactory::log> Inside TranslatorFactory
    <2012-02-24 11:15:12,170> <DEBUG> <custst1.collaxa.cube.translation> <TranslatorFactory::log> using version attribute = NXSD
    <2012-02-24 11:15:12,170> <DEBUG> <custst1.collaxa.cube.translation> <TranslatorFactory::log> loading xlator class...oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl
    <2012-02-24 11:15:12,174> <DEBUG> <custst1.collaxa.cube.translation> <TranslatorFactory::log> class loaded
    <2012-02-24 11:15:12,174> <DEBUG> <custst1.collaxa.cube.translation> <NXSDTranslatorImpl::log> Starting translateFromNative using InputStream
    <2012-02-24 11:15:12,174> <DEBUG> <custst1.collaxa.cube.translation> <XlatorHelper::logDebug> validating payload size
    <2012-02-24 11:15:12,175> <INFO> <custst1.collaxa.cube.activation> <File Adapter::Inbound> Error while translating inbound file : Sample.pdf
    <2012-02-24 11:15:12,175> <INFO> <custst1.collaxa.cube.activation> <File Adapter::Inbound>
    ORABPEL-11104
    Error while translating.
    [Line=1, Col=5] The value "%PDF" read from the native data, from the specified position, using "choiceCondition" as "fixedLength" and "length" as "4", doesnt match any of the "conditionValue" on the particles of choice model group.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.parseNXSD(NXSDTranslatorImpl.java:1312)
    at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.parseNXSD(NXSDTranslatorImpl.java:1142)
    at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.doTranslateFromNative(NXSDTranslatorImpl.java:748)
    at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.translateFromNative(NXSDTranslatorImpl.java:509)
    at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:846)
    at oracle.tip.adapter.file.inbound.ProcessWork.processMessages(ProcessWork.java:380)
    at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:231)
    at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
    at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:280)
    at java.lang.Thread.run(Thread.java:595)
    <2012-02-24 11:15:12,175> <INFO> <custst1.collaxa.cube.activation> <File Adapter::Inbound> Since a translation exception was thrown, this indicates that it is a non-debatching scenario.
    <2012-02-24 11:15:12,175> <INFO> <custst1.collaxa.cube.activation> <File Adapter::Inbound> Failed to translate file : {common/InboundFiles/Sample.pdf}
    Thanks in advance for your help.......

    As stated in my Original Post, I am using opaque schema for both the adapters, still not sure why the adapter is going through native translation.

  • Can XI produce a PDF format files using a file adapter

    Hi,
    Currently I have a requirement to send a PDF file to the legacy system. I'm not sure whether XI has the capability to do this. Appreciate if somebody could help me on this. The requirement is like from SAP we will send a data stream to XI and XI has to produced a form in PDF by populating the data on the PDF layout.
    Appreciate if somebody have any experienced with this development can share with me.
    Thanks
    Zab

    Hi,
    there's a number of command line tools
    that you can trigger using the file adapter - command line paramater (even with "output format management" )
    like:
    http://www.xmlpdf.com/xmlpdf-examples-net.html
    http://www.yeslogic.com/prince/guide/command-line
    just go to google and you'll find many more:)
    BTW
    form help.sap.com
    When the operating system command is called, the file name currently being processed can be specified with the following placeholders:
    - %f (file name)
    - %F(absolute file name including path)
    Regards,
    michal

  • Accessing .pdf file using file adapter

    Hi,
    I have a requirement in which I am getting a .zip file which contain 3 different .pdf file, that need to be posted to ECC server.
    The business expecting the data to be posted to ECC using RFC or Proxy.
    I can unzip the file using payloadZipBean but  as far as I know file adapter cant read .pdf  and convert it to XML.
    I am working with PI 7.0 so cant use the Agent concept .
    what could be the other possible solution.
    regards,
    Navneet

    Hi christian
    as you said we can do the file transfer using the dummy interface.
    and the below link is also saying that ,it can be work for any adapter type.
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository .
    I have tried it .
    here I defined one sender file adapter and using the payloadzipBean to unzip the content.
    and in receiver side created the Xi channel to post the payload into the ECC server. here i am using the dummy interface at receiver agreement that does not exist in IR.
    I am getting the successful flag in PI (sxmb_moni) but could  not recognize that where the payload get posted in ECC,as I have not created any proxy for dummy interface.
    even we cant monitor the XI channel in RWB.
    can any buddy help me in getting that where the payload get posted.
    regards,
    Navneet.
    I

  • How to read pdf file using file adapter

    Hi..
        How to read pdf file using file adapter?
    regards
    Arun

    Hi
    This may help you
    /people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter
    /people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover
    ---Ram

  • Reading PDF using File adapter

    Hi All,
    I went through the blog
    /people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter to read from PDF. Also I have got all the jar files reqd. I dont know how to proceed. Can you pls help me out. Where I have to deploy the jar files add where I need to use this code?
    Any help is appreciated.
    Thanks & Regards,
    Jai Shankar.

    Hi Jai,
    If your requirement is just to transfer a PDF document from one file system to another without any transformation,then probably u can follow these steps, else if you can explain your scenario,it would be helpful.
    Do the folllowing:
    1. Create a dummy Data Type.
    2. Create a Message Type for the Data Type of step 1.
    3. Create the outboundand and inbound message interaces using the Message Type of step 2.
    4. No Message amd Inteface Mapping is required.
    5. In Configuration , create a Receiver Determination, Interface Determination , Sender and Receiver Agreement as usual. But when it comes to Interface Determination, there  dont specify any INTERFACE MAPPING.
    Regards,
    Abhy

  • Reading PDF file through BPEL file Adapter

    Hi,
    We have a requirement where in we have to read PDF document. We have to use the data coming from the PDF.
    We checked "Native format not req" check box in File Adapter and could get the PDF data in some other format but are not able to read required data from it.
    Help in this regard is highly appreciated.
    Regards,
    Manasa.

    File adapter at present does not help in reading pdf data.
    to do this, you might wanna have a java program interface between your pdf and bpel.
    Message was edited by:
    AshishSharma

  • Unable to read PDF files created by FTP Adapter

    Hi,
    I am unable to read pdf files generated by FTP Adapter with its default settings.
    Can anybody guide me how to proceed with it. I guess I need to change something in encoding mechanism in FTP Adapter Outbound Connection Pool, but not sure what has to be.
    Thanks,
    Richa

    Hi all,
    I have got its solution. I was unable to read .pdf files because FTP adapter  was sending the files just by changing the extension from .txt /.xml to .pdf that is the reason that it was not readable.
    We had to write an java code to convert .xml file to .pdf file and then paas it to FTP ADapter.
    Thanks

  • How to write adapter module to convert the xml to pdf file

    Hi all,
      how to write adapter module to convert the xml to pdf file.
    Please any body assist step by step procedure.

    PI 7.1 XML to PDF transformation
    have you seen below links:
    http://forums.sdn.sap.com/thread.jspa?threadID=1212478
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/14363

  • PDF attachment via File adapter

    Dear Friends,
    I have a scenario like as follows :
         *SAP ECC -
    > PI -
    > SQL Database(external system )*
         *External system  -
    >  PI  -- (pdf attachment)----
    > Customers*    
    SAP sending the material number to SQL database via PI.
    In turn SQL database  will  take the corresponding material number and perform certain internal processing logic. Finally it will generate a pdf file.It will place the PDF file in a folder in that system
    Now PI need to fetch  that pdf file from thefolder and send the pdf attachment to external customers via email.
    How can we fufill this requirement?
    Please give your guidance friends.

    Subasree wrote:
    Dear Friends,
    >
    >  I have a scenario like as follows :
    >
    >      SAP ECC -> PI -> SQL Database(external system )
    this will be a normal IDoc/RFC/Proxy to JDBC scenario
    >                                               
    >      *External system  -
    >  PI  -- (pdf attachment)----
    > Customers*    
    >
    >    
    > SAP sending the material number to SQL database via PI.
    >
    > In turn SQL database  will  take the corresponding material number and perform certain internal processing logic. Finally it will generate a pdf file.It will place the PDF file in a folder in that system
    >
    > Now PI need to fetch  that pdf file from thefolder and send the pdf attachment to external customers via email.
    >
    > How can we fufill this requirement?
    >
    > Please give your guidance friends.
    In this case it will be a file to mail scenario.
    In case you want to attach the pdf file in the mail, then use the payloadswapbean and help you develop this
    refer: http://www.sdn.sap.com/irj/scn/advancedsearch?query=mailadapterattachment#sdn_content_category_value_blogs

  • KeyFieldValue in Sender File Adapter Not Working

    Hi,
    I have a flat file like this...
    1Field1Field2Filed3.....
    2Field1Field2Field3....
    1Field1Field2Filed3.....
    2Field1Field2Field3.....
    1Field1Field2Filed3.....
    2Field1Field2Field3....
    My requirement is to pick only lines starting with '1'.
    I have configured the Sender File Adapter like this,
    Recordset Structure : SOURCE,*
    Key Field Name: KF
    Key Field Type : String(Case-Sensitive)
    File Content Conversion:
    SOURCE.fieldFixedLengths  1,5,5,5....
    SOURCE.fieldNames           KF,FIELD1,FIELD2....
    SOURCE.keyFieldValue      1
    After all this, still it picks up all the recored instead of records starting with '1'. Can any one solve this?
    Regards,
    Sreedhar

    If you feel module processor is bit tough you can use XSLT Mapping which is simple in sloving ur problem.
    Check this blog to do a sample example using module processor.
    /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
    To implement the above check this link....
    https://websmp201.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
    /people/gowtham.kuchipudi2/blog/2006/01/13/stop-creation-of-an-empty-file-from-file-adapter-using-module

Maybe you are looking for

  • Erro Faturamento/NF - Saldo em moeda da transação

    Durante a configuracao do cenario de transferencia de estoque por MM/SD , na hora de fazer a SM que ia gerar a NF acontecia o erro abaixo: Saldo em moeda da transação Nº mensagem F5702 Diagnóstico Ocorre um saldo na moeda de transação 'BRL': Categori

  • Creative Cloud wont open or install

    I'm running a 64 bit windows 8 Alienware 17 and I'm had the program for about 6 months now. I admit I havent used the desktop program much, instead just pinning photoshop etc to my task bar. But my school required me to download another app from the

  • I want to use a external cam with xp in bootcamp but....

    Ive read reports that you will blue screen if you try and use your built in isight with xp. I would like to therefore use an external one with msn messenger in xp on my intel imac. My question is can I disable the built in isight before I do this oth

  • General - IDOC doubt

    Hi , i have a general question regarding master_idoc_distribute. in the FM we will be passing the control data , IDOC data and will get the communication data . we have defined all the Partner profile, ports , rfc as well. the question i have in my m

  • Systemd or Bumblebee problem?

    Hi everyone, Archlinux is newly installed in a thinkpad Edge E430 with Optimus technology, so I follow the instructions to install Bumblebee and related packages to make use of Nvidia display card.  At the beginning it runs smoothly but, started from