Skip to Content
avatar image
Former Member

Module processor enhancement with file content conversion

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Apr 25, 2006 at 09:22 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 24, 2006 at 08:36 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Apr 24, 2006 at 11:34 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2006 at 07:13 AM

    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

    Add comment
    10|10000 characters needed characters exceeded