cancel
Showing results for 
Search instead for 
Did you mean: 

PI configuration for Dynamic source and target directories

Former Member
0 Kudos

Hi Experts,

I have a scenario in which PI is only being used to pick and droop the files from ECC to PI file server.

The issue is:

There are multiple folders created in source and target side according to each bank.the folder srtucture is similar in ECC and PI except the directory name. ex: in ECC it is /dataload/D1E/110/interfaces/SWIFT/BANK_NAME1/outbound/ready and in PI its: /dataload/D1P/110/interfaces/SWIFT/BANK_NAME1/outbound/ready.

Also the file name will be dynamic.

PI needs to pick the files from each folder from ECC and place them in respective folders in PI file server.

I understand that the sending can be handled using "Advanced Selection of Source File" . Kindly suggest how to handle the receiving of files. can it be handeled using ASMA or variable substitution ?

Thanks,

Pankaj

Accepted Solutions (1)

Accepted Solutions (1)

nabendu_sen
Active Contributor
0 Kudos

Hi Pankaj,

If you are not performing any Mapping / Transformation of the source file to xml, you cannot use Variable Substitution. You can go for ASMA but again you can use the Sender File name to Receiver File Name, not Dynamic.

http://saptechnical.com/Tips/XI/ASMA/Index.htm

You can check the below blog of Java Mapping which can resolve your issue for Bypass interface.

http://wiki.sdn.sap.com/wiki/display/XI/Dynamic+file+name+for+pass-through+scenario

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

U have to dynamically set ur receiver directories using java mapping or adapter module code.

http://wiki.sdn.sap.com/wiki/display/Snippets/Dynamic+file+name+in+a+File+to+File+pass+through+scena...

Slightly adjust ur code, add if/elseif conditions and depending upon the source directory name set target directories.

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi.

You need to use ASMA , active the option on CC , source and target directories,

also is necessary create an UDF to get the source directory and point out the target directory.

You can check this page and use for UDF.

http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=95093307

Regards.

Former Member
0 Kudos

Hi Pankaj,

For generating the receiver file name dynamically you can use ASMA.  But the directory name is differing with source and target.  For directories I think ASMA will not work for your requirement.

Thanks,

Satish.