SAP RSAOS_OLTPSOURCE_GET Function Module for Single Read OltpSource









RSAOS_OLTPSOURCE_GET is a standard rsaos oltpsource get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Single Read OltpSource 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 rsaos oltpsource get FM, simply by entering the name RSAOS_OLTPSOURCE_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSAOS
Program Name: SAPLRSAOS
Main Program: SAPLRSAOS
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RSAOS_OLTPSOURCE_GET 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 'RSAOS_OLTPSOURCE_GET'"Single Read OltpSource
EXPORTING
I_OLTPSOURCE = "OLTP Source
I_LOGSYS = "Source System
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "Object Version
* I_LANGU = SY-LANGU "Language Key
* I_T_LANGU = "
* I_WITH_BUF = RSAOS_C_FLAG-OFF "

IMPORTING
E_S_OLTPSOURCE = "Replicate Table for OLTP Sources in BW
E_T_TSFIELD = "
E_TX_SEGMENTS = "DataSource Segments
E_TX_OSSEGMAP = "Mapping for Segments of a DataSource
E_S_OLTPSOURCET = "Texts for OLTP Sources
E_T_OLTPSOURCET = "Texts for OLTP Sources
E_S_ISOSMAP = "Mapping between InfoSources and OLTP Sources
E_T_OSOURCEFIELD = "OLTP Source Fields
E_T_OSOURCEFIELDT = "Texts for OLTP Source Fields
E_T_OSFIELDMAP = "Feld <-> InfoObject Mapping of an OLTP Source
E_T_OHIECOM = "
E_S_TS = "

EXCEPTIONS
NOT_EXIST = 1 INTERNAL_ERROR = 2
.



IMPORTING Parameters details for RSAOS_OLTPSOURCE_GET

I_OLTPSOURCE - OLTP Source

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

I_LOGSYS - Source System

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

I_OBJVERS - Object Version

Data type: RSOBJVERS
Default: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LANGU - Language Key

Data type: LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_T_LANGU -

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

I_WITH_BUF -

Data type: RS_BOOL
Default: RSAOS_C_FLAG-OFF
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for RSAOS_OLTPSOURCE_GET

E_S_OLTPSOURCE - Replicate Table for OLTP Sources in BW

Data type: RSAOS_S_OLTPSOURCE
Optional: No
Call by Reference: Yes

E_T_TSFIELD -

Data type: RSAOS_T_TSFIELD
Optional: No
Call by Reference: Yes

E_TX_SEGMENTS - DataSource Segments

Data type: RSAOS_TX_SEGMENTS
Optional: No
Call by Reference: Yes

E_TX_OSSEGMAP - Mapping for Segments of a DataSource

Data type: RSAOS_TX_OSSEGMAP
Optional: No
Call by Reference: Yes

E_S_OLTPSOURCET - Texts for OLTP Sources

Data type: RSAOS_S_OLTPSOURCET
Optional: No
Call by Reference: Yes

E_T_OLTPSOURCET - Texts for OLTP Sources

Data type: RSAOS_T_OLTPSOURCET
Optional: No
Call by Reference: Yes

E_S_ISOSMAP - Mapping between InfoSources and OLTP Sources

Data type: RSAOS_S_ISOSMAP
Optional: No
Call by Reference: Yes

E_T_OSOURCEFIELD - OLTP Source Fields

Data type: RSAOS_T_OLTPSOURCEFIE
Optional: No
Call by Reference: Yes

E_T_OSOURCEFIELDT - Texts for OLTP Source Fields

Data type: RSAOS_T_OLTPSOURCEFIET
Optional: No
Call by Reference: Yes

E_T_OSFIELDMAP - Feld <-> InfoObject Mapping of an OLTP Source

Data type: RSAOS_T_OSFIELDMAP
Optional: No
Call by Reference: Yes

E_T_OHIECOM -

