Ansicht
Dokumentation

EXIT_SAPMNPA5_001 - IS-H: Absence Enhancement

EXIT_SAPMNPA5_001 - IS-H: Absence Enhancement

Fill RESBD Structure from EBP Component Structure   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module lets you intervene in the processing of the absence function (transactions NP91, NP92, NP93). It is called in the Absence Data screen. The call is performed at the event PROCESS AFTER INPUT just before the module that handles the function input (module OK-CODE) is executed, and when the Cancel function is executed. Note that with the Cancel function, only the most recently confirmed entries (via Check entries, for example) of the current screen are passed to the interface, and not the entries directly prior to the Cancel function being executed. The Cancel function is identified by the value "STO" in the SS_OKCODE parameter. The function module is primarily intended for carrying out additional plausibility checks. If this function module is not called when Cancel is executed, you can also modify the function input, and call customer-specific functions in the absence transaction. If you want to cancel the Cancel function, delete the value in the SS_OKCODE parameter.

Example

A particular reason for return is to be set only when a certain reason for abscence has been entered beforehand. The reason for absence is in the SS_NBEW-BWART field, and the reason for return in the SS_NBEW2-BWART field. If you want the system to issue an error message, proceed as follows:
SET CURSOR FIELD 'RNPA1-ABRGR'.
MESSAGE E... WITH ...

Notes

Please ensure that you do not execute any runtime intensive functions, since the function concerned here is a dialog function. Moreover, you should not use statements that prevent the return to the point at which this function module is called (for example, LEAVE SCREEN, LEAVE TO TRANSACTION).

Further information

Please refer to the documentation on the SAP enhancement NP920001.





Parameters

SS_NBEW
SS_NBEW2
SS_NBEW2_OLD
SS_NBEWTAB
SS_NBEW_OLD
SS_NFAL
SS_NFAL_OLD
SS_NFPZTAB
SS_NPAE
SS_NPAT
SS_OKCODE
SS_TCODE
SS_VCODE

Exceptions

Function Group

XN01

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

Length: 3067 Date: 20240604 Time: 033237     sap01-206 ( 74 ms )