on 03-15-2007 11:49 AM
Hi.
I have the source and must be mapped so i get the target result.
How would you do the mapping?
I've tested many times and works only if every POSICION node has a PLURIANUAL node inside. Otherways, i get a incorrect mapping.
Here are the source and the result as should be before the mapping :
<?xml version="1.0" encoding="ISO-8859-1"?>
<p2:MT_INDUSTRIA xmlns:p2="http://www.es/INTERFASE_INDUSTRIA">
<posicion>
<SOCIEDAD>DGA</SOCIEDAD>
<POSPRE>G/6221/480217/91001</POSPRE>
<PLURIANUAL>
<EJ_PL>2008</EJ_PL>
<IMPORTE_PL>100</IMPORTE_PL>
</PLURIANUAL>
<PLURIANUAL>
<EJ_PL>2009</EJ_PL>
<IMPORTE_PL>101</IMPORTE_PL>
</PLURIANUAL>
</posicion>
<posicion>
<SOCIEDAD>DGA</SOCIEDAD>
<POSPRE>H/6221/480217/91001</POSPRE>
<PLURIANUAL>
<EJ_PL>2009</EJ_PL>
<IMPORTE_PL>100</IMPORTE_PL>
</PLURIANUAL>
<PLURIANUAL>
<EJ_PL>2010</EJ_PL>
<IMPORTE_PL>101</IMPORTE_PL>
</PLURIANUAL>
</posicion>
<posicion>
<SOCIEDAD>DGA</SOCIEDAD>
<POSPRE>I/6221/480217/91001</POSPRE>
</posicion>
<posicion>
<SOCIEDAD>DGA</SOCIEDAD>
<POSPRE>J/6221/480217/91001</POSPRE>
<PLURIANUAL>
<EJ_PL>2011</EJ_PL>
<IMPORTE_PL>100</IMPORTE_PL>
</PLURIANUAL>
<PLURIANUAL>
<EJ_PL>2012</EJ_PL>
<IMPORTE_PL>101</IMPORTE_PL>
</PLURIANUAL>
</posicion>
</p2:MT_INDUSTRIA>
Result :
<ns0:MT_INDUSTRIA xmlns:ns0="http://www.es/INTERFASE_INDUSTRIA">
<posicion>
<SOCIEDAD>DGA</SOCIEDAD>
<PLURIANUAL>
<EJ_PL>2008</EJ_PL>
<IMPORTE_PL>100</IMPORTE_PL>
<POSPRE>G/6221/480217/91001</POSPRE>
</PLURIANUAL>
<PLURIANUAL>
<EJ_PL>2009</EJ_PL>
<IMPORTE_PL>101</IMPORTE_PL>
<POSPRE>G/6221/480217/91001</POSPRE>
</PLURIANUAL>
<EJERCICIO_PRESUP>2007</EJERCICIO_PRESUP>
</posicion>
<posicion>
<SOCIEDAD>DGA</SOCIEDAD>
<PLURIANUAL>
<EJ_PL>2009</EJ_PL>
<IMPORTE_PL>100</IMPORTE_PL>
<POSPRE>H/6221/480217/91001</POSPRE>
</PLURIANUAL>
<PLURIANUAL>
<EJ_PL>2010</EJ_PL>
<IMPORTE_PL>101</IMPORTE_PL>
<POSPRE>H/6221/480217/91001</POSPRE>
</PLURIANUAL>
<EJERCICIO_PRESUP>2007</EJERCICIO_PRESUP>
</posicion>
<posicion>
<SOCIEDAD>DGA</SOCIEDAD>
</posicion>
<posicion>
<SOCIEDAD>DGA</SOCIEDAD>
<PLURIANUAL>
<EJ_PL>2011</EJ_PL>
<IMPORTE_PL>100</IMPORTE_PL>
<POSPRE>J/6221/480217/91001</POSPRE>
</PLURIANUAL>
<PLURIANUAL>
<EJ_PL>2012</EJ_PL>
<IMPORTE_PL>101</IMPORTE_PL>
<POSPRE>J/6221/480217/91001</POSPRE>
</PLURIANUAL>
</posicion>
</ns0:MT_INDUSTRIA>
Regards.
Inigo
HI
Check
Exchange Infrastructure 3.0: Best Practices for
Naming Conventions https://websmp101.sap-ag.de/~sapdownload/011000358700004455192006E/NameConventions.pdf
Regards
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Where i can get the Object naming standards. Object Prefix
Like Message Type = MT_Order
Message Mapping = MM_Order
Message Interface = MI_Order
Ravichandran K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
naming convetions Doc from SAP
Hi, you can use the first version of the naming guide:
https://websmp207.sap-ag.de/~sapidb/011000358700004455192006E/NameConventions.pdf
/people/sap.india5/blog/2005/11/03/xi-software-logistics-1-sld-preparation
/people/thorsten.nordholmsbirk/blog/2006/07/25/structuring-integration-repository-content--part-1-software-component-versions
/people/alwin.vandeput2/blog/2006/06/07/d-xie-soap-part-4-xi-software-component-architecture-for-point-to-point-scenarios
Hi
Check with data type .. occurance.
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.