Skip to Content
author's profile photo Former Member
Former Member

How to Get the Source File Path in the Receiver Side

Hi Experts,

Here We are Trying to Do How to Get the Sender Information ( File Name & Path ) on the Receiver Side .

According to the Michal Blog

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Here we Are Able to Get only the File Name.

But If I Want to get the Total File Path Also means What Should I Do Here ????

Please Let Me Know

Regards

Khanna

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2007 at 10:31 AM

    Hi

    You have to enable "Directory" check box in the adapter specific attributes ( both in Sender CC and Receiver CC)

    regards

    krishna

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Rajesh,

      you can use this approach: in UDF, you have 2 variables for source filename and source file directory..........apply your logic to create a string varible for target filename - you can take some substring from source filename and source file directory, add your some target filename, concat these in target filename variable.........in UDF then you will have to use conf.put(targetfilename) to set this as the target filename.

      Thanks,

      Rajeev Gupta

  • author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2007 at 10:44 AM

    hi rajesh,

    u r on rite track. as u can retrieve filename, u can also retrieve directory.

    so in ur mapping u can concat both and get the total path.

    for step by step process refer:

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516

    [reward if helpful]

    regards,

    latika.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 11, 2007 at 10:37 AM

    Ans

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.