wiki completa

Download as pdf or txt
Download as pdf or txt
You are on page 1of 26

10/15/24, 3:12 PM

Financials - Local Versions


Generated on: 2024-10-15 15:12:18 GMT+0000

Support Content | 1.0

PUBLIC

Original content: https://help.sap.com/docs/SUPPORT_CONTENT/ficountry?locale=en-US&state=PRODUCTION&version=1.0

Warning

This document has been generated from the SAP Help Portal and is an incomplete version of the official SAP product documentation. The information included in custom documentation may not
reflect the arrangement of topics in the SAP Help Portal, and may be missing important aspects and/or correlations to other topics. For this reason, it is not for productive use.

For more information, please visit the https://help.sap.com/docs/disclaimer.

SAP Document and Reporting Compliance for Chile

Currently we are maintaining all SAP Document Compliance as part of our community:

All SAP Document Compliance in one place!

Note there is a subpage for local solutions.

AIF Customizations Explained for OnPremise Installations

Value Mappings

CLBOL_RESPONSE_CODES Chile Boleta Error codes


CLDTE_CUSTRESP_CODES Chile DTE Customer Notification - Error codes
CLDTE_SIIRESPS_CODES Chile DTE Status Response Codes
CLRTF_RESPONSE_CODES Chile Receivable Trasfer File Error codes
DI_INV_EXEM_IND Invoice/Exemption Indicator
HI_BOL_NET_AMT_IND Net Amounts Indicator
HI_BOL_SERV_IND Boleta service indictor for external material g
HI_DTE_DELIVERY_TYPE Delivery Type
HI_DTE_DEST_COUNTRY Receiving/Destination country code
HI_DTE_EXCH_RATE_TYP Export documents exchange rate type
HI_DTE_GROSS_AMT_IND Gross Amount Indicator
HI_DTE_LOB_ECC Line of Business description for ECC

This is custom documentation. For more information, please visit the SAP Help Portal 1
10/15/24, 3:12 PM
HI_DTE_LOB_S4H Line of Business description for S4
HI_DTE_MERCH_IND Indicator of Type of merchandise
HI_DTE_PACK_TYP_CODE Type of Package code
HI_DTE_PAYMENT_FORM Payment Form/Export Payment Form
HI_DTE_PRINT_TYPE Print Type
HI_DTE_REFDOC_MERIND Reference document type for Transport Indicator
HI_DTE_REFDOC_SERIND Reference document type for Service Indicator
HI_DTE_REF_REASON Credit/Debit Memo Reason code
HI_DTE_SERV_IND Service Indictor for External material group
HI_DTE_TRANSP_TYPE Chile DTE SII Transport Type
HI_DTE_TRANS_CURR Transaction Currency Type
HI_DTE_WEIGHT_UNIT Weight unit
HI_FI_DTE_REF_REASON Credit/Debit Memo Reason code
PDI_INV_EXEM_IND Invoice/Exemption Indicator
PURCH_TRANS_TYPE Purchase Transaction type
SALES_TRANS_TYPE Sales Transaction type

Fixed Values

BOLETA_CARATULA_VERS Caratula version 1.0


BOLETA_DTE_VERSION DTE version 1.0
BOLETA_TED_VERSION TED version 1.0
DELNOTE_VER Delivery Note Verson 1.0
DLYBOLSUM_VER Daily boleta summary verison 1.0
DTE_CARATULA_VERSION Caratula version 1.0
DTE_TED_VERSION TED Version 1.0
DTE_VERSION DTE Version 1.0
ENV_BOLETA_VERSION Boleta version 1.0
EXEMPT_TAXCODE Exempt Tax Code

EXPRT_EXEMPT_TAXCODE Export exempt tax code D0


FOREIGN_CUST_TAXID Foreign customer's tax id 55555555-5
FREE_CHARGE_TAX_CODE Free Charge Tax Code D1
HI_DTE_LOB_ECC Company main business area Venta de Productos y servicios informaticos
HI_SD_BASE_AMT_BEEF Base amount beef processing(cond. types)

HI_SD_BASE_AMT_BM Base amount business margins(cond. types)

HI_SD_NET_AMOUNT Total NET Amount (condition types)

HI_SD_NET_COMM_OTHR Net Value of Comm. and Oth. Fees(cond. types)

HI_SD_NET_COMM_OT_EX Exempt Val. of Comm. and Oth. Fees(cond. types)

HI_SD_SP_CREDIT_CON Special 65% Credit for Construction(cond. types)

HI_SD_TOT_AMOUNT Total Amount(condition types)

HI_STO_NET_AMOUNT Total NET Amount for STO(Condition types)

HI_STO_TAX_AMOUNT Tax Amount for STO(Condition types)

HI_STO_TOT_AMOUNT Total Amount for STO(Condition types)

MONBOLSUM_VER Monthly boleta summary verison 1.0


PDI_SD_DISCOUNTS Item level Discounts(Condition types)

PDI_SD_DISCOUNTS_H Header level Discounts(Condition types)

PDI_SD_REF_PRICE Reference Price(Condition types)

PDI_SD_SURCHARGE Item level Surcharge(Condition types)

PDI_SD_SURCHARGE_H Header level Surcharge(Condition types)

RTF_AEC_VERSION Chile Receivable Transfer File Version 1.0


RTF_CARATULA_VERSION Chile Receivable Transfer File CARATULA Version 1.0
RTF_CEDIDO_VERSION Chile Receivable Transfer File CEDIDO Version 1.0

B2B DTE submission step by step

This is custom documentation. For more information, please visit the SAP Help Portal 2
10/15/24, 3:12 PM
Let's suppose than a B2B invoice (DTE 33) is submitted to SII for registration and analyze the steps in detail.

Relevant actions In the Cockpit

There are 3 relevant actions in this process:

1) Submit

Composes, assigns a number, signs and sends a DTE to the tax office for registration.

2) Status

Checks the status of the business document after DTE processing. If the DTE was already rejected or it is pending for processing by SII, it is reported as "Not Received by SII" in the cockpit.

3) History and application log (under "Goto")

Application log and history (list of steps executed and its corresponding tracing information) can help analyze the information sent and received from the tax office.

__________

Notice - actions are present in all cockpit versions including SAP Fiori and ABAP GUI based.

Process from SII side.

The flow of outgoing DTEs on SII is the following:

Step 1 - DTE Upload Validation

Electronic documents are received in the SII platform. Upload conclusion process (https posting) returns a technical acknowledgement. At this point a number of important actions already
finished successfully:

Number range, DTE and transmission signing process execution (a later point in time SII will perform all due validations).
Sender is allowed to submit invoices on behalf of the company.
Document could be parsed by SII.

Submission performs all these actions listed and the conclusion of the upload is reflected in the cocktpit.

Notice this process can be automated in SAP DRC, no manual intervention is required specially if there is a high volume of DTEs.

Step 2- DTE Processing

SII will check asynchronously the DTEs uploaded. If all controls are finished successfully, the DTE (in this example an invoice) will be accepted and then become visible in the sales records. SII
validation includes for example:

required fields like sector description ("giro") or municipality ("comuna").


signatures.
correspondence between sender and company represented.
taxes calculations.
etc...

