SAP FREE_SELECTIONS_LDB_JOINS_INIT Function Module for Initialize dynamic selection (logical database)
FREE_SELECTIONS_LDB_JOINS_INIT is a standard free selections ldb joins init SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Initialize dynamic selection (logical database) 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 free selections ldb joins init FM, simply by entering the name FREE_SELECTIONS_LDB_JOINS_INIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SSEL
Program Name: SAPLSSEL
Main Program: SAPLSSEL
Appliation area: S
Release date: 04-Apr-1995
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FREE_SELECTIONS_LDB_JOINS_INIT 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 'FREE_SELECTIONS_LDB_JOINS_INIT'"Initialize dynamic selection (logical database).
TABLES
* TABLES_TAB = "Table of desired tables
* FIELD_TEXTS = "Selection Texts
EXCEPTIONS
FIELDS_INCOMPLETE = 1 FIELD_NOT_FOUND = 2 LDB_INIT_REPEAT = 3 LDB_INIT_TOO_LATE = 4 TABLE_NOT_FOUND = 5 TABLE_NO_JOIN = 6 LDB_NO_NODES = 7 ILLEGAL_LDB = 8 NODE_NOT_IN_LDB = 9
TABLES Parameters details for FREE_SELECTIONS_LDB_JOINS_INIT
TABLES_TAB - Table of desired tables
Data type: RSDSTABSOptional: Yes
Call by Reference: No ( called with pass by value option)
FIELD_TEXTS - Selection Texts
Data type: RSDSTEXTSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FIELDS_INCOMPLETE - Only PRIM_FNAME filled
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FIELD_NOT_FOUND - Field not found in Dictionary
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LDB_INIT_REPEAT - Multiple call
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LDB_INIT_TOO_LATE - Call comes too late
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_NOT_FOUND - A table from TABLES_TAB does not exist.
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_NO_JOIN - Primary table without secondary table
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LDB_NO_NODES - Logical database does not have any nodes.
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ILLEGAL_LDB - Logical database (from SY-LDBPG) not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NODE_NOT_IN_LDB - Notes from TABLES_TAB not in logical database.
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FREE_SELECTIONS_LDB_JOINS_INIT 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: | ||||
| lt_tables_tab | TYPE STANDARD TABLE OF RSDSTABS, " | |||
| lv_fields_incomplete | TYPE RSDSTABS, " | |||
| lt_field_texts | TYPE STANDARD TABLE OF RSDSTEXTS, " | |||
| lv_field_not_found | TYPE RSDSTEXTS, " | |||
| lv_ldb_init_repeat | TYPE RSDSTEXTS, " | |||
| lv_ldb_init_too_late | TYPE RSDSTEXTS, " | |||
| lv_table_not_found | TYPE RSDSTEXTS, " | |||
| lv_table_no_join | TYPE RSDSTEXTS, " | |||
| lv_ldb_no_nodes | TYPE RSDSTEXTS, " | |||
| lv_illegal_ldb | TYPE RSDSTEXTS, " | |||
| lv_node_not_in_ldb | TYPE RSDSTEXTS. " |
|   CALL FUNCTION 'FREE_SELECTIONS_LDB_JOINS_INIT' "Initialize dynamic selection (logical database) |
| TABLES | ||
| TABLES_TAB | = lt_tables_tab | |
| FIELD_TEXTS | = lt_field_texts | |
| EXCEPTIONS | ||
| FIELDS_INCOMPLETE = 1 | ||
| FIELD_NOT_FOUND = 2 | ||
| LDB_INIT_REPEAT = 3 | ||
| LDB_INIT_TOO_LATE = 4 | ||
| TABLE_NOT_FOUND = 5 | ||
| TABLE_NO_JOIN = 6 | ||
| LDB_NO_NODES = 7 | ||
| ILLEGAL_LDB = 8 | ||
| NODE_NOT_IN_LDB = 9 | ||
| . " FREE_SELECTIONS_LDB_JOINS_INIT | ||
ABAP code using 7.40 inline data declarations to call FM FREE_SELECTIONS_LDB_JOINS_INIT
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.Search for further information about these or an SAP related objects