SAP FMHR_POS_FROM_HIERARCHY_LEVEL Function Module for









FMHR_POS_FROM_HIERARCHY_LEVEL is a standard fmhr pos from hierarchy level 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 fmhr pos from hierarchy level FM, simply by entering the name FMHR_POS_FROM_HIERARCHY_LEVEL into the relevant SAP transaction such as SE37 or SE38.

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



Function FMHR_POS_FROM_HIERARCHY_LEVEL 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 'FMHR_POS_FROM_HIERARCHY_LEVEL'"
EXPORTING
IP_FIKRS = "
* IP_PARENT_POS = ' ' "
* IP_POSHIVERS = 'SAP' "
* IP_FLG_GET_NODE = ' ' "
* IP_VALID_DATE = SY-DATUM "

IMPORTING
OP_CNT_FOUND = "
OP_CNT_KONT_FOUND = "
OP_CNT_VERD_FOUND = "

TABLES
T_GET_FIPOS = "
.



IMPORTING Parameters details for FMHR_POS_FROM_HIERARCHY_LEVEL

IP_FIKRS -

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

IP_PARENT_POS -

Data type: FMHIPOS-PARENT_POS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IP_POSHIVERS -

Data type: FMHIPOS-POSHIVERS
Default: 'SAP'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IP_FLG_GET_NODE -

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

IP_VALID_DATE -

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

EXPORTING Parameters details for FMHR_POS_FROM_HIERARCHY_LEVEL

OP_CNT_FOUND -

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

OP_CNT_KONT_FOUND -

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

OP_CNT_VERD_FOUND -

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

TABLES Parameters details for FMHR_POS_FROM_HIERARCHY_LEVEL

T_GET_FIPOS -

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

Copy and paste ABAP code example for FMHR_POS_FROM_HIERARCHY_LEVEL 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_ip_fikrs  TYPE FM01-FIKRS, "   
lt_t_get_fipos  TYPE STANDARD TABLE OF IFMPTRNODE, "   
lv_op_cnt_found  TYPE IFMPTRNODE, "   
lv_ip_parent_pos  TYPE FMHIPOS-PARENT_POS, "   SPACE
lv_op_cnt_kont_found  TYPE FMHIPOS, "   
lv_ip_poshivers  TYPE FMHIPOS-POSHIVERS, "   'SAP'
lv_op_cnt_verd_found  TYPE FMHIPOS, "   
lv_ip_flg_get_node  TYPE FMHIPOS, "   SPACE
lv_ip_valid_date  TYPE SY-DATUM. "   SY-DATUM

  CALL FUNCTION 'FMHR_POS_FROM_HIERARCHY_LEVEL'  "
    EXPORTING
         IP_FIKRS = lv_ip_fikrs
         IP_PARENT_POS = lv_ip_parent_pos
         IP_POSHIVERS = lv_ip_poshivers
         IP_FLG_GET_NODE = lv_ip_flg_get_node
         IP_VALID_DATE = lv_ip_valid_date
    IMPORTING
         OP_CNT_FOUND = lv_op_cnt_found
         OP_CNT_KONT_FOUND = lv_op_cnt_kont_found
         OP_CNT_VERD_FOUND = lv_op_cnt_verd_found
    TABLES
         T_GET_FIPOS = lt_t_get_fipos
. " FMHR_POS_FROM_HIERARCHY_LEVEL




ABAP code using 7.40 inline data declarations to call FM FMHR_POS_FROM_HIERARCHY_LEVEL

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 FIKRS FROM FM01 INTO @DATA(ld_ip_fikrs).
 
 
 
"SELECT single PARENT_POS FROM FMHIPOS INTO @DATA(ld_ip_parent_pos).
DATA(ld_ip_parent_pos) = ' '.
 
 
"SELECT single POSHIVERS FROM FMHIPOS INTO @DATA(ld_ip_poshivers).
DATA(ld_ip_poshivers) = 'SAP'.
 
 
DATA(ld_ip_flg_get_node) = ' '.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_ip_valid_date).
DATA(ld_ip_valid_date) = SY-DATUM.
 


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!