SAP OIU_DN_EXPAND Function Module for Delivery Network Expand









OIU_DN_EXPAND is a standard oiu dn expand SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Delivery Network Expand 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 oiu dn expand FM, simply by entering the name OIU_DN_EXPAND into the relevant SAP transaction such as SE37 or SE38.

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



Function OIU_DN_EXPAND 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 'OIU_DN_EXPAND'"Delivery Network Expand
EXPORTING
I_DN = "Delivery Network
* I_EFF_DT = SY-DATUM "Production Date
* I_STARTING_MP = ' ' "Starting Measurement Point
* I_SHOW_RLF_CP = ' ' "Show RLF consolidation points

IMPORTING
E_REF_NO = "Number of the expanded Network
E_T_FDN = "A table of Measurement Points

EXCEPTIONS
DN_NOT_FOUND = 1 NO_FDN_FOUND = 2 MANY_FDN_FOUND = 3 LOOP_ERROR = 4
.



IMPORTING Parameters details for OIU_DN_EXPAND

I_DN - Delivery Network

Data type: OIU_PR_NODE_DN-DN_NO
Optional: No
Call by Reference: Yes

I_EFF_DT - Production Date

Data type: OIU_PR_DN_LINK-EFF_FROM_DT
Default: SY-DATUM
Optional: Yes
Call by Reference: Yes

I_STARTING_MP - Starting Measurement Point

Data type: OIU_PR_MP-MP_NO
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_SHOW_RLF_CP - Show RLF consolidation points

Data type: SY-INPUT
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for OIU_DN_EXPAND

E_REF_NO - Number of the expanded Network

Data type: SY-SUBRC
Optional: No
Call by Reference: Yes

E_T_FDN - A table of Measurement Points

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

EXCEPTIONS details

DN_NOT_FOUND - Object not found

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

NO_FDN_FOUND - No Furthest Downstream Node found

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

MANY_FDN_FOUND - More than one Furthest Downstream Node found

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

LOOP_ERROR - The network is not connected correctly

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIU_DN_EXPAND 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_dn  TYPE OIU_PR_NODE_DN-DN_NO, "   
lv_e_ref_no  TYPE SY-SUBRC, "   
lv_dn_not_found  TYPE SY, "   
lv_e_t_fdn  TYPE OIUPR_MP_TYPE, "   
lv_i_eff_dt  TYPE OIU_PR_DN_LINK-EFF_FROM_DT, "   SY-DATUM
lv_no_fdn_found  TYPE OIU_PR_DN_LINK, "   
lv_i_starting_mp  TYPE OIU_PR_MP-MP_NO, "   SPACE
lv_many_fdn_found  TYPE OIU_PR_MP, "   
lv_loop_error  TYPE OIU_PR_MP, "   
lv_i_show_rlf_cp  TYPE SY-INPUT. "   SPACE

  CALL FUNCTION 'OIU_DN_EXPAND'  "Delivery Network Expand
    EXPORTING
         I_DN = lv_i_dn
         I_EFF_DT = lv_i_eff_dt
         I_STARTING_MP = lv_i_starting_mp
         I_SHOW_RLF_CP = lv_i_show_rlf_cp
    IMPORTING
         E_REF_NO = lv_e_ref_no
         E_T_FDN = lv_e_t_fdn
    EXCEPTIONS
        DN_NOT_FOUND = 1
        NO_FDN_FOUND = 2
        MANY_FDN_FOUND = 3
        LOOP_ERROR = 4
. " OIU_DN_EXPAND




ABAP code using 7.40 inline data declarations to call FM OIU_DN_EXPAND

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 DN_NO FROM OIU_PR_NODE_DN INTO @DATA(ld_i_dn).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_ref_no).
 
 
 
"SELECT single EFF_FROM_DT FROM OIU_PR_DN_LINK INTO @DATA(ld_i_eff_dt).
DATA(ld_i_eff_dt) = SY-DATUM.
 
 
"SELECT single MP_NO FROM OIU_PR_MP INTO @DATA(ld_i_starting_mp).
DATA(ld_i_starting_mp) = ' '.
 
 
 
"SELECT single INPUT FROM SY INTO @DATA(ld_i_show_rlf_cp).
DATA(ld_i_show_rlf_cp) = ' '.
 


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!