File Receiver with Content Conversion


SAP PI Interview Questions and SAP PI Tutorials

SAP PI Interview Questions and SAP PI Tutorials

File Receiver with Content Conversion

cenario:

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:

SAP PI Interview Questions and SAP PI Tutorials

SAP PI Interview Questions and SAP PI Tutorials

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.

SAP PI Interview Questions and SAP PI Tutorials

SAP PI Interview Questions and SAP PI Tutorials

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter
PDF24    Send article as PDF   
This entry was posted in fcc2file senario, sap pi training, sap pi tutorials, sap xi training, SAP XI Tutorials. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *