cancel
Showing results for 
Search instead for 
Did you mean: 

Adapters

Former Member
0 Kudos

what is file construction modes at receiver side for all adapters

and use

Thanks adv

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

Check this URL for Adapter Configuration Guide:

http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm

Thanks,

Boopathi

Former Member
0 Kudos

Hi,

Mode

Selection

Create

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

Select Overwrite Existing File if you want to overwrite the existing file. If you do not set the indicator, processing is stopped until the created file is processed.

You can only set the indicator if you have selected Use Temporary File under Put File.

Append

The file is written when the inbound document is attached.

Add Time Stamp

A new file is created for each document. Each file is extended with a time stamp with the format yyyyMMdd-HHmmss-SSS. 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.

Add Message ID

A new file is created for each document. The file name is extended by the message ID generated by the Integration Server/PCK. The ID has the format: xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

The message ID is added as the last part of the name before the extension. This mode guarantees that no file is overwritten.

Add Counter

A new file is created for each document. The file name is extended with a counter, which is inserted before the file name extension (for example, default002.file). This selection is only available for the File System (NFS) transport protocol.

Make specifications for Counter Definition:

Prefix

Specify one or more characters that you want to add before the counter in the file name.

Format

Specify the first counter to be used. It must be a valid integer number. Leading zeros are permitted.

Step

Specify the counter increment.

Mode

Specify when the counter is to be added.

After First File

The counter is added when the file name is used unaltered for the first time.

Immediately

The counter is added with the first document.

● Under Write Mode, specify whether the target file is to be written directly in the specified directory.

If an additional step is to be added using a temporary file, choose Use Temporary File.

● You can specify a naming schema for the temporary file under Temporary File Name Schema.

This schema is used to determine the prefix and extension of the temporary file; to ensure a unique file name, the message ID is also added to the name during processing.

The schema xitemp.tmp, for example, results in the file name xitemp<messageID>.tmp.

● Select the Handling of Empty Messages:

○ Write Empty File

An empty file (length 0 bytes) is put in the target directory.

○ Ignore

No file is put in the target directory.

● Under Maximum Concurrency, specify how many messages the adapter is to process in parallel in a cluster node.

● Select the File Type of the document:

○ Binary

○ Text

Under File Encoding, specify a code page.

The default setting is to use the system code page that is specific to the configuration of the installed operating system.

The content of the message is converted to the corresponding code page before the message is saved as a file.

You should use this conversion only for plain text and not for XML documents. If you want to change the encoding of an XML document, then select the File Type as Binary and apply XMLAnonymizerBean as an additional module in the Module tab page.

Permitted values for the code page are the existing Charsets of the Java runtime. According to the SUN specification for the Java runtime, at least the following standard character sets must be supported:

Thanks,

Madhu

Former Member
0 Kudos

Hi ,

In File Construction Mode processing parameter, we tell how the file needs to be created and how the file name should appeaar. This is provided wid 5 options :

1.Create - This option will create a new file with the name specified in File Name Scheme.

2.Append-This option will append the contents to the already existing file mentioned in File Name Scheme.

3.Add Timestamp--The time stamp is added as the last part of the name before the extension.The format of the timestamp is yyyyMMdd-HHmmss-SSS..

4.Add Message ID -The message ID is added as the last part of the name before the extension.

5.Add Counter- The file name is extended with a counter, which is inserted before the file name extension.

Reward points if found useful.

Thanks,

Laawanya

santhosh_kumarv
Active Contributor
0 Kudos

parvath,

Construction mode is based on the requirement.

Eg: if u want to

1. add timestamp to the file name use Add Time Stamp mode.

2. always append the new content to the already existing one use the Append mode.

3. to have consecutive file name in the format file1, file2, file3 and so in use the Add Counter mode.

Thanks

SaNv...

Former Member
0 Kudos

hi parvatha

check the below link to find the properties of all adapters

http://help.sap.com/saphelp_nw70/helpdata/EN/96/791c42375d5033e10000000a155106/frameset.htm

regards

kummari

Former Member
0 Kudos

Hi,

Please refer to this link to get an idea about the file constuction mode at the receiver adapter and its use.

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

Thanks and Regards,

Induja