Versiones comparadas

Clave

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

...

13. In order to determine whether an invoice is for self-consumption, a new BAdI of the Canary Islands is called if the mapping is Canarian. If it is still a peninsular mapping, the call to the BAdI to determine if it is self-consumption does not vary:

14. In the call to get_facturas_rectificadas of BAdI  /edge/badi_sii_mapeos_gen, the new parameter iv_canarias is added.


Class /EDGE/CL_EDOC_SII_MAP_FE_BL

...

  • Issuer Invoice Serial Number
  • Description
  • External Ref
  • 2_7.3
  • Previous Rule GGEE or REDEME or Competition
  • Real Estate Data
  • Amount Transmission Real Estate
  • Issued By Third Parties Or Recipient
  • Third and Sixth Additional Disp Billing and Organized Gas Market
  • InvoiceWithoutIdentityRecipientArticle6.1.d
  • Entity Succeeded


ISU/FICA Issued


Class /EDGE/CL_SII_MAP_FICA_L_11

  • GET_ESTRUCTURA_XML method: Call to the super->get_estructura_xml and me->get_estructura_xml_1_1 methods with the new parameter iv_canarias = iv_canarias.

  • Method GET_ESTRUCTURA_XML_1_1:

...

8. In the call to the method es_no_subject of the BAdI /edge/badi_sii_mapeos_fe_sd_cl parameter iv_canarias is added.

Additional properties


Class /EDGE/CL_EDOC_SII_MAP_RC_BL_11

  • GET_SII method: The call to the get_id_invoice method is made with the new parameter iv_canarias.


Class /EDGE/CL_EDOC_SII_MAP_RC_L_11

  • GET_ESTRUCTURA_XML method: In the get_estructura_xml method call, the new importing parameter iv_canarias is added.


Additional ISU/FICA properties


Class /EDGE/CL_SII_MAP_FICA_RC_11

  • GET_ESTRUCTURA_XML method: The parameter iv_canarias is added in the call to the get_estructura_xml method.


Invoices Received


Breakdown and self-consumption
The breakdown of invoices received is done again in the mapping classes of the Canary Islands so the breakdown of the AEAT classes is not affected.

Field Adjustments for the Canary Islands
It may be that the client wants to define a different mapping for the AEAT than for the Canary Islands. The mapping of the Canary Islands reuses the mapping defined for the AEAT using inheritance in its methods. In this way, initially and the XML fields of the Canary Islands that exist in the XML of the AEAT take exactly the same mapping as in the AEAT.

If it is the case that the mapping for the Canary Islands is different, new BAdIs have been created without implementation to overwrite the AEAT mapping and define a specific one for the Canary Islands. For outgoing invoices, the fields whose mappings can be modified for the Canary Islands are the following:

  • Issuer Invoice Series
  • Amount Rectification (ChargeImplicitaImplicitaRect)
  • Description
  • External
  • Simplified Invoice Articles 7.2, 7.3
  • Previous Regio GGEE or REDEME or Competition
  • Entity Succeeded

Class /EDGE/CL_EDOC_SII_MAP_FR_L

  • Method GET_ID_INVOICE:


1. In the call to the method get_type_invoice the optional parameter iv_canarias is added.

2. In the call to the BAdI /edge/badi_sii_mapping_rec method get_id_emitter_invoice parameter iv_canarias is added.

3. Invoice type conditions 24 and 25 are added so that this block matches the holder's data.


  • Method GET_ESTRUCTURA_XML:


1. In the call to the method get_type_invoice the optional parameter iv_canarias is added.

2. In the call to the get_special_regime_method, the optional parameter iv_canarias is added.

3. The access to the VAT indicators table /EDGE/SII_MP_013, is grouped in a method in the utilities class, /edge/cl_sii_utilities, where according to the value of parameter iv_canarias, the table /EDGE/SII_MP_013 is read for maps of the AEAT or /edge/sii_ca_003 for maps of the Canary Islands.

4. In the method call determines_counterpart of the BAdI /edge/badi_sii_mape_tercero_fr the new importing parameter iv_canarias is added.

5. In the call to the method get_id_emitter_invoice of the BAdI /edge/badi_sii_mapping_rec the parameter iv_canarias is added.

6. In the call to the get_id_invoice method, the importing parameter iv_canarias is added.

7. To determine if an invoice is for self-consumption, a new BAdI of the Canary Islands is called in case the mapping is Canarian. If it is still a peninsular mapping, the call to the BAdI to determine if it is self-consumption does not vary:

Image Added

8. Invoice type conditions 24 and 25 are added so that the Invoice ID matches the holder data.

9. Invoice type conditions 24 and 25 are added so that the counterparty matches the holder data.

10. In the call to get_facturas_rectificadas of BAdI  /edge/badi_sii_mapeos_gen, the new parameter iv_canarias is added.


Class /EDGE/CL_EDOC_SII_MAP_FR_L_11

  • Method GET_ESTRUCTURA_XML: In the calls to the methods get_estructura_xml and get_estructura_xml_1_1_1 the parameter importing iv_canarias is added.


Class /EDGE/CL_EDOC_SII_MAP_FR_BL

  • GET_SII method: The call to the get_id_invoice method is made with the new parameter iv_canarias.
  • Method GET_ID_INVOICE:


1. In the call to the method /edge/cl_sii_utilities=>get_id_invoice the new parameter iv_canarias is added.

2. In the call to the method get_type_invoice the new optional parameter iv_canarias is added.

3. Invoice type 24 and 25 conditions are added so that this block coincides with the holder's data.


Class /EDGE/CL_EDOC_SII_MAP_FR_BL_11

  • GET_SII method: The call to the get_id_invoice method is made with the new parameter iv_canarias.


Class /EDGE/CL_EDOC_SII_MAP_FR_IL

  • Method GET_ID_INVOICE:
    1. The call to the get_id_invoice method is made with the new parameter iv_canarias.

          2. In the call to the method get_type_invoice the optional parameter iv_canarias is added.

          3. Invoice type 24 and 25 conditions are added so that this block coincides with the holder's data.


Investment Goods


Class /EDGE/CL_EDOC_SII_MAP_BI_BL

  • Method GET_ID_INVOICE: The call to the method get_id_invoice is done with the new parameter iv_canarias.
  • GET_SII method: The call to the get_id_invoice method is made with the new parameter iv_canarias.


Class /EDGE/CL_EDOC_SII_MAP_BI_L_11

  • GET_ESTRUCTURA_XML method: Calls to the get_estructura_xml method are made with the new parameter iv_canarias.


Class /EDGE/CL_EDOC_SII_MAP_BI_L

  • Method GET_ESTRUCTURA_XML: The call to the method get_id_invoice is done with the parameter iv_canarias.
  • Method GET_ID_INVOICE: The call to the method get_nif_creditor of the BAdI /edge/badi_sii_cons_razon_gen is made with the new parameter iv_canarias.


Class /EDGE/CL_EDOC_SII_MAP_BI_IL

  • Method GET_ID_INVOICE: The call to the method get_id_invoice is made with the new parameter iv_canarias.

Debits Issued


100% of the AEAT mapping of the class: /EDGE/CL_EDOC_SII_MAP_CE_L_11 (class inheritance) is reused. In addition, it is possible to extend the value of the field Issuer Invoice Serial Number. To do this, the GET_SII method of the class /EDGE/CL_EDOC_SII_MAP_CE_L_11 is edited and the call is added to the BAdI /edge/badi_sii_map_ca_gen_cli METHOD get_num_serie_factura_emi. In this way we give the possibility to change the mapping of this field for the XML of the Canary Islands.

From the new Canary Islands mapping class, the AEAT get_sii (1.1) is called to reuse this mapping with the Canary Islands parameter informed (inheritance).

In this class, /EDGE/CL_EDOC_SII_MAP_CE_L_11, the get_sii method is also modified. In the selects to the edocument where the GUID is retrieved, the condition is added in the where canarias = iv_canarias.

In the mapping class of AEAT version 1.0, /EDGE/CL_EDOC_SII_MAP_CE_L, some modifications are also made. In the get_sii method, in the selects to the edocument where the GUID is retrieved, the condition is added in the where canarias = iv_canarias. But this class is obsolete due to version 1.1 of the AEAT.

Payments Received


The AEAT mapping of the class: /EDGE/CL_EDOC_SII_MAP_PR_L_11 (class inheritance) is reused. In addition, it is possible to extend the value of the field Issuer Invoice Serial Number. To do this, the GET_SII method of the class /EDGE/CL_EDOC_SII_MAP_PR_L_11 is edited and the call is added to the BAdI /edge/badi_sii_map_ca_gen_cli METHOD get_num_serie_factura_emi. In this way we give the possibility to change the mapping of this field for the XML of the Canary Islands.

From the new Canary Islands mapping class, the AEAT get_sii (1.1) is called to reuse this mapping with the Canary Islands parameter informed (inheritance).

In this class, /EDGE/CL_EDOC_SII_MAP_PR_L_11, the get_sii method is also modified. In the selects to the edocument where the GUID is retrieved, the condition is added in the where canarias = iv_canarias.

Also the call to the get_nif_creditor methods of the BAdI /edge/badi_sii_sii_cons_razon_gen is modified by adding the new parameter id_canarias.

In the mapping class of AEAT version 1.0, /EDGE/CL_EDOC_SII_SII_MAP_PR_L, some modifications are also made. In the get_sii method, in the selects to the edocument where the GUID is retrieved, the condition is added in the where canarias = iv_canarias. But this class is obsolete due to version 1.1 of the AEAT.