SAP UPDATE_ORG_STRUCTURE Function Module for









UPDATE_ORG_STRUCTURE is a standard update org structure 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 update org structure FM, simply by entering the name UPDATE_ORG_STRUCTURE into the relevant SAP transaction such as SE37 or SE38.

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



Function UPDATE_ORG_STRUCTURE 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 'UPDATE_ORG_STRUCTURE'"
EXPORTING
RHI_INDEX = "
* PSPAR_SUPDG = "
* DIALOG_CHECK = "
* POSITION = "
* PERCENTAGE = "

IMPORTING
RHI_SUBRC = "

TABLES
RHI_SELTAB = "
* XPLOG_TAB = "
* POSITION_TAB = "
.



IMPORTING Parameters details for UPDATE_ORG_STRUCTURE

RHI_INDEX -

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

PSPAR_SUPDG -

Data type: PSPAR-SUPDG
Optional: Yes
Call by Reference: No ( called with pass by value option)

DIALOG_CHECK -

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

POSITION -

Data type: P1000-OBJID
Optional: Yes
Call by Reference: No ( called with pass by value option)

PERCENTAGE -

Data type: P1001-PROZT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for UPDATE_ORG_STRUCTURE

RHI_SUBRC -

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

TABLES Parameters details for UPDATE_ORG_STRUCTURE

RHI_SELTAB -

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

XPLOG_TAB -

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

POSITION_TAB -

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

Copy and paste ABAP code example for UPDATE_ORG_STRUCTURE 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_rhi_index  TYPE SY-INDEX, "   
lv_rhi_subrc  TYPE SY-SUBRC, "   
lt_rhi_seltab  TYPE STANDARD TABLE OF PRELO, "   
lt_xplog_tab  TYPE STANDARD TABLE OF HRDBTAB, "   
lv_pspar_supdg  TYPE PSPAR-SUPDG, "   
lv_dialog_check  TYPE SY-BATCH, "   
lt_position_tab  TYPE STANDARD TABLE OF HRI_POSITION_TAB, "   
lv_position  TYPE P1000-OBJID, "   
lv_percentage  TYPE P1001-PROZT. "   

  CALL FUNCTION 'UPDATE_ORG_STRUCTURE'  "
    EXPORTING
         RHI_INDEX = lv_rhi_index
         PSPAR_SUPDG = lv_pspar_supdg
         DIALOG_CHECK = lv_dialog_check
         POSITION = lv_position
         PERCENTAGE = lv_percentage
    IMPORTING
         RHI_SUBRC = lv_rhi_subrc
    TABLES
         RHI_SELTAB = lt_rhi_seltab
         XPLOG_TAB = lt_xplog_tab
         POSITION_TAB = lt_position_tab
. " UPDATE_ORG_STRUCTURE




ABAP code using 7.40 inline data declarations to call FM UPDATE_ORG_STRUCTURE

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 INDEX FROM SY INTO @DATA(ld_rhi_index).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_rhi_subrc).
 
 
 
"SELECT single SUPDG FROM PSPAR INTO @DATA(ld_pspar_supdg).
 
"SELECT single BATCH FROM SY INTO @DATA(ld_dialog_check).
 
 
"SELECT single OBJID FROM P1000 INTO @DATA(ld_position).
 
"SELECT single PROZT FROM P1001 INTO @DATA(ld_percentage).
 


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!