Skip to Content
avatar image
Former Member

Get attached pdf in xml file and write it using file adapter

Hi all,

Receipt from a webservice a xml file with a pdf attached as an attribute, in the mapping I get the pdf value and put it into a structure with a single field type base64 and write the file. pdf as a binary with file adapter but when I open the file said that the file is corrupt or poorly trained. I need to do some extra step to write it well or put some instructions on the part of the mudule in CC?.

Thank you very much for your help.

example:

<?xml version="1.0" encoding="utf-8" ?>

<Resultado xmlns="urn:Promax:BlockNetworks/EFact/Proxyout" RootEstado="OK" RootDetalle="OK" ResultEstado="OK" ResultDetalle="OK" PDF="JVBERi0xLjQKJeLjz9MKMSAwIG9iajw8L1Byb2R1Y2VyKER5bmFtaWNQREYgdjQuMC4zIGZvciA

uTkVUKS9DcmVhdGlvbkRhdGUoRDoyMDA5MDEyNjIyNTELItSkDQh461bAurMrO+yp8vk5uu6ziIwEWJy9

AeRS5H51fd/SlBar7vkv04uKy28u7wOCmMDMQmHLl1pIYc42OaIUothbqH8qrtDwAoBUQfWLWq9zTtVB

mmbU2GbQs0iaUWQPH/h7Pi8 olJUVPRgo> </Resultado>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 03, 2009 at 04:51 AM

    Hi,

    Refer this thread problem-in-reading-pdf-file

    it will help you to extract content from pdf.

    Regards,

    Sakthi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 07, 2009 at 09:18 AM

    Hi Sakthi,

    Thanks for the comments, blogs and documentation, we create a module to make the pdf file and write using file adapter we are testing the module but we have a runtime error.

    'Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed,

    due to :com.sap.aii.af.ra.ms.api.RecoverableExcepcion: A file or directory in the path name does not

    exist:java.io.IOExcepcion: A file or directory in the path name does not exist..'

    We are new using modules and with Developer Studio.

    Used as reference:

    Blogs.

    XI: Generate PDF file out of file adapter:

    /people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter

    Adapter Module Development & Module Configuration:

    /people/ganesh.karicharla2/blog/2008/02/20/adapter-module-development-module-configuration

    Doc´s.

    How Tou2026Create Modules for the J2EE Adapter Engine

    Example Adapter and Example Module:

    http://help.sap.com/saphelp_nw04/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/frameset.htm

    Regards,

    Carlos

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Refer this link:

      XI: Generate PDF file out of file adapter

      /people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter

      Regards,

      Nithiyanandam

  • avatar image
    Former Member
    Feb 10, 2009 at 05:06 PM

    Thanks to everyone for your help and time the module is running, the error was in how the data was manipulated within the module. Using the audit log could we trace the flow of the code and solve the problem. basically we use the information for the entire process is referred to in this forum .

    Regards,

    Carlos

    Add comment
    10|10000 characters needed characters exceeded