cancel
Showing results for 
Search instead for 
Did you mean: 

Target Filename generation

Former Member
0 Kudos

Hi all,

I have to generate the target file with same name as source file.

There is a requirement to pass the file from one location to other location. There is no conversion logic, so that I’m not using any mapping and interface mapping:

I have source file name structure: PAYSW_??????_??????.

The same file name I should use for target structure.

Thanks,

Venu.

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Venu,

In the sender file adapter, Select <b>ADAPTER SPECIFIC IDENTFIERS --> FILENAME</b> Do the same in the receiver file adapter.

Now the filename of source will be the filename of the target file.

Regards,

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

If the source and target messages are going to be a same file, can mapping(both message & interface) be avoided?

Kindly give more details about that and if possible a demo blog link.

Thanks & Regards,

Jai Shankar.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Jai,

Yes they can be avoided.

These are the steps you need to do,

1. Create a Dummy Datatype.

2. create corresponding message Type.

3. Create 2 message interfaces -- one inbound and one outbound with the same messagetype created in step 2.

No Message mapping and Interface mapping.

Now, as you have the same message type in the Source and Target message Interface , you do not need to have a message mapping.

So, you file adapter will pick up the file --> Receiver determiantion will take place --> Interface Determiantion --> ( No Interface mapping ) --> Technical Routing --> Message (file) sent out of XI.

Also check this blog,

/people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp

Regards,

Bhavesh

Former Member
0 Kudos

Thanks Bhavesh It solved my problem.

Former Member
0 Kudos

Hi Bhavesh,

That was an extremely useful reply. Unfortunately I can't reward u any pts since this is a Venu's question.

But a lot of thnx for that.

Regards,

Jai Shankar.

Former Member
0 Kudos

Venu would you mind putting the steps here in this forum. I too having the same situation and that will help me.

Thanks Venu and Bhavesh

Answers (1)

Answers (1)

udo_martens
Active Contributor
0 Kudos

Hi Venu,

we wish u good luck. If you have any questions, let us know!

Regards,

Udo