Blogs

Standard Adapter Framework modules [AF_Modules] in PI 7.1 –Part 1
Gabriel Sagaya Selvam Active Contributor Bronze: 250-499 points
Business Card
Company: Intelligroup Asia Pvt Ltd
Posted on Dec. 07, 2009 08:13 AM in Beginner, SAP Process Integration (PI)

URL: http://help.sap.com/saphelp_nwpi711/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/frameset.htm

Subscribe.Subscribe
Print. Print
Permalink Permalink
Share

 

In this Weblog I am going to explain the various SAP provided standard Adapter Framework modules [AF_Modules] shipped with the module processor in Process Integration PI 7.1 once the Communication channel has been created along with the business cases. This blog is aimed at all important Adapter Framework modules with the examples in a single place. 

 

We have the option of specifying generic modules for every adapter that is configured in the communication channel. These modules equip the adapters with additional functions. The modules that are the basis of the adapter configuration on the Parameters tab page are located in the module processor and are displayed in the module processor once a communication channel has been created. We define the module processor on the Module tab page. Also we have the set of predefined adapter modules for the particular adapters. This Documentation link will give the clear picture how to extend the module chain for the Adapters in the module processor. Below is the list of standard modules for Adapter Framework provided by SAP. 

 

  1. PayloadSwapBean
  2. StrictXML2PlainBean
  3. XMLAnonymizerBean
  4. PayloadZipBean
  5. TextCodepageConversionBean
  6. DynamicConfigurationBean
  7. MessageTransformBean
  8. XiHeaderValidationBean (A New Standard Adapter Module in PI 7.1)
  9. RequestResponseBean
  10. ResponseOnewayBean
  11. RequestOnewayBean
  12. WaitResponseBean
  13. NotifyResponseBean 

 

We will go through each module with their business cases 

 

1) PayloadSwapBean 

 

A standard module used to replace the application payload of XI message that holds the data with another payload which is appended to the message as an attachment.

  

Business case

 

We can use this module in the mail adapters for mails with attachments.

 

PayloadSwapBean

 

 

In the above Sender Mail Communication channel, the swap module for the PayloadSwapBean has 2 parameters from the MIME headers in order to replace the application payload by the attachment. They are swap.keyName where the attribute of payload-name is entered and swap.keyValue which holds the value of attribute. A wiki on file to mail scenario will clearly explain the usage of PayloadSwapBean.  

  

2) StrictXML2PlainBean 

 

A standard module used for converting an XML document in the main payload of XI message to text format. Within an XML document, different recordset types can be displayed either separately or with a fixed field length (mixed display). The structure of the XML document is checked based on the entries you make in the module.

 

 

Business Case

 

            We can use the module in the receiver File/FTP adapter for converting XML format to pure text format. 

 

StrictXML2PlainBean

 

 

In the above Receiver File Adapter, the convert module for StrictXml2PlainBean has 2 parameters in which singleRecordType where all recordset types are converted in the same way and <RecordType>.fieldSeparator converts the XML to asterisk separated file. We can find more information about the usage of StrictXml2PlainBean in this blog  

  

3) XMLanonymizerBean 

 

A standard module for anonymize XML elements and attributes by removing their namespaces or namespace prefixes from the XML document of main payload.

  

Business Case

 

We can use this module in the adapters that can be extended in the module processor. Also this module is used to have the namespace without prefix or to define a particular namespace prefix for each namespace. Also we can change the encoding attribute of XML declaration.

 

XMLAnonymizerBean

 

 

In above receiver JMS Adapter, The remove module for XMLAnonymizerBean has 2 parameters that anonymizer.acceptNamespaces has to set the namespace without a prefix and anonymizer.quote has the character to be used to enclose the attribute values. For better understanding of XMLAnonymizerBean, Please visit this blog.  

  

4) PayloadZipBean 

 

A standard module used for compressing one or more payloads or extracting the payloads from a compressed file. 

 

Business Case

           

We can use this module in any adapters that can be extended in the module processor. If we have a multiple files with large size to be processed, this module can reduce the size of the file and successively reduce the load on the PI Server.

 

PayloadZipBean

 

 

In the above receiver File Adapter, The zip module for the PayloadZipBean has the parameter zip.mode to specify the processing mode (zip, zipAll and unzip) for the purpose of compressing and decompressing the files. A blog on PayloadZipBean will clearly explain the usage.  

  

5) TextCodepageConversionBean 

 

A standard module used for swapping the code page of the main payload of the XI message and convert the content using the new code page

 

Business Case

           

If a receiver uses a different code page to the one specified in the XI payload, we can use this module to swap the code page of the main payload of the XI message and convert the content. An example is converting a non utf-8 payload into utf-8 payload. We can use this module in any adapters that can be extended in the module processor.

 

TextCodepageConversionBean

 

 

In the above Receiver File Adapter, The convert module for the TextCodepageConversionBean has the parameter name as Conversion.charset to convert a non UTF-8 text payload into utf-8 payload. We can find more information about TextCodepageConversionBean from this sap notes.  

  

6) DynamicConfigurationBean

 

 A standard module used for processing the dynamic configuration header that is used to represent the Adapter-Specific Message Attributes [ASMA's]. 

 

Business Case

 

DynamicConfigurationBean allows us to

a) Insert/Delete some specific ASMA's

b) Read some XI message header properties

c) Write some ASMA's into XI message header properties

           

We can use this module in any adapters that can be extended in the module processor.

 

DynamicConfigurationBean

 

In above Receiver File Adapter, dynamic module for DynamicConfigurationBean has 2 parameter names as key.0 is used to write http://sap.com/xi/XI/System/File FileName and value.0 is used to populate the value of message.interface to FileName. The blog will clearly explain the usage of DynamicConfigurationBean.

 

  The remaining standard Adapter Framework Modules in PI 7.1 are presented in the PART 2 weblog.

 

 

 

Gabriel Sagaya Selvam  Active Contributor Bronze: 250-499 points is an Integration Consultant for intelligroup Asia pvt ltd


Comment on this article
Comment on this weblog