Ansicht
Dokumentation
PAK_HOLDING_WB_OBJECT_LOCK - Returns whether the own mode holds a lock for a Workbench object
PERFORM Short Reference TXBHW - Original Tax Base Amount in Local CurrencyThis documentation is copyright by SAP AG.
Functionality
Returns whether there is a IF_PAK_WB_OBJECT instance belonging to this mode that holds an enqueue lock for a particular Workbench object.
You do not need this function module normally, but it can be useful to avoid duplicately locking the same object in "special" cases, such as when integrating with code that does not implement a clean policy on locking/unlocking of objects etc. However, please note that this can hide one routine X's "re-using" (and then activating, unlocking etc.) an IF_PAK_WB_OBJECT instance that was originally locked by another, unrelated routine A, thus invalidating A's assumptions about the IF_PAK_WB_OBJECT instance, which can cause hard-to-analyze errors to occur in A. Therefore, use this technique only when there are no other options but never by default.
Example
Notes
Further information
Parameters
EX_HOLDING_OWN_WB_OBJECT_LOCKIM_NAME
IM_TYPE
Exceptions
Function Group
PAK_WB_FOUNDATION_LINKPERFORM Short Reference ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 1172 Date: 20240523 Time: 150018 sap01-206 ( 39 ms )