SAP BAPI_SRCSYSTEM_CHANGE Function Module for Changes a 3rd Party Source System









BAPI_SRCSYSTEM_CHANGE is a standard bapi srcsystem change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Changes a 3rd Party Source System 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 srcsystem change FM, simply by entering the name BAPI_SRCSYSTEM_CHANGE into the relevant SAP transaction such as SE37 or SE38.

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



Function BAPI_SRCSYSTEM_CHANGE 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_SRCSYSTEM_CHANGE'"Changes a 3rd Party Source System
EXPORTING
SOURCESYSTEM = "Source System
TEXTLONG = "Text, 40 Characters Long
* METHOD = 'R' "Activation Type for TPCIP Connection
PROGRAM = "Program name (complete path)
* GWHOST = "Gateway host name
* GWSERVICE = "Gateway Service
* HOST = "Name of Target Host

IMPORTING
RETURN = "Return Parameter
.



IMPORTING Parameters details for BAPI_SRCSYSTEM_CHANGE

SOURCESYSTEM - Source System

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

TEXTLONG - Text, 40 Characters Long

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

METHOD - Activation Type for TPCIP Connection

Data type: BAPI6101-METHOD
Default: 'R'
Optional: No
Call by Reference: No ( called with pass by value option)

PROGRAM - Program name (complete path)

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

GWHOST - Gateway host name

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

GWSERVICE - Gateway Service

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

HOST - Name of Target Host

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

EXPORTING Parameters details for BAPI_SRCSYSTEM_CHANGE

RETURN - Return Parameter

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

Copy and paste ABAP code example for BAPI_SRCSYSTEM_CHANGE 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_return  TYPE BAPIRET2, "   
lv_sourcesystem  TYPE BAPI6101-SOURCESYSTEM, "   
lv_textlong  TYPE BAPI6101-TEXTLONG, "   
lv_method  TYPE BAPI6101-METHOD, "   'R'
lv_program  TYPE BAPI6101-PROGRAM, "   
lv_gwhost  TYPE BAPI6101-GWHOST, "   
lv_gwservice  TYPE BAPI6101-GWSERVICE, "   
lv_host  TYPE BAPI6101-HOST. "   

  CALL FUNCTION 'BAPI_SRCSYSTEM_CHANGE'  "Changes a 3rd Party Source System
    EXPORTING
         SOURCESYSTEM = lv_sourcesystem
         TEXTLONG = lv_textlong
         METHOD = lv_method
         PROGRAM = lv_program
         GWHOST = lv_gwhost
         GWSERVICE = lv_gwservice
         HOST = lv_host
    IMPORTING
         RETURN = lv_return
. " BAPI_SRCSYSTEM_CHANGE




ABAP code using 7.40 inline data declarations to call FM BAPI_SRCSYSTEM_CHANGE

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 SOURCESYSTEM FROM BAPI6101 INTO @DATA(ld_sourcesystem).
 
"SELECT single TEXTLONG FROM BAPI6101 INTO @DATA(ld_textlong).
 
"SELECT single METHOD FROM BAPI6101 INTO @DATA(ld_method).
DATA(ld_method) = 'R'.
 
"SELECT single PROGRAM FROM BAPI6101 INTO @DATA(ld_program).
 
"SELECT single GWHOST FROM BAPI6101 INTO @DATA(ld_gwhost).
 
"SELECT single GWSERVICE FROM BAPI6101 INTO @DATA(ld_gwservice).
 
"SELECT single HOST FROM BAPI6101 INTO @DATA(ld_host).
 


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!