SAP AICH_PROG_HIER_REPLICATE Function Module for









AICH_PROG_HIER_REPLICATE is a standard aich prog hier replicate 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 aich prog hier replicate FM, simply by entering the name AICH_PROG_HIER_REPLICATE into the relevant SAP transaction such as SE37 or SE38.

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



Function AICH_PROG_HIER_REPLICATE 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 'AICH_PROG_HIER_REPLICATE'"
EXPORTING
I_COMPR_VRSN = "
I_INV_PROG = "
I_APPR_YEAR = "
* I_LANGU = SY-LANGU "
* I_FLG_ALL_LANGU = 'X' "
* I_FLG_UPDATE_HEADER = 'X' "

EXCEPTIONS
INPUT_INCOMPLETE = 1 AUTHORITY_MISSING = 2 HIERARCHY_ALREADY_EXISTING = 3 OWN_LOGSYSTEM_NOT_ALLOWED = 4 ENQUEUE_FAILED = 5 PROGRAM_NOT_FOUND = 6 NO_HIERARCHY_FOUND = 7
.



IMPORTING Parameters details for AICH_PROG_HIER_REPLICATE

I_COMPR_VRSN -

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

I_INV_PROG -

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

I_APPR_YEAR -

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

I_LANGU -

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

I_FLG_ALL_LANGU -

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

I_FLG_UPDATE_HEADER -

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

EXCEPTIONS details

INPUT_INCOMPLETE -

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

AUTHORITY_MISSING -

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

HIERARCHY_ALREADY_EXISTING -

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

OWN_LOGSYSTEM_NOT_ALLOWED -

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

ENQUEUE_FAILED -

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

PROGRAM_NOT_FOUND -

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

NO_HIERARCHY_FOUND -

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

Copy and paste ABAP code example for AICH_PROG_HIER_REPLICATE 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_compr_vrsn  TYPE IMCHIE-COMPR_VRSN, "   
lv_input_incomplete  TYPE IMCHIE, "   
lv_i_inv_prog  TYPE IMCHIE-INV_PROG, "   
lv_authority_missing  TYPE IMCHIE, "   
lv_i_appr_year  TYPE IMCHIE-APPR_YEAR, "   
lv_hierarchy_already_existing  TYPE IMCHIE, "   
lv_i_langu  TYPE IMCEPPT-LANGU, "   SY-LANGU
lv_own_logsystem_not_allowed  TYPE IMCEPPT, "   
lv_enqueue_failed  TYPE IMCEPPT, "   
lv_i_flg_all_langu  TYPE IMIS_TYPE_FLG, "   'X'
lv_program_not_found  TYPE IMIS_TYPE_FLG, "   
lv_i_flg_update_header  TYPE IMIS_TYPE_FLG, "   'X'
lv_no_hierarchy_found  TYPE IMIS_TYPE_FLG. "   

  CALL FUNCTION 'AICH_PROG_HIER_REPLICATE'  "
    EXPORTING
         I_COMPR_VRSN = lv_i_compr_vrsn
         I_INV_PROG = lv_i_inv_prog
         I_APPR_YEAR = lv_i_appr_year
         I_LANGU = lv_i_langu
         I_FLG_ALL_LANGU = lv_i_flg_all_langu
         I_FLG_UPDATE_HEADER = lv_i_flg_update_header
    EXCEPTIONS
        INPUT_INCOMPLETE = 1
        AUTHORITY_MISSING = 2
        HIERARCHY_ALREADY_EXISTING = 3
        OWN_LOGSYSTEM_NOT_ALLOWED = 4
        ENQUEUE_FAILED = 5
        PROGRAM_NOT_FOUND = 6
        NO_HIERARCHY_FOUND = 7
. " AICH_PROG_HIER_REPLICATE




ABAP code using 7.40 inline data declarations to call FM AICH_PROG_HIER_REPLICATE

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 COMPR_VRSN FROM IMCHIE INTO @DATA(ld_i_compr_vrsn).
 
 
"SELECT single INV_PROG FROM IMCHIE INTO @DATA(ld_i_inv_prog).
 
 
"SELECT single APPR_YEAR FROM IMCHIE INTO @DATA(ld_i_appr_year).
 
 
"SELECT single LANGU FROM IMCEPPT INTO @DATA(ld_i_langu).
DATA(ld_i_langu) = SY-LANGU.
 
 
 
DATA(ld_i_flg_all_langu) = 'X'.
 
 
DATA(ld_i_flg_update_header) = 'X'.
 
 


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!