What does ENQUEUE_ESFUNCTION: Lock an abap program so that it cannot be executed.Please note that you should not use SY-REPID to pass yourreport name to the function. The value of SY-REPID will change as it isbeing passed to the function module, and will no longer hold the valueof the calling report
SAP enqueue_esfunction help. Function module enqueue_esfunction manual. Hot to use usage enqueue_esfunction
in prompt.
More function modules from SAP ERP such as enqueue_esfunction in Dictionary E.