Ansicht
Dokumentation
ARCHIVE_PUT_RECORD - Write Data Record to Data Object
General Material Data General Data in Customer MasterThis documentation is copyright by SAP AG.
Functionality
This function module is used to pass a data record to the data object requested beforehand with the function module ARCHIVE_NEW_OBJECT. All data records you pass to the data object are written to the archive file together when you call the function module ARCHIVE_SAVE_OBJECT.
Examples
- Example 1
Extract from a program for archiving FI documents
TABLES: BKPF, BSEG, BSET, BVOR, BSEC, BSED.
DATA: HANDLE LIKE SY-TABIX.
...
CALL FUNCTION 'ARCHIVE_PUT_RECORD'
EXPORTING
ARCHIVE_HANDLE = HANDLE
RECORD = BKPF
RECORD_FLAGS = 'DELETE '
RECORD_STRUCTURE = 'BKPF'
EXCEPTIONS
INTERNAL_ERROR = 01
WRONG_ACCESS_TO_ARCHIVE = 02.
- Example 2
A detailed example can be found in the program SBOOKA.
Notes
In the case of complex data objects, it may be necessary to read and evaluate all data records before you can decide whether this data object should be archived.
It is not necessary to make a note of the data records or read the data records from the database again. You can simply pass the data records to the data object with this function module.
If you decide that the data records you have passed should not be archived, simply call the function module ARCHIVE_NEW_OBJECT. It ensures that the data you have passed is discarded. The data you have forwarded to the archiving classes to be archived is also discarded.
Parameters
ARCHIVE_HANDLERECORD
RECORD_FLAGS
RECORD_STRUCTURE
Exceptions
INTERNAL_ERRORINVALID_RECORD_STRUCTURE
WRONG_ACCESS_TO_ARCHIVE
Function Group
ARCHrdisp/max_wprun_time - Maximum work process run time TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 3841 Date: 20240523 Time: 092807 sap01-206 ( 36 ms )