Types of Mapping
Hi Masters,
I have Small Dought..
We have 4 Type of Mappings,
<b>Genera Message Mapping, JAVA Mapping, XSLP Mapping and ABAP Mapping...
</b>
<b>My Dought is ...In which Scenarios we are using this all mappings....</b>
Please give me Clear Idea...
Regards,
SReddy
Hi,
I thought i will start of from scratch.Mapping is basically done to convert one form of xml into another form. This can be done using either of them mentioned below.
- Graphical mapping
- XSLT mapping
- JAVA mapping
- ABAP mapping
There is no hard and fast rule for using the mapping techniques. But, I will try to put things in the right perspective for you.
Graphical Mapping is used for simple mapping cases. When, the logic for your mapping is simple and straight forward and it does not involve any complex logic.
Java and XSLT mapping are used when graphical mapping cannot help you.
When the choice is between Java And XSLT, XSLT is simpler than java mapping and easier. But, it has its drawbacks. One among them being that you cannot use Java APIs and Classes in it. There might be cases in your mapping when you will have to perfrom something like a properties file look up or a DB lookup, such scenarios are not possible in XSLT and so, when you want to use some specific Java API's you will have to go for Java Mapping.
Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but , DOM is very processor intensive.
SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exaclty easy to develop either.
To know more about each of them please go thru the following links. And if you ask me your which is better, it depends basically on the scenario you implementing and the complexity involved. Anyways please go thru the following links:
Graphical mapping
http://help.sap.com/saphelp_nw04/helpdata/en/6d/aadd3e6ecb1f39e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
/people/bhanu.thirumala/blog/2006/02/02/graphical-message-mapping-150-text-preview
http://www.sapgenie.com/netweaver/xi/mapping1.htm
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
XSLT mapping
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
http://www.w3.org/TR/xslt20/
JAVA mapping
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
ABAP mapping
/people/r.eijpe/blog
To know more about the value mapping tools for the SAP Exchange Infrastructure (XI), please go thru the following link:
http://www.applicon.dk/fileadmin/filer/XI_Tools/ValueMappingTool.pdf
To get an idea as to what value mapping is, please go thru the following links:
http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/f2/dfae3d47afd652e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
most of the links that I have provided also helps you get the step by step procedure of doing the same. And also involves the procedure to implement certain advanced features.
Hope this clears your doubt fully.
Regards,
Abhy
Similar Messages
-
Different types of Mapping in XI
Hi All,
I am new to XI, I know different types of Mapping in XI.
when we are using this mapping?
1. Graphical Mapping
2. Java Mapping
3. XSLT Mapping and
4. ABAP Mapping
Please give detail.. it's helpful to me...
Thanks & Regards
SReddy,Hi Reddy,
I thought i will start of from scratch.Mapping is basically done to convert one form of xml into another form. This can be done using either of them mentioned below.
- Graphical mapping
- XSLT mapping
- JAVA mapping
- ABAP mapping
To know more about each of them please go thru the following links. And if you ask me your which is better, it depends basically on the scenario you implementing and the complexity involved. Anyways please go thru the following links:
Graphical mapping
/people/bhanu.thirumala/blog/2006/02/02/graphical-message-mapping-150-text-preview
http://www.sapgenie.com/netweaver/xi/mapping1.htm
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
XSLT mapping
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
JAVA mapping
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
ABAP mapping
/people/r.eijpe/blog
To know more about the value mapping tools for the SAP Exchange Infrastructure (XI), please go thru the following link:
http://www.applicon.dk/fileadmin/filer/XI_Tools/ValueMappingTool.pdf
To get an idea as to what value mapping is, please go thru the following links:
http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/f2/dfae3d47afd652e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
most of the links that I have provided also helps you get the step by step procedure of doing the same. And also involves the procedure to implement certain advanced features.
Hope this clears your doubt fully.
Regards,
Abhy
PS: AWARD POINTS FOR HELPUL ANSWERS. -
Hi folks,
Some time ago I had a 16GB 6+ and it crashed with the blue screen, so I returned it. I now have a brand new one that I got from Tmobile ($75 return fee) and although it has mostly worked just fine, I have gotten 2 blue screen crashes. Below are the details from the phone's log.
What strikes me is the message "Read, error type:Address map hole or size mis-match".
Does anyone know if this could be caused by a hardware defect?
I've gotten one of these crashes running iOS 8.1.2 and another in 8.1.3.
Thanks.
Incident Identifier: 20304759-E90B-453F-BDC5-176AF4E30041
CrashReporter Key: fcf18d230005749957728546dea3221a0c588330
Hardware Model: iPhone7,1
Date/Time: 2015-01-25 19:43:44.913 -0800
OS Version: iOS 8.1.2 (12B440)
panic(cpu 0 caller 0xffffff8008cd45d0): L2C PIO error (src:core0-AF snoop, address:0x1202030208, access:Read, error type:Address map hole or size mis-match, L2C_ERR_STS:100003fc00000202, L2C_ERR_ADR:0x1108e1202030208, L2C_ERR_INF:0x2107)
Debugger message: panic
OS version: 12B440
Kernel version: Darwin Kernel Version 14.0.0: Mon Nov 3 22:27:30 PST 2014; root:xnu-2783.3.22~1/RELEASE_ARM64_T7000
iBoot version: iBoot-2261.3.33
secure boot?: YES
Paniclog version: 3
Kernel slide: 0x0000000006000000
Kernel text base: 0xffffff8008002000
Epoch Time: sec usec
Boot : 0x54bc22ef 0x00000000
Sleep : 0x54c58398 0x0002abb4
Wake : 0x54c583ae 0x000f08df
Calendar: 0x54c5b7e3 0x00025045same with my iPhone 4s 16gb
{"os_version":"iOS 8.1.3 (12B466)","bug_type":"110"}
Incident Identifier: 582496DB-6999-468C-9504-3D1C191B9F4B
CrashReporter Key: 623a577555e51ed110b937358adfa66fba3ea447
Hardware Model: iPhone4,1
Date/Time: 2015-02-20 04:17:50.830 +0300
OS Version: iOS 8.1.3 (12B466)
panic(cpu 0 caller 0x83dc8347): "i2c1::_checkBusStatus Bus is still in a bad state; last write status 00010110 xfer 00000000 fifo 00000000 for device als"
Debugger message: panic
OS version: 12B466
Kernel version: Darwin Kernel Version 14.0.0: Mon Jan 12 21:30:11 PST 2015; root:xnu-2783.3.26~3/RELEASE_ARM_S5L8940X
Kernel slide: 0x0000000003400000
Kernel text base: 0x83401000
Boot : 0x54e68884 0x00000000
Sleep : 0x54e68a7e 0x000dd6ac
Wake : 0x54e68b19 0x00035c02
Calendar: 0x54e68b1d 0x00040927
Panicked task 0x84a87c60: 13773 pages, 122 threads: pid 0: kernel_task
panicked thread: 0xc5066e80, backtrace: 0x81a33ca0
0x834ad94d
0x834adcb1
0x8341d5bd
0x83dc8347
0x83dc8059
0x83dc7e35
0x8389c601
0x8389c513
0x836f6f65
0x8389cc6d
0x8389ccc5
0x83a9f18d
0x83a9c27f
0x83a9c73f
0x83a9c90d
0x836f6f65
0x83a9c8e5
0x836e91e7
0x8343ed9b
0x834ab59c
Task 0x84a87c60: 13773 pages, 122 threads: pid 0: kernel_task
Task 0x84a87948: 771 pages, 3 threads: pid 1: launchd
Task 0x84a87000: 2016 pages, 13 threads: pid 17: UserEventAgent
Task 0x84a87630: 481 pages, 4 threads: pid 18: misd
Task 0x84a87318: 4114 pages, 22 threads: pid 19: CommCenter
Task 0x87a62948: 349 pages, 2 threads: pid 21: keybagd
Task 0x87a62318: 574 pages, 4 threads: pid 23: iaptransportd
Task 0x87a62000: 868 pages, 9 threads: pid 24: configd
Task 0x87a7ac60: 793 pages, 4 threads: pid 25: lockdownd
Task 0x87a7a948: 1218 pages, 6 threads: pid 26: imagent
Task 0x87a7a630: 2771 pages, 4 threads: pid 27: atc
Task 0x87a7a318: 792 pages, 2 threads: pid 28: fairplayd.H1
Task 0x87a7a000: 1571 pages, 14 threads: pid 29: aggregated
Task 0x87c4ac60: 1069 pages, 4 threads: pid 30: routined
Task 0x87c4a318: 707 pages, 5 threads: pid 33: timed
Task 0x87d23c60: 646 pages, 2 threads: pid 35: installd
Task 0x87d23948: 2383 pages, 11 threads: pid 36: mediaserverd
Task 0x87d23318: 1279 pages, 11 threads: pid 38: ubd
Task 0x87d23000: 249 pages, 7 threads: pid 39: syslogd
Task 0x87d6ac60: 410 pages, 2 threads: pid 40: softwareupdated
Task 0x87d6a948: 851 pages, 5 threads: pid 41: mediaremoted
Task 0x87d6a630: 1877 pages, 7 threads: pid 42: identityservices
Task 0x87d6a318: 9938 pages, 16 threads: pid 43: SpringBoard
Task 0x87d6a000: 453 pages, 2 threads: pid 44: fileproviderd
Task 0x87e25c60: 609 pages, 4 threads: p -
Quastion about type conversion mapping
What does the type convertion mapping serve for in jdeveloper 10g?
Cant find any meaningful examples.
I think it sould be used for escaping java coding if it is necessarily to change automatically generated data types...or to supply some specific format like to_char function in sql... But it seems that neither functionallity is supporteds
Thanks. AlexThere is some more current info here:
http://wiki.eclipse.org/Introduction_to_Mappings_(ELUG)#Type_Conversion_Converter
But this is for the TypeConversionConverter in EclipseLink, which is mostly the same (the TypeConversionMapping in 9.0.4 became the TypeConversionConverter in 10.1.3).
It is basically to handle converting from one type in Java such as Calendar to another type in the database, say DATE or even VARCHAR, etc. It can handle most obvious conversions. Many conversions will also work without a converter, or at least work most of the time depending on if the database auto converters types, but some databases are more picking on the type that is bound matching the field type.
James : http://www.eclipselink.org -
What are the advantages and under what circumstances do we need to use each one of them?
Hello Sonia,
Depends upon u r requirement u have to choose which mapping is suitable..
In Real Time out most of our requirements through graphical mappings only.
Diffarent types of Mapping's....
1) MESSAGE MAPPING
2 ) ABAP MAPPING
3 ) JAVA MAPPING
4 ) XSLT MAPPING
Message Mapping:
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
Java Mapping :
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+mapping&adv=false&sortby=cm_rnd_rankvalue#
SAP Network Blog: Implementing a Java Mapping in SAP PI
/people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi
Java Mapping (SAP Library - Partner Connectivity Kit)
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
SAP Network Blog: XI Java Mapping Helper (DOM)
/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
SAP Network Blog: Testing and Debugging Java Mapping
/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
Binary Conversion in XI - Java Mapping - Code Gallery - Wiki
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/binary%2bconversion%2bin%2bxi%2b-%2bjava%2bmapping
SAP Network Blog: "JAVA MAPPING", an alternate way of reading a CSV file
/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
ABAP mappings run on ABAP Stack and are developed in the ABAP workbench of the Integration Server.
You normally do not need to use the ABAP mappings and is preferable for someone with ABAP programming background. I should say JAVA functions would suffice any complex scenarios.
refer step by step guides for ABAP Mapping
ABAP Mapping:
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=abap+mapping&adv=false&sortby=cm_rnd_rankvalue#
How to Use ABAP Mapping in Exchange Infrastructure 3.0 (NW2004)
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
SAP Network Blog: Testing ABAP Mapping
/people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
SAP Network Blog: How to call XI ABAP Mapping via RFC
/people/ricardoandres.maienza/blog/2007/04/06/how-to-call-xi-abap-mapping-via-rfc
SAP Network Blog: XI: ABAP mapping logs - more standard = better visibility
/people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
SAP Network Blog: Dynamically sending a mail to the PO creator using XSLT- ABAP Mapping
/people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping
You need to provide the name of your mapping program maually , you see it is an input box.
XSLT Mapping..
http://help.sap.com/saphelp_nw04/helpdata/en/83/2200cb50d345c793336d9a1683163e/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/83/2200cb50d345c793336d9a1683163e/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/b78d406b305537e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/4c/b2ad3de2d76b3be10000000a114084/frameset.htm
Thanks,
Satya Kumar
Reward Points if it is useful.. -
Different types of mapping techics
hi expects,
please provide some mapping technics.Rohit,
It depends upon the requirements. So after going through your requirements you will decide which type of mapping you want to use. Subsequently you will develop the mapping.
Check this threads for different types of mappings and their advantages and disadvantages:
Differences between the Mapping types.
Re: Types of Mappings and their Use
---Satish -
Advantages/disadvantages,Capabilities,Failures of Types of mapping
Dear all,
Can you kindly explain me the Advantages/disadvantages,Capabilities,Failures of Types of mapping.
what is the parser XSLT uses.
what is differnece between sax/dom parsers.
Thanks,
SrinivasaHi srinivas phani ,
The following websites give u good documentation on Mapping:
Excellent PDF Document on Mapping
http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
Mapping Development with the ABAP Workbench
http://help.sap.com/saphelp_nw04/helpdata/en/10/5abb2d9df242f6a62e22e027a6c382/content.htm
ABAP Mappings
http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
How to Use ABAP Mapping in XI 3.0
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
SAXParser
Both DOM and SAX approaches have advantages and disadvantages, and your choice of technique must depend on the type of data being parsed, the requirements of your application, and the constraints under which you are operating.
The SAX approach is linear: It processes XML structures as it finds them, generating events and leaving the event handlers to decide what to do with each structure. The advantage of this approach is that it is resource-friendly; because SAX does not build a tree representation of the document in memory, it can parse XML data in chunks, processing large amounts of data with very little impact on memory. This also translates into better performance; if your document structure is simple, and the event handlers don't have anything too complicated to do, SAX-based applications will generally offer a speed advantage over DOM-based ones.
The downside, though, is an inability to move around the document in a non- linear manner. SAX does not maintain any internal record of the relationships between the different nodes of an XML document (as the DOM does), making it difficult to create customized node collections or to traverse the document in a non-sequential manner. The only way around this with SAX is to create your own custom object model, and map the document elements into your own custom structuresa process that adds to complexity and can possibly degrade performance.
Where SAX flounders, though, the DOM shines. The DOM creates a tree representation of the document in memory, making it possible to easily travel from one node to another, or even access the same node repeatedly (again, not something you can do easily in SAX). This tree representation is based on a standard, easy-to-understand model, making it easier to write code to interact with it.
This flexibility does, however, come with an important caveat. Because the DOM builds a tree in memory, DOM processing cannot begin until the document has been fully parsed (SAX, on the other hand, can begin parsing a document even if it's not all available immediately). This reduces a developer's ability to "manage" the parsing process by feeding data to the parser in chunks, and also implies greater memory consumption and consequent performance degradation.
Consequently, the choice of technique depends significantly on the type of constraints the application will be performing under, and the type of processing it will be expected to carry out. For systems with limited memory, SAX is a far more efficient approach. On the other hand, complex data-processing requirements can benefit from the standard object model and API of the DOM.
After using DOM to parse XML documents for any length of time, you will probably begin to notice that performance tends to suffer when youre dealing with large documents. This problem is endemic to DOM's tree-based structure: larger trees demand more memory, and DOM must load an entire document into memory before it can allow you to parse it. For situations where performance is problematic with DOM, you have an alternative in the Simple API for XML (SAX). In this fifth installment in our Remedial XML series, I'll introduce you to the SAX API, and provide some links to SAX implementations in several different languages.
Further differences can be seen in the following websites
http://articles.techrepublic.com.com/5100-22-1044823.html
Parsing XML Efficiently : DOM Parsing ,SAX Parsing
http://www.oracle.com/technology/oramag/oracle/03-sep/o53devxml.html
SAX Example
http://www.informit.com/articles/article.aspx?p=26351&seqNum=6&rl=1
Event or DOM parsing?
http://discuss.joelonsoftware.com/default.asp?design.4.156750.12
SAX samples
http://xerces.apache.org/xerces2-j/samples-sax.html
Set up a SAX parser
http://www.ibm.com/developerworks/xml/library/x-tipsaxp.html
Simple API for XML (SAX)
http://en.wikipedia.org/wiki/Simple_API_for_XML
SAX Parser Benchmarks
http://piccolo.sourceforge.net/bench.html
XML Parsers: DOM and SAX Put to the Test
http://www.devx.com/xml/Article/16922/1954?pf=true
High-Performance XML Parsing With SAX
http://www.xml.com/pub/a/2001/02/14/perlsax.html
Using the SAX Parser
http://www.javacommerce.com/displaypage.jsp?name=saxparser1.sql&id=18232
Class SAXParser
http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParser.html
Class SAXParser
http://people.apache.org/~andyc/neko/doc/html/javadoc/org/cyberneko/html/parsers/SAXParser.html
SAX Parsers
http://webdesign.about.com/od/saxparsers/SAX_Parsers.htm
Interface SAXParser
http://excalibur.apache.org/apidocs/org/apache/excalibur/xml/sax/SAXParser.html
Class SAXParser
http://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/parsers/SAXParser.html
DOM Parsing
Excellent website showing how 2 use Document Object Model (DOM)
http://www.w3.org/DOM/
Document Object Model (DOM) Parsing
http://www.xml.com/lpt/a/1597
Overview of DOM, DOM Level 3 core,DOM Level 3 Load & Save
http://www.softwaresummit.com/2004/speakers/GrahamJAXP1.pdf
Sample java program using DOM
http://mail-archives.apache.org/mod_mbox/cocoon-cvs/200305.mbox/%[email protected]%3Eorg/mod_mbox/cocoon-cvs/200305.mbox/%[email protected]%3E
Easy RFC lookup from XSLT mappings using a Java helper class
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14
XML Transformation Using the TrAX APIs in JAXP
http://www.xml.com/pub/a/2005/07/06/jaxp.html?page=last
cheers!
gyanaraj
****Pls reward points if u find this helpful -
Choose the true about types of mapping XI supports
a. Structure Mapping
b. Node mapping
c. Value Mapping
d. Functional Mapping
i guess it supports all of those mappings specified..
iam i right on this??Guys -
I am a novice to XI. But, I guess as per my understanding this is what I think. Please advis me if you have better opinion that would justify this answer in certifrication.
XI by definition supports only the following 4 mappings types:
Message (Graphical), XSLT, JAVA & ABAP
However, first in Element cardinality addresses something called NODE MAPPING which describes as follows:
Mapping of Non Mandatory Nodes (minOccurs=0)
====================================
1. If a non mandatory node contains elements with minOccurs>0, these elements becomes mandatory after their parent node is assigned
2. Assignment of element is not sufficient
3. Node has to be 'created' by assigning a suitable source node/element
Therefore, as per this discription, I believe NODE mapping a valid for CERTIFICATION
Secondly, as per my understanding of message mapping, we map source and target STRUCTURES here. Does not this mean STRUCTURE MAPPING? Please confirm?
Thirdly, You experts all must have done Value Mappings in your projects and there is no need for me to describe more about it. Can not we consider this as a valid answer for CERTIFICATION?
Last but not least FUNCTIONAL MAPPING; I am not sure why this option is here? May be this is just to add confusion. On the otherside, it make sense if we consider including functions (both standard and user-defined) in our mapping. Does this make sense being a valid Mapping at all?
In other words, let me ask you all experts; Is this a direct or indirect question? If it is direct then we should turn down all the options. If indirect, may the first 3 are correct or all four.
Therefore, I rely on your guys for you input. Please provide your valuble analysis.
Thanks -
@XmlAttribute/@XmlValue need to reference a Java type that maps to text
Hi,
I get this exception when marshalling with xjc (either 2.0.1 or 2.1.3) generated classes. The xsd looks like this:
<xs:complexType name="ExtensionType">
<xs:simpleContent>
<xs:extension base="xs:anySimpleType">
<xs:attribute name="nombre" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="tipo" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="id" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>and the generated class looks like
public class ExtensionType {
@XmlValue
protected Object value;
@XmlAttribute
protected String id;
@XmlAttribute(required = true)
protected String nombre;
@XmlAttribute
protected String tipo;
}If I change value's type to String I don't get the error any more. I've tried some binding customizations, but without luck.
Any hints on how to a) customize de binding or b) modify the schema so that jaxb doesn't choke on xjc's bindings?
tksI am running into the same problem. I need an @XmlValue to be an Object (xs:anyType). Here are the basic annotations:
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "argument")
public class Argument {
@XmlAttribute(name = "type")
protected String type;
@XmlValue
protected Object value;
}The desired output is as follows:
<argument type="arg1.type" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">
test
</argument>However, I am getting the same exception: "@XmlAttribute/@XmlValue need to reference a Java type that maps to text in XML." when attempting to marshal.
Any suggestions would be appreciated. -
Data Type, Message Type and Mapping for FTP
Thanks in advance for your replies.
As our first production XI scenario, we need to move several (at least 46) files from our SAP instance to a couple of different servers to support our legacy systems. Once all locations are on SAP this requirement should go away.
I only want to pick up the file from the one server and place it on the other and this leads me to some questions.
How do I define the Data Type and Message Type for each of the files? Do I need to consider the size of the record in each interface and create DT/MT with different sizes.
Do I need a mapping program that simply maps one structure to the other?I recently completed a similar exercise.
It looks like this...
server1 ftp (Sender - delete file) - XI - Server2 ftp (receiver - create file). This will move the file from one server to another.
I used the same schema and mapped fields on a one to one basis.
The Size of the files I process are between 6kb and 500kb each, but the mapping/fields remain constant, just the numebr of items change.
Worked seemelessly for the last three weeks (since go-live) -
Problems with using wsld defined types in mapping
Hi,
I want to call a web service from XI.
I imported the wsdl of the web service as "External Definitions". The complex types are stored in xsd files referenced in "External References".
In "Message Interface", I set the "Input message" as "External message".
Then I want to create a "Message mapping" between the outbound message type and the inbound one I created, but when I choose the one from "External definition", no dataType appears to do the mapping.
Is it link to the fact the types used in the wsdl are defined in xsd files?
Regards
YannHi,
Have you followed the principle given in this URL at the end for creating your external definition?
http://help.sap.com/saphelp_nw04/helpdata/en/26/9e97b0f525d743882936c2d6f375c7/content.htm
Regards
Vijaya -
Container type massage mapping in PI
Hi,
I am facing issue in message mapping. I am new in the XI.
In the source XSD, One Container Structure is their of 1...1 cardinality and type structure. inside this container structure one more container with 1...unbounded cardinality. Fields are not visible in this container.
Hoe to map fields to the inside structure.Hi Ranj,
You can map the Container structure either one to one or based on the requirement to the target structure field which needs to be populated based on the occurence of the Container node from the Source. Also not quite sure of the below . Please clarify:
Fields are not visible in this container.
Hoe to map fields to the inside structure.
Please refer to the attached link for further details on Basics of message mapping. Let me know in case you need further help.
Mapping Concepts in SAP XI - Process Integration - SCN Wiki
Regards,
Sriram -
What is fault message type in mapping
hi folks,
what is the use of fault message type in message mapping . where do we use them .please spare a little time to type rather to refer to other blogs. have a nice dayHi Bose
Fault messages are used to propogate / send back the error maessage to the calling application. This is used when there is a failue and the sending system needs to know what the error was. This is more of catching Application Errors.
Also please go through the link below to get the details for fault messages...
http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm
fault message is a message that describes an application-specific error situation
we have standardised fault message in XI.
Fault message types are designed for application-specific errors that occur on the inbound side and that are reported back to the sender or persisted in monitoring.
In the synchronous case, when an application-specific error occurs on the inbound side, instead of sending a response message back to the sender, the application can send a fault message to handle the error.
The fault message of the application for an asynchronous ABAP server proxy is persisted for monitoring. In the case asynchronous of Java server proxies, the fault message is part of a negative application acknowledgement
Application-specific means that the application on the inbound side triggers the error itself because, for example, the request message did not contain sufficient information
See the below links
http://help.sap.com/saphelp_nw2004s/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm
Asynchronus RFC exception handling
XI Alerts are not getting triggered from proxy servers
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee5bc490-0201-0010-e9b5-a258cf083bca
/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
Fault Message
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
You can use Fault messages when you want to handle errors at the Inbound side ie at the destination side.
check this nice blog also
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
Fault Messages
http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/frameset.htm
Usage of Fault Messages in Synchronous interfaces
/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
usage of fault messages in asynchronous interfaces
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
Have a look at "/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client"
for more details have a look on these links
<b>
Fault messages -</b> /people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
Also ref:
<b>Handling Web Service SOAP Fault Responses in SAP NetWeaver XI -</b>
/people/jin.shin/blog/2007/05/21/handling-web-service-soap-fault-responses-in-sap-netweaver-xi
check this out
http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm
demo - /people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1 - this is sure to help you.
Thanks!!!
Regards
Abhishek Agrahari -
COPA- How to seggregate when 2 condion type are mapped to one copa field
Hi,
I have a scenario, wherein 2 Billing condition records PDIF & PR00 mapped to one copa field.
Going forward, I can map each of them to different copa fields, then is their a way to correct past data?
These 2 condition records have diffrent billing types.
If I go to CE1XXXX table, I have an option to pull data according billing types.
CE4XXX Segment table being a higher level table, I can't extract data per billing type.
Realignment and Reorganizing copa data doens't seem to address the fix.
Looking for some good suggestions.
Thanks,
Parimala.Hi,
From what I think, it is probably not possible and best not to correct the past data in this case. Technically, will you have any idea as to how to break this data, and based on what weightage, percentage or conditions? And how many years back are you going to correct the data?
I can suggest that you correct the data by reversing the old data out (by posting in opposite figures), put in the new mapping, and repost the data again. However, in this case, you'll lost the history of the posting and it will take a lot of time to identify the data and re-post.
It's best to use the mapping from a logic break onwards, such as going forward in a new fiscal year... it's probably going to cost a lot of effort in re-educating the users, and correcting the reports, but it might be more effective from IT point of view.
Hope this helps.
Cheers,
Gimmo -
Types of mapping which xi supports?
funtional mapping is supported by XI or not? if so where can i find this options in XI
Thanks ®ards
sivaHi Siva,
These terms are really confusing....But actually XI support...
1. Structural Mapping.
2. Value mapping
There is no term node mapping / functional mapping...
When we talk about Mapping techniques...then there are
Message mapping
Graphical design and test environment
Queue-based model allows handling of very large
documents
Extensible via Java user-defined functions
XSLT
Open standard
Portable
Extensible via Java user-defined functions
Memory overhead for very large documents
Java
Flexibility of Java programming language
Java mapping program is responsible for
parsing/rendering XML
ABAP
Leverage existing ABAP base
ABAP mapping program is responsible for
parsing/rendering XML
I have some good document on this...let me know your emaild.
Nilesh
Maybe you are looking for
-
Outgoing payment exchange rate issue
Hi all, i have an outgoing payment in yen. but the system 6 decimals does not alow me to calculate the amount without difference.How can i increase the decimal? or any workaround on this? Thanks in advance.. joanne
-
Macbooks unable to get DHCP from Wireless Network
Our PC Laptops can connect to our Cisco Wireless Network (using wireless controllers and lightweight AP's) without issue. However Macbooks and several other devices are able to connect and get an IP address via DHCP. If I manually put an IP in the M
-
IPhone 5 power button randomly presses itself
The past few days, my iPhone 5 has randomly pressed the power button and my screen will lock or go to a black screen that says "slide to power off". It does this over and over. I made a copy of the phone right after it started happening and then rest
-
I have a grey screen when booting up my MacBook with stop sign, don't know what to do?
My MacBook Pro will not start up, it has a grey screen and a stop sign. I have looked at other advice and I don't have a snow leopard disk to put in. What shall I do? I have a lot of work on it which I think I have backed it up with iCloud but would
-
Hi pls send me the ppts and documenation to understand MM
Hi i am an abaper i want to know about mm pls send me the ppts and documenation to understand MM