SAP RSA1_OLTPSOURCE_MAINTAIN Function Module for









RSA1_OLTPSOURCE_MAINTAIN is a standard rsa1 oltpsource maintain 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 rsa1 oltpsource maintain FM, simply by entering the name RSA1_OLTPSOURCE_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.

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



Function RSA1_OLTPSOURCE_MAINTAIN 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 'RSA1_OLTPSOURCE_MAINTAIN'"
EXPORTING
I_OLTP_SOURCE = "
* I_WORK_MODE = 'D' "
* I_APPLNM = "
* I_CUST_VIEW_ALL = ' ' "
* I_TCODE = 'RSA2' "

EXCEPTIONS
INTERNAL_ERROR = 1 NO_PERMISSION = 2 NO_SUCH_OLTP_SOURCE = 3 OLTP_SOURCE_ALR_EXISTS = 4 INVALID_WORKMODE = 5
.



IMPORTING Parameters details for RSA1_OLTPSOURCE_MAINTAIN

I_OLTP_SOURCE -

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

I_WORK_MODE -

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

I_APPLNM -

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

I_CUST_VIEW_ALL -

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

I_TCODE -

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

EXCEPTIONS details

INTERNAL_ERROR -

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

NO_PERMISSION -

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

NO_SUCH_OLTP_SOURCE -

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

OLTP_SOURCE_ALR_EXISTS -

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

INVALID_WORKMODE -

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

Copy and paste ABAP code example for RSA1_OLTPSOURCE_MAINTAIN 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_oltp_source  TYPE RSAOT_OLTPSOURCE, "   
lv_internal_error  TYPE RSAOT_OLTPSOURCE, "   
lv_i_work_mode  TYPE RSAOT_WORKMODE, "   'D'
lv_no_permission  TYPE RSAOT_WORKMODE, "   
lv_i_applnm  TYPE RSAOT_APPLNM, "   
lv_no_such_oltp_source  TYPE RSAOT_APPLNM, "   
lv_i_cust_view_all  TYPE RSAOT_FLAG, "   ' '
lv_oltp_source_alr_exists  TYPE RSAOT_FLAG, "   
lv_i_tcode  TYPE SY-TCODE, "   'RSA2'
lv_invalid_workmode  TYPE SY. "   

  CALL FUNCTION 'RSA1_OLTPSOURCE_MAINTAIN'  "
    EXPORTING
         I_OLTP_SOURCE = lv_i_oltp_source
         I_WORK_MODE = lv_i_work_mode
         I_APPLNM = lv_i_applnm
         I_CUST_VIEW_ALL = lv_i_cust_view_all
         I_TCODE = lv_i_tcode
    EXCEPTIONS
        INTERNAL_ERROR = 1
        NO_PERMISSION = 2
        NO_SUCH_OLTP_SOURCE = 3
        OLTP_SOURCE_ALR_EXISTS = 4
        INVALID_WORKMODE = 5
. " RSA1_OLTPSOURCE_MAINTAIN




ABAP code using 7.40 inline data declarations to call FM RSA1_OLTPSOURCE_MAINTAIN

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_work_mode) = 'D'.
 
 
 
 
DATA(ld_i_cust_view_all) = ' '.
 
 
"SELECT single TCODE FROM SY INTO @DATA(ld_i_tcode).
DATA(ld_i_tcode) = 'RSA2'.
 
 


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!