Ansicht
Dokumentation

SIPT_GET_MASTER_DATA_DOCS_FI - Signature PT: Get Master Data from FI Documents

SIPT_GET_MASTER_DATA_DOCS_FI - Signature PT: Get Master Data from FI Documents

rdisp/max_wprun_time - Maximum work process run time   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module retrieves master data for customer address data and material texts that belong to certain accounting documents for which a Portuguese digital signature has been generated. It retrieves the master data from the version tables SIPT_VER_KUNNR, SIPT_VER_MATNR, SIPT_HIST_KUNNR, and SIPT_HIST_MATNR. If no specific version exists in these tables, the data is retrieved from the standard master data tables ADRC and MAKT.

The system uses versions for certain customer master data (SIPT_VER_KUNNR) and material master data (SIPT_VER_MATNR). The system generates a new master data version only during the posting of documents with a Portuguese digital signature. For each posting, the system checks if the relevant master data has changed and, if necessary, generates a new version.

Master data versions therefore do not correspond directly to postings. The master data of a document becomes valid when the document has been digitally signed and updated to the database (table SIPT_BKPF). The point in time at which this occurs is always later than the creation of the document (later than the time stamp of the invoice/billing date that is used for digital signature generation). Function module SIPT_GET_TMSTP_FOR_DATA_VER_FI determines if the document is invalid (not signed) and which time stamp has to be used to determine the corresponding master data versions.

The system assigns the corresponding master data version to the relevant documents in the tables ET_DOCUMENT_VER_KUNNR for customers and ET_DOCUMENT_VER_MATNR for materials. The corresponding tables for customer master data ET_KUNNR and material master data ET_MATNR contain the requested values.

The system may not be able to determine or retrieve master data in the following cases:

  • Data for a specific language or specific international address version has been retrieved, but the relevant data version contains only different languages or different international address versions.
  • Data has been retrieved independently of the language and international address version, but the master data has already been archived.
  • Incorrect data has been passed to the function module.

The first two cases are handled at document level: The NO_DATA flag is active in the tables ET_DOCUMENT_VER_KUNNR or ET_DOCUMENT_VER_MATNR. The system trusts the available data.

The third case is a fatal error that raises an exception. The system does not trust exported data in case of an exception.

Example

The optional parameter for language and international address version must not be requested to get all text data and all international address version data with a single call. Note that an initial value for the address version is a valid specific value in the database.

If a single call returns too much data, the function module has to be called recursively with a specific language and international address version key.

Notes

To achieve better performance, it is recommended to request the data for a short time period, that is, for documents that are digitally signed on the same date or close to the same date.

Master data is not retrieved for documents that have no digital signature. Table ET_UNSIGNED_DOCUMENTS contains the relevant document keys. These document keys do not appear in the tables ET_DOCUMENT_VER_MATNR and ET_DOCUMENT_VER_KUNNR.

Further information





Parameters

ET_DOCUMENT_VER_KUNNR
ET_DOCUMENT_VER_MATNR
ET_KUNNR
ET_MATNR
ET_UNSIGNED_DOCUMENTS
IT_KUNNR_DOC_FI
IT_MATNR_DOC_FI
IT_SIPT_BKPF
IV_NATION
IV_SPRAS

Exceptions

ERROR

Function Group

SIPT_DATA_FI

BAL_S_LOG - Application Log: Log header data   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 5023 Date: 20240523 Time: 121204     sap01-206 ( 87 ms )