SAP CN2002_ACTELEMENT_GETDATA Function Module for NOTRANSL: Detaildaten zum Vorgangselement
CN2002_ACTELEMENT_GETDATA is a standard cn2002 actelement getdata 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: Detaildaten zum Vorgangselement 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 cn2002 actelement getdata FM, simply by entering the name CN2002_ACTELEMENT_GETDATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: CN2002_ACT
Program Name: SAPLCN2002_ACT
Main Program: SAPLCN2002_ACT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CN2002_ACTELEMENT_GETDATA 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 'CN2002_ACTELEMENT_GETDATA'"NOTRANSL: Detaildaten zum Vorgangselement.
EXPORTING
I_NETWORK_NUMBER = "Network Number
* I_LANGUAGE = SY-LANGU "Current Language
* I_MSGHAND_NUM = "Date and Time, Current Application Server Time
* I_MAX_ROWS = "Maximum Number of Lines of Hits
IMPORTING
E_WARNING = "General Indicator
TABLES
* IT_ACTIVITY_LIST = "Activity List for the BAPI Processing
* IT_ACTELEMENT_LIST = "Activity Element List for the BAPI Processing
* ET_ACTIVITY_ELEMENTS = "Data Structure: Activity Element GetData
* ET_RETURN = "Return Parameter(s)
* EXTENSIONIN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* EXTENSIONOUT = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
EXCEPTIONS
DATA_NOT_RETRIEVED = 1
IMPORTING Parameters details for CN2002_ACTELEMENT_GETDATA
I_NETWORK_NUMBER - Network Number
Data type: BAPI_BUS2002_DETAIL-NETWORKOptional: No
Call by Reference: No ( called with pass by value option)
I_LANGUAGE - Current Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MSGHAND_NUM - Date and Time, Current Application Server Time
Data type: SY-UZEITOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MAX_ROWS - Maximum Number of Lines of Hits
Data type: BAPIF4A-MAX_ROWSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CN2002_ACTELEMENT_GETDATA
E_WARNING - General Indicator
Data type: FLAGOptional: No
Call by Reference: Yes
TABLES Parameters details for CN2002_ACTELEMENT_GETDATA
IT_ACTIVITY_LIST - Activity List for the BAPI Processing
Data type: BAPI_BUS2002_ACT_LISTOptional: Yes
Call by Reference: Yes
IT_ACTELEMENT_LIST - Activity Element List for the BAPI Processing
Data type: BAPI_ACTELEMENT_LISTOptional: Yes
Call by Reference: Yes
ET_ACTIVITY_ELEMENTS - Data Structure: Activity Element GetData
Data type: BAPI_BUS2002_ACTELEM_DETAILOptional: Yes
Call by Reference: Yes
ET_RETURN - Return Parameter(s)
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
EXTENSIONIN - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
EXTENSIONOUT - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
DATA_NOT_RETRIEVED - The system could not read any data.
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CN2002_ACTELEMENT_GETDATA 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_e_warning | TYPE FLAG, " | |||
| lt_it_activity_list | TYPE STANDARD TABLE OF BAPI_BUS2002_ACT_LIST, " | |||
| lv_i_network_number | TYPE BAPI_BUS2002_DETAIL-NETWORK, " | |||
| lv_data_not_retrieved | TYPE BAPI_BUS2002_DETAIL, " | |||
| lv_i_language | TYPE SY-LANGU, " SY-LANGU | |||
| lt_it_actelement_list | TYPE STANDARD TABLE OF BAPI_ACTELEMENT_LIST, " | |||
| lv_i_msghand_num | TYPE SY-UZEIT, " | |||
| lt_et_activity_elements | TYPE STANDARD TABLE OF BAPI_BUS2002_ACTELEM_DETAIL, " | |||
| lt_et_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_i_max_rows | TYPE BAPIF4A-MAX_ROWS, " | |||
| lt_extensionin | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_extensionout | TYPE STANDARD TABLE OF BAPIPAREX. " |
|   CALL FUNCTION 'CN2002_ACTELEMENT_GETDATA' "NOTRANSL: Detaildaten zum Vorgangselement |
| EXPORTING | ||
| I_NETWORK_NUMBER | = lv_i_network_number | |
| I_LANGUAGE | = lv_i_language | |
| I_MSGHAND_NUM | = lv_i_msghand_num | |
| I_MAX_ROWS | = lv_i_max_rows | |
| IMPORTING | ||
| E_WARNING | = lv_e_warning | |
| TABLES | ||
| IT_ACTIVITY_LIST | = lt_it_activity_list | |
| IT_ACTELEMENT_LIST | = lt_it_actelement_list | |
| ET_ACTIVITY_ELEMENTS | = lt_et_activity_elements | |
| ET_RETURN | = lt_et_return | |
| EXTENSIONIN | = lt_extensionin | |
| EXTENSIONOUT | = lt_extensionout | |
| EXCEPTIONS | ||
| DATA_NOT_RETRIEVED = 1 | ||
| . " CN2002_ACTELEMENT_GETDATA | ||
ABAP code using 7.40 inline data declarations to call FM CN2002_ACTELEMENT_GETDATA
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 NETWORK FROM BAPI_BUS2002_DETAIL INTO @DATA(ld_i_network_number). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_i_language). | ||||
| DATA(ld_i_language) | = SY-LANGU. | |||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_i_msghand_num). | ||||
| "SELECT single MAX_ROWS FROM BAPIF4A INTO @DATA(ld_i_max_rows). | ||||
Search for further information about these or an SAP related objects