Skip to Content

File Receiver with Content Conversion

Scenario:

This scenario describes the steps involved in configuration of the receiver file adapter with file content conversion.

image
Fig1. File Content Conversion Scenario

Input Message:

This is the input message to the receiver file adapter sent from XI.
image
Fig2. Input XML message

Output Message:

image
Fig3. Output CSV Message

Steps:

       XI sends a XML message as input to the receiver adapter.Now this XML needs to be converted to a File in CSV format, i.e. it may be a comma separated, tab separated etc. To generate the required output, the data type at the receiver’s side plays a crucial rule. The data type should abide to the rules of well formed XML.

The Receiver File Adapter is configured, using the following settings:

  • Choose File Content Conversion as the Message Protocol.
  • You may or may not give the ‘addHeaderLine’ parameter.
  • For the ‘fieldSeparator’ parameter you need to give field separator for both list and substructure (referring to the data type above). For eg: it may be a ‘,’ (comma) for substructure in a comma separated file.
  • The ‘endSeparator’ parameter needs to given for substructure only. For eg: it may be a ‘nl’ (new line)
  • image
    Fig4. Conversion Parameters in Adapter

  • · Give the file name, the directory and the Construction mode. Activate all the settings. Receiver File Adapter with F.C.C. is configured.
Result:

The file with desired output generated.
Recommended Reading:
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

17 Comments
You must be Logged on to comment or reply to a post.