09-29-2006 11:53 PM
Hi;
I use the XML library for create my XML file, Im extracting the data
from R3 and building the XML document.
I wish to validate this document against his schema XSD built by third party (government organization) before i transfer this data (xml file)
to the external entity.
In my abap program:
¿How can i reach this validation level and if any
error exists then how can i get or trap the detail information?
this is a sample file XML with the external schema reference, as you can see in this part of the code.
<?xml version="1.0" encoding="UTF-8" ?>
- <Comprobante xmlns="http://www.sat.gob.mx/cfd/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sat.gob.mx/cfd/2 http://www.sat.gob.mx/sitio_internet/cfd/2/cfdv2.xsd" version="2.0" serie="A" folio="0000238" fecha="2006-09-01T19:32:03-05:00" sello="o4kAzhytaTKThSk9tbTQGg5OGacAltWZwxQPZuMg1XhfjMq5jJ0GyO7w2//bf8aTuHnbqwpkR7rIgIehGLy88Xb3Ck0EDsWZEAC1QUuqRq2iWKAnGQPS4l9s0QrJHt0Ziojjd0GQFek6BYXPdlmdTjLZ2x+J8ffYEGpIQZRB8=" noAprobacion="2755" anoAprobacion="2006" formaDePago="En una sola exhibicion" noCertificado="00001000000000806462" condicionesDePago="Neto a 30 días sin DPPP" subTotal="2531.99" descuento="0.00" total="2912.90" tipoDeComprobante="ingreso">
-
<DomicilioFiscal calle="AVE. UNIVERSIDAD" noExterior="992 NTE." colonia="COL. CUAUHTEMOC" municipio="SAN NICOLAS DE LOS GARZA" estado="N.L." pais="MEXICO
We are using SAP R/3 46C
Thanks in Advance for your help.
Alejandro Pérez
01-31-2007 8:36 PM
Hi, Alejandro
Did you found something on SAP side in order to generated this XML.
Currently I´m trying to find out some on SAP but nothing at this moment.
The company that I´m working needs to implement "Factura Electonica" also.
Probably we will use external broker to do this for us, and we will send just Idoc to the broker.
Please, let me know your progress on SAP side.
Regards, Fabio