cancel
Showing results for 
Search instead for 
Did you mean: 

Determine target folder without mapping

Former Member
0 Kudos

I  am using PI 7.3 . We have a file to file scenario (no transformation) where we get 3 types of files with different filenames (Customer.txt , Supplier.txt, Debits.txt) .

Both the sender and receiver system is the same .

Sender :  We pick all 3 types of files from one folder in the source.

Receiver : We need to drop the files in their respective folders in the target based on the filename.

Is there any way of doing this without mapping ? I know the dynamic configuration approach, but wanted to know if there was some way without implementing a mapping?

Accepted Solutions (1)

Accepted Solutions (1)

gagandeep_batra
Active Contributor
0 Kudos

Hi Dev,

I am not sure but you can try like follow:

first pick all the files from particular folder and  use ASMA enabled

then in Receiver determination define condition on file name then create 3 Channel for that and root to particular folder

Regards

Gagan

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello Dev ,

If you are using same Message Mapping , then no need of the condition in Interface determination . Create 3 diffrent commnucation channel with diffrent target directory . It will work fine . if you are using separate mapping for 3 , then condition in interface determination can help you .

Regards

Ritu

anandvithal
Active Participant
0 Kudos

Hi Dev,

Have u tried using the standard adapter module DynamicConfigurationBean? You can set ASMA without mapping with this standard module.

Check below link

http://help.sap.com/saphelp_nw04/helpdata/en/45/da2239feb22e98e10000000a155369/content.htm

Thanks,

Anand

ambrish_mishra
Active Contributor
0 Kudos

Hi Dev,

You can use ASMA, the only flip side is you will have to define 3 receivers instead of 1 and route them to different directories through different channels (3 receiver agreements)....

With mapping , you have dynamic configuration and variable substitution which will work with one receiver.

Choice is yours.

Ambrish

Former Member
0 Kudos

Thanks all ...

Rather than check the filename in Receiver Determination condition editor , will this option be available in the Interface Determination as well ?

Former Member
0 Kudos

Hello,

A very simple approach in these kind of by pass scenarios is develop  adapter module/java mapping...

It would take 15 mins to do so and easy to handle kind of solution:

Adapter module :

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

Java mapping:

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

Note-  U have to edit the code mentioned above i.e.depending upon the file name set the target folder.

Thanks

Amit Srivastava

ambrish_mishra
Active Contributor
0 Kudos

Dev,

This option is available in Interface determination as well but won't help your requirement.

Adapter module is another way and you can explore that.

Ambrish

ambrish_mishra
Active Contributor
0 Kudos

Dev,

This option is available in Interface determination as well but won't help your requirement.

Adapter module is another way and you can explore that.

Ambrish

nabendu_sen
Active Contributor
0 Kudos

Hi Dev,

You can apply condition in Receiver Determination:

Sender File Channel --> ASMA --> FileName

Receiver Determination --> Condition Editor --> Select 'FileName' [context object].

But actually you don't need to create any ESR objects if you also mentioned as Context Object.

Regards,

Nabendu.