Dynamic file name with out mapping
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?
Roberto Cantero replied
For tiemstamp you don't need script it's a parameter:
Define Processing Parameters
7. Select the Processing tab page.
8. Select the File Construction Mode.
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.
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