SAP BAPI_ODSO_READ_DATA_UC Function Module for Reads Data From A DataSource (Unicode)









BAPI_ODSO_READ_DATA_UC is a standard bapi odso read data uc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reads Data From A DataSource (Unicode) 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 bapi odso read data uc FM, simply by entering the name BAPI_ODSO_READ_DATA_UC into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSODSO_BAPI
Program Name: SAPLRSODSO_BAPI
Main Program: SAPLRSODSO_BAPI
Appliation area:
Release date: 26-Apr-2004
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_ODSO_READ_DATA_UC 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 'BAPI_ODSO_READ_DATA_UC'"Reads Data From A DataSource (Unicode)
EXPORTING
ODSOBJECT = "Data Store
* SELECTALLINFOOBJECTS = "Boolean
* MAXROWS = "Maximum Number of Lines of Hits
* CODEPAGE = "Code Page of Caller
* UNICODE = "Is Initiator Unicode-Enabled?

IMPORTING
NUMROWS = "Maximum Number of Lines of Hits
RETURN = "Return Parameter

TABLES
* INFOOBJECTLIST = "Info Object List
* SELECTIONCRITERIA = "SELECT-OPTION Structure on Info Object
* ORDERBY = "Info Object List
* RESULTDATA = "Data - Data Record with Continuation Indicator
* DATALAYOUT = "Layout of the InfoObjects in the Data-Table Structure
.



IMPORTING Parameters details for BAPI_ODSO_READ_DATA_UC

ODSOBJECT - Data Store

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

SELECTALLINFOOBJECTS - Boolean

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

MAXROWS - Maximum Number of Lines of Hits

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

CODEPAGE - Code Page of Caller

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

UNICODE - Is Initiator Unicode-Enabled?

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

EXPORTING Parameters details for BAPI_ODSO_READ_DATA_UC

NUMROWS - Maximum Number of Lines of Hits

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

RETURN - Return Parameter

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

TABLES Parameters details for BAPI_ODSO_READ_DATA_UC

INFOOBJECTLIST - Info Object List

Data type: BAPI6116IOLS
Optional: Yes
Call by Reference: Yes

SELECTIONCRITERIA - SELECT-OPTION Structure on Info Object

Data type: BAPI6116SLIO
Optional: Yes
Call by Reference: Yes

ORDERBY - Info Object List

Data type: BAPI6116IOLS
Optional: Yes
Call by Reference: Yes

RESULTDATA - Data - Data Record with Continuation Indicator

Data type: BAPI6116DAUC
Optional: Yes
Call by Reference: Yes

DATALAYOUT - Layout of the InfoObjects in the Data-Table Structure

Data type: BAPI6116DALO
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BAPI_ODSO_READ_DATA_UC 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_numrows  TYPE BAPI6116XX-NUMROWS, "   
lv_odsobject  TYPE BAPI6116-ODSOBJECT, "   
lt_infoobjectlist  TYPE STANDARD TABLE OF BAPI6116IOLS, "   
lv_return  TYPE BAPIRET2, "   
lt_selectioncriteria  TYPE STANDARD TABLE OF BAPI6116SLIO, "   
lv_selectallinfoobjects  TYPE BAPI6116XX-ALLINFOOBJECTS, "   
lv_maxrows  TYPE BAPI6116XX-MAXROWS, "   
lt_orderby  TYPE STANDARD TABLE OF BAPI6116IOLS, "   
lv_codepage  TYPE BAPI6116XX-CODEPAGE, "   
lt_resultdata  TYPE STANDARD TABLE OF BAPI6116DAUC, "   
lv_unicode  TYPE BAPI6116XX-ALLINFOOBJECTS, "   
lt_datalayout  TYPE STANDARD TABLE OF BAPI6116DALO. "   

  CALL FUNCTION 'BAPI_ODSO_READ_DATA_UC'  "Reads Data From A DataSource (Unicode)
    EXPORTING
         ODSOBJECT = lv_odsobject
         SELECTALLINFOOBJECTS = lv_selectallinfoobjects
         MAXROWS = lv_maxrows
         CODEPAGE = lv_codepage
         UNICODE = lv_unicode
    IMPORTING
         NUMROWS = lv_numrows
         RETURN = lv_return
    TABLES
         INFOOBJECTLIST = lt_infoobjectlist
         SELECTIONCRITERIA = lt_selectioncriteria
         ORDERBY = lt_orderby
         RESULTDATA = lt_resultdata
         DATALAYOUT = lt_datalayout
. " BAPI_ODSO_READ_DATA_UC




ABAP code using 7.40 inline data declarations to call FM BAPI_ODSO_READ_DATA_UC

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 NUMROWS FROM BAPI6116XX INTO @DATA(ld_numrows).
 
"SELECT single ODSOBJECT FROM BAPI6116 INTO @DATA(ld_odsobject).
 
 
 
 
"SELECT single ALLINFOOBJECTS FROM BAPI6116XX INTO @DATA(ld_selectallinfoobjects).
 
"SELECT single MAXROWS FROM BAPI6116XX INTO @DATA(ld_maxrows).
 
 
"SELECT single CODEPAGE FROM BAPI6116XX INTO @DATA(ld_codepage).
 
 
"SELECT single ALLINFOOBJECTS FROM BAPI6116XX INTO @DATA(ld_unicode).
 
 


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!