SAP SCWB_CINSTS_LOCK Function Module for









SCWB_CINSTS_LOCK is a standard scwb cinsts lock SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 scwb cinsts lock FM, simply by entering the name SCWB_CINSTS_LOCK into the relevant SAP transaction such as SE37 or SE38.

Function Group: SCWC
Program Name: SAPLSCWC
Main Program: SAPLSCWC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SCWB_CINSTS_LOCK 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 'SCWB_CINSTS_LOCK'"
EXPORTING
* IV_WITH_OBJECTS = ' ' "
* IV_WITH_RELATED_NOTES_CINSTS = ' ' "
* IV_WITH_LOGFILE = ' ' "
* IV_ORDER = ' ' "Request/Task
* IV_ADD_ATTR_SAPNOTE = ' ' "
* IV_SUPPRESS_ENQUEUE = ' ' "
* IV_SUPPRESS_EDITOR_LOCK_CHECK = ' ' "
* IV_NO_DIALOG = ' ' "

IMPORTING
EV_LOCK_ORDER = "Request/Task

CHANGING
CT_CORR_INSTRUCTIONS = "

EXCEPTIONS
CANCELLED_BY_USER = 1 CORR_INSTRUCTION_NOT_FOUND = 2
.



IMPORTING Parameters details for SCWB_CINSTS_LOCK

IV_WITH_OBJECTS -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_WITH_RELATED_NOTES_CINSTS -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_WITH_LOGFILE -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_ORDER - Request/Task

Data type: TRKORR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_ADD_ATTR_SAPNOTE -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SUPPRESS_ENQUEUE -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SUPPRESS_EDITOR_LOCK_CHECK -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_NO_DIALOG -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SCWB_CINSTS_LOCK

EV_LOCK_ORDER - Request/Task

Data type: E070-TRKORR
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for SCWB_CINSTS_LOCK

CT_CORR_INSTRUCTIONS -

Data type: BCWBN_CORR_INSTRUCTIONS
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CANCELLED_BY_USER -

Data type:
Optional: No
Call by Reference: Yes

CORR_INSTRUCTION_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SCWB_CINSTS_LOCK 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_ev_lock_order  TYPE E070-TRKORR, "   
lv_iv_with_objects  TYPE BCWBN_BOOL, "   SPACE
lv_cancelled_by_user  TYPE BCWBN_BOOL, "   
lv_ct_corr_instructions  TYPE BCWBN_CORR_INSTRUCTIONS, "   
lv_corr_instruction_not_found  TYPE BCWBN_CORR_INSTRUCTIONS, "   
lv_iv_with_related_notes_cinsts  TYPE BCWBN_BOOL, "   SPACE
lv_iv_with_logfile  TYPE BCWBN_BOOL, "   SPACE
lv_iv_order  TYPE TRKORR, "   SPACE
lv_iv_add_attr_sapnote  TYPE BCWBN_BOOL, "   SPACE
lv_iv_suppress_enqueue  TYPE BCWBN_BOOL, "   SPACE
lv_iv_suppress_editor_lock_check  TYPE BCWBN_BOOL, "   SPACE
lv_iv_no_dialog  TYPE BCWBN_BOOL. "   SPACE

  CALL FUNCTION 'SCWB_CINSTS_LOCK'  "
    EXPORTING
         IV_WITH_OBJECTS = lv_iv_with_objects
         IV_WITH_RELATED_NOTES_CINSTS = lv_iv_with_related_notes_cinsts
         IV_WITH_LOGFILE = lv_iv_with_logfile
         IV_ORDER = lv_iv_order
         IV_ADD_ATTR_SAPNOTE = lv_iv_add_attr_sapnote
         IV_SUPPRESS_ENQUEUE = lv_iv_suppress_enqueue
         IV_SUPPRESS_EDITOR_LOCK_CHECK = lv_iv_suppress_editor_lock_check
         IV_NO_DIALOG = lv_iv_no_dialog
    IMPORTING
         EV_LOCK_ORDER = lv_ev_lock_order
    CHANGING
         CT_CORR_INSTRUCTIONS = lv_ct_corr_instructions
    EXCEPTIONS
        CANCELLED_BY_USER = 1
        CORR_INSTRUCTION_NOT_FOUND = 2
. " SCWB_CINSTS_LOCK




ABAP code using 7.40 inline data declarations to call FM SCWB_CINSTS_LOCK

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.

"SELECT single TRKORR FROM E070 INTO @DATA(ld_ev_lock_order).
 
DATA(ld_iv_with_objects) = ' '.
 
 
 
 
DATA(ld_iv_with_related_notes_cinsts) = ' '.
 
DATA(ld_iv_with_logfile) = ' '.
 
DATA(ld_iv_order) = ' '.
 
DATA(ld_iv_add_attr_sapnote) = ' '.
 
DATA(ld_iv_suppress_enqueue) = ' '.
 
DATA(ld_iv_suppress_editor_lock_check) = ' '.
 
DATA(ld_iv_no_dialog) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!