SAP IUUC_READ_TABLE_CONTENT Function Module for read a number of records from a DB table









IUUC_READ_TABLE_CONTENT is a standard iuuc read table content 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 a number of records from a DB table 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 iuuc read table content FM, simply by entering the name IUUC_READ_TABLE_CONTENT into the relevant SAP transaction such as SE37 or SE38.

Function Group: IUUC_TABLE_ANALYSIS
Program Name: SAPLIUUC_TABLE_ANALYSIS
Main Program: SAPLIUUC_TABLE_ANALYSIS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function IUUC_READ_TABLE_CONTENT 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 'IUUC_READ_TABLE_CONTENT'"read a number of records from a DB table
EXPORTING
IV_TABLE_NAME = "Table Name
* IV_UP_TO_ROWS = 1 "Max number of rows to select
* IT_WHERE_CLAUSE = "Where clause for selection
* IV_CONV_INT12_TO_INT4 = "Single-Character Flag
* IT_CLIENTS = "table with several clients
* IV_USE_LOGON_CLIENT = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

IMPORTING
ET_TABLE_CONTENT = "IUUC RFC payload table
EV_INT4_CONV_OCCURRED = "Single-Character Flag
EV_ROWS_READ = "

EXCEPTIONS
DATA_OBJ_CRE_FAILED = 1 EXPORT_ERROR = 2 SELECT_ERROR = 3 STRUCT_DESCR_FAILED = 4 TBL_DESCR_FAILED = 5 NO_AUTHORIZATION = 6 IMPORT_ERROR = 7 TBL_NOT_FOUND_IN_DDIC = 8
.



IMPORTING Parameters details for IUUC_READ_TABLE_CONTENT

IV_TABLE_NAME - Table Name

Data type: TABNAME
Optional: No
Call by Reference: No ( called with pass by value option)

IV_UP_TO_ROWS - Max number of rows to select

Data type: I
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_WHERE_CLAUSE - Where clause for selection

Data type: DMC_STRING_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_CONV_INT12_TO_INT4 - Single-Character Flag

Data type: CHAR1
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_CLIENTS - table with several clients

Data type: IUUC_SY_MANDT_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_USE_LOGON_CLIENT - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

Data type: BOOLE_D
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for IUUC_READ_TABLE_CONTENT

ET_TABLE_CONTENT - IUUC RFC payload table

Data type: IUUC_RFC_PAYLOAD_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

EV_INT4_CONV_OCCURRED - Single-Character Flag

Data type: CHAR1
Optional: No
Call by Reference: No ( called with pass by value option)

EV_ROWS_READ -

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

DATA_OBJ_CRE_FAILED - Run time data object creation for table content failed

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORT_ERROR - Error during EXPORT TO of selected data

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SELECT_ERROR - Error during select of records from table

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

STRUCT_DESCR_FAILED - Run time structure creation for table failed

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TBL_DESCR_FAILED - Run-time creation of table descriptor failed

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_AUTHORIZATION -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

IMPORT_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TBL_NOT_FOUND_IN_DDIC - Table was not found in DDIC (dd02l)

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for IUUC_READ_TABLE_CONTENT 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_iv_table_name  TYPE TABNAME, "   
lv_et_table_content  TYPE IUUC_RFC_PAYLOAD_TAB, "   
lv_data_obj_cre_failed  TYPE IUUC_RFC_PAYLOAD_TAB, "   
lv_export_error  TYPE IUUC_RFC_PAYLOAD_TAB, "   
lv_iv_up_to_rows  TYPE I, "   1
lv_ev_int4_conv_occurred  TYPE CHAR1, "   
lv_ev_rows_read  TYPE I, "   
lv_select_error  TYPE I, "   
lv_it_where_clause  TYPE DMC_STRING_TAB, "   
lv_struct_descr_failed  TYPE DMC_STRING_TAB, "   
lv_iv_conv_int12_to_int4  TYPE CHAR1, "   
lv_it_clients  TYPE IUUC_SY_MANDT_TAB, "   
lv_tbl_descr_failed  TYPE IUUC_SY_MANDT_TAB, "   
lv_no_authorization  TYPE IUUC_SY_MANDT_TAB, "   
lv_iv_use_logon_client  TYPE BOOLE_D, "   
lv_import_error  TYPE BOOLE_D, "   
lv_tbl_not_found_in_ddic  TYPE BOOLE_D. "   

  CALL FUNCTION 'IUUC_READ_TABLE_CONTENT'  "read a number of records from a DB table
    EXPORTING
         IV_TABLE_NAME = lv_iv_table_name
         IV_UP_TO_ROWS = lv_iv_up_to_rows
         IT_WHERE_CLAUSE = lv_it_where_clause
         IV_CONV_INT12_TO_INT4 = lv_iv_conv_int12_to_int4
         IT_CLIENTS = lv_it_clients
         IV_USE_LOGON_CLIENT = lv_iv_use_logon_client
    IMPORTING
         ET_TABLE_CONTENT = lv_et_table_content
         EV_INT4_CONV_OCCURRED = lv_ev_int4_conv_occurred
         EV_ROWS_READ = lv_ev_rows_read
    EXCEPTIONS
        DATA_OBJ_CRE_FAILED = 1
        EXPORT_ERROR = 2
        SELECT_ERROR = 3
        STRUCT_DESCR_FAILED = 4
        TBL_DESCR_FAILED = 5
        NO_AUTHORIZATION = 6
        IMPORT_ERROR = 7
        TBL_NOT_FOUND_IN_DDIC = 8
. " IUUC_READ_TABLE_CONTENT




ABAP code using 7.40 inline data declarations to call FM IUUC_READ_TABLE_CONTENT

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_iv_up_to_rows) = 1.
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!