Ansicht
Dokumentation

SAPKKA08 - Actual Results Analysis: Sales Orders with Actual Postings

SAPKKA08 - Actual Results Analysis: Sales Orders with Actual Postings

ABAP Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Title

Purpose

You use this program to perform analysis for sales document items. In addition to standard collective processing, the sales document items are restricted by selecting only the items on which actual postings have been recorded within a specified time period.

You use this program when you are interested in results analysis for a specific day, and for performance reasons you only want to process the items whose actual data has changed since the previous day. Results analysis data is therefore only calculated for the sales document items for which actual postings were recorded within the specified time period. Note, however, that results analysis data also can change in the following cases:

  • You change plan data.
  • Results analysis summarizes different account assignment objects on a sales document item (such as manufacturing orders or other sales document items). The actual data on the summarized account assignment objects change.
  • The status of the sales document item changes, which causes a different valuation method to be used.
  • You use results analysis method 8 (simplified customizing) or profit indicator K (expert mode) and create a billing document. The cost of sales changes.
  • You use results analysis method 14 or 15 (simplified customizing) or results analysis type B, profit indicator M or Q (expert mode), and change prices. The simulated revenue changes.
  • You enter manual results analysis data.

This program does not recalculate the results analysis data in any of these cases. This can result in the results analysis data for a sales document item not being recalculated even though results analysis would in fact calculate new values if it were run. It is therefore recommended that you run results analysis at least once a period using standard collective processing.

In the selection conditions, you enter the exact beginning and ending time period (including the seconds). The program searches for documents of sales document items entered or generated by the system within this time period, and selects only the sales document items for which actual postings or actual revenue postings exist. The posting date does not have to lie within the specified time period.

Each document shows the exact time (in Greenwich Mean Time) at which it was created. The start date and end date are converted to Greenwich Mean Time before selection. If documents are entered in different time zones, therefore, the indicated time is always the local time of the application server where you start results analysis.

Integration

Prerequisites

The program accesses the line item table COEP. If database selection takes a long time, it is advisable to create a customer-specific index containing the following fields in this specific order: MANDT, WRTTP, KOKRS, TIMESTMP, and OBJNR. In this way, the system only needs to access the index during the selection. It is no longer necessary to access the actual database table all the while you do not modify the selection criteria.

You can test the selection of the program by entering the command field SELECT. Then only the relevant sales document items are selected and output in a single-level list. No processing takes place.

Features

Selection

Standard Variants

Output

Activities

Example






Vendor Master (General Section)   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 4110 Date: 20240531 Time: 061830     sap01-206 ( 91 ms )