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: 

Peru Financial Accounting

I’m pleased to share with you the recent updates to the Peru Purchase Ledger report (Registro de Compras) for SAP ERP Central Component (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 Annex 11 of the Resolution 040/2022 for Domestic Purchases. 

  • For legal details on the SUNAT Resolution 040/2022, please refer to the SUNAT website.  

  • For technical implementation details regarding your SAP solution, please refer to SAP Note 3239158. 

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

You may recognize some of the new functionalities from my previous blogpost on the updated Peru Sales Ledger report (which you can access by selecting this link), but in this post, I also bring new information on the Purchase Ledger’s configuration for the Financial Statement Version.  


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. 


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 Purchase Ledger report, run the FILE transaction and configure the following information:  

2.1. Logical file path: FI_PE_PURCHASE_LEDGER  

2.2. Logical File name: FI_PE_ARCHIVE_PL_DOMESTIC_FILE  


3. New configuration activities  

There are two new configuration activities that you need to complete to run the Purchase 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 the 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. Financial Statement Version  

To generate the Peru Purchase Ledger, you can now configure the Financial Statement Version for Domestic Purchases. To complete this customizing activity, you need to complete two tasks: 

4.1. Create a Financial Statement Version for “Classification of Goods and Services for the Purchase Ledger for Domestic Purchases (080400)”. 

4.2. Assign your General Ledger accounts to the Financial Statement Version you created in step 4.1. 

For a full description of this process access the SAP Help Portal page, Peru Purchase Ledger: Additional Configuration for Financial Statement Version. There you can find a full step-by-step guide to configuring your Financial Statement Version for domestic purchases:

The screenshot shows the relevant structure of SAP Help Portal documentation.


Closing Remarks 

The Peru Purchase Ledger report is now live 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