SAP BAPI_SRCSYSTEM_GETDETAIL Function Module for Reads details about a logical system









BAPI_SRCSYSTEM_GETDETAIL is a standard bapi srcsystem getdetail 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 details about a logical 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 getdetail FM, simply by entering the name BAPI_SRCSYSTEM_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSAB
Program Name: SAPLRSAB
Main Program: SAPLRSAB
Appliation area: B
Release date: 19-Feb-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_SRCSYSTEM_GETDETAIL 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_GETDETAIL'"Reads details about a logical system
EXPORTING
SOURCESYSTEM = "Source System Name

IMPORTING
TEXTLONG = "Description of the source system
GWSERVICE = "Gateway Service
HOST = "Name of Target Host
DWSYSTEM = "Name of the receiver system
BASICIDOCTYPE = "Name of the basic Idoc type
PORTNAME = "Name of the port
SYSTEMTYPE = "Type of Source System
RETURN = "BAPI Return Parameter
METHOD = "Activation Type for TPCIP Connection
PROGRAM = "Program name (complete path)
GWHOST = "Gateway host name
.



IMPORTING Parameters details for BAPI_SRCSYSTEM_GETDETAIL

SOURCESYSTEM - Source System Name

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

EXPORTING Parameters details for BAPI_SRCSYSTEM_GETDETAIL

TEXTLONG - Description of the source system

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

GWSERVICE - Gateway Service

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

HOST - Name of Target Host

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

DWSYSTEM - Name of the receiver system

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

BASICIDOCTYPE - Name of the basic Idoc type

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

PORTNAME - Name of the port

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

SYSTEMTYPE - Type of Source System

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

RETURN - BAPI Return Parameter

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

METHOD - Activation Type for TPCIP Connection

Data type: BAPI6101-METHOD
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: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_SRCSYSTEM_GETDETAIL 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_textlong  TYPE BAPI6101-TEXTLONG, "   
lv_sourcesystem  TYPE BAPI6101-SOURCESYSTEM, "   
lv_gwservice  TYPE BAPI6101-GWSERVICE, "   
lv_host  TYPE BAPI6101-HOST, "   
lv_dwsystem  TYPE BAPI6101-DWSYSTEM, "   
lv_basicidoctype  TYPE BAPI6101-BASICIDOCTYPE, "   
lv_portname  TYPE BAPI6101-PORTNAME, "   
lv_systemtype  TYPE BAPI6101-SYSTEMTYPE, "   
lv_return  TYPE BAPIRET2, "   
lv_method  TYPE BAPI6101-METHOD, "   
lv_program  TYPE BAPI6101-PROGRAM, "   
lv_gwhost  TYPE BAPI6101-GWHOST. "   

  CALL FUNCTION 'BAPI_SRCSYSTEM_GETDETAIL'  "Reads details about a logical system
    EXPORTING
         SOURCESYSTEM = lv_sourcesystem
    IMPORTING
         TEXTLONG = lv_textlong
         GWSERVICE = lv_gwservice
         HOST = lv_host
         DWSYSTEM = lv_dwsystem
         BASICIDOCTYPE = lv_basicidoctype
         PORTNAME = lv_portname
         SYSTEMTYPE = lv_systemtype
         RETURN = lv_return
         METHOD = lv_method
         PROGRAM = lv_program
         GWHOST = lv_gwhost
. " BAPI_SRCSYSTEM_GETDETAIL




ABAP code using 7.40 inline data declarations to call FM BAPI_SRCSYSTEM_GETDETAIL

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 TEXTLONG FROM BAPI6101 INTO @DATA(ld_textlong).
 
"SELECT single SOURCESYSTEM FROM BAPI6101 INTO @DATA(ld_sourcesystem).
 
"SELECT single GWSERVICE FROM BAPI6101 INTO @DATA(ld_gwservice).
 
"SELECT single HOST FROM BAPI6101 INTO @DATA(ld_host).
 
"SELECT single DWSYSTEM FROM BAPI6101 INTO @DATA(ld_dwsystem).
 
"SELECT single BASICIDOCTYPE FROM BAPI6101 INTO @DATA(ld_basicidoctype).
 
"SELECT single PORTNAME FROM BAPI6101 INTO @DATA(ld_portname).
 
"SELECT single SYSTEMTYPE FROM BAPI6101 INTO @DATA(ld_systemtype).
 
 
"SELECT single METHOD FROM BAPI6101 INTO @DATA(ld_method).
 
"SELECT single PROGRAM FROM BAPI6101 INTO @DATA(ld_program).
 
"SELECT single GWHOST FROM BAPI6101 INTO @DATA(ld_gwhost).
 


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!