Status check action will check the records accepted and update the cockpit accordingly. There could be DTEs accepted with some warnings.

Message "DTE not received by SII"

There are certain validations that will cause the complete rejection of the uploaded DTE. SII will inform the situation and provide a detail via mail (3318224 - eDocument Chile: Installation Overview
Note for SII E-Mail Processing). Thus the DTE is either never received by SII or requesting an adjustment.

This is custom documentation. For more information, please visit the SAP Help Portal 3
10/15/24, 3:12 PM
In conclusion, if some particular DTE is not received by SII after a long period of time compared with the rest of the DTE submitted it indicates there is some issue in the incoming SII log mail
processing.

The address to receive mails from SII is configured in the SII site itself, there is one for testing environment and another for production environment.

Create a Mail

Currencies Descriptions

Tax office references "schema" domain for currencies descriptions based on Customs Office definitions, this is the list of currencies available on version 10 and used in xml fields like TipMonType:

* BOLIVAR
* BOLIVIANO
* CHELIN
* CORONA DIN
* CORONA NOR
* CORONA SC
* CRUZEIRO REAL
* DIRHAM
* DOLAR AUST
* DOLAR CAN
* DOLAR HK
* DOLAR NZ
* DOLAR SIN
* DOLAR TAI
* DOLAR USA
* DRACMA
* ESCUDO
* EURO
* FLORIN
* FRANCO BEL
* FRANCO FR
* FRANCO SZ
* GUARANI
* LIBRA EST
* LIRA
* MARCO AL
* MARCO FIN
* NUEVO SOL
* OTRAS MONEDAS → Other currencies not considered
* PESETA
* PESO
* PESO CL
* PESO COL
* PESO MEX
* PESO URUG
* RAND
* RENMINBI
* RUPIA
* SUCRE
* YEN

Electronic Documents Numbering in Chile

SII tax office (IRS) in Chile manages taxpayer invoicing authorization by restricting the number of electronic documents companies can issue.

Periodic number range update from tax office site ("Folios")

This is custom documentation. For more information, please visit the SAP Help Portal 4
10/15/24, 3:12 PM

1- Download Number Ranges Manually

Taxpayers must request number ranges directly from the tax office site. For that the tax office has an application to manage the ranges and distributes files with capability to sign electronic
documents ("Timbraje") for that purpose:

Testing Environment
Production Environment

The result of the process generates an XML file. This XML file contains a number of components:

the range assigned to the DTE type,


company information,
a private key used to be used during signing.
and also a public key that is used to make sure nobody changed the content of the file manually after download, and before processing.

2- Adjust Number Range

The XML file must be uploaded using the "Create/Delete Number Range" App (in OnPremise and Private Cloud environments use transaction EDOC_CL_NRXML). This process will adjust the
number range in SAP for the particular DTE type.

Notes:

Notice the "Number range number" parameter refers to the Number object INTERVAL.
If the file was uploaded previously, it can be uploaded again, but a new invoice number range (from/to number) requires deleting the existing interval first.
Since there are not many intervals, '01' is normally the only one constantly reused.

The outcome of the process is a file downloaded to the local PC with extension "KEY". This is the private key (RSA key) used to sign the invoice number.

3- Upload Private Key (RSA Key) to SAP Integration Suite Keystore

The private key must be added to the SAP Integration Suite keystore. The system will request generic country and organization data to create a public key.

Notes:

Information in the public key does not undergo any type of specific data validation.
Automation is possible using Security APIs, these are sample requests using CURL you can test from your Microsoft Windows command prompt:

Creation

curl --location 'https://<tenant management node>/api/v1/RSAKeyGenerationRequests' \


--header 'Content-type: application/json' \
--header 'Accept: application/json' \
--header 'X-CSRF-TOKEN: <obfuscated>' \
--header 'Authorization: Basic <obfuscated>' \
--header 'Cookie: <obfuscated>' \
--data-raw '{"Hexalias":"AB....","Alias":"<name of key file>","RSAFile":"<file content>","SignatureAlgorithm":"SHA-256/RSA","CommonName":"yourcompany.cl","OrganizationUnit":"IT
Department","Organization":"My Company","Locality":"Santiago de Chile","State":"Santiago de
Chile","Country":"CL","Email":yourmail@company.cl,"ValidNotBefore":"/Date(1469685029780)/","ValidNotAfter":"/Date(2004417886000)/"}

Update

curl --location 'https://<tenant management node>/api/v1/RSAKeyGenerationRequests?update=true' \

etc....

Incoming Invoice Processing in Chile

This is custom documentation. For more information, please visit the SAP Help Portal 5
10/15/24, 3:12 PM

A) Communication Files Reception

Electronic invoice issuers must make the XML representation of the invoice available to the electronic invoice recipients. This process is normally carried out via mail, using the taxpayer
communication mail address maintained in the SII portal.

Communication files can be uploaded using the Upload tool for Incoming messages:

After this process is concluded, the files are available for the Inbound handler to add to the cockpit.

Notice SAP DRC provides a functionality to update business partners mail address periodically. It updates the BP default mail address, if some specific mail address is meant to be updated a
customer enhancement is required.

B) Process Incoming Files - Chile Incoming DTE Envelope

B.1) Transform incoming files into incoming DTE envelops

After the files are uploaded, the eDocument Inbound Message Handler periodic process creates the Chile Incoming DTE Envelope from the files previously uploaded.

B.2) Process Incoming DTE Envelop

DTES inside envelops are to be checked where the main audit process takes place here:

correct recipient
identified sender.
signature validation

This is custom documentation. For more information, please visit the SAP Help Portal 6
10/15/24, 3:12 PM
SII online validation (header values and signature)
duplication check

If everything is correct, a DTE is created in the cockpit, and a reception notification is sent, otherwise a rejection notification is sent instead.

C) Positive List

This is a typical step carried out by many companies. Since some invoices coming from vendors like municipalities, utilities and other vendors must be accepted and paid to prevent disruptions,

D) Negative List

It is also possible to create a negative list for certain vendors, whose invoices are automatically rejected without further analysis.

E) Transfer to Incoming Process - supporting 3-way matching in Chile

3-way match process in accounts payable involves checking the correspondence among the invoice, the good receipts, service entry sheets and the

SAP DRC framework included extension capabilities to help integrate the business process.

SAP ECC and SAP S/4HANA Private edition differ from S/4HANA Public edition, but both support connecting the incoming process. Furthermore, it is possible to integrate acceptance and
rejection from the receiving module automatically.

F) Invoice Expiration
It is also possible to schedule a process to issue rejections for invoices not processed after some days, to prevent expiration.

Communication Files (XML invoices) not received - how to proceed?

If the electronic document is not received it is not possible to reject it from the cockpit. There are 2 possibilities though:

1- Manually check invoices in SII portal and reject if appropriate in the SII portal.

2- Download the purchasing reports, compare with the received electronic documents and implement the rejection reusing and extending the existing functionalities in SAP DRC for Chile. In
particular, there is an iFlow for acceptance and rejection that can perform the activity.

Scheduling periodic jobs for automatic acceptance and rejection cases.

All previous steps can be automated, also SAP DRC will filter out electronic documents whose status is not appropriate for the action, but nevertheless, it is required to implement some vendor,
customer and dynamic date filtering.

