SAP DD_NAVIGATOR_T Function Module for Navigation betweeen object sets
DD_NAVIGATOR_T is a standard dd navigator t SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Navigation betweeen object sets 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 navigator t FM, simply by entering the name DD_NAVIGATOR_T into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDDE
Program Name: SAPLSDDE
Main Program: SAPLSDDE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DD_NAVIGATOR_T 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_NAVIGATOR_T'"Navigation betweeen object sets.
EXPORTING
* CLASS1 = 'DOMA' "Object class
* LEN2 = 0 "Start position of name field in IN_TAB
* OBJ_STATE = 'A' "Statuses of target objects taken into account
* OFF1 = 0 "Length of name field in IN_TAB
* OFF2 = 0 "Length of name field in IN_TAB
* OUT_REFRESH = 'X' "X: Previous deletion of table OUT_TAB
* OUT_TO_IN = ' ' "X: Transfer result to IN_TAB
* PRID = 0 "ID of a standard output channel or 0
* REFETCH = 'X' "X: Fetch back to the incoming data set
* TRACE = 0 ">0: Display run schedule
* PAR1 = ' ' "Is passed through for DB access
* CLASS2 = 'DTEL' "Object class
* PAR2 = ' ' "Is passed through for DB access
* PAR3 = ' ' "Is passed through for DB access
* FROM_INDEX = 0 "
* TO_INDEX = 0 "
* DEPENDENCY = 'U' "Relationship category
* DIRECTION = '>' "Access direction
* EXP_STRUC = ' ' "Expected structure of OUT_TAB or ' '
* SINGLE_NAME = ' ' "Input for a single symbol
* POINTER1 = 0 "
* POINTER2 = 0 "
* LEN1 = 0 "Start position of name field in IN_TAB
IMPORTING
OUT_STRUC = "Real structure of 'OUT_TAB'
TABLES
* IN_TAB = "Symbol or true base table
OUT_TAB = "Calculated target quantity with structure OUT_STRUC
EXCEPTIONS
ILLEGAL_PATH = 1 TYPE_MISSMATCH = 2 ILLEGAL_VALUE = 3
IMPORTING Parameters details for DD_NAVIGATOR_T
CLASS1 - Object class
Data type: DDREFSTRUC-CLASSDefault: 'DOMA'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LEN2 - Start position of name field in IN_TAB
Data type: SY-FDPOSOptional: Yes
Call by Reference: No ( called with pass by value option)
OBJ_STATE - Statuses of target objects taken into account
Data type: DDREFSTRUC-STATEDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OFF1 - Length of name field in IN_TAB
Data type: SY-FDPOSOptional: Yes
Call by Reference: No ( called with pass by value option)
OFF2 - Length of name field in IN_TAB
Data type: SY-FDPOSOptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_REFRESH - X: Previous deletion of table OUT_TAB
Data type: DDREFSTRUC-STATEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OUT_TO_IN - X: Transfer result to IN_TAB
Data type: DDREFSTRUC-STATEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRID - ID of a standard output channel or 0
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
REFETCH - X: Fetch back to the incoming data set
Data type: DDREFSTRUC-STATEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TRACE - >0: Display run schedule
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
PAR1 - Is passed through for DB access
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CLASS2 - Object class
Data type: DDREFSTRUC-CLASSDefault: 'DTEL'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR2 - Is passed through for DB access
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR3 - Is passed through for DB access
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
FROM_INDEX -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
TO_INDEX -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
DEPENDENCY - Relationship category
Data type: DDREFSTRUC-STATEDefault: 'U'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIRECTION - Access direction
Data type: DDREFSTRUC-STATEDefault: '>'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXP_STRUC - Expected structure of OUT_TAB or SPACE
Data type: DD02L-TABNAMEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SINGLE_NAME - Input for a single symbol
Data type: DDSYMTAB-NAMEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
POINTER1 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
POINTER2 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
LEN1 - Start position of name field in IN_TAB
Data type: SY-FDPOSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DD_NAVIGATOR_T
OUT_STRUC - Real structure of 'OUT_TAB'
Data type: DD02L-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DD_NAVIGATOR_T
IN_TAB - Symbol or true base table
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
OUT_TAB - Calculated target quantity with structure OUT_STRUC
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ILLEGAL_PATH - Access path not yet implemented
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TYPE_MISSMATCH - If EXP_STRUC <> OUT_STRUC
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ILLEGAL_VALUE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for DD_NAVIGATOR_T 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_class1 | TYPE DDREFSTRUC-CLASS, " 'DOMA' | |||
| lt_in_tab | TYPE STANDARD TABLE OF DDREFSTRUC, " | |||
| lv_out_struc | TYPE DD02L-TABNAME, " | |||
| lv_illegal_path | TYPE DD02L, " | |||
| lv_len2 | TYPE SY-FDPOS, " 0 | |||
| lv_obj_state | TYPE DDREFSTRUC-STATE, " 'A' | |||
| lv_off1 | TYPE SY-FDPOS, " 0 | |||
| lv_off2 | TYPE SY-FDPOS, " 0 | |||
| lv_out_refresh | TYPE DDREFSTRUC-STATE, " 'X' | |||
| lv_out_to_in | TYPE DDREFSTRUC-STATE, " ' ' | |||
| lv_prid | TYPE SY-TABIX, " 0 | |||
| lv_refetch | TYPE DDREFSTRUC-STATE, " 'X' | |||
| lv_trace | TYPE SY-TABIX, " 0 | |||
| lv_par1 | TYPE SY, " ' ' | |||
| lv_class2 | TYPE DDREFSTRUC-CLASS, " 'DTEL' | |||
| lt_out_tab | TYPE STANDARD TABLE OF DDREFSTRUC, " | |||
| lv_type_missmatch | TYPE DDREFSTRUC, " | |||
| lv_par2 | TYPE DDREFSTRUC, " ' ' | |||
| lv_par3 | TYPE DDREFSTRUC, " ' ' | |||
| lv_from_index | TYPE SY-TABIX, " 0 | |||
| lv_to_index | TYPE SY-TABIX, " 0 | |||
| lv_dependency | TYPE DDREFSTRUC-STATE, " 'U' | |||
| lv_illegal_value | TYPE DDREFSTRUC, " | |||
| lv_direction | TYPE DDREFSTRUC-STATE, " '>' | |||
| lv_exp_struc | TYPE DD02L-TABNAME, " ' ' | |||
| lv_single_name | TYPE DDSYMTAB-NAME, " ' ' | |||
| lv_pointer1 | TYPE DDSYMTAB, " 0 | |||
| lv_pointer2 | TYPE DDSYMTAB, " 0 | |||
| lv_len1 | TYPE SY-FDPOS. " 0 |
|   CALL FUNCTION 'DD_NAVIGATOR_T' "Navigation betweeen object sets |
| EXPORTING | ||
| CLASS1 | = lv_class1 | |
| LEN2 | = lv_len2 | |
| OBJ_STATE | = lv_obj_state | |
| OFF1 | = lv_off1 | |
| OFF2 | = lv_off2 | |
| OUT_REFRESH | = lv_out_refresh | |
| OUT_TO_IN | = lv_out_to_in | |
| PRID | = lv_prid | |
| REFETCH | = lv_refetch | |
| TRACE | = lv_trace | |
| PAR1 | = lv_par1 | |
| CLASS2 | = lv_class2 | |
| PAR2 | = lv_par2 | |
| PAR3 | = lv_par3 | |
| FROM_INDEX | = lv_from_index | |
| TO_INDEX | = lv_to_index | |
| DEPENDENCY | = lv_dependency | |
| DIRECTION | = lv_direction | |
| EXP_STRUC | = lv_exp_struc | |
| SINGLE_NAME | = lv_single_name | |
| POINTER1 | = lv_pointer1 | |
| POINTER2 | = lv_pointer2 | |
| LEN1 | = lv_len1 | |
| IMPORTING | ||
| OUT_STRUC | = lv_out_struc | |
| TABLES | ||
| IN_TAB | = lt_in_tab | |
| OUT_TAB | = lt_out_tab | |
| EXCEPTIONS | ||
| ILLEGAL_PATH = 1 | ||
| TYPE_MISSMATCH = 2 | ||
| ILLEGAL_VALUE = 3 | ||
| . " DD_NAVIGATOR_T | ||
ABAP code using 7.40 inline data declarations to call FM DD_NAVIGATOR_T
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 CLASS FROM DDREFSTRUC INTO @DATA(ld_class1). | ||||
| DATA(ld_class1) | = 'DOMA'. | |||
| "SELECT single TABNAME FROM DD02L INTO @DATA(ld_out_struc). | ||||
| "SELECT single FDPOS FROM SY INTO @DATA(ld_len2). | ||||
| "SELECT single STATE FROM DDREFSTRUC INTO @DATA(ld_obj_state). | ||||
| DATA(ld_obj_state) | = 'A'. | |||
| "SELECT single FDPOS FROM SY INTO @DATA(ld_off1). | ||||
| "SELECT single FDPOS FROM SY INTO @DATA(ld_off2). | ||||
| "SELECT single STATE FROM DDREFSTRUC INTO @DATA(ld_out_refresh). | ||||
| DATA(ld_out_refresh) | = 'X'. | |||
| "SELECT single STATE FROM DDREFSTRUC INTO @DATA(ld_out_to_in). | ||||
| DATA(ld_out_to_in) | = ' '. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_prid). | ||||
| "SELECT single STATE FROM DDREFSTRUC INTO @DATA(ld_refetch). | ||||
| DATA(ld_refetch) | = 'X'. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_trace). | ||||
| DATA(ld_par1) | = ' '. | |||
| "SELECT single CLASS FROM DDREFSTRUC INTO @DATA(ld_class2). | ||||
| DATA(ld_class2) | = 'DTEL'. | |||
| DATA(ld_par2) | = ' '. | |||
| DATA(ld_par3) | = ' '. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_from_index). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_to_index). | ||||
| "SELECT single STATE FROM DDREFSTRUC INTO @DATA(ld_dependency). | ||||
| DATA(ld_dependency) | = 'U'. | |||
| "SELECT single STATE FROM DDREFSTRUC INTO @DATA(ld_direction). | ||||
| DATA(ld_direction) | = '>'. | |||
| "SELECT single TABNAME FROM DD02L INTO @DATA(ld_exp_struc). | ||||
| DATA(ld_exp_struc) | = ' '. | |||
| "SELECT single NAME FROM DDSYMTAB INTO @DATA(ld_single_name). | ||||
| DATA(ld_single_name) | = ' '. | |||
| "SELECT single FDPOS FROM SY INTO @DATA(ld_len1). | ||||
Search for further information about these or an SAP related objects