Skip to Content
Product Information
Author's profile photo MOHAMED ABDUL LATIF

SAP Document Compliance Solution for KSA E-Invoicing Phase One

SAP Localized Solution for Saudi Arabia (KSA) e-invoicing Phase One is now available for SAP ERP and SAP S/4HANA.

KSA localized E-Invoicing Solution helps SAP customers comply with Zakat, Tax and Customs Authority (ZATCA) Electronic Invoicing (FATOORAH).


Solution Overview

  • eDocument framework SAP Document Compliance has been developed by SAP Globalization Services to comply with local regulations mandating the use of electronic documents to be sent to business partners and/or legal authorities.
  • SAP Note: 3095262 – SAP Document Compliance Saudi Arabia: eInvoicing
  • Supported types of documents:
    • Customer invoices created from billing or accounting documents
    • Supplier invoices (Self-Billing Invoices)
    • Credit notes
    • Debit notes
  • Special Scenarios:
    • Nominal supply
    • Exports invoices
    • Summary Invoice
  • The Solution helps you to generate Electronic Invoices and their associated Notes in XML file format as per the Provisions of the E-Invoicing Regulation.
  • The Solution generates a QR code and is embedded in the XML file. The QR code can be extracted using printing programs to be printed in any Human Readable Format (such as PDF Forms).
  • The Solution allows you to share/send the generated XML file with the buyer via email or any other electronic channel.
  • The Solution helps you to save time and effort for the implementation of Phase Two (integration) of KSA E-invoicing (FATOORAH) starting from January 1, 2023.

 

Product and Solution Videos

Implement SAP eDocument Framework:

  • If you are already using Document Compliance, then you need to ensure that all
    the SAP Notes are implemented.
  • If you are not using Document Compliance, then you need to go through the SAP Document Compliance product page and choose Implement and follow the instructions.

Implement SAP Solution for KSA E-Invoicing Phase One

Implement KSA E-Invoicing Phase One via the following SAP Notes:

Mapping Fields to the XML for Saudi Arabia E-Invoicing Localized Solution

The system uses the Application Interface Framework to map the fields of the source documents to the electronic document, normally an XML file. You can determine how the system fills some of the fields by defining value mappings or fix values.

  • Configuring Allowance Condition Type (ALLOWANCE_COND_TYPE)
    Use this value mapping to maintain the condition types used for allowances. (Discount).
  • Configuring Reasons for issuance of credit / debit note for SD (CR_DB_REASON_SD)
    Use this value mapping to maintain the reasons for the issuance of credit/debit notes.
  • Assigning eDocument Type to Billing Document Type (EDOCUMENT_TYPE_SD)
    Use this value mapping to map the eDocument type to the Billing Type. This mapping is used to determine the eDocument Type while creating the eDocument.
  • Configuring Exchange Rate Type for the Company Code (EXCHANGE_RATE_TYPE)
    Use this value mapping for maintaining the Exchange Rate Type (One Entry) which your company is using to exchange to SAR.
  • Configuring Invoice Type Code and 3rd Party Inv. Ind. for FI (INVOICE_TYPE_CODE_FI)
    Use this value mapping to map the invoice, credit note, and debit note type codes defined in your system with the external values accepted by the Tax authority.
  • Configuring Invoice Type Code and 3rd Party Inv. Ind. for SD (INVOICE_TYPE_CODE_SD)
    Use this value mapping to map the invoice, credit note, and debit note type codes defined in your system with the external values accepted by the Tax authority.
  • Configuring Payment Means Code (PAYM_MEANS_CODE)
    Use this value mapping to map the payment method defined in your system with the external values accepted by Tax Authority.
  • Configuring Partner Function for Customer (SALES_ORG_PART_FUNC)
    This value mapping is relevant for billing documents only. Use this value mapping if you want to display in the XML different information per sales organization for customer or for contact than the default used by the system.
  • Configuring Tax Category and Nominal Invoice Indicator (TAX_CATEGORY)
    Use this value mapping to map the specific tax codes in your system to the tax categories required by Tax Authority.
  • Configuring Tax Exempt Reason Code (TAX_EXEMPT_CODE)
    Use this value mapping to map the specific tax exemption codes in your system to the ones required by the Tax authority.
  • Configuring Tax Period (TAX_PERIOD)
    Use this value mapping for maintaining the Tax Period (Quarterly/Monthly) which your company is following.
  • Configuring Unit of Measure in ISO (UNIT_OF_MEASURE_CODE)
    Use this value mapping to map the internal unit of measure code (BUn) configured in your system to the one required by the Tax Authority. By using this value mapping, it isn’t necessary to change the configuration you’ve done in the CUNI transaction.