Data type: RSAOS_T_OLTPSOURCEHIECOM
Optional: No
Call by Reference: Yes

E_S_TS -

Data type: RSAOS_S_TS
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOT_EXIST - The OltpSource does not exist

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

INTERNAL_ERROR - Never intercepted, as important for fault detection

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

Copy and paste ABAP code example for RSAOS_OLTPSOURCE_GET 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_not_exist  TYPE STRING, "   
lv_i_oltpsource  TYPE ROOSOURCER, "   
lv_e_s_oltpsource  TYPE RSAOS_S_OLTPSOURCE, "   
lv_e_t_tsfield  TYPE RSAOS_T_TSFIELD, "   
lv_e_tx_segments  TYPE RSAOS_TX_SEGMENTS, "   
lv_e_tx_ossegmap  TYPE RSAOS_TX_OSSEGMAP, "   
lv_i_logsys  TYPE RSSLOGSYS, "   
lv_internal_error  TYPE RSSLOGSYS, "   
lv_e_s_oltpsourcet  TYPE RSAOS_S_OLTPSOURCET, "   
lv_i_objvers  TYPE RSOBJVERS, "   RS_C_OBJVERS-ACTIVE
lv_e_t_oltpsourcet  TYPE RSAOS_T_OLTPSOURCET, "   
lv_i_langu  TYPE LANGU, "   SY-LANGU
lv_e_s_isosmap  TYPE RSAOS_S_ISOSMAP, "   
lv_i_t_langu  TYPE RSAOS_T_LANGU, "   
lv_e_t_osourcefield  TYPE RSAOS_T_OLTPSOURCEFIE, "   
lv_i_with_buf  TYPE RS_BOOL, "   RSAOS_C_FLAG-OFF
lv_e_t_osourcefieldt  TYPE RSAOS_T_OLTPSOURCEFIET, "   
lv_e_t_osfieldmap  TYPE RSAOS_T_OSFIELDMAP, "   
lv_e_t_ohiecom  TYPE RSAOS_T_OLTPSOURCEHIECOM, "   
lv_e_s_ts  TYPE RSAOS_S_TS. "   

  CALL FUNCTION 'RSAOS_OLTPSOURCE_GET'  "Single Read OltpSource
    EXPORTING
         I_OLTPSOURCE = lv_i_oltpsource
         I_LOGSYS = lv_i_logsys
         I_OBJVERS = lv_i_objvers
         I_LANGU = lv_i_langu
         I_T_LANGU = lv_i_t_langu
         I_WITH_BUF = lv_i_with_buf
    IMPORTING
         E_S_OLTPSOURCE = lv_e_s_oltpsource
         E_T_TSFIELD = lv_e_t_tsfield
         E_TX_SEGMENTS = lv_e_tx_segments
         E_TX_OSSEGMAP = lv_e_tx_ossegmap
         E_S_OLTPSOURCET = lv_e_s_oltpsourcet
         E_T_OLTPSOURCET = lv_e_t_oltpsourcet
         E_S_ISOSMAP = lv_e_s_isosmap
         E_T_OSOURCEFIELD = lv_e_t_osourcefield
         E_T_OSOURCEFIELDT = lv_e_t_osourcefieldt
         E_T_OSFIELDMAP = lv_e_t_osfieldmap
         E_T_OHIECOM = lv_e_t_ohiecom
         E_S_TS = lv_e_s_ts
    EXCEPTIONS
        NOT_EXIST = 1
        INTERNAL_ERROR = 2
. " RSAOS_OLTPSOURCE_GET




ABAP code using 7.40 inline data declarations to call FM RSAOS_OLTPSOURCE_GET

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_objvers) = RS_C_OBJVERS-ACTIVE.
 
 
DATA(ld_i_langu) = SY-LANGU.
 
 
 
 
DATA(ld_i_with_buf) = RSAOS_C_FLAG-OFF.
 
 
 
 
 


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!