SAP UPW_READ_DATA_FOR_GRAPH Function Module for Read data (read-only) for graphics
UPW_READ_DATA_FOR_GRAPH is a standard upw read data for graph SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read data (read-only) for graphics 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 upw read data for graph FM, simply by entering the name UPW_READ_DATA_FOR_GRAPH into the relevant SAP transaction such as SE37 or SE38.
Function Group: UPW0
Program Name: SAPLUPW0
Main Program: SAPLUPW0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function UPW_READ_DATA_FOR_GRAPH 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 'UPW_READ_DATA_FOR_GRAPH'"Read data (read-only) for graphics.
EXPORTING
I_AREA = "Planning Area
I_PLEVEL = "Planning Level
I_PACKAGE = "Planning Package
I_LAYOUT = "Parameter group
* I_READ_ONLY = "Data Element for Domain BOOLE: TRUE (='X') and FALSE (=' ')
IMPORTING
E_SUBRC = "Return Value, Return Value After ABAP Statements
ES_INFO = "Additional information
TABLES
* ETK_ROW = "Description of Lines
* ETK_ROW_TEXT = "Text per line (for complex lead columns only)
* ETK_COL_TEXT = "Data Column Headers
* ETK_DATA = "HTML Transfer Data
* ETK_RETURN = "Return Parameter
* ETK_HEAD = "Header Combination
* ETK_COL = "Column description
IMPORTING Parameters details for UPW_READ_DATA_FOR_GRAPH
I_AREA - Planning Area
Data type: UPC_AREA-AREAOptional: No
Call by Reference: No ( called with pass by value option)
I_PLEVEL - Planning Level
Data type: UPC_PLEVEL-PLEVELOptional: No
Call by Reference: No ( called with pass by value option)
I_PACKAGE - Planning Package
Data type: UPC_PACKAGE-PPACKAGEOptional: No
Call by Reference: No ( called with pass by value option)
I_LAYOUT - Parameter group
Data type: UPP_PARAM-PARAMOptional: No
Call by Reference: No ( called with pass by value option)
I_READ_ONLY - Data Element for Domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: UPP_YS_FLAGS-READ_ONLYOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for UPW_READ_DATA_FOR_GRAPH
E_SUBRC - Return Value, Return Value After ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
ES_INFO - Additional information
Data type: UPC_YS_API_INFOOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for UPW_READ_DATA_FOR_GRAPH
ETK_ROW - Description of Lines
Data type: UPC_YS_API_ROWOptional: Yes
Call by Reference: Yes
ETK_ROW_TEXT - Text per line (for complex lead columns only)
Data type: UPC_YS_API_ROW_TXTOptional: Yes
Call by Reference: Yes
ETK_COL_TEXT - Data Column Headers
Data type: UPC_YS_API_COL_TXTOptional: Yes
Call by Reference: Yes
ETK_DATA - HTML Transfer Data
Data type: UPB_YS_DATAOptional: Yes
Call by Reference: Yes
ETK_RETURN - Return Parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
ETK_HEAD - Header Combination
Data type: UPC_YS_API_HEADOptional: Yes
Call by Reference: Yes
ETK_COL - Column description
Data type: UPC_YS_API_COLOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for UPW_READ_DATA_FOR_GRAPH 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_i_area | TYPE UPC_AREA-AREA, " | |||
| lt_etk_row | TYPE STANDARD TABLE OF UPC_YS_API_ROW, " | |||
| lv_e_subrc | TYPE SY-SUBRC, " | |||
| lv_es_info | TYPE UPC_YS_API_INFO, " | |||
| lv_i_plevel | TYPE UPC_PLEVEL-PLEVEL, " | |||
| lt_etk_row_text | TYPE STANDARD TABLE OF UPC_YS_API_ROW_TXT, " | |||
| lv_i_package | TYPE UPC_PACKAGE-PPACKAGE, " | |||
| lt_etk_col_text | TYPE STANDARD TABLE OF UPC_YS_API_COL_TXT, " | |||
| lt_etk_data | TYPE STANDARD TABLE OF UPB_YS_DATA, " | |||
| lv_i_layout | TYPE UPP_PARAM-PARAM, " | |||
| lt_etk_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_i_read_only | TYPE UPP_YS_FLAGS-READ_ONLY, " | |||
| lt_etk_head | TYPE STANDARD TABLE OF UPC_YS_API_HEAD, " | |||
| lt_etk_col | TYPE STANDARD TABLE OF UPC_YS_API_COL. " |
|   CALL FUNCTION 'UPW_READ_DATA_FOR_GRAPH' "Read data (read-only) for graphics |
| EXPORTING | ||
| I_AREA | = lv_i_area | |
| I_PLEVEL | = lv_i_plevel | |
| I_PACKAGE | = lv_i_package | |
| I_LAYOUT | = lv_i_layout | |
| I_READ_ONLY | = lv_i_read_only | |
| IMPORTING | ||
| E_SUBRC | = lv_e_subrc | |
| ES_INFO | = lv_es_info | |
| TABLES | ||
| ETK_ROW | = lt_etk_row | |
| ETK_ROW_TEXT | = lt_etk_row_text | |
| ETK_COL_TEXT | = lt_etk_col_text | |
| ETK_DATA | = lt_etk_data | |
| ETK_RETURN | = lt_etk_return | |
| ETK_HEAD | = lt_etk_head | |
| ETK_COL | = lt_etk_col | |
| . " UPW_READ_DATA_FOR_GRAPH | ||
ABAP code using 7.40 inline data declarations to call FM UPW_READ_DATA_FOR_GRAPH
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 AREA FROM UPC_AREA INTO @DATA(ld_i_area). | ||||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc). | ||||
| "SELECT single PLEVEL FROM UPC_PLEVEL INTO @DATA(ld_i_plevel). | ||||
| "SELECT single PPACKAGE FROM UPC_PACKAGE INTO @DATA(ld_i_package). | ||||
| "SELECT single PARAM FROM UPP_PARAM INTO @DATA(ld_i_layout). | ||||
| "SELECT single READ_ONLY FROM UPP_YS_FLAGS INTO @DATA(ld_i_read_only). | ||||
Search for further information about these or an SAP related objects