Show TOC

Adding Code Example from Adapter Development to Module ProcessorLocate this document in the navigation structure

Use

SAP provides an example module for adapter and module development, which you can use as a basis for your module development.

For more information on module development: Developing Adapters and Modules then Module Development.

The example module provided by SAP converts the character that indicates the end of a line in Microsoft Windows, CarriageReturn+LineFeed (CRLF), to the character that indicates the end of a line in Unix, LineFeed (LF), or the other way around.

Procedure

Add the Module in the Processing Sequence

  1. Enter the module name SAP XI Sample/ConvertCRLFfromToLF before the module name of the adapter.

    For information about where to insert the module, see: Extending the Module Chain for SAP Adapters in the Module Processor

  2. Select the module type
    Local Enterprise Bean
    .

    The system proposes a Module Key.

Add Parameters in the Module Configuration

  1. Under Parameter Name, enter mode.
  2. You can enter the following parameter values:
    • none

      No conversion.

    • CRLFtoLF

      It is converted from Microsoft Windows CRLF to Unix LF.

    • No, or any, value.

      It is converted from Unix LF to Microsoft Windows CRLF.