Skip to Content
Author's profile photo Harikumar Sasidharan Nair

Transforming message 1..N using ABAP class

In this blog I will try to explain message transformation 1..N using ABAP mapping. I would like to thank my friend and colleague Anish Raghavan who helped and supported me in contributing to this blog.     The below explained scenario splits the input message into two output messages using ABAP mapping. Here the content of the ABAP code has to be changed based on the transformation to be done on the XML. Screenshots of the steps to be followed has been included in this document wherever required. Details about the scenario configuration is not in the scope of this article. In my blog How to test ABAP mapping when transforming messages  (How to test ABAP mapping when transforming messages 1..N), I have illustrated how to test ABAP mapping while splitting messages 1..n. *Pre-requisite for *doing ABAP Mapping:* * The following entry: R3_ABAP|Abap-class need to be added to Exchange profile under IntegrationBuilder ->IntegrationBuilder.Repository ->com.sap.aii.repository.mapping.additionaltypes. *Message split using ABAP mapping:* I will be using the following payload as input to XI: image  The objective is to create two different messages (two xml files) in output which should look like below. I have highlighted the different file names that are created. !file:///C:/Documents%20and%20Settings/hsasidha/Desktop/SDN|height=1|alt=Picture1|width=1|src=file:///C:/Documents%20and%20Settings/hsasidha/Desktop/SDN|border=0! image image

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      Good Work, Hari.

      Saurabh

      Author's profile photo Harikumar Sasidharan Nair
      Harikumar Sasidharan Nair
      Blog Post Author
      Thanks Saurabh.
      Author's profile photo Former Member
      Former Member
      Hello Hari,
      Nice Blog from your experience. I want to add the following "This 1:N transformation using ABAP mapping is much useful while delaing with huge size of messages like >15MB or 20 MB."

      Cheers
      Veera

      Author's profile photo Former Member
      Former Member
      Yes Hari,

      Its really nice blog and yep delaing with huge message it will be very helpful....

      thanks for blog

      Sunil

      Author's profile photo Former Member
      Former Member
      How u r writing document to application server.
      Author's profile photo Harikumar Sasidharan Nair
      Harikumar Sasidharan Nair
      Blog Post Author
      File is written to application server using the file adapter. Please refer the link for details:

      http://help.sap.com/saphelp_nwpi71/helpdata/en/44/658ac3344a4de0e10000000a1553f7/frameset.htm