cancel
Showing results for 
Search instead for 
Did you mean: 

Module processor enhancement with file content conversion

Former Member
0 Kudos

Hi All,

I have a bean (module processor) that converts the a PDF doc to text. I need to use the same bean with file content conversion. Module processor processing sequence is as follows:

1) My Bean: localejbs/myBean

2) Default: localejbs/CallSapAdapter (Bean for file content conversion).

When I tried the same (myBean + File adapter with file content conversion) , it was not working as expected. But the same bean works fine with normal file adapter (myBean + File adapter without file content conversion).

Couldn't figure out the reason. Please help.

Regards,

Ajay.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

As the content conversion of the file adapter is done before calling the customer module, it is not possible to use both.

As workaround you can do the file content conversion with help of the MessageTransformBean. In the module chain you put the MessageTransformBean after your module.

Note that the configuration of the MessageTransformBean has to be done like the J2SE sender file adapter:

http://help.sap.com/saphelp_nw04/helpdata/en/0d/00453c91f37151e10000000a11402f/frameset.htm

You find an example here:

https://websmp206.sap-ag.de/~sapdownload/011000358700001186732005E/HowToConveModuleJMS.pdf

Regards

Stefan

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Stefan,

Thanks for ur reply. This is what I have been looking for.

Let me try it out. I'll come back for any further clarification

Regards,

Ajay

Message was edited by: Ajay Kumar V

Former Member
0 Kudos

Hi Vijaya,

Thanks for the reply. I'm following the given blog: "/people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter

In the blog the program converts the PDF and forms a XML msg . I have commented the code which is written to form the XML. So my bean returns the string (textData in the program).

Please let me know the correct form to pass to the next module (File content conversion).

Thanks,

Ajay.

Former Member
0 Kudos

Ajay,

Refer http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm

for the flow through modules. Note the point on <b>CallSapAdapter</b> and make sure your module chains are configured correctly and they output the message exactly as expected by the next module in chain.

Regards,

Amol

Former Member
0 Kudos

Hi Ajay,

I think the error is because of the way the data is going to Module process.

Please can you check on the difference?.

Regards

Vijaya