Ansicht
Dokumentation

SDCORRECT - General file for correction reports in SD

SDCORRECT - General file for correction reports in SD

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

Title

Corrections to Sales Documents

Purpose

This report is an outline program for developers or consultants to use for writing their own sales document correction reports. It cannot run by itself but must be combined with a subroutine that actually makes the corrections.

The report should only be used by people who have expperience with SD program structures.

Features

The report uses your sales document and item number selection criteria to create a list of items that remain to be processed. The system works through the list by calling up SD_SALES_DOCUMENT_READ when the document number changes and SD_SALES_DOCUMENT_SAVE when it has reached the last item in a document. It then calls up SD_SALES_ITEM_READ for each item in the document, followed by SD_SALES_DOCUMENT_PERFORM, which calls up a form routine that contains the actual corrections.

If you create a form routine in Include MV45AFZZ, you can use all the work areas and internal documents that belong to the sales document. SD_SALES_ITEM_READ has already prepared the sales order item. The correction routine can begin at this point but then takes over the final processing of the item.

It is also possible to call up SDCORRECT using SUBMIT from the selection program. The first step in SDCORRECT determines which documents or items are incorrect.

Selection

  1. Program: Name of the program that contains the correct routine
  2. Subroutine: Name of the routione you want to perform
  3. Sales document item: Item number
  4. Process document by document: The routine should not be called up for each item, but for each of the documents you have selected.
  5. Display message log: If any errors occur, the system displays a log.
  6. Sales document: Sales document number

You do not have to use the selection criteria to inform the report of which items you want to process. Instead you can use the memory segment 'SDCORRECT_LISTE'. To do this, you must first export the list of items to be processed into the memory using the EXPORT LISTE TO MEMORY ID 'SDCORRECT_LISTE' program. The internal LIST table must be defined as precisely as it is in the SDCORRECT program.






ABAP Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 2377 Date: 20240520 Time: 130516     sap01-206 ( 53 ms )