SAP QDLI_FM_SAMPLE Function Module for NOTRANSL: Auflistung von Funktionsbausteinen für ein Stichprobenverfahren









QDLI_FM_SAMPLE is a standard qdli fm sample SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Auflistung von Funktionsbausteinen für ein Stichprobenverfahren 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 qdli fm sample FM, simply by entering the name QDLI_FM_SAMPLE into the relevant SAP transaction such as SE37 or SE38.

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



Function QDLI_FM_SAMPLE 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 'QDLI_FM_SAMPLE'"NOTRANSL: Auflistung von Funktionsbausteinen für ein Stichprobenverfahren
EXPORTING
OK_CODE_IMP = "OK-CODE
QDFBT_KURZTEXT_IMP = "Short text for function module
QDSA_IMP = "Sampling type
QDSV_FBKEY_IMP = "Key for sampling procedure

IMPORTING
FBKEY_EXP = "Key for function module
FBTEXT_EXP = "Short text for function module

EXCEPTIONS
NO_FM_FOUND = 1
.



IMPORTING Parameters details for QDLI_FM_SAMPLE

OK_CODE_IMP - OK-CODE

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

QDFBT_KURZTEXT_IMP - Short text for function module

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

QDSA_IMP - Sampling type

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

QDSV_FBKEY_IMP - Key for sampling procedure

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

EXPORTING Parameters details for QDLI_FM_SAMPLE

FBKEY_EXP - Key for function module

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

FBTEXT_EXP - Short text for function module

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

EXCEPTIONS details

NO_FM_FOUND - No function module found

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

Copy and paste ABAP code example for QDLI_FM_SAMPLE 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_fbkey_exp  TYPE QDFB-FBKEY, "   
lv_no_fm_found  TYPE QDFB, "   
lv_ok_code_imp  TYPE T185-FCODE, "   
lv_fbtext_exp  TYPE QDFBT-KURZTEXT, "   
lv_qdfbt_kurztext_imp  TYPE QDFBT-KURZTEXT, "   
lv_qdsa_imp  TYPE QDSA, "   
lv_qdsv_fbkey_imp  TYPE QDSV-FBKEY. "   

  CALL FUNCTION 'QDLI_FM_SAMPLE'  "NOTRANSL: Auflistung von Funktionsbausteinen für ein Stichprobenverfahren
    EXPORTING
         OK_CODE_IMP = lv_ok_code_imp
         QDFBT_KURZTEXT_IMP = lv_qdfbt_kurztext_imp
         QDSA_IMP = lv_qdsa_imp
         QDSV_FBKEY_IMP = lv_qdsv_fbkey_imp
    IMPORTING
         FBKEY_EXP = lv_fbkey_exp
         FBTEXT_EXP = lv_fbtext_exp
    EXCEPTIONS
        NO_FM_FOUND = 1
. " QDLI_FM_SAMPLE




ABAP code using 7.40 inline data declarations to call FM QDLI_FM_SAMPLE

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 FBKEY FROM QDFB INTO @DATA(ld_fbkey_exp).
 
 
"SELECT single FCODE FROM T185 INTO @DATA(ld_ok_code_imp).
 
"SELECT single KURZTEXT FROM QDFBT INTO @DATA(ld_fbtext_exp).
 
"SELECT single KURZTEXT FROM QDFBT INTO @DATA(ld_qdfbt_kurztext_imp).
 
 
"SELECT single FBKEY FROM QDSV INTO @DATA(ld_qdsv_fbkey_imp).
 


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!