Ansicht
Dokumentation

EXIT_SAPMNPA8_001 - IS-H: Discharge Enhancement

EXIT_SAPMNPA8_001 - IS-H: Discharge Enhancement

Vendor Master (General Section)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module enables you to intervene in the processing of the discharge function (transactions NP97, NP98, NP99). It is called in Discharge Data screen of the discharge function. 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. This 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 discharge transaction. If you want to cancel the Cancel function, delete the value in the SS_OKCODE parameter.

Example

Only a specific discharge disposition is to be permitted with a particular discharge type and the Work incapacity field must be filled. The discharge type is in the SS_NBEW-BWART field, the discharge disposition in the SS_NBEW-EZUSTfield and the work incapacity date in the SS_NBEW-ARBUN field. If you want the system to issue an error message, proceed as follows:
SET CURSOR FIELD 'NBEW-EZUST'.
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 (e.g. LEAVE SCREEN, LEAVE TO TRANSACTION).

Further information

Please refer to the documentation on the SAP enhancement NP980001.





Parameters

SS_NBEW
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

CL_GUI_FRONTEND_SERVICES - Frontend Services   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 3179 Date: 20240523 Time: 071936     sap01-206 ( 77 ms )