(Scroll down for the English version, which is proudly presented by the
SAP Translation Portal)
Olá,
Gostaríamos de compartilhar uma atualização que pode economizar seu tempo durante a geração do relatório ECF: a utilização do buffer para a view SALDO_CONTABIL_DIARIO. Até a presente atualização, o tempo de geração era prejudicado pelo alto consumo de memória e pelo número de acessos buscando os documentos contábeis da view SALDO_CONTABIL_DIARIO.
Uma das funcionalidades que temos no TDF é a utilização de buffers. Essa funcionalidade possibilita a redução de diversas execuções, já que as informações ficarão salvas na memória a partir da primeira execução. No caso específico do relatório ECF, o buffer será utilizado durante a execução do relatório ECF e trará uma economia de cerca de 14 execuções da view SALDO_CONTABIL_DIARIO.
Como este passará a ser o processo padrão do programa na execução do relatório ECF, você não precisará selecionar qualquer opção na tela de parâmetros de execução. A cada vez que gerar o relatório ECF, o buffer será executado novamente. A seguir, detalhamos como você pode manter os parâmetros do buffer e assim fazer correções caso necessário.
Novas views também foram criadas para auxiliar na execução do relatório ECF. Na imagem abaixo, as views SALDO_CONTABIL_BUF* consomem dados do buffer, e as views SALDO_CONTABIL_DIARIO* consomem informação diretamente do banco de dados do sistema:

Views do relatório ECF
Dessa forma, identificar algum problema com a geração do buffer pode ser desafiador. Para resolver isso, criamos um parâmetro para manter o buffer em memória após a execução do relatório ECF. Para ativar este parâmetro, basta seguir os passos abaixo:
- Acesse a transação STVARV.
- Selecione a opção Display/Change para adicionar um novo parâmetro.
- Insira /TMF/ECF_KEEP_BUFFERno campo Nome e X no campo Valor.

Variáveis de seleção na tabela TVARVC
- Selecione Salvar.
A partir da próxima execução do relatório ECF para uma determinada empresa, o buffer será mantido e as views SALDO_CONTABIL_BUF* retornarão dados para esta empresa.
Disponibilizamos o buffer de saldo contábil para o relatório ECF através da SAP Note
2857248.
Update:
Depois da publicação do blog post, surgiram algumas dúvidas, então veja abaixo alguns pontos de atenção:
- Neste blog post estamos comentando o buffer da ECF, que não é o mesmo utilizado para a ECD.
- O buffer da ECF funcionará a partir da aplicação da SAP Note, portanto você não precisa nenhum passo adicional, marcar nenhum flag ou mudar a forma de executar a ECF.
- A parametrização da TVARVC só deve ser utilizada caso seja necessária análise pontual. Não recomendamos que ela fique sempre ligada, pois pode prejudicar a performance do relatório.
Para mais informações sobre o relatório ECF, veja:
Gostaríamos muito de saber o seu feedback. Deixe seu comentário abaixo caso tenha alguma dúvida ou sugestão para um próximo post. E não esqueça de seguir a tag SAP Tax Declaration Framework for Brazil aqui na SAP Community para ficar ligado nas últimas notícias sobre o Tax Declaration Framework (TDF).
Além dos comentários, você pode entrar em contato conosco através da plataforma
Customer Influence. Lá você pode propor ideias para melhorar o nosso produto, votar em outras ideias já lançadas e acompanhar ideias em implementação.
Até a próxima!
Carolina Hefler
Time de desenvolvimento do TDF
#SAPGoGlobal #SAPLocalization
TDF: Execution of the ECF Report Through Buffer
Hi there,
We would like to share an update that can save you time during the generation of the ECF report: the use of the buffer for Posting Balance in the SALDO_CONTABIL_DIARIO view.
Until this update, the generation time was impacted by the high memory consumption and the number of accesses to the accounting documents from the SALDO_CONTABIL_DIARIO view.
One of the features available in TDF is the use of buffers. This functionality enables the reduction of several runs, since the information will be saved in memory from the first run. In the specific case of the ECF report, the buffer will be used during the execution of the ECF report and will save about 14 runs of the SALDO_CONTABIL_DIARIO view.
Since this will become the program's default process when you run the ECF report, you won’t need to select any new parameter in the report’s screen. Each time you generate the ECF report, the buffer is executed.
Below we detail how you can maintain the buffer parameters and thus make corrections if necessary.
New views are available to assist you when executing the ECF report. In the image below, the SALDO_CONTABIL_BUF* views consume data from the buffer, and the SALDO_CONTABIL_DIARIO* views consume information directly from the system database:

ECF Report Views
Thus, identifying a problem with the generation of the buffer may be challenging. To resolve this, we have created a parameter to keep the buffer in memory after running the ECF report. To activate this parameter, follow the steps below:
1) Go to the STVARV transaction.
2) Choose the Display/Change option to add a new parameter.
2) Enter /TMF/ECF_KEEP_BUFFER in the Name field and X in the Value field.

Selection variables in the TVARVC table
3) Choose Save
As of the next ECF report run for a given company code, the buffer will be retained and the SALDO_CONTABIL_BUF* views will return data for this company code.
This functionality is available for the ECF report via SAP Note 2857248.
Update:
After publishing this post, some questions emerged, so see below some points of attention:
- In this blog post we are commenting on the ECF buffer, which is not the same used for the ECD.
- The ECF buffer will work from the SAP Note application, so you do not need to do any additional steps or mark any flags or change the way you run the ECF.
- The setup of TVARVC should only be used if spot analysis is required. We do not recommend that you always switch it on, as it can decrease the performance of the report.
For more information on the ECF report, see:
We would like to know about your feedback. Leave your comment below if you have any questions or suggestions for a next post. And don’t forget to follow the SAP Tax Declaration Framework for Brazil tag here on SAP Community to be linked to the latest news on the Tax Declaration Framework (TDF).
In addition to comments, you can contact us through the
Customer Influence platform. There you can propose ideas to improve our product, vote on other ideas that have already been posted and track ideas in implementation.
See you next time!
Carolina Hefler
TDF Development Team
#SAPGoGlobal #SAPLocalization