In order to achieve this functionality, the cockpit allows to save filtering variants, and the reference these variants in the eDocument Background processing program.

Incoming factoring

Introduction and Concepts


This is custom documentation. For more information, please visit the SAP Help Portal 7
10/15/24, 3:12 PM
Electronic Tributary Document (DTE) - Documento Tributario Electrónico

This is the electronic version of invoices and deliveries, including

B2B Invoices, Credit Notes and Debit Notes


B2C Tickets (aka "Boletas"), Credit Notes and Debit Notes
Purchasing Invoices
Delivery Notes
Export Invoices, Credit Notes and Debit Notes

Chilean Tax Identification (RUT) - Registro Único Tributario

It is a tax identification issued both to companies and persons.

Chilean Internal Revenue Service (SII) - Servicio de Impuestos Internos

SII is the Chilean internal revenue service, they control electronic invoicing: Electronic Invoicing at SII

DTE Number Ranges (aka "CAF" files) - Codigos de Autorización de Folios

Tax office grants DTE nuber ranges to tax payers, what includes also a signing functionality

Mapping details for Chile

Sectors

Emisor →

Receptor → ERP brsch

→ BP Ind_sector HI_DTE_LOB_S4H

Tax office DTE format and content definition

Tax office defines the complete rules to complete the electronic documents: Definition of Electronic Tributary Documents

Customers can adjust the standard mapping in accordance with their particular requirement.

Understanding Certificates in Chile

Electronic invoicing in Chile makes an extensive usage of security artifacts, normally it is not easy to understand the usage. The implementation guide provides step-by-step instructions for
execution, this document provides contextual information to clarify the activities executed and the reason.

As a general rules, there are 3 objectives from security perspective that are to be implemented in any integration:

1. Confidential Communication
2. Authorization Control
3. Message Integrity

It is highly recommended to read this blog on basic security terms that can help understand the topic.

Confidential Communication

Understanding Company Parameters in Chile

List of company parameters used in electronic invoicing.

Semantic full XML Path Name In SAP Explanation External Links


Meaning Original company
Language configuration
parameter

Company /EnvioDTE/SetDTE/DTE/Documento/Encabezado/Emisor/Acteco Codigo de ACTECO Company List:


Sector Actividad sector code as
https://www.sii.cl/ayudas/ayudas_por_servicios/1956-
Economica listed by the tax
codigos-1959.html
del Emisor office (Actividad
Relevante Económica) Check Sector by RUT:
para el DTE
https://zeus.sii.cl/cvc/stc/stc.html
/EnvioDTE/SetDTE/DTE/Documento/Encabezado/Emisor/GiroEmis Giro CMPLOB Company
Comercial sector
del Emisor description
Relevante (Giro del
para el DTE emisor)

This is custom documentation. For more information, please visit the SAP Help Portal 8
10/15/24, 3:12 PM
SII resolution /EnvioDTE/SetDTE/Caratula/FchResol Fecha de RESDAT Date the Main resolution:
declaring the Resolucion resolution was
https://www.sii.cl/documentos/resoluciones/2014/reso80.pdf
company as que Autoriza issued allowing
"electronic la Emision de to generate
issuer". DTE/Boletas electronic
(AAAA-MM- invoices. Example:
DD)
Format: YYYY- Ley Chile - Resolución 148 EXENTA 24-SEP-2010 MINISTERIO
MM-DD DE HACIENDA, SERVICIO DE IMPUESTOS INTERNOS,
DIRECCIÓN NACIONAL - Biblioteca del Congreso Nacional
/EnvioDTE/SetDTE/Caratula/NroResol Numero de RESNUM Number of the (bcn.cl)
Resolucion resolution
que Autoriza allowing to
la Emision de generate
DTE/Boletas electronic
invoices.

Notice in
testing
environment it
must be 0.

Vendor /EnvioDTE/SetDTE/DTE/Documento/Encabezado/RUTMandante RUT a TAXIDC Tax


Identification Cuenta de identification of
Code Quien se the vendor, only
Emite el DTE used when
(Mandante) acting as an
agent (is billing
on behalf of
that vendor).

Tax /EnvioDTE/SetDTE/Caratula/RutEnvia RUT que TAXIDS Tax


identification envia los DTE identification of
of person the person
representing (legal
the company representative)
(sender) that registers
the invoice on
behalf of the
company.

The person
digital identity
(i.e key-pair,
aka
"certificate") is
to be uploaded
in the SAP
Integration
Suite tenant
keystore to
authenticate
and check
authorization.

Company tax /EnvioDTE/SetDTE/Caratula/RutEmisor RUT del TAXNR Tax


Identification Emisor del identification of
/EnvioDTE/SetDTE/DTE/Documento/Encabezado/Emisor/RUTEmisor
Code DTE the company
(RUT)

Customs /EnvioDTE/SetDTE/DTE/Documento/Referencia/FolioRef Folio del SNARN Service https://www.aduana.cl/listado-clasificacion-de-servicios-de-


Code for Documento classification exportacion/aduana/2016-08-10/104402.html
Export de customs code
Service Referencia used for export.
Classification
/EnvioDTE/SetDTE/DTE/Documento/Referencia/FchRef Fecha de la SNARD Date used for
Referencia custom code
classification

Sender industry sector and economic activity

The company sector is composed of a code and a description.

The description is derived from the industry assigned to the company via value mapping, and the code is taken directly from the company additional data:

This is custom documentation. For more information, please visit the SAP Help Portal 9
10/15/24, 3:12 PM

What is the CL_DELNOTE - Book of Deliveries

eDocument triggering in Chile

Invoices and Boletas

Delivery Notes

SAP Document and Reporting Compliance for Peru

Currently we are maintaining all SAP Document Compliance as part of our community:

All SAP Document Compliance in one place!

Notine there is a subpage for local solutions.

Client Secret URL Encoding

Configure transports registrations in SUNAT site

Creating a Perception Certificate from Invoice

Introduction to transports registrations

Understanding Company Parameters in Peru

List of company parameters used in electronic invoicing.

Semantic Meaning Name In Original Language SAP company configuration parameter Explanation

Tax Identification Code RUC TAXID This is the fiscal identification for the company.

Document type used for voiding request. Código de tipo de documento de identidad PE_TTY Fixed value "6".

It is the code listed in Catalog 06 for identification types in Peru.

Sample pricing set up for Peruvian companies

Change Log:

Feb 2021 - Changes in the definition of LineExtensionAmount (LEAMNTV1) - in free of charge scenario
For free of charge: this tag is the cost or reference market price.

This is custom documentation. For more information, please visit the SAP Help Portal 10
10/15/24, 3:12 PM
November 30th 2021 - Credit Notes not affecting amounts (Type "13" and "03")
Reported amount must be 0, but must the SD invoice be transferred to accounting for electronic invoicing and reporting purposes.

