Skip to Content
avatar image
Former Member

multiple sender folders to multiple target folders

Dear all,

We are on PI 7.0 version and there is a requirement to move files from multiple sender  folders to to multiple target folders.

Fold A (file a) ---- > Fold X

Fold B (file b) -----> Fold Y

Fold C (file c) -----> Fold Z

The source and destination folders are maintained in two separate NFS folder locations.

Can this be done  using dynamic configuration  ? I don't know how to write the UDF and the steps to do this scenario.

I checked a few blogs to do this but they are for PI 7.1 version.

Please advise.

Thanks,

Teresa

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Sep 03, 2013 at 03:12 PM

    Hi Teresa,

    For using dynamic configuration, you need mapping.

    but here you say to move files from one folder to another.

    so may be you can follow the option in this blog.

    http://scn.sap.com/people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean

    Regards,

    Zameer

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Teresa,

      Did you try the above option?

      You can enable Adapter Specific Message Attributes(FileName and DirectoryName) in both sender and receiver channel.

      Follow the blog and just use variable substitution to set the DirectoryName in attribute interface_name

      I believe FileName will be maintained same if you enable ASMA/FileName in both sender and receiver channel(you can mention dummy name in receiver channel).

      As mentioned by the author in CAUTION, it will not be the best way, but still you can give a try and see if you face any other issues by modifying the message header interface_name

      Regards,

      Zameer

  • avatar image
    Former Member
    Sep 04, 2013 at 09:48 AM

    Hi Teresa,

    Can this not be achieved having 3 different sender and 3 different receiver communication channels?

    We can give the dummy interface names in interface determination.

    Correct me if I am wrong.

    Thanks,

    Swetha.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Teresa,

      yes, I remember doing that in one of my projects. However as Anupam suggested, we should also have a check on the system load.

      One more point is that we can also have these three communication channels scheduled for polling during the off business hours so as to avoid system load ---- offcourse this again has to be discussed with your POC's of file servers.

      Thanks,
      Swetha.

  • Sep 03, 2013 at 03:06 PM

    Hi Teresa,

    If you are not doing any transformation in PI, you can move the files using scripts.

    However, if you do want to use PI, check the link below:

    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/28/placing-file-in-two-different-directories-using-single-receiver-communication-channel

    You can use this in conjunction with below

    http://wiki.sdn.sap.com/wiki/display/XI/Single+Sender+File+CC+For+Multiple+Directories

    Hope it helps!

    Ambrish

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 04, 2013 at 03:56 PM

    Hello Teresa,

    As suggested above by Anupam, i also recommend you to use either java mapping or adapter module.

    I think using AM/JM is the best solution for these kind of pass through scenarios and the advantage is u can reuse the same solution for other pass through interfaces - writting UDF certainly not a decent approach.

    So in short, if you are ready to take one time pain then we are here to help you out😊, but the choice is urs.

    Thanks

    Amit Srivastava

    Add comment
    10|10000 characters needed characters exceeded