SAP BDL_GET_SESSION Function Module for gives session data for remote get
BDL_GET_SESSION is a standard bdl get session SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for gives session data for remote get 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 bdl get session FM, simply by entering the name BDL_GET_SESSION into the relevant SAP transaction such as SE37 or SE38.
Function Group: BDL3
Program Name: SAPLBDL3
Main Program: SAPLBDL3
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BDL_GET_SESSION 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 'BDL_GET_SESSION'"gives session data for remote get.
EXPORTING
LIMIT = "Sequence number
TABLES
REPLICATIONQUEUE = "Key fields for download tables
CLUSTERDATA = "Data container for download data
TOCDATA = "RFC download -- Data cluster table of contents
EXCEPTIONS
NO_DATA = 1
IMPORTING Parameters details for BDL_GET_SESSION
LIMIT - Sequence number
Data type: BDLDATKEY-SEQNOOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BDL_GET_SESSION
REPLICATIONQUEUE - Key fields for download tables
Data type: BDL_DATKEYOptional: No
Call by Reference: Yes
CLUSTERDATA - Data container for download data
Data type: BDLDATCOLOptional: No
Call by Reference: Yes
TOCDATA - RFC download -- Data cluster table of contents
Data type: BDLDTOCOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_DATA -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BDL_GET_SESSION 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_limit | TYPE BDLDATKEY-SEQNO, " | |||
| lv_no_data | TYPE BDLDATKEY, " | |||
| lt_replicationqueue | TYPE STANDARD TABLE OF BDL_DATKEY, " | |||
| lt_clusterdata | TYPE STANDARD TABLE OF BDLDATCOL, " | |||
| lt_tocdata | TYPE STANDARD TABLE OF BDLDTOC. " |
|   CALL FUNCTION 'BDL_GET_SESSION' "gives session data for remote get |
| EXPORTING | ||
| LIMIT | = lv_limit | |
| TABLES | ||
| REPLICATIONQUEUE | = lt_replicationqueue | |
| CLUSTERDATA | = lt_clusterdata | |
| TOCDATA | = lt_tocdata | |
| EXCEPTIONS | ||
| NO_DATA = 1 | ||
| . " BDL_GET_SESSION | ||
ABAP code using 7.40 inline data declarations to call FM BDL_GET_SESSION
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 SEQNO FROM BDLDATKEY INTO @DATA(ld_limit). | ||||
Search for further information about these or an SAP related objects