SAP EWF_CALL_EXECUTE_INTERNAL Function Module for NOTRANSL: PRIVAT: Startet Prozeß aus FO (wird gerufen von EWB_CALL_EXECUTE
EWF_CALL_EXECUTE_INTERNAL is a standard ewf call execute internal 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: PRIVAT: Startet Prozeß aus FO (wird gerufen von EWB_CALL_EXECUTE 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 ewf call execute internal FM, simply by entering the name EWF_CALL_EXECUTE_INTERNAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: EWF4
Program Name: SAPLEWF4
Main Program: SAPLEWF4
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function EWF_CALL_EXECUTE_INTERNAL 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 'EWF_CALL_EXECUTE_INTERNAL'"NOTRANSL: PRIVAT: Startet Prozeß aus FO (wird gerufen von EWB_CALL_EXECUTE.
EXPORTING
X_PROCLID = "Generic process class ID
* X_PROCESSTYPE = "Single-Character Indicator
* X_HANDLE = 1 "Predefined Type
* X_LIFETIME = "Reduced lifetime of an action
* X_DESCRIPT = "Description of an Action Box transaction
* X_PARAM_DIALOG = ' ' "General checkbox: X or ' '
* X_PARAM_TITLE = "Description of an Action Box transaction
* X_PARAM_OBJTYPE = ' ' "Parameter dialog method: Object type
* X_PARAM_METHOD = ' ' "Parameter dialog method: Method
* X_CALLED_ASYNC = "General checkbox: X or ' '
* X_CALLID = "Suffix for report name of a generated report (CCPROCED)
* X_EXTOBJ_IDENT = "Object Relationship Service: BOR object identifier
* X_DIRECTION = "Single-Character Indicator
IMPORTING
Y_PROCESS_OBJECT = "Structure of types OLE2_OBJECT
TABLES
* XT_CALL_CONT = "Instance Structure
* XT_EDITOR_PART = "Definition of a Container Parameter With Description
* YT_RESULT_CONT = "Instance Structure
* T_IMPORT_TRA = "Data Flow Definition
* T_IMPORT_PART = "Definition of a Container Parameter With Description
* YT_STARTED_WORKFLOWS = "Structure of types OLE2_OBJECT
EXCEPTIONS
CANCELLED = 1 PARAMETER_EDIT_FAILED = 2 PROCESS_CREATE_FAILED = 3
IMPORTING Parameters details for EWF_CALL_EXECUTE_INTERNAL
X_PROCLID - Generic process class ID
Data type: EWFCAL-PROCIDOptional: No
Call by Reference: No ( called with pass by value option)
X_PROCESSTYPE - Single-Character Indicator
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
X_HANDLE - Predefined Type
Data type: IDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_LIFETIME - Reduced lifetime of an action
Data type: CCMLIFETIMEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_DESCRIPT - Description of an Action Box transaction
Data type: EWFCALT-DESCRIPTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_PARAM_DIALOG - General checkbox: X or SPACE
Data type: EBAGEN-KENNZXDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_PARAM_TITLE - Description of an Action Box transaction
Data type: EWFCALT-DESCRIPTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_PARAM_OBJTYPE - Parameter dialog method: Object type
Data type: EWFCALS-PARAMOBJTYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_PARAM_METHOD - Parameter dialog method: Method
Data type: EWFCALS-PARAMMETHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_CALLED_ASYNC - General checkbox: X or SPACE
Data type: EBAGEN-KENNZXOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CALLID - Suffix for report name of a generated report (CCPROCED)
Data type: EBA_RNAME_SFXOptional: Yes
Call by Reference: No ( called with pass by value option)
X_EXTOBJ_IDENT - Object Relationship Service: BOR object identifier
Data type: BORIDENTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_DIRECTION - Single-Character Indicator
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EWF_CALL_EXECUTE_INTERNAL
Y_PROCESS_OBJECT - Structure of types OLE2_OBJECT
Data type: OBJ_RECORDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EWF_CALL_EXECUTE_INTERNAL
XT_CALL_CONT - Instance Structure
Data type: SWCONTOptional: Yes
Call by Reference: No ( called with pass by value option)
XT_EDITOR_PART - Definition of a Container Parameter With Description
Data type: EWCPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
YT_RESULT_CONT - Instance Structure
Data type: SWCONTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_IMPORT_TRA - Data Flow Definition
Data type: EWCTRAOptional: Yes
Call by Reference: No ( called with pass by value option)
T_IMPORT_PART - Definition of a Container Parameter With Description
Data type: EWCPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
YT_STARTED_WORKFLOWS - Structure of types OLE2_OBJECT
Data type: OBJ_RECORDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCELLED - Canceled by user
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETER_EDIT_FAILED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROCESS_CREATE_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EWF_CALL_EXECUTE_INTERNAL 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_cancelled | TYPE STRING, " | |||
| lv_x_proclid | TYPE EWFCAL-PROCID, " | |||
| lt_xt_call_cont | TYPE STANDARD TABLE OF SWCONT, " | |||
| lv_y_process_object | TYPE OBJ_RECORD, " | |||
| lv_x_processtype | TYPE CHAR1, " | |||
| lv_x_handle | TYPE I, " 1 | |||
| lv_x_lifetime | TYPE CCMLIFETIME, " | |||
| lv_x_descript | TYPE EWFCALT-DESCRIPT, " | |||
| lt_xt_editor_part | TYPE STANDARD TABLE OF EWCPART, " | |||
| lv_x_param_dialog | TYPE EBAGEN-KENNZX, " SPACE | |||
| lv_parameter_edit_failed | TYPE EBAGEN, " | |||
| lv_x_param_title | TYPE EWFCALT-DESCRIPT, " | |||
| lt_yt_result_cont | TYPE STANDARD TABLE OF SWCONT, " | |||
| lv_process_create_failed | TYPE SWCONT, " | |||
| lt_t_import_tra | TYPE STANDARD TABLE OF EWCTRA, " | |||
| lv_x_param_objtype | TYPE EWFCALS-PARAMOBJTYP, " SPACE | |||
| lt_t_import_part | TYPE STANDARD TABLE OF EWCPART, " | |||
| lv_x_param_method | TYPE EWFCALS-PARAMMETH, " SPACE | |||
| lv_x_called_async | TYPE EBAGEN-KENNZX, " | |||
| lt_yt_started_workflows | TYPE STANDARD TABLE OF OBJ_RECORD, " | |||
| lv_x_callid | TYPE EBA_RNAME_SFX, " | |||
| lv_x_extobj_ident | TYPE BORIDENT, " | |||
| lv_x_direction | TYPE CHAR1. " |
|   CALL FUNCTION 'EWF_CALL_EXECUTE_INTERNAL' "NOTRANSL: PRIVAT: Startet Prozeß aus FO (wird gerufen von EWB_CALL_EXECUTE |
| EXPORTING | ||
| X_PROCLID | = lv_x_proclid | |
| X_PROCESSTYPE | = lv_x_processtype | |
| X_HANDLE | = lv_x_handle | |
| X_LIFETIME | = lv_x_lifetime | |
| X_DESCRIPT | = lv_x_descript | |
| X_PARAM_DIALOG | = lv_x_param_dialog | |
| X_PARAM_TITLE | = lv_x_param_title | |
| X_PARAM_OBJTYPE | = lv_x_param_objtype | |
| X_PARAM_METHOD | = lv_x_param_method | |
| X_CALLED_ASYNC | = lv_x_called_async | |
| X_CALLID | = lv_x_callid | |
| X_EXTOBJ_IDENT | = lv_x_extobj_ident | |
| X_DIRECTION | = lv_x_direction | |
| IMPORTING | ||
| Y_PROCESS_OBJECT | = lv_y_process_object | |
| TABLES | ||
| XT_CALL_CONT | = lt_xt_call_cont | |
| XT_EDITOR_PART | = lt_xt_editor_part | |
| YT_RESULT_CONT | = lt_yt_result_cont | |
| T_IMPORT_TRA | = lt_t_import_tra | |
| T_IMPORT_PART | = lt_t_import_part | |
| YT_STARTED_WORKFLOWS | = lt_yt_started_workflows | |
| EXCEPTIONS | ||
| CANCELLED = 1 | ||
| PARAMETER_EDIT_FAILED = 2 | ||
| PROCESS_CREATE_FAILED = 3 | ||
| . " EWF_CALL_EXECUTE_INTERNAL | ||
ABAP code using 7.40 inline data declarations to call FM EWF_CALL_EXECUTE_INTERNAL
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 PROCID FROM EWFCAL INTO @DATA(ld_x_proclid). | ||||
| DATA(ld_x_handle) | = 1. | |||
| "SELECT single DESCRIPT FROM EWFCALT INTO @DATA(ld_x_descript). | ||||
| "SELECT single KENNZX FROM EBAGEN INTO @DATA(ld_x_param_dialog). | ||||
| DATA(ld_x_param_dialog) | = ' '. | |||
| "SELECT single DESCRIPT FROM EWFCALT INTO @DATA(ld_x_param_title). | ||||
| "SELECT single PARAMOBJTYP FROM EWFCALS INTO @DATA(ld_x_param_objtype). | ||||
| DATA(ld_x_param_objtype) | = ' '. | |||
| "SELECT single PARAMMETH FROM EWFCALS INTO @DATA(ld_x_param_method). | ||||
| DATA(ld_x_param_method) | = ' '. | |||
| "SELECT single KENNZX FROM EBAGEN INTO @DATA(ld_x_called_async). | ||||
Search for further information about these or an SAP related objects