For more info, please refer to the SAP Note 3095262 – SAP Document Compliance Saudi Arabia: eInvoicing


Products Links:

 

Give us your feedback
To ensure that we’re covering what you need, please leave your feedback at the bottom of this blog post!

 

Regards,
Mohamed Latif

#SAPGoGlobal #SAPLocalization

Assigned Tags

      11 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo sitesh Behera
      sitesh Behera

      Hi Sir..

      Thanks for the blog..much informative and helpful one..

      I followed all the above steps you mentioned but while generating XML or display button using SAP transaction code "EDOC_COCKPIT", an error message is showing "The data object could not be created: The type does not exist." with Message ID EDOCUMENT000.

      I rechecked all the configuration and also the SAP troubleshooting guide 2530509.

      Where possibly the fix need to be done so that I could able to generate XML.

      Thank you..:)Waiting for your response.

      Author's profile photo MOHAMED ABDUL LATIF
      MOHAMED ABDUL LATIF
      Blog Post Author

      Hi Sitesh Behera,

      Thanks for your comments

      You can raise an incident to the component “CA-GTF-CSC-EDO-SA” to get the required support.

      Best Regards,

      Author's profile photo sitesh Behera
      sitesh Behera

      Hi Sir,

      where the QR code is stored in SAP for E-document.

      Waiting for you response...

      Author's profile photo MOHAMED ABDUL LATIF
      MOHAMED ABDUL LATIF
      Blog Post Author

      Hi Behera,

       

      It’s stored on the SAP eDocument database table EDOSAINV.QR_CODE

       

      Regards,

      Author's profile photo sitesh Behera
      sitesh Behera

      Hi Sir,

      Thanks for the information.. In generated XML form EDOC_COCKPIT there is node called QR and it's value is stored in 'EmbeddedDocumentBinaryObject'.

      Is there any way to decode QR string into image QR via ABAP or any other means? and What is the use of that QR node in XML?

      I would be appreciate if you could please share the solution.

      Waiting for your response.

      Regards,

      Sitesh

      Author's profile photo Shrinivas Saware
      Shrinivas Saware

      As per SAP FAQ, first phase QR code is not compulsory on Invoice output.

      If you are using Adobe form then the following document will help you to accomplish you what are looking for.

      https://blogs.sap.com/2020/09/25/printing-qr-code-and-digital-signature-in-adobe-forms/

      Saudi Arabia FAQ https://jam4.sapjam.com/groups/aDJPUFaeB2noMhwk999hKH/documents/Y9uY3wGULREflpUTMLVslH/slide_viewer

      Phase%201%20and%202

      Phase 1 and 2

      Author's profile photo sitesh Behera
      sitesh Behera

      Hi Shrinivas,

      Thanks for your response.

      Can we decode the following QR code.. From the above solution we would generate the same below string in the QR code. But I was looking for decode this string and extract the information into a template(Smartform or Adobe Form) which is encoded in this below string...

      Waiting for your response...Please correct me if my approach is wrong...

      Author's profile photo . Ramy
      . Ramy

      Country specific / Saudi Arabia is Not found in SPRO

      we implement all note in installation steps

      https://help.sap.com/viewer/79f3a0e33a974335951a4344e42ea4c4/6.18.17/en-US/70d4d5b4ff374e529d5d59c0f22929b1.html

      Version : S4CORE : 102 SP 0

      is it an issue or it is normal for our SYSTEM version ?

      Author's profile photo MOHAMED ABDUL LATIF
      MOHAMED ABDUL LATIF
      Blog Post Author

      Hi Ramy,

      We do not have country-specific settings to be updated for the Saudi Arabia solution, that is why we don't see Saudi Arabia in SPRO

      Regards,

      Author's profile photo Taoufik BOUNOUAR
      Taoufik BOUNOUAR

      Hi Latif,

       

      Thank you for sharing this information.

      Could you please confirm or not that the Invoices from RE-FX are included in this solution scope.

      (in the SNotes shared by you, I can't find any information about RE-FX)

      If Yes, could you share the SAP Notes or documentation ?

       

      Regards,

      Taoufik.

      Author's profile photo MOHAMED ABDUL LATIF
      MOHAMED ABDUL LATIF
      Blog Post Author

      Hi Taoufik,

      RE-FX is not included in the solution scope

      Regards,

      Latif