SAP DD_GET_DD03P Function Module for Access to table fields with DTEL and DOMA information (DD sources).









DD_GET_DD03P is a standard dd get dd03p SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Access to table fields with DTEL and DOMA information (DD sources). 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 dd get dd03p FM, simply by entering the name DD_GET_DD03P into the relevant SAP transaction such as SE37 or SE38.

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



Function DD_GET_DD03P 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 'DD_GET_DD03P'"Access to table fields with DTEL and DOMA information (DD sources).
EXPORTING
* DEFSTATUS = 'A' "Status of the field definition {'A', 'M'}
* LANGU = SYST-LANGU "
* NOINCL = ' ' "
* REFRESH = 'X' "
* STATUS = 'M' "
* TABNAME = ' ' "

IMPORTING
FIELD_NO = "Number of the found table fields
FSTATI = "
NODEF = "
NOTEXT = "
RSTATUS = "

TABLES
DD03P_TAB = "Table with the found table fields

EXCEPTIONS
ILLEGAL_VALUE = 1
.



IMPORTING Parameters details for DD_GET_DD03P

DEFSTATUS - Status of the field definition {'A', 'M'}

Data type: DD04L-AS4LOCAL
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LANGU -

Data type: DD03P-DDLANGUAGE
Default: SYST-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

NOINCL -

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

REFRESH -

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

STATUS -

Data type: DD03L-AS4LOCAL
Default: 'M'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABNAME -

Data type: DD02V-TABNAME
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for DD_GET_DD03P

FIELD_NO - Number of the found table fields

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

FSTATI -

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

NODEF -

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

NOTEXT -

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

RSTATUS -

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

TABLES Parameters details for DD_GET_DD03P

DD03P_TAB - Table with the found table fields

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

EXCEPTIONS details

ILLEGAL_VALUE - Current parameter with invalid value

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

Copy and paste ABAP code example for DD_GET_DD03P 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_field_no  TYPE SY-TABIX, "   
lt_dd03p_tab  TYPE STANDARD TABLE OF DD03P, "   
lv_defstatus  TYPE DD04L-AS4LOCAL, "   'A'
lv_illegal_value  TYPE DD04L, "   
lv_langu  TYPE DD03P-DDLANGUAGE, "   SYST-LANGU
lv_fstati  TYPE DD03P, "   
lv_nodef  TYPE SY-TABIX, "   
lv_noincl  TYPE SY, "   ' '
lv_notext  TYPE SY-TABIX, "   
lv_refresh  TYPE SY, "   'X'
lv_status  TYPE DD03L-AS4LOCAL, "   'M'
lv_rstatus  TYPE DD03L-AS4LOCAL, "   
lv_tabname  TYPE DD02V-TABNAME. "   ' '

  CALL FUNCTION 'DD_GET_DD03P'  "Access to table fields with DTEL and DOMA information (DD sources).
    EXPORTING
         DEFSTATUS = lv_defstatus
         LANGU = lv_langu
         NOINCL = lv_noincl
         REFRESH = lv_refresh
         STATUS = lv_status
         TABNAME = lv_tabname
    IMPORTING
         FIELD_NO = lv_field_no
         FSTATI = lv_fstati
         NODEF = lv_nodef
         NOTEXT = lv_notext
         RSTATUS = lv_rstatus
    TABLES
         DD03P_TAB = lt_dd03p_tab
    EXCEPTIONS
        ILLEGAL_VALUE = 1
. " DD_GET_DD03P




ABAP code using 7.40 inline data declarations to call FM DD_GET_DD03P

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 TABIX FROM SY INTO @DATA(ld_field_no).
 
 
"SELECT single AS4LOCAL FROM DD04L INTO @DATA(ld_defstatus).
DATA(ld_defstatus) = 'A'.
 
 
"SELECT single DDLANGUAGE FROM DD03P INTO @DATA(ld_langu).
DATA(ld_langu) = SYST-LANGU.
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_nodef).
 
DATA(ld_noincl) = ' '.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_notext).
 
DATA(ld_refresh) = 'X'.
 
"SELECT single AS4LOCAL FROM DD03L INTO @DATA(ld_status).
DATA(ld_status) = 'M'.
 
"SELECT single AS4LOCAL FROM DD03L INTO @DATA(ld_rstatus).
 
"SELECT single TABNAME FROM DD02V INTO @DATA(ld_tabname).
DATA(ld_tabname) = ' '.
 


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!