2009 May 06 2:32 PM
Hi! I want to read this data into abap
<?xml version="1.0" encoding="UTF-8" ?>
- <formulario1>
<Descricao>TESTE</Descricao>
<Localizacao>MEXICO</Localizacao>
<datahora1>12.12.2009</datahora1>
<datahora2>13.12.2009</datahora2>
<Nome>Jose Manuel</Nome>
<Numero>123467890</Numero>
<Categoria>REUNIÃO</Categoria>
<Prioridade>ALTA</Prioridade>
<CampoTexto2>REUNIAO CONSUMIDA COM SUCESSO</CampoTexto2>
</formulario1>
and i have this in transformation
<?sap.transform simple?>
uFEFF<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined">
<tt:root name="ROOT" type="?"></tt:root>
<tt:root name="FORMULARIO1" type="ddic:ZSTRUCT_NEWDATASET"></tt:root>
<tt:template>
<FORMULARIO1>
<NUMERO tt:value-ref=".FORMULARIO1.NUMERO"></NUMERO>
<DESCRICAO tt:value-ref=".FORMULARIO1.DESCRICAO"></DESCRICAO>
<LOCALIZACAO tt:value-ref=".FORMULARIO1.LOCALIZACAO"></LOCALIZACAO>
<DATAHORA1 tt:value-ref=".FORMULARIO1.DATAHORA1"></DATAHORA1>
<DATAHORA2 tt:value-ref=".FORMULARIO1.DATAHORA2"></DATAHORA2>
<NOME tt:value-ref=".FORMULARIO1.NOME"></NOME>
<CATEGORIA tt:value-ref=".FORMULARIO1.CATEGORIA"></CATEGORIA>
<PRIORIDADE tt:value-ref=".FORMULARIO1.PRIORIDADE"></PRIORIDADE>
<CAMPOTEXTO2 tt:value-ref=".FORMULARIO1.CAMPOTEXTO2"></CAMPOTEXTO2>
</FORMULARIO1>
</tt:template>
</tt:transform>
and it is giving this error "ST_MATCH_FAIL" where is my fault?
Thanks,
Raul Natu
2009 May 07 1:01 AM
Hi,
The XML transformation is case sensitive . So try to change the transformation and execute.
Sruthi
2009 May 06 2:38 PM
Hi,
use the Function module..
TEXT_CONVERT_XML_TO_SAP
Regards,
Prabhudas
2009 May 07 12:39 AM
Hi,
as far I know XML is case sensitive. But it's just my guess and maybe SAP is specific.
Cheers
2009 May 07 1:01 AM
Hi,
The XML transformation is case sensitive . So try to change the transformation and execute.
Sruthi