SAP SET LOCKS DYN ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID SET-LOCKS-DYN

SET LOCKS lock_tab, Dynamic Form

ABAP_SYNTAX
SET LOCKS lock_tab $[response_param $].

ABAP Addition
... response_param

What does it do?
The dynamic form of the SET LOCKS statement is used to collect instances of multiple RAP BO entities that are to be locked exclusively in one single SET LOCKS statement.
lock_tab must be an internal table of type ABP_BEHV_LOCKS_TAB. This table has specific components: ComponentDetails
entity_name Specifies the name of the RAP BO entity for which exclusive locking is intended. The name must be provided using capital letters.
instancesSpecifies a reference to an internal table that is typed with the BDEF derived type TYPE TABLE FOR KEY OF.

ABAP Addition

What does it do?