SAP COIS_FUNC_WORKBENCH_EXECUTE Function Module for NOTRANSL: AIS: Massenbearbeitungsfunktionen ausführen









COIS_FUNC_WORKBENCH_EXECUTE is a standard cois func workbench execute SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: AIS: Massenbearbeitungsfunktionen ausführen 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 cois func workbench execute FM, simply by entering the name COIS_FUNC_WORKBENCH_EXECUTE into the relevant SAP transaction such as SE37 or SE38.

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



Function COIS_FUNC_WORKBENCH_EXECUTE 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 'COIS_FUNC_WORKBENCH_EXECUTE'"NOTRANSL: AIS: Massenbearbeitungsfunktionen ausführen
EXPORTING
I_FCODE = "ABAP System Field: Current Transaction Code
I_OBJECT = "Predefined Type
* I_SELECT_ALL = ' ' "General Flag
* I_TRACE_BACKGROUND = ' ' "General Indicator

IMPORTING
E_DATA_CHANGED = "Data Changed Indicator
E_SUBRC = "Error Code
ET_APPLLOG = "Table of Application Log Handles for COWORK

CHANGING
CS_FCTGEN = "DE-EN-LANG-SWITCH-NO-TRANSLATION
CT_FCTHDR = "

TABLES
CT_DATA = "Data Table
* IT_SELECTED_ROWS = "Order Information System: Selected Line
CT_FCTPAR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IT_SELECTED_COLS = "Order Information System: Selected Column
.



IMPORTING Parameters details for COIS_FUNC_WORKBENCH_EXECUTE

I_FCODE - ABAP System Field: Current Transaction Code

Data type: SY-TCODE
Optional: No
Call by Reference: Yes

I_OBJECT - Predefined Type

Data type: SY-REPID
Optional: No
Call by Reference: Yes

I_SELECT_ALL - General Flag

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

I_TRACE_BACKGROUND - General Indicator

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

EXPORTING Parameters details for COIS_FUNC_WORKBENCH_EXECUTE

E_DATA_CHANGED - Data Changed Indicator

Data type: RC27X-FLG_SEL
Optional: No
Call by Reference: Yes

E_SUBRC - Error Code

Data type: SY-SUBRC
Optional: No
Call by Reference: Yes

ET_APPLLOG - Table of Application Log Handles for COWORK

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

CHANGING Parameters details for COIS_FUNC_WORKBENCH_EXECUTE

CS_FCTGEN - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

CT_FCTHDR -

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

TABLES Parameters details for COIS_FUNC_WORKBENCH_EXECUTE

CT_DATA - Data Table

Data type:
Optional: No
Call by Reference: Yes

IT_SELECTED_ROWS - Order Information System: Selected Line

Data type: COID_SEL_ROW
Optional: Yes
Call by Reference: Yes

CT_FCTPAR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

IT_SELECTED_COLS - Order Information System: Selected Column

Data type: COID_SEL_COL
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for COIS_FUNC_WORKBENCH_EXECUTE 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:
lt_ct_data  TYPE STANDARD TABLE OF STRING, "   
lv_i_fcode  TYPE SY-TCODE, "   
lv_cs_fctgen  TYPE COWRK_S_FCT_GENERAL, "   
lv_e_data_changed  TYPE RC27X-FLG_SEL, "   
lv_e_subrc  TYPE SY-SUBRC, "   
lv_i_object  TYPE SY-REPID, "   
lv_ct_fcthdr  TYPE COWRK_T_FCT_HEADER, "   
lt_it_selected_rows  TYPE STANDARD TABLE OF COID_SEL_ROW, "   
lt_ct_fctpar  TYPE STANDARD TABLE OF COWRK_T_FCT_PARAMETERS, "   
lv_et_appllog  TYPE COWB_T_APPLLOG, "   
lv_i_select_all  TYPE FLAG, "   SPACE
lt_it_selected_cols  TYPE STANDARD TABLE OF COID_SEL_COL, "   
lv_i_trace_background  TYPE FLAG. "   SPACE

  CALL FUNCTION 'COIS_FUNC_WORKBENCH_EXECUTE'  "NOTRANSL: AIS: Massenbearbeitungsfunktionen ausführen
    EXPORTING
         I_FCODE = lv_i_fcode
         I_OBJECT = lv_i_object
         I_SELECT_ALL = lv_i_select_all
         I_TRACE_BACKGROUND = lv_i_trace_background
    IMPORTING
         E_DATA_CHANGED = lv_e_data_changed
         E_SUBRC = lv_e_subrc
         ET_APPLLOG = lv_et_appllog
    CHANGING
         CS_FCTGEN = lv_cs_fctgen
         CT_FCTHDR = lv_ct_fcthdr
    TABLES
         CT_DATA = lt_ct_data
         IT_SELECTED_ROWS = lt_it_selected_rows
         CT_FCTPAR = lt_ct_fctpar
         IT_SELECTED_COLS = lt_it_selected_cols
. " COIS_FUNC_WORKBENCH_EXECUTE




ABAP code using 7.40 inline data declarations to call FM COIS_FUNC_WORKBENCH_EXECUTE

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 TCODE FROM SY INTO @DATA(ld_i_fcode).
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_e_data_changed).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
"SELECT single REPID FROM SY INTO @DATA(ld_i_object).
 
 
 
 
 
DATA(ld_i_select_all) = ' '.
 
 
DATA(ld_i_trace_background) = ' '.
 


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!