Skip to Content
avatar image
Former Member

File Adapter (Sender) - Including the source filename into XI-XML

Hello there,

We need to include the name of the source file from the file adapter, into the XML message within XI.

e.g. "interfacefile.dat" -> <filename>interfacefile.dat</filename> in the XML (possibly in the SOAP header?)

We can then use this filename for content based mappings.

Would this be done in the dispatcher?

Does anyone know how to code this in java?

Thanks,

Shawn.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jul 19, 2004 at 08:32 PM

    Shawn,

    Did you find a solution for this? I'm trying to accomplish the same mapping and was hoping you had found a solution. I believe the only way is through the dispatcher but I wanted to know if you used xsl or java and how?

    Thanks,

    Dave

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 20, 2004 at 07:17 AM

    Hello,

    this is also interesting for us. If somebody has a solution for this, let me know this.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 22, 2004 at 12:26 PM

    Hello together,

    in the »SAP Developer Network« I found an article, in which is documented how to write an user-exit in a file-adapter. In this documentation is always explained on which way you've got the filename of the actually parsed file. I have generate an own user-exit and it works fine.

    the name of the article is:

    How to Write a User-Exit Using the
    Dispatcher of the File Adapter

    .

    Author is Willium Li.

    Bye Oli

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 26, 2004 at 11:09 PM

    Hi Oli,

    Thanks for the information. I read the article and I was hoping to use this exit to invoke an xsl to pull in the file name to my xml structure. What file adapter mode did use? How did you pass the fileName object to your xml structure?

    Thanks,

    Dave

    Add comment
    10|10000 characters needed characters exceeded