Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
Showing results for 
Search instead for 
Did you mean: 

Updates to the Sales Ledger with SUNAT Resolution 112-2021

I’m pleased to share with you the recent updates to the Peru Sales Ledger report (Registro de Ventas e Ingresos Electrónico, RVIE) for SAP ERP Central Component (SAP ECC). These changes were implemented to meet the legal requirements specified by the Peruvian tax authority, SUNAT (Superintendencia Nacional de Aduanas y de Administración Tributaria) in the Resolution 112-2021. 

  • For legal details on the SUNAT Resolution 112-2021, please refer to the SUNAT website. 

  • For technical implementation details for you SAP solution, please refer to SAP Note 3152563. 

In this blog post, I’ll list the key updates to the Peru Sales Ledger (RFCLLIB03_PE) report and explain how you can make the most of the new functionalities. 

1. Generate TXT files 

You now have the option to generate a file in the SUNAT-mandated TXT format, which you can download and submit electronically to the Peruvian tax authority.  If you prefer not to generate a TXT file, you can still preview the report output with the ABAP List Viewer (ALV).  

Generating your TXT file couldn’t be easier, simply select the “Create File” checkbox when completing the report information: 

The screenshot shows the Create File checkbox in the Output File Creation section of the Sales Ledger report.


2. Specify the TXT file location 

To generate a file in TXT format, you first need to specify the file path and the file name.  

Before running the Sales Ledger report, run the FILE transaction and configure the following information: 

2.1: Logical file path: FI_PE_SALES_LEDGER 

2.2: Logical File name: FI_PE_ARCHIVE_SL_FILE 


3. New configuration activities  

There are two new configuration activities that you need to complete to run the Sales Ledger report: 

3.1: Group Tax Balances (V_T007L) 

3.2: Group Tax Base Balances (V_T007K) 

For documentation on the SPRO pathways for these configuration activities, refer to the most recent version of the SAP Help Portal documentation: SAP Help Portal Documentation for Peru FI. 

For documentation on generating these configuration activities, and for which Group Numbers to enter in each activity, select the Document icon in your configuration environment: 

The screenshot shows the Documentation icon positioned alongside the Run icon in the configuration environment.


4. Error Messages 

You can now access the Application Log for any error messages that are generated during the report validation process.  

To access the Application Log, run the transaction SLGI and inform the following information: 

4.1: Object: FI_LOC_PE 

4.2: Subobject: SALES_LEDGER 


Closing Remarks 

The Peru Sales Ledger report is now updated with these changes and ready for you to use. If you have any further questions about this report or any of these recent changes, then please let me know in the comments. Your feedback is always appreciated and can even be the subject of my next blog post. 

Thank you and until next time, 

Barnabas Kirk 

#SAPGoGlobal #SAPLocalization