There are times when you have to send an XML message inside a XML tag of the other message.
There are at least two approaches when doing such a scenario:
- you can change the XML message's tags into something else and later on chage it back
- you can also include the XML message inside a CDATA tag
But while doing such transformations you cannot use "Graphical mapping"... is that right?
Not always. We can still use Graphical mapping but we have to combine it with any other kind of mapping.
XI gives us the possibility to use many mappings with one transformation - Interface mapping.
The thing to remember is that only once you can do Source message to Target message transformation.
The rest of those transformations are Target message to Target message only.
...but this is just great in our case as we want to do the whole mapping inside the first graphical mapping
and then just transform the result a little.
So how can we do it?
- use graphical mapping to trasform our source message to our target message
(target message contains all tags - in my example it looks exactly the same as the source message)
- then we want to put the WHOLE "name" node inside the "name" tag within CDATA
The first part is easy but how can we do the second one? We can use Udo's example with XSLT.
Now we can include both of those mappings inside the Interface mapping.
First the graphical then the XSLT and we can see the result (the whole node is now inside one tag - "name"):
Do we have to do the transformation inside the interface mapping if we want to use it always
with this particular communication channel? No we can include our XSLT mapping inside the Communication Channel.
To do this we have to use MessageTransformBean. I'm using a File/FTP channel in my example.
With the help of SAP standard Bean (MessageTransformBean) we only need to give path to the XSLT mapping
and we don't have to add it to our Interface mappings. Obviously we have to remember to use the same structure
(some sort of an envelope) of your Target messages so that it will always contain the same root tags so the XSLT mapping
will always work. But it depends on you XSLT mapping too.
We can now remove XSLT mapping from the Interface mapping and the result looks just like we wanted:
Basically I wanted to show three things:
- the use of several mappings inside an Interface mapping
- how you can change an XML message into a string
- how you can use XSLT mappings inside a communication channel
Indians Earn 25000 Monthly.Easy Form Filling Jobs
Monday, December 10, 2007
How can I transform XML into a string?
Labels:
Mapping in XI
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2007
(729)
-
▼
December
(386)
- SOA
- Business Process Management
- Enabling Application-to-Application Processes
- How to guides - XI for NW 2004s
- SAP XI How To Documents
- 8 Lessons Learned from an SAP CRM 2005 Data Migrat...
- Expand Target Groups Using SAP BW Data in Segment ...
- First Look: SAP CRM Service On-Demand
- Best Practices for Transferring Data from SD to SA...
- Why Not Use Business Server Pages?
- SAP CRM Marketing On-Demand: Wave 3 and 4 Updates
- SAP E-Commerce for mySAP CRM: Integrate Your E-Com...
- SAP CRM 2005 or SAP CRM 2007: Which is Best For You?
- From Siebel to SAP CRM: How Dow Corning Switched i...
- Publish SAP BI Content More Easily with SAP Enterp...
- Create Web Services Quickly with the New Web Servi...
- Quickly Build Impressive Dashboards in SAP BW 3.5
- Data Mining with the Analysis Process Designer in ...
- Make Sure That User-Defined Statuses Appear in SAP...
- What’s New with mySAP CRM 2005 Marketing: Coupon M...
- Avoid Data Inconsistency in SAP NetWeaver BI in Ju...
- BEx Information Broadcasting in SAP BW 3.5 Puts Us...
- Use SAP NetWeaver BI as an ESA-Oriented Data Source
- Query SAP NetWeaver BI’s Metadata and Result Sets ...
- What's Coming in 2004
- Optimize FI-GL Processing with Intelligent Lookup ...
- Open Hub Transformation Meets Complex Business Req...
- Effectively Gather BW Functional Requirements
- Use Selective Deletion to Substitute InfoCube Char...
- Use Selective Deletion to Substitute InfoCube Char...
- Use Reverse Loading to Substitute InfoCube Charact...
- Rolling Off Data from Data Targets: Which Process ...
- Empower Your End Users with Accurate BW Reports
- Save Time and Resources by Managing Excel Workbook...
- How to Copy Process Chains
- Modify BW-BPS Web Interfaces with JavaScript to In...
- Refine BW Querying with Real-Time Data
- R/3 Can Be Your One-Stop Shop for BEx Web Reports
- Use Virtual Time Hierarchies for Flexible Reportin...
- Display Text Longer Than 60 Characters in Web Queries
- Take the Guesswork Out of 0CALWEEK Selection
- Three Methods for Editing DataStore Object Data Wi...
- Use IDocs to Retrieve a Failed Request Job
- Maximize Your Query Optimization Options in BW
- Uncover New Insight into Your Customers with mySAP...
- SAP NetWeaver 2004s SR1 Java on Windows: MS SQL Se...
- SAP NetWeaver 2004s Java on Windows pdf
- PDF Devloper Workplace
- [PDF]
- Application Log Answers Key Questions About Applic...
- Find the Best Leads and Uncover Potential Customer...
- 6 Steps to Enhance a CRM DataSource Using a BDoc BAdI
- Directly Populate User-Defined Hierarchies
- Simplify Data Distribution with the Open Hub Process
- Data Modeling Strategies to Avoid Data Inaccuracy ...
- Implement Custom Process Types in Process Chains f...
- Data Modeling Strategies to Avoid Data Inaccuracy ...
- Optimize BW’s Data Modeling Capabilities with BPS
- Data Modeling Strategies to Avoid Data Inaccuracy ...
- Visual Composer 7.0’s BI Extension Kit Offers New ...
- How to Add Custom Fields to a Fixed Asset
- Discover the Logic and Parameter Changes in the Ne...
- Plan for and Implement SAP Learning Solution’s Aut...
- Express Planning Gives Managers Access to Plan Dat...
- Expedite Your BI Implementation with SAP Best Prac...
- View Your Profit and Loss Data and Analyze Your In...
- Plan For and Implement SAP Learning Solution
- Prepare Your Data for Better Reporting with Start ...
- Create Unparalleled Analytical Applications with S...
- Set Up Users for SAP Biller Direct the Right Way
- mySAP CRM Analytics Harnesses SAP NetWeaver BI Ana...
- Layer SAP xApp Analytics on Top of SAP SEM for a S...
- Choose the Appropriate SAP NetWeaver BI and mySAP ...
- Initiate and Track the Planning Process with Colla...
- New Analysis Authorizations Ease Administration
- SAP NetWeaver 2004s Simplifies Architecture for Tr...
- What’s New in SAP NetWeaver 2004s Business Content
- Enhance Web Analyzer in SAP NetWeaver 2004s for Ad...
- What’s New in the BI Front End: Part 2
- What’s New in the BI Back End
- What’s New in the BI Front End: Part 1
- How to Migrate Transformation Logic to SAP NetWeav...
- Custom Program Grants Users Easy Access to Both BE...
- How to Migrate to the New DataSource Concept in SA...
- Data Upload Feature Enhances Sarbanes-Oxley Consol...
- mySAP solution manager (SOLMAN):
- mySAP PLM logistics:
- mySAP logistics reports:
- mySAP human capital management:
- mySAP financial accounting (FI):
- mySAP financial accounting (FI):
- mySAP accounting reports:
- My SAP Basis Overview
- CO T-Codes
- T-codes
- SAP Solution Manager
- SAP NetWeaver
- XI/PI: sender IDOC adapter packaging ?
- JDBC Connectivity with Webdynpro and Max DB
- Visual Abap : Creating Selection screen
-
▼
December
(386)
No comments:
Post a Comment