cancel
Showing results for 
Search instead for 
Did you mean: 

Renaming a File to File without Mapping

yajjala1
Participant
0 Kudos

Hi All,

I am having a scenario where there is a text file transfer without any conversion i.e. basically a file to file scenario with no mapping. The only requirement is to rename source file for instance if the sender file is XYZ.123, the file at the receiver side should be abc_XYZ.123

As there is no mapping, I cannot use Dynamic Configuration UDF in mapping.

I hope experts here can help in resolving the current problem and/or give some pointers

Best Regards,

John

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184720
Active Contributor
0 Kudos

You can use a java mapping (without any other ESR objects) to set the dynamic file name.

Dynamic file name for pass-through scenario - Process Integration - SCN Wiki

scn search :

Redirecting...

yajjala1
Participant
0 Kudos

Hareesh,

I would like to use modular configuration in receiving channel, like attribmapper

former_member184720
Active Contributor
0 Kudos

There is no standard module, you can either go for java mapping or create adapter module.

For java mapping, i have already shared the wiki.

for AM , please refer to

Dynamic file name in a File to File pass through scenario - Code Gallery - SCN Wiki

former_member182412
Active Contributor
0 Kudos

Hi John,

You can use below DynamicAttributeChangeBean as shown in below blog. You need to download the EAR and deploy in your system then you can use it in the channel.

Regards,

Praveen.

yajjala1
Participant
0 Kudos

Praveen,

I have downloaded java files, how to load these java files in to our PI system ?

former_member182412
Active Contributor
0 Kudos

Hi John,

If you download the EAR file then you can deploy using NWDS.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90c937e8-9e91-2d10-59a5-8994a98c3...

Regards,

Praveen.

yajjala1
Participant
0 Kudos

I have used counter in receiving adapter:

My input file name is X12.289

I am getting out file name as X12_CRCOB0.289

I need output file name as CRCOB0_X12.289

yajjala1
Participant
0 Kudos

I have used counter in receiving adapter:

My input file name is X12.289

I am getting out file name as X12_CRCOB0.289

I need output file name as CRCOB0_X12.289

azharshaikh
Active Contributor
0 Kudos

Hi John,

Instead of using Prefix as: _CRCOB

Can you try testing with value as:

CRCOB_


Regards,

Azhar