SAP ISH_N2_SHIFT_OBJ_BUILD_TREE Function Module for









ISH_N2_SHIFT_OBJ_BUILD_TREE is a standard ish n2 shift obj build tree SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ish n2 shift obj build tree FM, simply by entering the name ISH_N2_SHIFT_OBJ_BUILD_TREE into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_N2_SHIFT_OBJ_BUILD_TREE 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 'ISH_N2_SHIFT_OBJ_BUILD_TREE'"
EXPORTING
I_EINRI = "
I_FALNR = "
* I_LFDNR = "
I_OBJ_TYPE = "
* IT_OBJ_ID = "
IT_OBJ_TAB = "
I_SHIFTMODE = "
I_PROCESS = "
I_SOURCE_OR_DEST = "

CHANGING
CT_TREE_NODES = "
CT_TREE_ITEMS = "
C_ERRORHANDLER = "
.



IMPORTING Parameters details for ISH_N2_SHIFT_OBJ_BUILD_TREE

I_EINRI -

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

I_FALNR -

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

I_LFDNR -

Data type: LFDBEW
Optional: Yes
Call by Reference: Yes

I_OBJ_TYPE -

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

IT_OBJ_ID -

Data type: ISH_T_SHIFT_ID
Optional: Yes
Call by Reference: Yes

IT_OBJ_TAB -

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

I_SHIFTMODE -

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

I_PROCESS -

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

I_SOURCE_OR_DEST -

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

CHANGING Parameters details for ISH_N2_SHIFT_OBJ_BUILD_TREE

CT_TREE_NODES -

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

CT_TREE_ITEMS -

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

C_ERRORHANDLER -

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

Copy and paste ABAP code example for ISH_N2_SHIFT_OBJ_BUILD_TREE 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_einri  TYPE EINRI, "   
lv_ct_tree_nodes  TYPE TREEV_NTAB, "   
lv_i_falnr  TYPE FALNR, "   
lv_ct_tree_items  TYPE ISH_T_SHIFT_ITEM, "   
lv_i_lfdnr  TYPE LFDBEW, "   
lv_c_errorhandler  TYPE CL_ISHMED_ERRORHANDLING, "   
lv_i_obj_type  TYPE ISH_SHIFT_TYPE, "   
lv_it_obj_id  TYPE ISH_T_SHIFT_ID, "   
lv_it_obj_tab  TYPE ISH_T_SHIFT_OBJECT, "   
lv_i_shiftmode  TYPE ISH_SHIFTMODE, "   
lv_i_process  TYPE STRING, "   
lv_i_source_or_dest  TYPE ISH_SHIFT_TARGET. "   

  CALL FUNCTION 'ISH_N2_SHIFT_OBJ_BUILD_TREE'  "
    EXPORTING
         I_EINRI = lv_i_einri
         I_FALNR = lv_i_falnr
         I_LFDNR = lv_i_lfdnr
         I_OBJ_TYPE = lv_i_obj_type
         IT_OBJ_ID = lv_it_obj_id
         IT_OBJ_TAB = lv_it_obj_tab
         I_SHIFTMODE = lv_i_shiftmode
         I_PROCESS = lv_i_process
         I_SOURCE_OR_DEST = lv_i_source_or_dest
    CHANGING
         CT_TREE_NODES = lv_ct_tree_nodes
         CT_TREE_ITEMS = lv_ct_tree_items
         C_ERRORHANDLER = lv_c_errorhandler
. " ISH_N2_SHIFT_OBJ_BUILD_TREE




ABAP code using 7.40 inline data declarations to call FM ISH_N2_SHIFT_OBJ_BUILD_TREE

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.

 
 
 
 
 
 
 
 
 
 
 
 


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!