SAP KEIZ_RETURN_DATA Function Module for NOTRANSL: Daten aus ECP für Anzeige in der Plantafel
KEIZ_RETURN_DATA is a standard keiz return data 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: Daten aus ECP für Anzeige in der Plantafel 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 keiz return data FM, simply by entering the name KEIZ_RETURN_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: KEIZ
Program Name: SAPLKEIZ
Main Program: SAPLKEIZ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function KEIZ_RETURN_DATA 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 'KEIZ_RETURN_DATA'"NOTRANSL: Daten aus ECP für Anzeige in der Plantafel.
EXPORTING
I_KOKRS = "Controlling Area
* I_CLEAR_TABLES = 'X' "Delete tables
* I_VERSN1 = '000' "Version 1
* I_VERSN2 = '000' "Version 2
IMPORTING
ET_COSPA = "CO Object: Cost Totals for External Postings (All Periods)
ET_COSSA = "CO Object: Cost Totals for Internal Postings (All Periods)
ET_OBJNR = "
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for KEIZ_RETURN_DATA
I_KOKRS - Controlling Area
Data type: KOKRSOptional: No
Call by Reference: Yes
I_CLEAR_TABLES - Delete tables
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_VERSN1 - Version 1
Data type: VERSNDefault: '000'
Optional: Yes
Call by Reference: Yes
I_VERSN2 - Version 2
Data type: VERSNDefault: '000'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for KEIZ_RETURN_DATA
ET_COSPA - CO Object: Cost Totals for External Postings (All Periods)
Data type: KEIZ_TT_COSPAOptional: No
Call by Reference: Yes
ET_COSSA - CO Object: Cost Totals for Internal Postings (All Periods)
Data type: KEIZ_TT_COSSAOptional: No
Call by Reference: Yes
ET_OBJNR -
Data type: KEIZ_TT_OBJNROptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR - Errors have occurred
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for KEIZ_RETURN_DATA 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_error | TYPE STRING, " | |||
| lv_i_kokrs | TYPE KOKRS, " | |||
| lv_et_cospa | TYPE KEIZ_TT_COSPA, " | |||
| lv_et_cossa | TYPE KEIZ_TT_COSSA, " | |||
| lv_i_clear_tables | TYPE C, " 'X' | |||
| lv_et_objnr | TYPE KEIZ_TT_OBJNR, " | |||
| lv_i_versn1 | TYPE VERSN, " '000' | |||
| lv_i_versn2 | TYPE VERSN. " '000' |
|   CALL FUNCTION 'KEIZ_RETURN_DATA' "NOTRANSL: Daten aus ECP für Anzeige in der Plantafel |
| EXPORTING | ||
| I_KOKRS | = lv_i_kokrs | |
| I_CLEAR_TABLES | = lv_i_clear_tables | |
| I_VERSN1 | = lv_i_versn1 | |
| I_VERSN2 | = lv_i_versn2 | |
| IMPORTING | ||
| ET_COSPA | = lv_et_cospa | |
| ET_COSSA | = lv_et_cossa | |
| ET_OBJNR | = lv_et_objnr | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " KEIZ_RETURN_DATA | ||
ABAP code using 7.40 inline data declarations to call FM KEIZ_RETURN_DATA
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_clear_tables) | = 'X'. | |||
| DATA(ld_i_versn1) | = '000'. | |||
| DATA(ld_i_versn2) | = '000'. | |||
Search for further information about these or an SAP related objects