SAP ENQUEUE_ETTE_WT_ACCUMVAL Function Module for Request lock for object ETTE_WT_ACCUMVAL









ENQUEUE_ETTE_WT_ACCUMVAL is a standard enqueue ette wt accumval 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 ETTE_WT_ACCUMVAL 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 ette wt accumval FM, simply by entering the name ENQUEUE_ETTE_WT_ACCUMVAL into the relevant SAP transaction such as SE37 or SE38.

Function Group: /1BCDWBEN/AEN0000
Program Name: /1BCDWBEN/SAPLAEN0000
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ENQUEUE_ETTE_WT_ACCUMVAL 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_ETTE_WT_ACCUMVAL'"Request lock for object ETTE_WT_ACCUMVAL
EXPORTING
* MODE_TTE_WT_ACCUMVALU = 'E' "Lock mode for table TTE_WT_ACCUMVALU
* X_COMPANYID = ' ' "Fill argument 02 with initial value?
* X_BUSPARTNERID = ' ' "Fill argument 03 with initial value?
* X_COUNTRYISO = ' ' "Fill argument 04 with initial value?
* X_TAXTYP = ' ' "Fill argument 05 with initial value?
* X_ACCCOMPONENT = ' ' "Fill argument 06 with initial value?
* X_AYEAR = ' ' "Fill argument 07 with initial value?
* X_AMONTH = ' ' "Fill argument 08 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* CLIENT = SY-MANDT "01th enqueue argument
* COMPANYID = "02th enqueue argument
* BUSPARTNERID = "03th enqueue argument
* COUNTRYISO = "04th enqueue argument
* TAXTYP = "05th enqueue argument
* ACCCOMPONENT = "06th enqueue argument
* AYEAR = "07th enqueue argument
* AMONTH = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_ETTE_WT_ACCUMVAL

MODE_TTE_WT_ACCUMVALU - Lock mode for table TTE_WT_ACCUMVALU

Data type: ENQMODE
Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_COMPANYID - Fill argument 02 with initial value?

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

X_BUSPARTNERID - Fill argument 03 with initial value?

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

X_COUNTRYISO - Fill argument 04 with initial value?

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

X_TAXTYP - Fill argument 05 with initial value?

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

X_ACCCOMPONENT - Fill argument 06 with initial value?

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

X_AYEAR - Fill argument 07 with initial value?

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

X_AMONTH - Fill argument 08 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: DDENQCOLL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENT - 01th enqueue argument

Data type: TTE_WT_ACCUMVALU-CLIENT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPANYID - 02th enqueue argument

Data type: TTE_WT_ACCUMVALU-COMPANYID
Optional: Yes
Call by Reference: No ( called with pass by value option)

BUSPARTNERID - 03th enqueue argument

Data type: TTE_WT_ACCUMVALU-BUSPARTNERID
Optional: Yes
Call by Reference: No ( called with pass by value option)

COUNTRYISO - 04th enqueue argument

Data type: TTE_WT_ACCUMVALU-COUNTRYISO
Optional: Yes
Call by Reference: No ( called with pass by value option)

TAXTYP - 05th enqueue argument

Data type: TTE_WT_ACCUMVALU-TAXTYP
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACCCOMPONENT - 06th enqueue argument

Data type: TTE_WT_ACCUMVALU-ACCCOMPONENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

AYEAR - 07th enqueue argument

Data type: TTE_WT_ACCUMVALU-AYEAR
Optional: Yes
Call by Reference: No ( called with pass by value option)

AMONTH - 08th enqueue argument

Data type: TTE_WT_ACCUMVALU-AMONTH
Optional: 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_ETTE_WT_ACCUMVAL 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_tte_wt_accumvalu  TYPE ENQMODE, "   'E'
lv_x_companyid  TYPE ENQMODE, "   SPACE
lv_x_buspartnerid  TYPE ENQMODE, "   SPACE
lv_x_countryiso  TYPE ENQMODE, "   SPACE
lv_x_taxtyp  TYPE ENQMODE, "   SPACE
lv_x_acccomponent  TYPE ENQMODE, "   SPACE
lv_x_ayear  TYPE ENQMODE, "   SPACE
lv_x_amonth  TYPE ENQMODE, "   SPACE
lv__scope  TYPE ENQMODE, "   '2'
lv__wait  TYPE ENQMODE, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_client  TYPE TTE_WT_ACCUMVALU-CLIENT, "   SY-MANDT
lv_system_failure  TYPE TTE_WT_ACCUMVALU, "   
lv_companyid  TYPE TTE_WT_ACCUMVALU-COMPANYID, "   
lv_buspartnerid  TYPE TTE_WT_ACCUMVALU-BUSPARTNERID, "   
lv_countryiso  TYPE TTE_WT_ACCUMVALU-COUNTRYISO, "   
lv_taxtyp  TYPE TTE_WT_ACCUMVALU-TAXTYP, "   
lv_acccomponent  TYPE TTE_WT_ACCUMVALU-ACCCOMPONENT, "   
lv_ayear  TYPE TTE_WT_ACCUMVALU-AYEAR, "   
lv_amonth  TYPE TTE_WT_ACCUMVALU-AMONTH. "   

  CALL FUNCTION 'ENQUEUE_ETTE_WT_ACCUMVAL'  "Request lock for object ETTE_WT_ACCUMVAL
    EXPORTING
         MODE_TTE_WT_ACCUMVALU = lv_mode_tte_wt_accumvalu
         X_COMPANYID = lv_x_companyid
         X_BUSPARTNERID = lv_x_buspartnerid
         X_COUNTRYISO = lv_x_countryiso
         X_TAXTYP = lv_x_taxtyp
         X_ACCCOMPONENT = lv_x_acccomponent
         X_AYEAR = lv_x_ayear
         X_AMONTH = lv_x_amonth
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         CLIENT = lv_client
         COMPANYID = lv_companyid
         BUSPARTNERID = lv_buspartnerid
         COUNTRYISO = lv_countryiso
         TAXTYP = lv_taxtyp
         ACCCOMPONENT = lv_acccomponent
         AYEAR = lv_ayear
         AMONTH = lv_amonth
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_ETTE_WT_ACCUMVAL




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_ETTE_WT_ACCUMVAL

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_tte_wt_accumvalu) = 'E'.
 
DATA(ld_x_companyid) = ' '.
 
DATA(ld_x_buspartnerid) = ' '.
 
DATA(ld_x_countryiso) = ' '.
 
DATA(ld_x_taxtyp) = ' '.
 
DATA(ld_x_acccomponent) = ' '.
 
DATA(ld_x_ayear) = ' '.
 
DATA(ld_x_amonth) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single CLIENT FROM TTE_WT_ACCUMVALU INTO @DATA(ld_client).
DATA(ld_client) = SY-MANDT.
 
 
"SELECT single COMPANYID FROM TTE_WT_ACCUMVALU INTO @DATA(ld_companyid).
 
"SELECT single BUSPARTNERID FROM TTE_WT_ACCUMVALU INTO @DATA(ld_buspartnerid).
 
"SELECT single COUNTRYISO FROM TTE_WT_ACCUMVALU INTO @DATA(ld_countryiso).
 
"SELECT single TAXTYP FROM TTE_WT_ACCUMVALU INTO @DATA(ld_taxtyp).
 
"SELECT single ACCCOMPONENT FROM TTE_WT_ACCUMVALU INTO @DATA(ld_acccomponent).
 
"SELECT single AYEAR FROM TTE_WT_ACCUMVALU INTO @DATA(ld_ayear).
 
"SELECT single AMONTH FROM TTE_WT_ACCUMVALU INTO @DATA(ld_amonth).
 


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!