SAP GET_DETAILS_ONE_PARAMETER_SDB2 Function Module for









GET_DETAILS_ONE_PARAMETER_SDB2 is a standard get details one parameter sdb2 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 get details one parameter sdb2 FM, simply by entering the name GET_DETAILS_ONE_PARAMETER_SDB2 into the relevant SAP transaction such as SE37 or SE38.

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



Function GET_DETAILS_ONE_PARAMETER_SDB2 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 'GET_DETAILS_ONE_PARAMETER_SDB2'"
EXPORTING
PARNAME = "
* CON_NAME = "
* WITH_EXPLAIN = "
* WITH_VALUESET = "

IMPORTING
PARAM_DETAILS = "
NEW_VALUE = "
EXPLAIN = "
VALUESET = "
ERRTAB = "
ID = "
DEPRECATEDID = "

EXCEPTIONS
PARAMETER_NOT_FOUND = 1 NO_CON_NAME = 2
.



IMPORTING Parameters details for GET_DETAILS_ONE_PARAMETER_SDB2

PARNAME -

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

CON_NAME -

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

WITH_EXPLAIN -

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

WITH_VALUESET -

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

EXPORTING Parameters details for GET_DETAILS_ONE_PARAMETER_SDB2

PARAM_DETAILS -

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

NEW_VALUE -

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

EXPLAIN -

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

VALUESET -

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

ERRTAB -

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

ID -

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

DEPRECATEDID -

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

EXCEPTIONS details

PARAMETER_NOT_FOUND -

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

NO_CON_NAME -

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

Copy and paste ABAP code example for GET_DETAILS_ONE_PARAMETER_SDB2 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_parname  TYPE SDB_PHNAME, "   
lv_param_details  TYPE SDB_GPARAM_256, "   
lv_parameter_not_found  TYPE SDB_GPARAM_256, "   
lv_con_name  TYPE DBCON_NAME, "   
lv_new_value  TYPE TEXT256, "   
lv_no_con_name  TYPE TEXT256, "   
lv_explain  TYPE SDB_ANSW_TAB, "   
lv_with_explain  TYPE FLAG, "   
lv_valueset  TYPE SDB_PPARAM_TAB_256, "   
lv_with_valueset  TYPE FLAG, "   
lv_errtab  TYPE SDB_ANSW_TAB, "   
lv_id  TYPE SDBPAID, "   
lv_deprecatedid  TYPE SDBPAID. "   

  CALL FUNCTION 'GET_DETAILS_ONE_PARAMETER_SDB2'  "
    EXPORTING
         PARNAME = lv_parname
         CON_NAME = lv_con_name
         WITH_EXPLAIN = lv_with_explain
         WITH_VALUESET = lv_with_valueset
    IMPORTING
         PARAM_DETAILS = lv_param_details
         NEW_VALUE = lv_new_value
         EXPLAIN = lv_explain
         VALUESET = lv_valueset
         ERRTAB = lv_errtab
         ID = lv_id
         DEPRECATEDID = lv_deprecatedid
    EXCEPTIONS
        PARAMETER_NOT_FOUND = 1
        NO_CON_NAME = 2
. " GET_DETAILS_ONE_PARAMETER_SDB2




ABAP code using 7.40 inline data declarations to call FM GET_DETAILS_ONE_PARAMETER_SDB2

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



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!