Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.


8.4 Comunicación FTP (FUSE)

La comunicación con FUSE vía FTP consta de 2 pasos:

  • Salida de fichero XML hacia path de servidor SAP.

Mediante la clase Communication with FUSE via FTP consists of 2 steps:


  • Output XML file to SAP server path.

       Using the /EDGE/CL_SII_COM_AEAT_FTP se realizará la comunicación de salida del fichero. Para ello, en "Parametrizaciones Middleware" deberemos indicar dicha clase como valor del parámetro CLASE_COMUNICACION y adicionalmente indicar un nuevo parámetro llamado RUTA_FTP que tomará como valor la ruta del servidor SAP donde se depositará el fichero XML generado al efectuar el envío de un lote.
Con estos ajustes, los ficheros XML generados al enviar lotes se almacenarán en el path indicado a la espera de ser recogidos por FUSE para su envío y tratamiento por parte de la AEAT.

  • Recepción de XML de respuesta desde path de servidor SAP.

La recepción de los ficheros XMLs de respuesta desde FUSE se hace mediante el programa class, the output communication of the file will be performed. To do this, in "Middleware Parameters" we must indicate this class as value of            the parameter CLASS_COMUNICACION and additionally indicate a new parameter called RUTA_FTP that will take as value the route of the SAP server where the generated XML file            will be deposited when sending a lot.

       With these settings, the XML files generated when sending batches will be stored in the indicated path waiting to be collected by FUSE for shipment and processing by the AEAT.


  • Response XML reception from SAP server path.

       The reception of response XML files from FUSE is done by the program /EDGE/SII_RESPUESTA_FTP que deberá programarse en job de fondo para la lectura periódica de la ruta dónde se dejarán los ficheros de respuesta. Dicha ruta se indicará en "Parametrizaciones Middleware" con el parámetro RESPUESTAS_FTP
Una vez leído el fichero XML de respuesta, el programa indicado lo trata y hace la pertinente modificación del lote en el Cockpit mediante las funciones , which must be programmed as background job for the periodic reading of the path         where the response files will be left. This path will be indicated in "Middleware Settings" with the parameter RESPONSES_FTP.

       Once the answer XML file has been read, the indicated program treats it and makes the relevant modification of the batch in the Cockpit using the RFC /EDGE/SII_RESPUESTA_AEAT y            and  /EDGE/SII_ESTADO_LOTE_MW que son las mismas que se utilizan en el tratamiento pass through (ya sea la actualización del estado del lote, un mensaje de error AEAT, etc...).
Por último, si en "Parametrizaciones Middleware" tenemos completado el parámetro PROCESADOS_FTP, los ficheros XML de respuesta procesados se moverán a la ruta indicada. Si por el contrario dicho parámetro no está especificado, los ficheros XML se eliminarán functions that are the same as those used in the pass through processing ( Whether updating the status of the batch, an AEAT error message, etc).

       Finally, if in "Parameters Middleware" we have completed the parameter PROCESSED_FTP, processed XML files will be moved to the indicated path. If this parameter is not specified,            the  XML files will be deleted.