cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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>

Accepted Solutions (1)

Accepted Solutions (1)

former_member267355
Active Participant
0 Kudos

Hi,

Refer this thread

it will help you to extract content from pdf.

Regards,

Sakthi

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

ravi_raman2
Active Contributor
0 Kudos

Can you elaborate on your error.......or paste it here.

Regards

Ravi Raman

Former Member
0 Kudos

Hi Ravi Raman,

This is the Audit log:

2009-02-08 21:54:05 Success Using connection File_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.

2009-02-08 21:54:05 Success

Message successfully put into the queue.

2009-02-08 21:54:05 Success

The message was successfully retrieved from the receive queue.

2009-02-08 21:54:05 Success

The message status set to DLNG.

2009-02-08 21:54:05 Success

Delivering to channel: CC_ECQ_File_ImgPDF

2009-02-08 21:54:05 Success

MP: Entering module processor

2009-02-08 21:54:05 Success

MP: Processing local module localejbs/XMLToPDFBean

2009-02-08 21:54:05 Error

MP: Exception caught with cause java.io.IOException: A file or directory in the path name does not exist.

2009-02-08 21:54:05 Error

Exception caught by adapter framework: A file or directory in the path name does not exist.

2009-02-08 21:54:05 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.RecoverableException: A file or directory in the path name does not exist.: java.io.IOException: A file or directory in the path name does not exist..

2009-02-08 21:54:05 Success

The message status set to WAIT.

2009-02-08 21:54:05 Success

The asynchronous message was successfully scheduled to be delivered at Sun Feb 08 21:59:05 CST 2009.

Regards

Carlos

Former Member
0 Kudos

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