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

Dynamic File names using File Adaptor

Hello PI Gurus,

I am working on IDOC to File scenario where IDOCs can be sales order or return orders, depending up on IDOC i need to produce a file on the same folder location with differnet names Suppose

If Sales order Idoc then Sales.txt

If Sales Order IDOC then Return.txt

Both has different mapping logic and different strctures, Is it possible to achieve using ONE communication channel?

THanks

Rajeev

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2009 at 08:44 PM

    Rajeev,

    If they both are having different structure, then the output files will not be the same. So they have different layouts. So you may need to use two communication channels for them and you may need to do like two different interfaces.

    If they output files for both are same structure then you can have one communicaton channel. Then in that case what you do is write a udf where you will send the udf into a Filename and then you can use this as your filename in receiver communication cahnnel.

    Regards,

    ---Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2009 at 09:02 PM

    Hi Rajeev

    mapping logic and different strctures, Is it possible to achieve using ONE communication channel?

    Well you need to create two channel because use differents structures.

    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.