Ansicht
Dokumentation

EXIT_SAPLKOAU_002 - Authorization check for internal orders: Replace AUTHPHASE

EXIT_SAPLKOAU_002 - Authorization check for internal orders: Replace AUTHPHASE

CPI1466 during Backup   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functions

Customer exit that is called up for authorization checks on internal orders in master data maintenance, planning, budgeting, and reporting.

This function module enables you to check the AUTHPHASE field in the K_ORDER authorization object against any value, in the standard check. Without this exit, the system checks the AUTHPHASE field against the status number of the user status (for general status management), or against the order status (for order status management). (AUFK-ASTNR field).

Note that this function module is only a substitute for the AUTHPHASE field. This function module, in particular, should not trigger any messages or exceptions. You can implement more checks in EXIT_SAPLRKIO_002.

Example

If you add the following sample coding to the ZXAUFU08 include, then you can make the authorization dependent upon the plant for order type "0100". The check takes place in the same way as in the standard system for all other order types.

IF I_AUFK-AUART = '0100'.
C_AUTHPHASE = I_AUFK-WERKS.
ENDIF.

To ensure that this enhancement also functions in reporting, you need to enter the WERKS field into the CI_COAS_BF structure.

Notes

You must not execute a COMMIT WORK at any point in this enhancement, or make any write access to the database in SAP tables, as this can trigger severe program errors and data inconsistencies.

Also note that this function module is used frequently in certain circumstances, especially in reporting. Therefore, unnecessary database access or other actions which require intensive runtime, should be avoided.

The EXIT_SAPLKOAU_002 module only runs once the standard check is complete. If controlled by EXIT_SAPLKOAU_001 (especially parameter C_NO_MORE_CHECKS), and no standard check is made, then EXIT_SAPLKOAU_002 does not run.

Further information

For more information, see the documentation on SAP enhancement COOPA005.





Parameters

C_AUTHPHASE
I_AUFK
I_CO_ACTION
I_KSTAR

Exceptions

Function Group

XAUF

Addresses (Business Address Services)   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 2626 Date: 20240523 Time: 045118     sap01-206 ( 49 ms )