SAP ENQUEUE_E_USC_CONTACT Function Module for Request lock for object E_USC_CONTACT
ENQUEUE_E_USC_CONTACT is a standard enqueue e usc contact SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Request lock for object E_USC_CONTACT processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for enqueue e usc contact FM, simply by entering the name ENQUEUE_E_USC_CONTACT into the relevant SAP transaction such as SE37 or SE38.
Function Group: /1BCDWBEN/UEN0000
Program Name: /1BCDWBEN/SAPLUEN0000
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ENQUEUE_E_USC_CONTACT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'ENQUEUE_E_USC_CONTACT'"Request lock for object E_USC_CONTACT.
EXPORTING
* MODE_USC_CONTACT = 'X' "Lock mode for table USC_CONTACT
* LANGU = "03th enqueue argument
* REL_CONT_GUID = "04th enqueue argument
* KWD_TXT_INT = "05th enqueue argument
* SRM_PARTNER = "06th enqueue argument
* OBJTYPE = "07th enqueue argument
* CLASS = "08th enqueue argument
* OBJID = "09th enqueue argument
* DOCUMENT_USE = "10th enqueue argument
* X_CONT_GUID = ' ' "Fill argument 02 with initial value?
* X_LANGU = ' ' "Fill argument 03 with initial value?
* MODE_USC_CONT_TXT = 'X' "Lock mode for table USC_CONT_TXT
* X_REL_CONT_GUID = ' ' "Fill argument 04 with initial value?
* X_KWD_TXT_INT = ' ' "Fill argument 05 with initial value?
* X_SRM_PARTNER = ' ' "Fill argument 06 with initial value?
* X_OBJTYPE = ' ' "Fill argument 07 with initial value?
* X_CLASS = ' ' "Fill argument 08 with initial value?
* X_OBJID = ' ' "Fill argument 09 with initial value?
* X_DOCUMENT_USE = ' ' "Fill argument 10 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MODE_USC_CONT_ADD = 'X' "Lock mode for table USC_CONT_ADD
* MODE_USC_CONT_REL = 'X' "Lock mode for table USC_CONT_REL
* MODE_USC_CONT_KWD = 'X' "Lock mode for table USC_CONT_KWD
* MODE_USC_CONT_STH = 'X' "Lock mode for table USC_CONT_STH
* MODE_USC_CONT_DOC = 'X' "Lock mode for table USC_CONT_DOC
* MANDT = SY-MANDT "01th enqueue argument
* CONT_GUID = "02th enqueue argument
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_E_USC_CONTACT
MODE_USC_CONTACT - Lock mode for table USC_CONTACT
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGU - 03th enqueue argument
Data type: USC_CONT_TXT-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
REL_CONT_GUID - 04th enqueue argument
Data type: USC_CONT_REL-REL_CONT_GUIDOptional: Yes
Call by Reference: No ( called with pass by value option)
KWD_TXT_INT - 05th enqueue argument
Data type: USC_CONT_KWD-KWD_TXT_INTOptional: Yes
Call by Reference: No ( called with pass by value option)
SRM_PARTNER - 06th enqueue argument
Data type: USC_CONT_STH-SRM_PARTNEROptional: Yes
Call by Reference: No ( called with pass by value option)
OBJTYPE - 07th enqueue argument
Data type: USC_CONT_DOC-OBJTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
CLASS - 08th enqueue argument
Data type: USC_CONT_DOC-CLASSOptional: Yes
Call by Reference: No ( called with pass by value option)
OBJID - 09th enqueue argument
Data type: USC_CONT_DOC-OBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
DOCUMENT_USE - 10th enqueue argument
Data type: USC_CONT_DOC-DOCUMENT_USEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CONT_GUID - Fill argument 02 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_LANGU - Fill argument 03 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_USC_CONT_TXT - Lock mode for table USC_CONT_TXT
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_REL_CONT_GUID - Fill argument 04 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_KWD_TXT_INT - Fill argument 05 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SRM_PARTNER - Fill argument 06 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_OBJTYPE - Fill argument 07 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_CLASS - Fill argument 08 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_OBJID - Fill argument 09 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DOCUMENT_USE - Fill argument 10 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_SCOPE -
Data type:Default: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
_WAIT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_COLLECT - Initially only collect lock
Data type: DDENQCOLLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_USC_CONT_ADD - Lock mode for table USC_CONT_ADD
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_USC_CONT_REL - Lock mode for table USC_CONT_REL
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_USC_CONT_KWD - Lock mode for table USC_CONT_KWD
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_USC_CONT_STH - Lock mode for table USC_CONT_STH
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_USC_CONT_DOC - Lock mode for table USC_CONT_DOC
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MANDT - 01th enqueue argument
Data type: USC_CONTACT-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONT_GUID - 02th enqueue argument
Data type: USC_CONTACT-CONT_GUIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FOREIGN_LOCK - Object already locked
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_FAILURE - Internal error from enqueue server
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ENQUEUE_E_USC_CONTACT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_foreign_lock | TYPE STRING, " | |||
| lv_mode_usc_contact | TYPE ENQMODE, " 'X' | |||
| lv_langu | TYPE USC_CONT_TXT-LANGU, " | |||
| lv_rel_cont_guid | TYPE USC_CONT_REL-REL_CONT_GUID, " | |||
| lv_kwd_txt_int | TYPE USC_CONT_KWD-KWD_TXT_INT, " | |||
| lv_srm_partner | TYPE USC_CONT_STH-SRM_PARTNER, " | |||
| lv_objtype | TYPE USC_CONT_DOC-OBJTYPE, " | |||
| lv_class | TYPE USC_CONT_DOC-CLASS, " | |||
| lv_objid | TYPE USC_CONT_DOC-OBJID, " | |||
| lv_document_use | TYPE USC_CONT_DOC-DOCUMENT_USE, " | |||
| lv_x_cont_guid | TYPE USC_CONT_DOC, " SPACE | |||
| lv_x_langu | TYPE USC_CONT_DOC, " SPACE | |||
| lv_system_failure | TYPE USC_CONT_DOC, " | |||
| lv_mode_usc_cont_txt | TYPE ENQMODE, " 'X' | |||
| lv_x_rel_cont_guid | TYPE ENQMODE, " SPACE | |||
| lv_x_kwd_txt_int | TYPE ENQMODE, " SPACE | |||
| lv_x_srm_partner | TYPE ENQMODE, " SPACE | |||
| lv_x_objtype | TYPE ENQMODE, " SPACE | |||
| lv_x_class | TYPE ENQMODE, " SPACE | |||
| lv_x_objid | TYPE ENQMODE, " SPACE | |||
| lv_x_document_use | TYPE ENQMODE, " SPACE | |||
| lv__scope | TYPE ENQMODE, " '2' | |||
| lv__wait | TYPE ENQMODE, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_mode_usc_cont_add | TYPE ENQMODE, " 'X' | |||
| lv_mode_usc_cont_rel | TYPE ENQMODE, " 'X' | |||
| lv_mode_usc_cont_kwd | TYPE ENQMODE, " 'X' | |||
| lv_mode_usc_cont_sth | TYPE ENQMODE, " 'X' | |||
| lv_mode_usc_cont_doc | TYPE ENQMODE, " 'X' | |||
| lv_mandt | TYPE USC_CONTACT-MANDT, " SY-MANDT | |||
| lv_cont_guid | TYPE USC_CONTACT-CONT_GUID. " |
|   CALL FUNCTION 'ENQUEUE_E_USC_CONTACT' "Request lock for object E_USC_CONTACT |
| EXPORTING | ||
| MODE_USC_CONTACT | = lv_mode_usc_contact | |
| LANGU | = lv_langu | |
| REL_CONT_GUID | = lv_rel_cont_guid | |
| KWD_TXT_INT | = lv_kwd_txt_int | |
| SRM_PARTNER | = lv_srm_partner | |
| OBJTYPE | = lv_objtype | |
| CLASS | = lv_class | |
| OBJID | = lv_objid | |
| DOCUMENT_USE | = lv_document_use | |
| X_CONT_GUID | = lv_x_cont_guid | |
| X_LANGU | = lv_x_langu | |
| MODE_USC_CONT_TXT | = lv_mode_usc_cont_txt | |
| X_REL_CONT_GUID | = lv_x_rel_cont_guid | |
| X_KWD_TXT_INT | = lv_x_kwd_txt_int | |
| X_SRM_PARTNER | = lv_x_srm_partner | |
| X_OBJTYPE | = lv_x_objtype | |
| X_CLASS | = lv_x_class | |
| X_OBJID | = lv_x_objid | |
| X_DOCUMENT_USE | = lv_x_document_use | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| MODE_USC_CONT_ADD | = lv_mode_usc_cont_add | |
| MODE_USC_CONT_REL | = lv_mode_usc_cont_rel | |
| MODE_USC_CONT_KWD | = lv_mode_usc_cont_kwd | |
| MODE_USC_CONT_STH | = lv_mode_usc_cont_sth | |
| MODE_USC_CONT_DOC | = lv_mode_usc_cont_doc | |
| MANDT | = lv_mandt | |
| CONT_GUID | = lv_cont_guid | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_E_USC_CONTACT | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_USC_CONTACT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_mode_usc_contact) | = 'X'. | |||
| "SELECT single LANGU FROM USC_CONT_TXT INTO @DATA(ld_langu). | ||||
| "SELECT single REL_CONT_GUID FROM USC_CONT_REL INTO @DATA(ld_rel_cont_guid). | ||||
| "SELECT single KWD_TXT_INT FROM USC_CONT_KWD INTO @DATA(ld_kwd_txt_int). | ||||
| "SELECT single SRM_PARTNER FROM USC_CONT_STH INTO @DATA(ld_srm_partner). | ||||
| "SELECT single OBJTYPE FROM USC_CONT_DOC INTO @DATA(ld_objtype). | ||||
| "SELECT single CLASS FROM USC_CONT_DOC INTO @DATA(ld_class). | ||||
| "SELECT single OBJID FROM USC_CONT_DOC INTO @DATA(ld_objid). | ||||
| "SELECT single DOCUMENT_USE FROM USC_CONT_DOC INTO @DATA(ld_document_use). | ||||
| DATA(ld_x_cont_guid) | = ' '. | |||
| DATA(ld_x_langu) | = ' '. | |||
| DATA(ld_mode_usc_cont_txt) | = 'X'. | |||
| DATA(ld_x_rel_cont_guid) | = ' '. | |||
| DATA(ld_x_kwd_txt_int) | = ' '. | |||
| DATA(ld_x_srm_partner) | = ' '. | |||
| DATA(ld_x_objtype) | = ' '. | |||
| DATA(ld_x_class) | = ' '. | |||
| DATA(ld_x_objid) | = ' '. | |||
| DATA(ld_x_document_use) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| DATA(ld_mode_usc_cont_add) | = 'X'. | |||
| DATA(ld_mode_usc_cont_rel) | = 'X'. | |||
| DATA(ld_mode_usc_cont_kwd) | = 'X'. | |||
| DATA(ld_mode_usc_cont_sth) | = 'X'. | |||
| DATA(ld_mode_usc_cont_doc) | = 'X'. | |||
| "SELECT single MANDT FROM USC_CONTACT INTO @DATA(ld_mandt). | ||||
| DATA(ld_mandt) | = SY-MANDT. | |||
| "SELECT single CONT_GUID FROM USC_CONTACT INTO @DATA(ld_cont_guid). | ||||
Search for further information about these or an SAP related objects