Ansicht
Dokumentation

VVOZINS_DIVEV_SAMPLE_0070 - Check Whether Reversal Admissible Acc. to Doc. Header and Calling Program

VVOZINS_DIVEV_SAMPLE_0070 - Check Whether Reversal Admissible Acc. to Doc. Header and Calling Program

General Material Data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use a function module called up for event 0070 to integrate document reversal. In order to check whether the reversal is permitted, you can use the document header data, I_FKKKOand an ID for the reversal trigger, I_CALLR.

Example

An application only permits the reversal of a document that you created by a specific transaction, for which other data is updated at the same time as the document is reversed. Using the HERKF (origin) field in the document header, or the industry-specific additional fields, the check function module for event 0070 can determine whether just a special reversal transaction is permitted for the current document. If that is the case, a check is made to see whether the caller of the reversal can be identified as "authorized" by the value entered in the I_CALLRvalue.

In this version of event 0070, a check is made to see whether the document to be reversed comes from balance interest calculation on insurance object level. In this case, only the last interest document for a combination of partner/insurance object/currency can be reversed.

Dependencies

Event 0070 is only required by applications that want to execute document reversal alongside other activities. Document reversal is initiated by one of the following function calls:

  • FKK_REVERSE_DOC
  • FKK_REVERSE_DOC_MASS

Both function modules offer the I_CALLRparameter, which can be used to identify the caller. The type of identification can be freely set, but must be confirmed with the check for event 0070.

This allows the caller to copy program names to I_CALLR, for example.

The copied parameter is then passed on to the check function modules by both of the named function modules, which are processed for event 0070. These can then determine whether the reversal takes place with the matching transaction or the matching program.

Notes

Further information





Parameters

I_CALLR
I_FKKKO

Exceptions

Function Group

VVOZINS_DIVEV

PERFORM Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2345 Date: 20240523 Time: 144256     sap01-206 ( 57 ms )