cancel
Showing results for 
Search instead for 
Did you mean: 

Change Timestamp in receiverf ile adapter

Former Member
0 Kudos

Hi Friends,

when "add timestamp" option is used in receiver file adapter, the timestamp is added in the format YYYYMMDD-HHMMSS-milliseconds

However the timestamp is required in following format :

YYYYMMDD_HHMMSS.

How can this be done.

thanks

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you can only change it in message mapping

with adapter specific identifiers

(dynamic configuration)

but it will have the time when the mapping was done and not

when the adapter was started

Regards,

michal

Former Member
0 Kudos

Hi Friends,

thanx for your answers- im using sender idoc & receiver file adapter.

In that case, can this technique be used ?

Also the date/timestamp is not included in any of the message fields.

I saw the blogs/sap help on adapter specific message atributes but it seems more suitable for a sender file adapter- & to use the attributes of sender file name.

Regards

Former Member
0 Kudos

Datta,

You add one more field in your target datatype as last field. You map accordingly to your requirements it to the date and time using the standard functions. Then you use this fields as a variable substitution. In your reciever communicaiton channel if it is fixed length file then you cut this field.

---Satish

Answers (3)

Answers (3)

Former Member
0 Kudos

Datta,

If you are getting the date and the timestamp in any of your target fields then you can use them using variable substituion. So please chech that else as other posts reply you have to do in the message mapping.

---Satish

former_member335553
Active Contributor
0 Kudos

hi

u can dynamically create a filename using the adapter specific mesage attributes with the file format u want

refer this blog

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

bhavesh_kantilal
Active Contributor
0 Kudos

As far as I know the timestamp format is standard.

One option is to generate the timestamp in the mapping runtime and then use the dynamic File name concept to append this timestamp.

For how to create filenames dynamically,

http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm

Regards

Bhavesh