cancel
Showing results for 
Search instead for 
Did you mean: 

File name in the Receiver Adapter

former_member189754
Participant
0 Kudos

Hi,

I need to create a file with the name as ZZZCCYYMMDDHHMMSS.txt

where ZZZ is the constant

CCYYMM is the date of file creation

DDHHMMSS is the time of file creation.

There MUST NOT be any spaces in the file name

Eg ZZZ20110314152530.txt

I am using the Receiver File Adapter with Cntent Conversion. I tried using Add Time stamp option. But that does not sattisfy the required Naming conventions for file name.

Any help would be appreciated.

Regards

Harry

Accepted Solutions (0)

Answers (4)

Answers (4)

Shabarish_Nair
Active Contributor
0 Kudos

use dynamic configuration and form the file name in the mapping itself.

Standard time stamp option will not help you in this case.

/people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

Former Member
0 Kudos

Follow shabarish suggested blog as well as the below one which Combines three different aspects of PI (ASMA, AF Module and variable substitution) in one shot

/people/madanmohan.agrawal/blog/2009/05/20/combining-three-different-aspects-of-pi-asma-af-module-and-variable-substitution-in-one-shot

Thanks,

aashish_sinha
Active Contributor
0 Kudos

Hi,

IF dot is okay between constantTimeStamp.HHMMSS. then try

Target filename as ZZZ.txt (ZZZ is a constant what you want)

and File Creation with Time Stamp .

File will be generated like ZZZ20110314.152530.txt

Otherwise use dynamic configuration as suggested above.

Regards

Aashish Sinha

saravanan_a
Active Participant
0 Kudos

Hi Harish,

Your requirement is to generate a dynamic file name @ target side right??

If so best option is go for UDF. (I hope you heard about UDF already)

There is something called ASMA... (check it out)

Have a look @ following. So that you can get some Idea about ASMA

In Google Type : dynamic file name in Pi

Select 1st link- sap technical

After this try to write own UDF to get desired file name @ target side..

Thanks,

Saravanan

Former Member
0 Kudos

If you are using mapping then it can be done by either DynamicConfiguration method or Variable Substitution method. Just search on sdn you will find lots of thread with same requirement.