SAP AD12_DLIA_FROM_COVPR Function Module for NOTRANSL: COVPR -> DP









AD12_DLIA_FROM_COVPR is a standard ad12 dlia from covpr 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: COVPR -> DP 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 ad12 dlia from covpr FM, simply by entering the name AD12_DLIA_FROM_COVPR into the relevant SAP transaction such as SE37 or SE38.

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



Function AD12_DLIA_FROM_COVPR 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 'AD12_DLIA_FROM_COVPR'"NOTRANSL: COVPR  -> DP
EXPORTING
I_COVPR = "
I_DLISRC = "Source
I_PROFNR = "Profile
* I_FLAG_READ_ONLY = ' ' "

IMPORTING
E_AD01DLIA = "

TABLES
IT_FIELDS = "

EXCEPTIONS
INPUT_ERROR = 1 DLI_ERROR = 2 DLI_NOT_FOUND = 3
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLAD12_003 Enhancement To Be Filled By User-Defined Independent Characteristics
EXIT_SAPLAD12_004 Enhancement to Fill User-Defined Dependent Characteristics

IMPORTING Parameters details for AD12_DLIA_FROM_COVPR

I_COVPR -

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

I_DLISRC - Source

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

I_PROFNR - Profile

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

I_FLAG_READ_ONLY -

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

EXPORTING Parameters details for AD12_DLIA_FROM_COVPR

E_AD01DLIA -

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

TABLES Parameters details for AD12_DLIA_FROM_COVPR

IT_FIELDS -

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

EXCEPTIONS details

INPUT_ERROR - Entry Error

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

DLI_ERROR -

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

DLI_NOT_FOUND -

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

Copy and paste ABAP code example for AD12_DLIA_FROM_COVPR 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_i_covpr  TYPE COVPR, "   
lt_it_fields  TYPE STANDARD TABLE OF AD01FIELDS, "   
lv_e_ad01dlia  TYPE AD01DLIA, "   
lv_input_error  TYPE AD01DLIA, "   
lv_i_dlisrc  TYPE AD01DLI-DLISRC, "   
lv_dli_error  TYPE AD01DLI, "   
lv_i_profnr  TYPE AD01DLI-PROFNR, "   
lv_dli_not_found  TYPE AD01DLI, "   
lv_i_flag_read_only  TYPE C. "   SPACE

  CALL FUNCTION 'AD12_DLIA_FROM_COVPR'  "NOTRANSL: COVPR -> DP
    EXPORTING
         I_COVPR = lv_i_covpr
         I_DLISRC = lv_i_dlisrc
         I_PROFNR = lv_i_profnr
         I_FLAG_READ_ONLY = lv_i_flag_read_only
    IMPORTING
         E_AD01DLIA = lv_e_ad01dlia
    TABLES
         IT_FIELDS = lt_it_fields
    EXCEPTIONS
        INPUT_ERROR = 1
        DLI_ERROR = 2
        DLI_NOT_FOUND = 3
. " AD12_DLIA_FROM_COVPR




ABAP code using 7.40 inline data declarations to call FM AD12_DLIA_FROM_COVPR

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 DLISRC FROM AD01DLI INTO @DATA(ld_i_dlisrc).
 
 
"SELECT single PROFNR FROM AD01DLI INTO @DATA(ld_i_profnr).
 
 
DATA(ld_i_flag_read_only) = ' '.
 


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!