SAP ECMVAL_CUST_GET_CONTEXT Function Module for
ECMVAL_CUST_GET_CONTEXT is a standard ecmval cust get context 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 ecmval cust get context FM, simply by entering the name ECMVAL_CUST_GET_CONTEXT into the relevant SAP transaction such as SE37 or SE38.
Function Group: ECMVAL_CUST
Program Name: SAPLECMVAL_CUST
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ECMVAL_CUST_GET_CONTEXT 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 'ECMVAL_CUST_GET_CONTEXT'".
EXPORTING
I_CONTXT_INT = "Context GUID
* I_LANGUAGE = SY-LANGU "Language
IMPORTING
ET_CTXT = "Context
ET_CTXTT = "Context Description
ET_ORG = "Organizational Unit
ET_PHS = "Phases
ET_PHST = "
IMPORTING Parameters details for ECMVAL_CUST_GET_CONTEXT
I_CONTXT_INT - Context GUID
Data type: ECMCTXTGUIDOptional: No
Call by Reference: No ( called with pass by value option)
I_LANGUAGE - Language
Data type: SYLANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ECMVAL_CUST_GET_CONTEXT
ET_CTXT - Context
Data type: TT_ECM_CTXTOptional: No
Call by Reference: No ( called with pass by value option)
ET_CTXTT - Context Description
Data type: TT_ECM_CTXTTOptional: No
Call by Reference: No ( called with pass by value option)
ET_ORG - Organizational Unit
Data type: TT_ECM_ORGOptional: No
Call by Reference: No ( called with pass by value option)
ET_PHS - Phases
Data type: TT_ECM_PHSOptional: No
Call by Reference: No ( called with pass by value option)
ET_PHST -
Data type: TT_ECM_PHSTOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ECMVAL_CUST_GET_CONTEXT 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_et_ctxt | TYPE TT_ECM_CTXT, " | |||
| lv_i_contxt_int | TYPE ECMCTXTGUID, " | |||
| lv_et_ctxtt | TYPE TT_ECM_CTXTT, " | |||
| lv_i_language | TYPE SYLANGU, " SY-LANGU | |||
| lv_et_org | TYPE TT_ECM_ORG, " | |||
| lv_et_phs | TYPE TT_ECM_PHS, " | |||
| lv_et_phst | TYPE TT_ECM_PHST. " |
|   CALL FUNCTION 'ECMVAL_CUST_GET_CONTEXT' " |
| EXPORTING | ||
| I_CONTXT_INT | = lv_i_contxt_int | |
| I_LANGUAGE | = lv_i_language | |
| IMPORTING | ||
| ET_CTXT | = lv_et_ctxt | |
| ET_CTXTT | = lv_et_ctxtt | |
| ET_ORG | = lv_et_org | |
| ET_PHS | = lv_et_phs | |
| ET_PHST | = lv_et_phst | |
| . " ECMVAL_CUST_GET_CONTEXT | ||
ABAP code using 7.40 inline data declarations to call FM ECMVAL_CUST_GET_CONTEXT
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_i_language) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects