Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic file name with out mapping

Hello,

I am sending IDOC to file, the file also contains same structure of IDOC, so no mapping is required, I want to use dynamic file name with the field in IDOC.

file name should be FIELD1_DDMMYYHHMMSS.xml

Here I don't have mapping, so with variable substitution can I get the "date and time stamp" after field?

any idea? how to get this? or else I need to use mapping mandatory?

replied

Hi,

For tiemstamp you don't need script it's a parameter:

Configuring the Receiver File Adapter - Configuring the File/FTP Adapter in Integration Directory/PCK - SAP Library

Define Processing Parameters

  7.  Select the Processing tab page.

  8.  Select the File Construction Mode.

○  Create

The file is created. The document received last is saved in each case.

If you want the created file to be overwritten, set the Overwrite Existing File indicator. If you do not set the indicator, processing is stopped until the created file is processed.

○  Append

The file is written when the inbound documents are appended.

○  Add Time Stamp

A new file is created for each document. A time stamp with the format yyyyMMdd-HHmmss-SSS is added to the file name. The time stamp is added as the last part of the name before the extension.

This mode guarantees that no file is overwritten. In this way, files that originate from the same adapter configuration can be sorted

Cheers,

Roberto.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question