SAP Simulate VF01 – Billing Document with Accounting Document

作者:郑德鼎 约 4 分钟阅读 更新日期:2024-02-22 2 年前更新 标签:CO, Data Engineering, FI, SD, 数据工程, 财务, 销售分销
目录

Bruno Xavier

January 11, 2012 17 minute read

Dashboard

ERP SD Billing Troubleshooting Guide

Skip to end of banner

Go to start of banner

Accounting document creation from SD Troubleshooting

Skip to end of metadata

Created by Christian Rosa, last modified by Kelly Ynoue on Oct 04, 2016

Go to start of metadata

FAQ in Accounting document creation from SD (SD-FI Interface)

How to analyze the creation of the accounting document from SD billing

Debugging hints for Error RW022 and F5702

F5 351 Account is blocked for posting

General Information About SD-FI Interface

Dashboard

Accounting document creation from SD Troubleshooting

Skip to end of banner

Go to start of banner

How to analyze the creation of the accounting document from SD billing

Skip to end of metadata

Created by Kelly Ynoue, last modified on Oct 04, 2016

Go to start of metadata

To analyze the creation of an accounting document from an SD Billing document, set a breakpoint in function module RV_ACCOUNTING_DOCUMENT_CREATE.

Function module RV_ACCOUNTING_DOCUMENT_CREATE is triggered by

Function module RV_ACCOUNTING_DOCUMENT_CREATE  is called by function module RV_INVOICE_DOCUMENT_ADD.

If the accounting document is already created, you may use the simulation report SAPFACC0 or SAPFACC1. Both reports provide a list (an overview) about all posted lines and accounts.

To trigger function module RV_ACCOUNTING_DOCUMENT_CREATE of an existing accounting document, follow the steps:

Run SE38 or SA38.

Run report SAPFACC0 or SAPFACC1.

Enter the billing document number. Never select update run, if this option "update run" appears.

The difference between reports SAPFACC0 or SAPFACC1 is the selection of the concerned billing document.

In report SAPFACC0, the selection of the billing document is via a direct SELELCT FROM TABLE, and is therefore limited.

In report SAPFACC1, the selection of the billing document is via function module RV_INVOICE_DOCUMENT_READ. It allows also an investigation in business processes with: costs (condition VPRS), transfer prices, revenue recognition and (partially) down payment.

If you don't know the message ID and number and the billing document was created and released to accounting by collective processing, check the log following these steps:

1. Pick up the billing document number.

2. Run transaction SE16, table VBSS, and enter the billing document number in VBELN. If there is an entry, the billing document was created by a job.

3. Write down the group number (SAMMG).

4. Run transaction V.21 and enter the group number.

You can find further information (specially about debugging) in page: General Information About SD-FI Interface.

Dashboard

Accounting document creation from SD Troubleshooting

Skip to end of banner

Go to start of banner

FAQ in Accounting document creation from SD (SD-FI Interface)

Skip to end of metadata

Created by Kelly Ynoue, last modified on Dec 11, 2017

Go to start of metadata

You'll be able to easily find out the answer/solution by yourself for the most frequently asked questions in SD-FI interface on this page.

For an easier search, you can use Ctrl + F to find a specific error message, for example.

If you have issues when creating a billing document, access the FAQ in SD-BIL-IV - Processing of billing documents.

If you have issues when cancelling a billing document, access the FAQ in Billing Cancellation.

Simulate VF01 – Billing Document with Accounting Document

FollowRSS feedLike

1 Like 5,669 Views 0 Comments

This blog is published in the language “Portuguese” permitted by new policies of SDN.

Introduction/Introdução

Portuguese

Com esse Blog você vai ver uma maneira que eu desenvolvi para simular o documento contábil de FI antes de gravar a Fatura de SD pela transação VF01.

Esse programa foi útil em cliente onde o índice de estornos VF11 estava muito alto porque os documentos contábeis foram gerados incorretamente e porque não há uma maneira standard para simular o documento contábil pela VF01 até onde eu sei.

Primeiramente irei mostrar três cenários

1) Simulação do documento contábil da VF01 baseado em remessa VL01N

2) Simulação do documento contábil da VF01 baseado em ordem de venda VA01

3) Simulação de um erro O programa não é perfeito, sinta-se a vontade para adaptar o código fonte.

OBS: os cenários são fictícios e não correspondem os valores da realidade.

English

With this blog you will see a way that I developed of simulate FI accounting document before saving the SD Billing Document for the transaction VF01.

This program was useful in client where the rate of reversals VF11 was very high because the accounting documents were generated incorrectly and because there is no standard way to simulate the accounting document by VF01 as far as I know.

First I will show three scenarios

1) Simulation accounting document with the VF01 based document delivery VL01N

2) Simulation accounting document with VF01 based sales order VA01

3) Simulation of an error The program is not perfect, feel free to adapt the source code.

NOTE: The scenarios are fictitious and do not match reality values

1) Simulação do documento contábil da VF01 baseado em remessa VL01N

No programa Z, informe a remessa e execute F8

O programa Z irá mostrar como deve ficar o documento contábil

Criando o documento real de faturamento na transação VF01 com a mesma remessa

Documento que foi gerado

Conferindo o fluxo de documentos na transação VF03 para ter a certeza dos documentos gerados:

Conferindo o documento contábil ainda na transação VF03

Resultado final: Documento real ficou igual ao simulado.

2) Simulação do documento contábil da VF01 baseado em ordem de venda VA01

No programa Z, informe a ordem de venda/item e execute F8

O programa Z irá mostrar como deve ficar o documento contábil

Criando o documento real de faturamento na transação VF01 com a mesma ordem de venda:

Documento que foi gerado

Conferindo o fluxo de documentos na transação VF03 para ter a certeza dos documentos gerados:

Conferindo o documento contábil ainda na transação VF03

Resultado final: Documento real ficou igual ao simulado.

3) Simulação de um erro

Nesse exemplo tenho uma remessa com problema na determinação de conta. O programa irá mostrar os erros em um pop-up.

Código Fonte

Customer-Exit: EXIT_SAPLV60B_008

Ampliação: SDVFX008

Transaction | Button

VF01 | Save

VF02 | Release to accounting  (if posting block is set in billing type customizing VOFA)

VFX3 | Release to accounting  (if posting block is set in billing type customizing VOFA)

VF11 | Save

...

郑德鼎

关于作者:郑德鼎

企业信息化与 SAP 技术顾问,长期专注 SAP ABAP、FI/CO、MM、SD 等模块的技术分享与实战经验总结。查看更多介绍

来源说明:本文内容由「SAP Simulate VF01 – Billing Document with Accounting Document.docx」整理生成,仅用于内部技术分享与学习交流。