SAP RSA2_SERV_GET_OLTP_SOURCE Function Module for









RSA2_SERV_GET_OLTP_SOURCE is a standard rsa2 serv get oltp source SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rsa2 serv get oltp source FM, simply by entering the name RSA2_SERV_GET_OLTP_SOURCE into the relevant SAP transaction such as SE37 or SE38.

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



Function RSA2_SERV_GET_OLTP_SOURCE 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 'RSA2_SERV_GET_OLTP_SOURCE'"
EXPORTING
* I_WITH_FD = "
* I_T_LANGU = "
* I_S_REQUESTED = 'XXXXXXXXXXXXXX' "
* I_WITH_TEXT = 'X' "
* I_WITH_BUF = "
* I_LEANMODE = RSAOT_C_FLAG-ON "
* I_NEW_HANDLE = RSAOT_C_FLAG-ON "
* I_GET_SWITCH = ' ' "
* I_CHECK_SWITCH = "
I_OLTP_SOURCE = "
I_GOTSTATE = "

IMPORTING
E_S_OSOURCE = "
E_S_GENDELTA = "
E_T_OHIECOM = "
E_S_OHIECAT = "
E_T_APPFD = "
E_T_DD03P = "
E_T_OSTEXTS = "
E_T_OSFIELD = "
E_T_OSFIELDT = "
E_T_OSSEGMENTS = "
E_T_OSSEGTEXTS = "
E_T_OSSEGFIELDS = "
E_T_OSSEGFIELDT = "
E_S_MDDELTA = "

EXCEPTIONS
NO_SUCH_OLTP_SOURCE = 1
.



IMPORTING Parameters details for RSA2_SERV_GET_OLTP_SOURCE

I_WITH_FD -

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

I_T_LANGU -

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

I_S_REQUESTED -

Data type: ROREQOSPRMS
Default: 'XXXXXXXXXXXXXX'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WITH_TEXT -

Data type: RSAOT_FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WITH_BUF -

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

I_LEANMODE -

Data type: RSAOT_FLAG
Default: RSAOT_C_FLAG-ON
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NEW_HANDLE -

Data type: RSAOT_FLAG
Default: RSAOT_C_FLAG-ON
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GET_SWITCH -

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

I_CHECK_SWITCH -

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

I_OLTP_SOURCE -

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

I_GOTSTATE -

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

EXPORTING Parameters details for RSA2_SERV_GET_OLTP_SOURCE

E_S_OSOURCE -

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

E_S_GENDELTA -

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

E_T_OHIECOM -

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

E_S_OHIECAT -

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

E_T_APPFD -

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

E_T_DD03P -

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

E_T_OSTEXTS -

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

E_T_OSFIELD -

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

E_T_OSFIELDT -

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

E_T_OSSEGMENTS -

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

E_T_OSSEGTEXTS -

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

E_T_OSSEGFIELDS -

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

E_T_OSSEGFIELDT -

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

E_S_MDDELTA -

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

EXCEPTIONS details

NO_SUCH_OLTP_SOURCE -

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

Copy and paste ABAP code example for RSA2_SERV_GET_OLTP_SOURCE 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_with_fd  TYPE RSAOT_FLAG, "   
lv_e_s_osource  TYPE RSAOT_S_OSOURCE, "   
lv_no_such_oltp_source  TYPE RSAOT_S_OSOURCE, "   
lv_i_t_langu  TYPE RSAOT_T_LANGU, "   
lv_e_s_gendelta  TYPE RSAOT_S_GENDELTA, "   
lv_e_t_ohiecom  TYPE RSAOT_T_OHIECOMTECH, "   
lv_i_s_requested  TYPE ROREQOSPRMS, "   'XXXXXXXXXXXXXX'
lv_e_s_ohiecat  TYPE RSAOT_S_OHIECAT, "   
lv_e_t_appfd  TYPE RSAOT_T_APPFD, "   
lv_e_t_dd03p  TYPE RSAOT_T_DD03P, "   
lv_e_t_ostexts  TYPE RSAOT_T_OSTEXT, "   
lv_i_with_text  TYPE RSAOT_FLAG, "   'X'
lv_i_with_buf  TYPE RSAOT_FLAG, "   
lv_e_t_osfield  TYPE RSAOT_T_OSFIELD, "   
lv_i_leanmode  TYPE RSAOT_FLAG, "   RSAOT_C_FLAG-ON
lv_e_t_osfieldt  TYPE RSAOT_T_FIELDT, "   
lv_i_new_handle  TYPE RSAOT_FLAG, "   RSAOT_C_FLAG-ON
lv_e_t_ossegments  TYPE RSAOT_T_OSSEGMENTS, "   
lv_i_get_switch  TYPE RSAOT_FLAG, "   ' '
lv_e_t_ossegtexts  TYPE RSAOT_T_OSSEGTEXTS, "   
lv_i_check_switch  TYPE RSAOT_FLAG, "   
lv_e_t_ossegfields  TYPE RSAOT_T_OSSEGFIELDS, "   
lv_i_oltp_source  TYPE RSAOT_OLTPSOURCE, "   
lv_e_t_ossegfieldt  TYPE RSAOT_T_OSSEGFIELDT, "   
lv_i_gotstate  TYPE RSAOT_OBJVERS, "   
lv_e_s_mddelta  TYPE RSAOT_S_MDDELTA. "   

  CALL FUNCTION 'RSA2_SERV_GET_OLTP_SOURCE'  "
    EXPORTING
         I_WITH_FD = lv_i_with_fd
         I_T_LANGU = lv_i_t_langu
         I_S_REQUESTED = lv_i_s_requested
         I_WITH_TEXT = lv_i_with_text
         I_WITH_BUF = lv_i_with_buf
         I_LEANMODE = lv_i_leanmode
         I_NEW_HANDLE = lv_i_new_handle
         I_GET_SWITCH = lv_i_get_switch
         I_CHECK_SWITCH = lv_i_check_switch
         I_OLTP_SOURCE = lv_i_oltp_source
         I_GOTSTATE = lv_i_gotstate
    IMPORTING
         E_S_OSOURCE = lv_e_s_osource
         E_S_GENDELTA = lv_e_s_gendelta
         E_T_OHIECOM = lv_e_t_ohiecom
         E_S_OHIECAT = lv_e_s_ohiecat
         E_T_APPFD = lv_e_t_appfd
         E_T_DD03P = lv_e_t_dd03p
         E_T_OSTEXTS = lv_e_t_ostexts
         E_T_OSFIELD = lv_e_t_osfield
         E_T_OSFIELDT = lv_e_t_osfieldt
         E_T_OSSEGMENTS = lv_e_t_ossegments
         E_T_OSSEGTEXTS = lv_e_t_ossegtexts
         E_T_OSSEGFIELDS = lv_e_t_ossegfields
         E_T_OSSEGFIELDT = lv_e_t_ossegfieldt
         E_S_MDDELTA = lv_e_s_mddelta
    EXCEPTIONS
        NO_SUCH_OLTP_SOURCE = 1
. " RSA2_SERV_GET_OLTP_SOURCE




ABAP code using 7.40 inline data declarations to call FM RSA2_SERV_GET_OLTP_SOURCE

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_s_requested) = 'XXXXXXXXXXXXXX'.
 
 
 
 
 
DATA(ld_i_with_text) = 'X'.
 
 
 
DATA(ld_i_leanmode) = RSAOT_C_FLAG-ON.
 
 
DATA(ld_i_new_handle) = RSAOT_C_FLAG-ON.
 
 
DATA(ld_i_get_switch) = ' '.
 
 
 
 
 
 
 
 


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!