cancel
Showing results for 
Search instead for 
Did you mean: 

rename file in IR

Former Member
0 Kudos

Hello All,

I have a scenario to change the file name ex: OPER_XXXXXX_TRACK.fld.YYDDMM, where XXXXX value changes dynamically.

the output of the file name should be OPER_XXXXXX_TRACK.fld i.e with out having the YYDDMM,

is this possible using (Adapter Specific Message Attributes = ASMA)

or do we need to build a custom adapter module?

This is a ftp Communication Channel and no ESR development.

George.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

No, it's not possible to change file name dynamically using ASMa attributes only.

So now, u have 3 options:

1) Java mapping

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

2) Adapter module

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

3) Script

Thanks

Amit Srivastava

Answers (3)

Answers (3)

Former Member
0 Kudos

thank you all for the suggestions, we solved it writing an adapter module

manigram
Active Participant
0 Kudos

Hi ,

Write UDF in message mapping and construct the File name based on your requirement , then enable ASMA attribute in channel.

this is the best way to define the file name dynamically.

Post here your file name requirement exactly.

Regards,

Manigandan

Former Member
0 Kudos

Hi George

The easy way would be create two dummy interfaces and create one opertaion mapping and message mapping in ESR.

Inside the mapping write a simple UDF to change the file name.