Ansicht
Dokumentation

SAMPLE_CREATE_BILLDOC - Generate Settlement Documents

SAMPLE_CREATE_BILLDOC - Generate Settlement Documents

General Data in Customer Master   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

This is a sample report and is intended as a template for a customer solution. The report cancels processing before billing documents are reversed.

Important:
You must never run a report that reverses billing documents for test purposes in a live system because it generates posting-relevant documents in the contract accounts receivable and payable (FI-CA)!

If you copy data from external systems, billing documents are generated. See the documentation about the function module BAPI_BILLDOC_CREATEMULTIPLE. Invoicing posts billing documents in contract accounts receivable and payble and in FI-CA.

In the following example, it may make sense to generate billing documents using your own report:

  • You want to test invoicing for contract accounts receivable and payable in a test system
  • It is not possible to use the above BAPI to copy external data into the test system

You can use this report as a template for your own solution. Copy the report and delete the coding that causes processing to be canceled. Adjust the report to meet your requirements. The report uses the function module INV_SAMPLE_EXTERN_BILLDOCS to simulate external data, from which it generates test billing documents usíng the function module BAPI_BILLDOC_CREATEMULTIPLE. If required, you can make additions to the 'external' data of the function module INV_SAMPLE_EXTERN_BILLDOCS. You can also use your own function module rather than INV_SAMPLE_EXTERN_BILLDOCS.

Integration

Prerequisites

It is only possible for the INV_SAMPLE_EXTERN_BILLDOCS function module to simulate external data if you maintained the posting areas for copying billing documents.

The posting areas 2640, 2641, 2642 and 2642 must contain entries for the logical system, which is to be entered as a parameter when you run the report. If you maintain the posting areas for another logical system, you must specify it when you run the report.

Posting area 2640 must contain entries for the posting area, which is to be entered as a parameter when you run the report..

Features

Selection

Contract account: You can generate billing documents for one or more contract account(s).

Posting area: The report only processes contract accounts whose posting area group is compatible with the predefined posting area.

Number of posting-relevant items: Defines how many posting-relevant items are generated for each billing document

Number of info items: Defines how many items not relevant for posting are to be generated for a billing document

Add to simulated items: Causes the billing document to include items for which the dcocument item is simulated indicator is set.

Additional items: Causes the system to generate additional items (FKKIVBILL_A) table for every billing document.

Standard Variants

Output

Activities

Example






General Data in Customer Master   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 3550 Date: 20240520 Time: 060139     sap01-206 ( 65 ms )