SAP FAGL_DBCON_GET_APPL Function Module for









FAGL_DBCON_GET_APPL is a standard fagl dbcon get appl 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 fagl dbcon get appl FM, simply by entering the name FAGL_DBCON_GET_APPL into the relevant SAP transaction such as SE37 or SE38.

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



Function FAGL_DBCON_GET_APPL 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 'FAGL_DBCON_GET_APPL'"
EXPORTING
* I_APPLICATION = "
* I_SUBAPPLICATION = ' ' "
* I_KEY_VALUE = ' ' "
* I_CHECK_CONNECTION = 'X' "
* IT_REQUIRED_TABLE = "
* IT_PARAMETER = "
* I_UNAME = SY-UNAME "

IMPORTING
E_DBCON_NAME = "
E_HDB_IS_PRIMARY = "
ET_MESSAGE = "

EXCEPTIONS
DBCON_NOT_EXIST = 1 DBCON_NO_USE = 2 DBCON_ERROR = 3 DBCON_OTHERS = 4 FUNCTION_NOT_EXIST = 5
.



IMPORTING Parameters details for FAGL_DBCON_GET_APPL

I_APPLICATION -

Data type: FBCON_S_HDB-APPL
Optional: Yes
Call by Reference: Yes

I_SUBAPPLICATION -

Data type: FBCON_S_HDB-SUBAPPL
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_KEY_VALUE -

Data type: FBCON_S_HDB-KEY_VALUE
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_CHECK_CONNECTION -

Data type: FLAG
Default: 'X'
Optional: Yes
Call by Reference: Yes

IT_REQUIRED_TABLE -

Data type: FAGL_STRUCNAMES
Optional: Yes
Call by Reference: Yes

IT_PARAMETER -

Data type: FBCON_S_HDB-T_PARAMETERS
Optional: Yes
Call by Reference: Yes

I_UNAME -

Data type: SY-UNAME
Default: SY-UNAME
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FAGL_DBCON_GET_APPL

E_DBCON_NAME -

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

E_HDB_IS_PRIMARY -

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

ET_MESSAGE -

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

EXCEPTIONS details

DBCON_NOT_EXIST -

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

DBCON_NO_USE -

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

DBCON_ERROR -

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

DBCON_OTHERS -

Data type:
Optional: No
Call by Reference: Yes

FUNCTION_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FAGL_DBCON_GET_APPL 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_e_dbcon_name  TYPE DBCON_NAME, "   
lv_i_application  TYPE FBCON_S_HDB-APPL, "   
lv_dbcon_not_exist  TYPE FBCON_S_HDB, "   
lv_dbcon_no_use  TYPE FBCON_S_HDB, "   
lv_e_hdb_is_primary  TYPE BOOLE_D, "   
lv_i_subapplication  TYPE FBCON_S_HDB-SUBAPPL, "   SPACE
lv_et_message  TYPE BAPIRETTAB, "   
lv_dbcon_error  TYPE BAPIRETTAB, "   
lv_i_key_value  TYPE FBCON_S_HDB-KEY_VALUE, "   SPACE
lv_dbcon_others  TYPE FBCON_S_HDB, "   
lv_i_check_connection  TYPE FLAG, "   'X'
lv_it_required_table  TYPE FAGL_STRUCNAMES, "   
lv_function_not_exist  TYPE FAGL_STRUCNAMES, "   
lv_it_parameter  TYPE FBCON_S_HDB-T_PARAMETERS, "   
lv_i_uname  TYPE SY-UNAME. "   SY-UNAME

  CALL FUNCTION 'FAGL_DBCON_GET_APPL'  "
    EXPORTING
         I_APPLICATION = lv_i_application
         I_SUBAPPLICATION = lv_i_subapplication
         I_KEY_VALUE = lv_i_key_value
         I_CHECK_CONNECTION = lv_i_check_connection
         IT_REQUIRED_TABLE = lv_it_required_table
         IT_PARAMETER = lv_it_parameter
         I_UNAME = lv_i_uname
    IMPORTING
         E_DBCON_NAME = lv_e_dbcon_name
         E_HDB_IS_PRIMARY = lv_e_hdb_is_primary
         ET_MESSAGE = lv_et_message
    EXCEPTIONS
        DBCON_NOT_EXIST = 1
        DBCON_NO_USE = 2
        DBCON_ERROR = 3
        DBCON_OTHERS = 4
        FUNCTION_NOT_EXIST = 5
. " FAGL_DBCON_GET_APPL




ABAP code using 7.40 inline data declarations to call FM FAGL_DBCON_GET_APPL

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 APPL FROM FBCON_S_HDB INTO @DATA(ld_i_application).
 
 
 
 
"SELECT single SUBAPPL FROM FBCON_S_HDB INTO @DATA(ld_i_subapplication).
DATA(ld_i_subapplication) = ' '.
 
 
 
"SELECT single KEY_VALUE FROM FBCON_S_HDB INTO @DATA(ld_i_key_value).
DATA(ld_i_key_value) = ' '.
 
 
DATA(ld_i_check_connection) = 'X'.
 
 
 
"SELECT single T_PARAMETERS FROM FBCON_S_HDB INTO @DATA(ld_it_parameter).
 
"SELECT single UNAME FROM SY INTO @DATA(ld_i_uname).
DATA(ld_i_uname) = SY-UNAME.
 


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!