cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Mapping

Former Member
0 Kudos

I am making mapping with software Stylus, soon to transfer it to XSLT TOOL.

But this type of mapping this not working.

The tests with MM of XI were made and I do not have problems.

So that it can be happening?

The scenario is File - XI - RFC

Help me please...!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ximena,

If you see differences in the way that Stylus and XI are transforming the XSLT, you can run the transformation using the SAP XSLT Engine, outside of XI.

You can run this engine from the command line using the following steps:

1) Download "sapxmltoolkit.jar" from your XI installation. This contains the SAP XSLT Engine. You can find it under:

<SAP_install_dir>/<SID>/DVEBMGS00j2ee/cluster/server0/bin/kernel

2) Run it from the command line as follows:

java -classpath "C:\Temp\sapxmltoolkit.jar" com.sap.engine.lib.xsl.xslt.CommandLine -xml test.xml -xsl test.xsl -out test.out

If you leave off the parameters, it will list all of the options. For example:

java -classpath "C:\Temp\sapxmltoolkit.jar" com.sap.engine.lib.xsl.xslt.CommandLine

You can also use this XSLT Engine from within Stylus or XML Spy instead of the default XSLT Engine.

Thanks,

Jesse

moorthy
Active Contributor
0 Kudos

HI,

Stylus = Syulus Studio .

Is your XSL is working independently with proper input ? i.e are you getting correct xml output after your XSL transformation ? juct check it.

Then import into Imorted Archive , use this mapping in the Interface Mapping and test the same.

If you have a problem with the tool, try to use XML Spy and test it.

Thanks,

Moorthy

Former Member
0 Kudos

The problem is in the headed one of the XSL, when commenting the following line the data are kept in the corresponding tables.

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:ns0="urn:vivesap:sap:legacy:sicc"

xmlns:sap="http://www.sap.com/sapxsl">

<i><b> <!-- xmlns:sdn="http://sdn.sap.com/sapxsl"--></b></i>

But once uncomment the line, does not keep the data and not send error in the monitors. to what it must?

Thank's

PD. sorry my English.

Message was edited by: Ximena Gonzalez

Message was edited by: Ximena Gonzalez

Shabarish_Nair
Active Contributor
0 Kudos

i feel you can remove the namespace in the header, it sudnt cause any problems.

Just try giving <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> only and try.

Former Member
0 Kudos

Shabarish,

It is not possible to remove the namespace of the head so that they are estan calling to the following functions

<i><sap:external-function class="ZCL_XI_CONV_SOC" kind="class" method="CONSERSOC_LEG_SAP" name="<b>sdn</b>:ConvSoc">

<sap:argument param="SOCLEGA" type="string"/>

<sap:result param="SOCIEDAD" type="string"/>

</sap:external-function>

<BUKRS>

<xsl:value-of select="<b>sdn</b>:ConvSoc(string(cod_filial))"/>

</BUKRS></i>

Message was edited by: Ximena Gonzalez

Former Member
0 Kudos

<b><i>xmlns:sdn="http://sdn.sap.com/sapxsl"</i></b>

So that it is used this to header?

it is possible to use another one?

or is necessary a patch in XI so that it can record the data?

the scene finishes to OK and xml sent to R3 this correct one

MONI -> Technical Routing -> Payloads -> MainDocument

<?xml version="1.0" encoding="utf-8" ?>

- <ns1:Z_GL_IESICCSAP_DE023 xmlns:ns0="urn:vivesap:sap:legacy:sicc" xmlns:ns1="urn:sap-com:document:sap:rfc:functions" xmlns:sdn="http://sdn.sap.com/sapxsl">

- <IT_DOCTOS>

- <item>

<TIPPROC>10</TIPPROC>

<BLART />

<BLDAT>20021023</BLDAT>

<BUKRS>ERR</BUKRS>

<BUDAT>20021023</BUDAT>

<WAERS>01</WAERS>

<XBLNR>000000000369</XBLNR>

<BKTXT>037</BKTXT>

<WRBTR>0000000000075896</WRBTR>

<VALUT>20031019</VALUT>

<ZOUNR>000000000369</ZOUNR>

<SGTXT>WALDO MUNIZAGA NAVA XXXXXX</SGTXT>

</item>

</IT_DOCTOS>

</ns1:Z_GL_IESICCSAP_DE023>

But in the table the data is not recorded

Message was edited by: Ximena Gonzalez