September 29th 2021- IMPORTANT: SUNAT Changed the definition of 4 concepts (LegaMonetaryTotal at header level, AllowanceTotalAmount, etc...), it will impact validations. Also,
comercial samples must report tax subtotals.
LMTLEAMTV1 - before: eDc Hd Ttl Amt noDisc noTax; now: eDc Hd Ttl Amt +Disc noTax=> discounts and global surcharges must be added
LMTATAMTV1 - before: eDc Hd Ttl Discounts -all discounts; now: eDc Hd Ttl Dsc noTax only those not affecting the taxable amount
LMTCTAMTV1 - before eDc Hd Ttl Surchages - all surcharges; now: eDc Hd Ttl Src noTax only those not affecting the taxable amount
PRACPR1V1 - before eDc It TTLUnPrc+lSur+lDisc+Tax; now: eDc It TTLUnPrc+Tax => Unit price and tax, no surcharges or discounts
TXAMNTV1 (header) - before eDc Hd Sum All Tax - all taxes; now: eDc Hd Sum Tax noGrant =>For free of charge items (9995 and 9996) concepts must not be added
TXAMNTV1 (item) - before eDc It Ttl Tax - all taxes; now: eDc It Ttl Tax noGrant =>For free of charge items (9995 and 9996) concepts must not be added

April 2021 - Unit Price / Discounts and Surcharges


Unit price is calculated using 5 decimals, to avoid creating an aditional sales currency code (e.g. "PE5") , SUNAT recommends increasing the reported sales unit to prevent rounding errors.

Introduction

Tax office requested that all the monetary information MUST BE PRESENT in the commercial and accounting systems, and not just in the XML presented, so this wiki provides sample pricing
elements to help customers generate invoices compliant with the regulations.

Also, this guide provides references to electronic invoicing configurations, but the pricing setup is independent of the electronic invoicing functionality, and created to accommodate the SUNAT
mandate.

Basic Information required by tax office for all SD customers (with or without SAP DRC -electronic invoicing)
Understanding taxes reporting
Sample statistical conditions and subtotals used in this document (sorted in feasible order)
Sample pricing adjustments for Peruvian companies (side-by-side new vs old)
Monetary Information to be contained in billing documents
Sample Pricing Coding snippets for particular element (VOFM transaction)

SAP DRC Specific Configurations

After SD pricing is finished the following configurations must be carried out for monetary values (also available in the Implementation Guide aka "SPRO").

Relevant Catalog Tables - Sample Data + ref to SAP DRC


Amounts mapping (view EDOPEMAPAMOUNTV)

Scenario Specifics
Sample Monetary Values Setup for Samples (aka "Free-Of-Charge")

Detractions in Sales Documents

Amounts mapping (view EDOPEMAPAMOUNTV)

Amount mapping transfer the pricing information to the XML constructs.

Press F1 in the XML Node ID column to read the SUNAT definition for the element.

Sample data for Invoice (copy to credit note, debit note, boleta, etc...):

Mapping ID XML Node ID Level SD Pricing Pricing SUNAT Catalog Some explanation XML Tag Sample Pricing Required?
(Document (Header Procedure Step Catalog Item Condition (Always:
Type) /Line) (not Code printing
delivered) "A" or "a"
If Any:
printing
"B" or "b")

SUNAT-114- ALLCHRGV1 H RVAAPE 810 53 02HD This is a header AllowangeCharge if any


2019 level discount

SUNAT-114- ALLCHRGV1 H RVAAPE 811 53 49HS This is a header AllowangeCharge if any


2019 level surcharge

SUNAT-114- ALLCHRGV1 H RVAAPE 815 53 51HS VAT Perception AllowangeCharge if any


2019

SUNAT-114- ALLCHRGV1 L RVAAPE 809 53 00LD This is a line item AllowangeCharge if any
2019 level discount

SUNAT-114- LEAMNTV1 L RVAAPE 973 Net amount InvoiceLine/LineExtensionAmount eDc It Amt Always
2019 without taxes +ItDsc+ItSur
noTax

SUNAT-114- LMTATAMTV1 H RVAAPE 995 All Discounts LegalMonetaryTotal(Requested)/AllowanceTotalAmount eDc Hd Ttl Dsc if any
2019 noTax

This is custom documentation. For more information, please visit the SAP Help Portal 11
10/15/24, 3:12 PM
SUNAT-114- LMTCTAMTV1 H RVAAPE 994 All Surcharges not LegalMonetaryTotal(Requested)/ChargeTotalAmount eDc Hd Ttl Src if any
2019 affecting taxable noTax
amount

SUNAT-114- LMTLEAMTV1 H RVAAPE 990 Total amount with LegalMonetaryTotal(Requested)/LineExtensionAmount eDc Hd Ttl Amt Always
2019 discounts and +Disc noTax
surcharges.

SUNAT-114- LMTPYAMTV1 H RVAAPE 997 Amount to be LegalMonetaryTotal(Requested)/PayableAmount eDc Hd Due Always


2019 payed Amount

SUNAT-114- LMTTIAMTV1 H RVAAPE 996 Total amount, LegalMonetaryTotal(Requested)/TaxInclusiveAmount eDc Hd Ttl Amt + Always
2019 without any Tax
discount or
surcharge, but with
Taxes. Notice it is
only a subtotal
without business
meaning.

SUNAT-114- LPRICEV1 L RVAAPE 972 List or Market Price Price eDc It UnPrc Always
2019 (not amount!) noHdSur noTax

SUNAT-114- PAYTMNSV1 H RVAAPE 999 Detraction Payment Means eDc Hd Detraction if any
2019 percentage (see it St
here) - redefined
after 114-2019

SUNAT-114- PAYTRMV2 H RVAAPE 999 54 001 Detraction PaymentTerms eDc Hd Detraction if any
2019 Reference + St
Payment Method
(new since
193/220)

SUNAT-114- PRACPR1V1 L RVAAPE 975 16 01/02 01- Item unit gross PricingReference/AlternativeConditionPrice 01: eDc It Always
2019 list price (not TTLUnPrc+Tax
amount!) or
02- Item reference 02: eDc It Free Of
market or list unit Charge
price customer is
receiving somehow
for free.

SUNAT-114- TXAMNTV1 H RVAAPE 989 Final sumarization TXAMNTV1 eDc Hd Sum All Always
2019 of taxes (no Tax
grants), no SD
condition is needed
as taxable amount
is not present,
summary works.

SUNAT-114- TXAMNTV1 L RVAAPE 998 Item level TXAMNTV1 eDc It Ttl Tax Always
2019 sumarization of noGrant
taxes, no SD
condition is needed
as taxable amount
is not present,
summary works.

SUNAT-114- TXSUBTV1 H RVAAPE 984 05 1000 Summarization of TXAMNTV1/TaxSubtotal eDc Hd Sum VAT if any
2019 taxes using catalog Exp, eDc Hd Sum
5 (e.g. 9995: Free Of C, eDc Hd
export, 1000: Sum VAT
regular VAT). SD Exempt,eDc Hd
Condition required Sum VAT 0, eDc
to report the Hd Sum VAT
taxable amount.

SUNAT-114- TXSUBTV1 L RVAAPE 981 07 101000 Splitting taxes at TXAMNTV1/TaxSubtotal eDc It Tax if any
2019 line item level with Exempt,eDc It VAT
catalog 7, 101000→ Grant 0%,eDc It
regular VAT). SD VAT Grant, eDc It
Condition required VAT 0%,eDc It
to report the VAT, eDc It VAT
taxable amount. Export 0%,eDc It
VAT Export 0%

