SAP LDB_PROCESS Function Module for Process logical databases
LDB_PROCESS is a standard ldb process SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Process logical databases 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 ldb process FM, simply by entering the name LDB_PROCESS into the relevant SAP transaction such as SE37 or SE38.
Function Group: SLDBFREE
Program Name: SAPLSLDBFREE
Main Program: SAPLSLDBFREE
Appliation area: S
Release date: 26-Feb-1998
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LDB_PROCESS 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 'LDB_PROCESS'"Process logical databases.
EXPORTING
LDBNAME = "Name of logical database
* VARIANT = "Variant name
* EXPRESSIONS = "Dynamic selections
* FIELD_SELECTION = "Field selection
* DYN_NODE_TYPES = "'Dynamically typed' nodes: Typing
TABLES
CALLBACK = "Desired events including callback routines
* SELECTIONS = "Database selections
EXCEPTIONS
LDB_NOT_REENTRANT = 1 FREE_SELECTIONS_ERROR = 10 CALLBACK_NO_EVENT = 11 CALLBACK_NODE_DUPLICATE = 12 CALLBACK_NO_PROGRAM = 13 CALLBACK_NO_CBFORM = 14 DYN_NODE_NO_TYPE = 15 DYN_NODE_INVALID_TYPE = 16 LDB_INCORRECT = 2 LDB_ALREADY_RUNNING = 3 LDB_ERROR = 4 LDB_SELECTIONS_ERROR = 5 LDB_SELECTIONS_NOT_ACCEPTED = 6 VARIANT_NOT_EXISTENT = 7 VARIANT_OBSOLETE = 8 VARIANT_ERROR = 9
IMPORTING Parameters details for LDB_PROCESS
LDBNAME - Name of logical database
Data type: TRDIR-LDBNAMEOptional: No
Call by Reference: No ( called with pass by value option)
VARIANT - Variant name
Data type: SY-SLSETOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPRESSIONS - Dynamic selections
Data type: RSDS_TEXPROptional: Yes
Call by Reference: No ( called with pass by value option)
FIELD_SELECTION - Field selection
Data type: RSFS_FIELDSOptional: Yes
Call by Reference: No ( called with pass by value option)
DYN_NODE_TYPES - 'Dynamically typed' nodes: Typing
Data type: DYN_NODES_TOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for LDB_PROCESS
CALLBACK - Desired events including callback routines
Data type: LDBCBOptional: No
Call by Reference: No ( called with pass by value option)
SELECTIONS - Database selections
Data type: RSPARAMSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
LDB_NOT_REENTRANT - Logical database not intended for multiple calls
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FREE_SELECTIONS_ERROR - Error during dynamic selection initialization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CALLBACK_NO_EVENT - In CALLBACK: neither GET nor GET_LATE is activated
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CALLBACK_NODE_DUPLICATE - Node doubled in CALLBACK
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CALLBACK_NO_PROGRAM - No CALLBACK program entered
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CALLBACK_NO_CBFORM - No CALLBACK routine entered
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DYN_NODE_NO_TYPE - 'Dynamically typed' nodes: No type
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DYN_NODE_INVALID_TYPE - 'Dynamically typed' nodes: Invalid type
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LDB_INCORRECT - Incorrect logical database name
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LDB_ALREADY_RUNNING - Nested call of the same logical database
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LDB_ERROR - Logical database produces error code
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LDB_SELECTIONS_ERROR - Erroneous SELECTIONS structure
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LDB_SELECTIONS_NOT_ACCEPTED - Logical database does not accept selections
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VARIANT_NOT_EXISTENT - Variant does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VARIANT_OBSOLETE - Variant is obsolete
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VARIANT_ERROR - Error during variable import
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LDB_PROCESS 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_ldbname | TYPE TRDIR-LDBNAME, " | |||
| lt_callback | TYPE STANDARD TABLE OF LDBCB, " | |||
| lv_ldb_not_reentrant | TYPE LDBCB, " | |||
| lv_free_selections_error | TYPE LDBCB, " | |||
| lv_callback_no_event | TYPE LDBCB, " | |||
| lv_callback_node_duplicate | TYPE LDBCB, " | |||
| lv_callback_no_program | TYPE LDBCB, " | |||
| lv_callback_no_cbform | TYPE LDBCB, " | |||
| lv_dyn_node_no_type | TYPE LDBCB, " | |||
| lv_dyn_node_invalid_type | TYPE LDBCB, " | |||
| lv_variant | TYPE SY-SLSET, " | |||
| lt_selections | TYPE STANDARD TABLE OF RSPARAMS, " | |||
| lv_ldb_incorrect | TYPE RSPARAMS, " | |||
| lv_expressions | TYPE RSDS_TEXPR, " | |||
| lv_ldb_already_running | TYPE RSDS_TEXPR, " | |||
| lv_ldb_error | TYPE RSDS_TEXPR, " | |||
| lv_field_selection | TYPE RSFS_FIELDS, " | |||
| lv_dyn_node_types | TYPE DYN_NODES_T, " | |||
| lv_ldb_selections_error | TYPE DYN_NODES_T, " | |||
| lv_ldb_selections_not_accepted | TYPE DYN_NODES_T, " | |||
| lv_variant_not_existent | TYPE DYN_NODES_T, " | |||
| lv_variant_obsolete | TYPE DYN_NODES_T, " | |||
| lv_variant_error | TYPE DYN_NODES_T. " |
|   CALL FUNCTION 'LDB_PROCESS' "Process logical databases |
| EXPORTING | ||
| LDBNAME | = lv_ldbname | |
| VARIANT | = lv_variant | |
| EXPRESSIONS | = lv_expressions | |
| FIELD_SELECTION | = lv_field_selection | |
| DYN_NODE_TYPES | = lv_dyn_node_types | |
| TABLES | ||
| CALLBACK | = lt_callback | |
| SELECTIONS | = lt_selections | |
| EXCEPTIONS | ||
| LDB_NOT_REENTRANT = 1 | ||
| FREE_SELECTIONS_ERROR = 10 | ||
| CALLBACK_NO_EVENT = 11 | ||
| CALLBACK_NODE_DUPLICATE = 12 | ||
| CALLBACK_NO_PROGRAM = 13 | ||
| CALLBACK_NO_CBFORM = 14 | ||
| DYN_NODE_NO_TYPE = 15 | ||
| DYN_NODE_INVALID_TYPE = 16 | ||
| LDB_INCORRECT = 2 | ||
| LDB_ALREADY_RUNNING = 3 | ||
| LDB_ERROR = 4 | ||
| LDB_SELECTIONS_ERROR = 5 | ||
| LDB_SELECTIONS_NOT_ACCEPTED = 6 | ||
| VARIANT_NOT_EXISTENT = 7 | ||
| VARIANT_OBSOLETE = 8 | ||
| VARIANT_ERROR = 9 | ||
| . " LDB_PROCESS | ||
ABAP code using 7.40 inline data declarations to call FM LDB_PROCESS
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 LDBNAME FROM TRDIR INTO @DATA(ld_ldbname). | ||||
| "SELECT single SLSET FROM SY INTO @DATA(ld_variant). | ||||
Search for further information about these or an SAP related objects