SAP BAPI_EMMA_CASE_COMPLETE Function Module for Close Clarification Case
BAPI_EMMA_CASE_COMPLETE is a standard bapi emma case complete SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Close Clarification Case 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 bapi emma case complete FM, simply by entering the name BAPI_EMMA_CASE_COMPLETE into the relevant SAP transaction such as SE37 or SE38.
Function Group: EMMA_API
Program Name: SAPLEMMA_API
Main Program: SAPLEMMA_API
Appliation area:
Release date: 31-May-2007
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function BAPI_EMMA_CASE_COMPLETE 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 'BAPI_EMMA_CASE_COMPLETE'"Close Clarification Case.
EXPORTING
CASE = "Clarification Case
* PROCESSOR = SY-UNAME "Processor for Clarification Case
* TEST_RUN = ' ' "Switch to Simulation Mode for Write BAPIs
* MESSAGE_MODE = "Type of Return Messages
TABLES
* RETURN = "Return Parameter(s)
IMPORTING Parameters details for BAPI_EMMA_CASE_COMPLETE
CASE - Clarification Case
Data type: BAPI_EMMA_CASE-CASENROptional: No
Call by Reference: No ( called with pass by value option)
PROCESSOR - Processor for Clarification Case
Data type: BAPI_EMMA_CASE-CURRPROCDefault: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEST_RUN - Switch to Simulation Mode for Write BAPIs
Data type: BAPI_EMMA_CASE-TESTRUNDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
MESSAGE_MODE - Type of Return Messages
Data type: BAPI_EMMA_CONTROL-MESSAGE_MODEOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_EMMA_CASE_COMPLETE
RETURN - Return Parameter(s)
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_EMMA_CASE_COMPLETE 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_case | TYPE BAPI_EMMA_CASE-CASENR, " | |||
lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
lv_processor | TYPE BAPI_EMMA_CASE-CURRPROC, " SY-UNAME | |||
lv_test_run | TYPE BAPI_EMMA_CASE-TESTRUN, " ' ' | |||
lv_message_mode | TYPE BAPI_EMMA_CONTROL-MESSAGE_MODE. " |
  CALL FUNCTION 'BAPI_EMMA_CASE_COMPLETE' "Close Clarification Case |
EXPORTING | ||
CASE | = lv_case | |
PROCESSOR | = lv_processor | |
TEST_RUN | = lv_test_run | |
MESSAGE_MODE | = lv_message_mode | |
TABLES | ||
RETURN | = lt_return | |
. " BAPI_EMMA_CASE_COMPLETE |
ABAP code using 7.40 inline data declarations to call FM BAPI_EMMA_CASE_COMPLETE
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 CASENR FROM BAPI_EMMA_CASE INTO @DATA(ld_case). | ||||
"SELECT single CURRPROC FROM BAPI_EMMA_CASE INTO @DATA(ld_processor). | ||||
DATA(ld_processor) | = SY-UNAME. | |||
"SELECT single TESTRUN FROM BAPI_EMMA_CASE INTO @DATA(ld_test_run). | ||||
DATA(ld_test_run) | = ' '. | |||
"SELECT single MESSAGE_MODE FROM BAPI_EMMA_CONTROL INTO @DATA(ld_message_mode). | ||||
Search for further information about these or an SAP related objects