Monetary Information to be contained in billing documents


This is the list of UBL 2.1 constructs requested from SUNAT and the corresponding definition

Document Level SUNAT definition (in English) UBL 2.1 node… Reference Catalog Catalog Source Sample
& Catalog Code Description SD Condition/Subtotal
( + SAP DRC XML Node ID)
Regulation Pricing
Step

This is custom documentation. For more information, please visit the SAP Help Portal 12
10/15/24, 3:12 PM
INVOIC- Header This tag reflects discounts, AllowanceCharge (ALLCHRGV1) Cat 53 - 2 Global 810 HA00 Percentage
114- surcharges, perceptions and other Surcharges, Header Discount
2019 factors that result in deviation from Discounts and Discount
the regular sale price. Perceptions
49 Global 811 EDC2 eDc Hd Surch (sbj
Header to
Surcharge

51 Perception 815 XXXX Perception

This element totalizes the amount of AllowanceTotalAmount No reference 995 eDc Hd Ttl Dsc
header and item level discounts not (LMTATAMTV1) to catalogs noTax
affecting taxable amount.

This element totalizes the amount of ChargeTotalAmount 994 eDc Hd Ttl Src
header item surcharges for gratuities (LMTCTAMTV1) noTax
or warranties not affecting taxable
amount.

This element represents the total net LineExtensionAmount 990 eDc Hd Ttl Amt
amount with discounts and (LMTLEAMTV1) +Disc noTax
surcharges.

This element represents the payable PayableAmount 997 eDc Hd Due


amount. (LMTPYAMTV1) Amount

This element represents the total TaxInclusiveAmount 996 eDc Hd Ttl Amt +
amount with taxes (LMTLEAMNTV1 + (LMTTIAMTV1) Tax
header TXAMNT_1

This element has been redefined by Payment Means (PAYTMNSV1) 999 J1PE eDc Hd Detraction
the tax authorities and it is only St
relevant for the detraction statement.
It represents the percentage and the
calculation method used for the
detraction amount.

This element has been redefined by PaymentTerms (PAYTRMV2) 54 Cat. No.54 1 999 J1PE eDc Hd Detraction
the tax authorities and it is only - Goods and St
relevant for the detraction statement. Services
It represents the bank account used Subject to
to deposit the detraction amount. Detraction

This element represents the total TaxTotal (TXAMNTV1) No reference 989 eDc Hd Sum Tax
amount of taxes, summarizing all the to catalogs noGrant
subtotals. It is present at header level
and at item level.

For samples scenarios this is 0.

This element represents individual tax TaxTotal/TaxSubtotal Cat 5 - Header 9995 Export 984 EDCL eDc Hd Sum VAT
information for each item and also for (TXSUBTV1) level tax Exp0%
header-level summarization. reporting
9996 Free 985 EDCI eDc Hd Sum Free
For samples scenarios this item must Of C
be calculated as well based on the
reference price. 9997 Customer 986 EDCJ eDc Hd Sum VAT
not subject Exempt

9998 0% VAT 987 EDCK eDc Hd Sum VAT


0%

1000 Regular 988 EDCH eDc Hd Sum VAT


VAT rate

Line This tag reflects discounts, AllowanceCharge (ALLCHRGV1) Cat 53 - 00 Line item 809 EDC3 eDc It Disc (sbj to
Item surcharges, perceptions and other Surcharges, discount VAT)
factors that result in deviation from Discounts and
the regular sale price. Perceptions

For samples scenarios discounts are


not reported.

This is a line-item-level element LineExtensionAmount 973 eDc It Amt


indicating the total amount with line (LEAMNTV1) +ItDsc+ItSur
item discounts and without taxes. It is noTax
a result of multiplying the unit price by
the quantity and subtracting item-
level-only discounts. This amount is
neither considering tax (for example,
General Sales Tax, ISC or others) nor
header level surcharges or discounts.

For samples scenarios this the cost or


reference market price.

This element represents line item unit Price (LPRICEV1) 972 eDc It UnPrc
price without taxes or any surcharges. noHdSur noTax

For samples scenarios the amount is


0.

This is custom documentation. For more information, please visit the SAP Help Portal 13
10/15/24, 3:12 PM
This element represents either the AlternativeConditionPrice Cat 16 - 2 Market 974 eDc It Free Of
unit price with line item discounts, (PRACPR1V1) Operation or price Charge
surcharges and taxes, or the reference reference
market price. This is a line-item-level price 1 Efective 975 eDc It
element. sales price TTLUnPrc+Tax

This element represents the total TaxTotals (TXAMNTV1) 998 eDc It Ttl Tax
amount of taxes, summarizing all the NoGrant
subtotals. It is present at header level
and at item level.

For samples scenarios this is 0.

This element represents individual tax TaxSubtotal (TXSUBTV1) Cat 7 - Item 209997 Customer 977 EDCC eDc It Tax Exempt
information for each item and also for level not subject
header-level summarization. tax/reason - Sales
porting Operation

359996 0%VAT - 978 EDCE eDc It VAT Grant


Grant 0%

119996 979 EDCB eDc It VAT Grant

309998 980 EDCD eDc It VAT 0%

101000 981 EDCA eDc It VAT

409996 982 EDCG eDc It VAT Export


0%

409995 983 EDCF eDc It VAT Export


0%

Relevant Pricing Components


Notice: specific VOFM transaction routines are not provided, customers are required to perform specific calculations:

Requirements

Some subtotal or tax exclusions might be required to eliminate items not required

Formula Condition Values

To produce the required information, e.g. the detraction rules in particular, requires specific calculations.

Formula base values

When the unit price is required, the quantity for the condition must be set to the unit.

Printing Indicators

As explained above, all new printing indicators must be used (cannot be combined with old as that is not supported from SD side). It is important to configure this pricing indicator in such a way
that it keeps records of empty or zero value tags when requested by SUNAT.

Code snippets are provided in the following sections.

Relevant Catalog Tables - Sample Data


Tax Office provides catalogs to map the XML semantic information. The information is highly dynamic, SAP does not deliver the content, only table definition for SAP DRC and it must be completed
and maintained from the SUNAT validation spreadsheets (Validations) updated normally on monthly basis.

The first column of each catalog table is a FREE key, you can define any value (Catalog Item Code - this is meant to be mnemotechnical)

Sample rows for catalogs 5 and 7:

Catalog 5 - Tax Types, etc.. summarized at header level

Catalog Item Code Tax Type Code Description UNECE 5153 Local Name UNECE 5303

1000 1000 IGV Impuesto General a las Ventas VAT IGV S

1016 1016 Impuesto a la Venta Arroz Pilado VAT IVAP

2000 2000 ISC Impuesto Selectivo al Consumo EXC ISC S

9995 9995 Exportación FRE EXP

This is custom documentation. For more information, please visit the SAP Help Portal 14
10/15/24, 3:12 PM
9996 9996 Gratuito FRE GRA Z

9997 9997 Exonerado VAT EXO E

9998 9998 Inafecto FRE INA O

9999 9999 Otros Tributos OTH OTROS

Catalog 7 - Types of Tax Impact detailed at line item level

Catalog Item Code Description Tax Impact and Reason Code Tax Type Code (reference to Cat 5)

101000 Gravado - Operación Onerosa 10 1000

102000 Gravado - Operación Onerosa - affected to ISC 10 2000

119996 Gravado – Retiro por premio 11 9996

129996 Gravado – Retiro por donación 12 9996

139996 Gravado – Retiro 13 9996

149996 Gravado – Retiro por publicidad 14 9996

159996 Gravado – Bonificaciones 15 9996

169996 Gravado – Retiro por entrega a trabajadores 16 9996

171016 Gravado - IVAP 17 1016

179996 Gravado - IVAP - with 0% rate 17 9996

209997 Exonerado - Operación Onerosa 20 9997

219996 Exonerado - Transferencia gratuita 21 9996

309998 Inafecto - Operación Onerosa 30 9998

319996 Inafecto – Retiro por Bonificación 31 9996

329996 Inafecto – Retiro 32 9996

339996 Inafecto – Retiro por Muestras Médicas 33 9996

349996 Inafecto - Retiro por Convenio Colectivo 34 9996

359996 Inafecto – Retiro por premio 35 9996

369996 Inafecto - Retiro por publicidad 36 9996

379996 Inafecto - Transferencia gratuita 37 9996

409995 Exportación de Bienes o Servicios 40 9995

409996 Exportación de Bienes o Servicios - with 0% rate 40 9996

Catalogs 09, 10, 16, 51, 53 and 54 have to be filled up in a similar fashion from SUNAT latest validation spreadsheet. Remember the first column (Catalog item code) is free and should be used to
generate mnemotechnical codes.

Catalogs Metadata

Catalog Metadata explains SUNAT the reference information used for semantic, this information is not changing frequently

Catalog Catalog URI Catalog Name (DO NOT TRANSLATE OR CONDENSE!) Catalog Agency

01 urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo01 Tipo de Documento PE:SUNAT

05 urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo05 Codigo de tributos PE:SUNAT

06 urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo06 Código de tipo de documento de identidad PE:SUNAT

07 urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo07 Afectacion del IGV PE:SUNAT

08 urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo08 Código de tributo por línea PE:SUNAT

09 urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo09 Tipo de nota de credito PE:SUNAT

10 urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo10 Tipo de nota de debito PE:SUNAT

16 urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo16 Tipo de Precio PE:SUNAT

51 urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo51 Tipo de Operacion PE:SUNAT

53 urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo53 Cargo/descuento PE:SUNAT

54 urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo54 Codigo de detraccion PE:SUNAT

This is custom documentation. For more information, please visit the SAP Help Portal 15
10/15/24, 3:12 PM
Sample Monetary Values Setup for Samples (aka "Free-Of-Charge")
This is a reference XML content for commercial samples, free of charge or medical samples. Combination or regular items and free of charge is supported, also including items subject to VAT or
not.

Notice reference to catalog 7 must be adjusted accordingly in EDOPEMAPAMOUNTV.

IMPORTANT!!!: LineExtensionAmount (LEAMNTV1) in the picture it is 0 at line item level, but in accordance with the latest definitions, it should be the cost or reference total market price (ref price
* quantity). (being reviewed with SUNAT)

Sample Pricing Coding snippets for particular element (VOFM transaction)

This is a list of sample pricing requirements and value calculation useful to produce SUNAT required values.

DISCLAIMER: Notice these snippets are highly dependent on the existing pricing configuration and can be used only as reference if needed and adjusted accordingly. SAP has neither
responsibility nor support for any of the snippets.

Pricing Requirements:

950 - How to turn on and off header level elements (not required, but useful for business user)

*********************************************************************
* Monetary Totals configuration
* Header level subtotal
* This requirement is ment to be used in SAP Document Compliance
* for subtotal activations (XML elements construction)
*

FORM KOBED_950.
* Turn off header level sub total for items
if KOMP-KPOSN = '000000'.
sy-subrc = 0.
else.
sy-subrc = 4.
endif.
ENDFORM.

FORM KOBEV_950.

This is custom documentation. For more information, please visit the SAP Help Portal 16
10/15/24, 3:12 PM
sy-subrc = 0.
ENDFORM.

951 - How to turn on and off item level elements (not required, but useful for business user)

*********************************************************************
* Monetary Totals configuration
* Item level subtotal
* This requirement is ment to be used in SAP Document Compliance
* for subtotal activations (XML elements construction)
*

FORM KOBED_951.
* Turn on item level sub total for items
if KOMP-KPOSN = '000000'.
sy-subrc = 4.
else.
sy-subrc = 0.
endif.
ENDFORM.

FORM KOBEV_951.
sy-subrc = 0.
ENDFORM.

952 - How to exclude repeating VAT conditions at item level (can be also achieved using conditions groups if preferred)

*********************************************************************
*
* Tax exclusion at item level
* This requirement is ment to be used in SAP Document Compliance
* for subtotal activations (XML elements construction)
*

FORM KOBED_952.

FIELD-SYMBOLS: <xkomv> type komv_index,


<komv> type komv.

data w_remove like sy-subrc VALUE 0. " 999 --> remove, 0 ---> stay

* Check if VAT condition is already set


loop at XKOMV ASSIGNING <xkomv>
where KPOSN = KOMP-KPOSN.

if <XKOMV>-KSCHL = 'EDCC'
or <XKOMV>-KSCHL = 'EDCE'
or <XKOMV>-KSCHL = 'EDCB'
or <XKOMV>-KSCHL = 'EDCD'
or <XKOMV>-KSCHL = 'EDCA'.
w_remove = 999.
exit.
endif.
endloop.

if w_remove = 999.
sy-subrc = 4.
endif.

ENDFORM.

FORM KOBEV_952.

ENDFORM.

953- How to exclude repeating VAT conditions at header level

*********************************************************************
* VAT exclusion at header level
* This requirement is ment to be used in SAP Document Compliance
* for subtotal activations (XML elements construction)
*

FORM KOBED_953.

FIELD-SYMBOLS: <xkomv> type komv_index,


<komv> type komv.
data w_remove like sy-subrc VALUE 0. " 999 --> remove, 0 ---> stay

* Check if VAT condition is already set


loop at XKOMV ASSIGNING <xkomv>
where KPOSN = KOMP-KPOSN.

if <XKOMV>-KSCHL = 'EDCI'
or <XKOMV>-KSCHL = 'EDCJ'
or <XKOMV>-KSCHL = 'EDCK'.
w_remove = 999.
exit.
endif.
endloop.

if w_remove = 999.
sy-subrc = 4.
endif.

This is custom documentation. For more information, please visit the SAP Help Portal 17
10/15/24, 3:12 PM

ENDFORM.

FORM KOBEV_953.

ENDFORM.

954- How to Turn On and Off Free of charge conditions

***********************************************************************
* This item determines the free of charge based on the total amount
* This requirement is ment to be used in SAP Document Compliance
* for subtotal activations (XML elements construction)
*

FORM KOBED_954.
sy-subrc = 4.
if KOMP-KPOSN ne 0 and KOMP-NETWR eq 0.
sy-subrc = 0.
endif.
ENDFORM.

FORM KOBEV_954.
sy-subrc = 0.
ENDFORM.

Condition Value:

980- List Price

*********************************************************************
* List Prices - calculate list price
* This requirement is ment to be used in SAP Document Compliance
* for subtotal activations (XML elements construction)
*

FORM FRM_KONDI_WERT_980.

FIELD-SYMBOLS <xkomv> type komv_index.

*search for basic price

loop at XKOMV assigning <XKOMV>


where KSCHL = 'PR00'.
xkwert = <XKOMV>-kbetr.
endloop.

ENDFORM.

981- Net Unit Price

*********************************************************************
* Net Unit Price - calculate final unit price
* This requirement is ment to be used in SAP Document Compliance
* for subtotal activations (XML elements construction)
*

FORM FRM_KONDI_WERT_981.

FIELD-SYMBOLS <xkomv> type komv_index.

loop at XKOMV ASSIGNING <xkomv> where stunr = xkomv-stunB. "← adjust as appropriate
xkwert = <xkomv>-KBETR.
exit.
endloop.

ENDFORM.

982- Detraction statement, maximum percentage selection

*********************************************************************

* Peruvian Detraction - calculate statement amount


* This requirement is ment to be used in SAP Document Compliance
* for subtotal activations (XML elements construction)
*

FORM FRM_KONDI_WERT_982.

FIELD-SYMBOLS <tkomv> type komv.

data lv_max_kbetr like komv-kbetr.

*search for the maximum detraction (percentage)

This is custom documentation. For more information, please visit the SAP Help Portal 18
10/15/24, 3:12 PM

loop at TKOMV assigning <TKOMV>


where KSCHL = 'J1PD'.
if lv_max_kbetr < <Tkomv>-kbetr.
lv_max_kbetr = <Tkomv>-kbetr.
endif.
endloop.

*Apply to condition total

xkomv-kbetr = LV_MAX_KBETR.
xkwert = xkomv-kbetr * xkomv-KAWRT / 100000.

ENDFORM.

Sample configurations for detractions set up in SD documents


There is a short introduction to "detractions" in this blog: https://blogs.sap.com/2020/05/21/sap-document-compliance-for-peru-what-are-igv-vat-detractions-notifications-and-how-do-them-
impact-your-electronic-documents/

Materials Configuration

Material Groups
Detraction are based on material groups (e.g. Sugar, Services, etc.), for that maintain the material groups accordingly:

Existing material groups can also be already reused. Furthermore, other material master related information can also be used for detraction determination. Preferably, choose material attributes
present in the SD pricing access tables.

Material Master Record


Configure the material group in the material master record accordingly:

This is custom documentation. For more information, please visit the SAP Help Portal 19
10/15/24, 3:12 PM

Access Sequence

Set up an access sequence based on the material group. For this Table 143 can be reused

Conditions
Detraction is determined in 2 steps, first, all materials have to determine the percentage, and later the highest percentage must be used in the calculation

Determination

This is custom documentation. For more information, please visit the SAP Help Portal 20
10/15/24, 3:12 PM

Create record for the material groups, with the percentage described in the regulation and catalog 54

Presentation
Detraction presentation is always in local currency ("PEN"), so here currency conversion is required.

This is custom documentation. For more information, please visit the SAP Help Portal 21
10/15/24, 3:12 PM
Notice Calculation type is "C" for Quantity

Create the records with 0 amount, but local currency:

configure the pricing as described here, notice a sample calculation routine is provided to select the maximum percentage.

Addenda for SAP DRC customers:

1- configure in SPRO catalog 54 (Detractions) as required by your company

2- Operation types

This is custom documentation. For more information, please visit the SAP Help Portal 22
10/15/24, 3:12 PM
3- and finally amount mapping table for element PAYTRMV2 selecting the catalog item code appropriate for each material - only in invoices:

3- Configure the Peruvian national bank fix value " PAYEE_FIN_ACC" in AIF (/AIF/CUST → Fix Values for Peru)

Sample pricing adjustments for Peruvian Companies (side-by-side new vs old)


Assuming standard SAP pricing is used as basis, some extra elements might need to be added in order to generate all legally required reporting values:

reference to LATEST: from reg 193/2020 SUNAT ( effective September 2021) impact OLD: Reg 114/2019 SUNAT (prior as reference)
SAP DRC
UBL
Construct

Level cond Text from to print requirement Calculation Level cond Text from to print requirement

ALLCHRGV1 809 4 EDC3 eDc It Disc 0 0 a 0 0 0 809 4 EDC3 eDc It Disc (sbj to 0 0 a 0
(sbj to

960 0 J1PD Detraction 0 0 0 0 4 960 0 J1PD Detraction (determ) 0 0 0


(determ)

961 0 J1PF eDcHd 0 0 B 0 (982- 4 961 0 J1PF eDcHd Detraccion PEN 0 0 B 0


Detraccion header
PEN detraction:
max %

LPRICEV1 972 0 eDc It UnPrc 0 0 a (980- Unit 0 972 0 eDc It UnPrc noHdSur 0 0 a
noHdSur Price) noTax
noTax

LEAMNTV1 973 0 eDc It Amt 908 908 a 0 973 0 eDc It Amt +ItDsc+ItSur 908 908 a
+ItDsc+ItSur noTax
noTax

PRACPR1V1 974 0 eDc It Free Of 920 920 b (free of (980- free 0 49 974 0 eDc It Free Of Charg 920 920 b (free of
Charg charge -> of charge - charge ->
net =0 - > net =0) net =0 -
954) 954)

This is custom documentation. For more information, please visit the SAP Help Portal 23
10/15/24, 3:12 PM
PRACPR1V1 975 0 eDc It 920 920 b (item - 951) (981- value 0 975 0 eDc It 920 920 b (item - 951)
TTLUnPrc+Tax of TTLUnPrc+lSur+lDisc+Tax
condition
for unit)

TXSUBTV1 977 0 EDCE eDc It VAT 0 0 a (tax mutual 0 16 switch 977 0 EDCC eDc It Tax Exempt 0 0 a (tax mutual
Grant 0% exclusion at exclusion at
item level - item level -
TXSUBTV1 978 0 EDCB eDc It VAT 0 0 a 952) 2 5 978 0 EDCE eDc It VAT Grant 0% 0 0 a 952)
Grant

TXSUBTV1 979 0 EDCC eDc It Tax 0 0 a 0 16 979 0 EDCB eDc It VAT Grant 0 0 a
Exempt

TXSUBTV1 980 0 EDCD eDc It VAT 0% 0 0 a 0 16 980 0 EDCD eDc It VAT 0% 0 0 a (tax mutual
exclusion at
TXSUBTV1 981 0 EDCA eDc It VAT 0 0 b 0 16 981 0 EDCA eDc It VAT 0 0 b header level
-953)
TXSUBTV1 982 0 EDCG eDc It VAT 0 0 a 2 5 982 0 EDCG eDc It VAT Export 0% 0 0 a
Export 0%

TXSUBTV1 984 0 EDCI eDc Hd Sum 0 0 A (tax mutual 2 5 switch 984 0 EDCL eDc Hd Sum VAT Exp0% 0 0 A
Free Of C exclusion at
header level
TXSUBTV1 985 0 EDCL eDc Hd Sum 0 0 A -953) 0 16 985 0 EDCI eDc Hd Sum Free Of C 0 0 A
VAT Exp0%

TXSUBTV1 986 0 EDCJ eDc Hd Sum 0 0 A 2 5 986 0 EDCJ eDc Hd Sum VAT Exemp 0 0 A
VAT Exemp

TXSUBTV1 987 0 EDCK eDc Hd Sum 0 0 A 0 16 987 0 EDCK eDc Hd Sum VAT 0% 0 0 A
VAT 0%

TXSUBTV1 988 0 EDCH eDc Hd Sum 0 0 B 0 16 988 0 EDCH eDc Hd Sum VAT 0 0 B
VAT

TXAMNTV1 989 0 eDc Hd Sum 985 988 A (header only 0 0 <-from 989 0 eDc Hd Sum All Tax 984 988 A (header only
Tax noGrant - 950 ) - 950 )

LMTLEAMTV1 990 0 eDc Hd Ttl 100* 100 A 0 0 990 0 eDc Hd Ttl Amt noDisc 100* 100 A
Amt +Disc noTax
noTax

ALLCHRGV1 992 0 eDc Hd Perc 970 970 B 0 0 992 0 eDc Hd Perc Internal Sales 970 970 B
Internal Sales

ALLCHRGV1 993 0 eDc Hd Surch 811* 811 B 0 0 993 0 eDc Hd Surch (sbj to Tax) 811* 811 B
(sbj to Tax)

LMTCTAMTV1 994 0 eDc Hd Ttl Src 992 993 B 0 0 994 0 eDc Hd Ttl Surchages 992 993 B
noTax

LMTATAMTV1 995 0 eDc Hd Ttl Dsc 809* 810 B 0 0 995 0 eDc Hd Ttl Discounts 809* 810 B
noTax

LMTTIAMTV1 996 0 eDc Hd Ttl 989 990 A 0 0 996 0 eDc Hd Ttl Amt + Tax 989 990 A
Amt + Tax

LMTPYAMTV1 997 0 eDc Hd Due 994 996 A 0 0 997 0 eDc Hd Due Amount 994 996 A
Amount

TXAMNTV1 998 0 eDc It Ttl Tax 978 983 a (item -951) 0 0 <-from 998 0 eDc It Ttl Tax 977 983 a (item -951)
noGrant

PAYTRMV2 999 0 J1PE eDc Hd 0 0 B 0 (982- max 4 999 0 J1PE eDc Hd Detraction St 0 0 B 0
Detraction St % and
gross)

* 100 = gross / 811: sample surcharge e.g. Freight / 809-810: sample discounts

Sample statistical conditions and subtotals used in this document (sorted in feasible order)
Notice, if you are already generating invoices in a Peruvian company code, all this information should have been already considered as part of your pricing schema (not necessarily statistical!), so
only minor adjustments to pricing should be required for transparent reporting purposes. Namely, as such, most of these entries and rules must be already in your current pricing procedure, it is
not necessary to create or modify them.

EDC3 Line Item Discount subject to VAT, this is just to demonstrate how a regular discount works (%), use your existing discounts (conditions or subtotals), no need to create more.

J1PD Detraction (determination) – This is a sample condition to determine the Detraction Rate (see blog on detractions) based on material types

J1PF Header Detraction PEN – sample detraction based on local currency documents. Requires calculation routines to locate maximum percentage and reason.

Line Item Unit Price no Header Surcharges and no Taxes

Line Item Amount (including Line Item Surcharges) +Line Item Discount and no Taxes

This is custom documentation. For more information, please visit the SAP Help Portal 24
10/15/24, 3:12 PM
Line Item Free of Charge

Line Item Total Unit Price (item surcharges should be added here) +line items Discounts +Taxes (it is the consumer net amount)

EDCC Line Item Tax Exempt

EDCE Line Item VAT Grant 0%

EDCB Line Item VAT Grant

EDCD Line Item VAT 0%

EDCA Line Item VAT

EDCG Line Item VAT Export 0%

EDCL Header Summarization VAT Exp0%

EDCI Header Summarization Free Of Charge

EDCJ Header Summarization VAT Exempt

EDCK Header Summarization VAT 0%

EDCH Header Summarization VAT

Header Summarization All Tax

Header Total Amt no Discounts, no Taxes

Header Percentage Internal Sales

Header Surcharge (subject to Tax)

Header Total Surcharges

Header Total Discounts

Header Total Amount + Tax

Header Due Amount

Line Item Total Tax

Understanding taxes reporting


Tax information and the corresponding business reason must be reported. This is driven by configurable catalog 7 (issued and updated from SUNAT side on regular basis). Also, the entries from
catalog 7 must be aggregated using catalog 5 at header level.

Notice the access sequence to report the taxes must contemplate the Order Reason.

Also, when not required in accounting or legal reporting ,conditions are to be configured as statistical. What is important to consider is that whenever a condition value must be transferred to SAP
Document Compliance, it must be marked as printable (A,B,C,a,b,c) to keep consistency with the rest of the SAP ERP functionality.

Subtotals are not sufficient for taxes reporting as SUNAT reporting requirements include taxable amounts and other elements that are supported with sales conditions, but surcharges and
discount beginning 2021 are supported via pricing subtotals since percentages are not used anymore.

SUNAT considers more decimals than the number defined in the currency for unit price, so it is suggested directly by SUNAT to enlarge the sales units so as to minimize tolerance issues.

Note sometimes the IGV is referenced as “VAT” as it is a similar tax in English.

Access Sequence Header Level


(Catalog 7) Reporting
(Catalog 5)

Sample Header Sample Item Tax Des. Customer Material Tax Order Sample Condition / Subtotal Catalog ID Item Level Description
Condition Condition Country Tax % Reason name

EDCH EDCA VAT PE Liable for 18% <empty> eDc It VAT / eDc Hd Sum VAT 1000 L6.1 Tax Subtotal for IGV - Sales
(MWST) taxes Operation

EDCI EDCB 18% Grant eDc It VAT Grant / eDc Hd Sum 9996 L6.4 Tax Subtotal for IGV - Grant
Free Of Charge

EDCE 0% eDc It VAT Grant 0% / eDc Hd L9.6 - Tax Subtotal for 0% IGV
Sum Free Of Charge Rate for Grant

EDCG Not PE <any> eDc It VAT Export 0% / eDc Hd L10.2 - Tax Subtotal IGV for
Sum Free Of Charge Export with 0% rate

EDCK EDCD PE <empty> eDc It VAT 0% / eDc Hd Sum VAT 9998 L9.1 - Tax Subtotal for 0% IGV
0% Rate

This is custom documentation. For more information, please visit the SAP Help Portal 25
10/15/24, 3:12 PM
Access Sequence Header Level
(Catalog 7) Reporting
(Catalog 5)

EDCJ EDCC PE Exempt <any> <any> eDc It Tax Exempt / eDc Hd Sum 9997 L8.1 - Tax Exempt
VAT Exempt

This is custom documentation. For more information, please visit the SAP Help Portal 26

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy