Register Login

ENQUEUE_READ Function Module

Updated May 21, 2018

Hello SAP Experts,

A problem occurs while reading lock entries with the function module ENQUEUE_READ because of the characters used such as *, %, ? and @ as placeholders.

Please help me to resolve this error.


Comments

  • 02 Nov 2016 1:31 pm Jyoti Pandey Best Answer

    The function module ENQUEUE_READ has an additional, optional parameter GARGNOWC. If this is transferred with value 'X' then all the various parameters in  input parameter GARGNOWC are treated as literals, therefore the character string can also contain the characters ?, @, * and %. Additionally, the GARG is handled as prefix which implies that if a placeholder for several characters was attached to GARG. The other input parameters treat placeholders as described above.

    Character @ is used in the enqueue as a placeholder for one single character. At the time of setting locks character @ also applies as a placeholder. Therefore, the character @ cannot be set as a literally which can be avoided. 

  • 02 Nov 2016 1:20 pm Jyoti Pandey Helpful Answer

    The issue is caused because the function module uses the  characters ? and @ as placeholders for one single character whereas it uses * and % as a placeholder for several characters. A maximum of two placeholders for several characters is allowed in the transfer parameters. Therefore if two placeholders are used for several characters then the first placeholder must be positioned at the start of the character string. 


×