SAP ISP_GET_STATID_FROM_STRUCTIKO Function Module for IS-M/AM: Determine ID in Statis.Hierarchy for Cont.Comp.fr.Structure Hier.









ISP_GET_STATID_FROM_STRUCTIKO is a standard isp get statid from structiko SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/AM: Determine ID in Statis.Hierarchy for Cont.Comp.fr.Structure Hier. 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 isp get statid from structiko FM, simply by entering the name ISP_GET_STATID_FROM_STRUCTIKO into the relevant SAP transaction such as SE37 or SE38.

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



Function ISP_GET_STATID_FROM_STRUCTIKO 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 'ISP_GET_STATID_FROM_STRUCTIKO'"IS-M/AM: Determine ID in Statis.Hierarchy for Cont.Comp.fr.Structure Hier.
EXPORTING
IKO = "
IKO_HIEVAR = "
DATE = "Date
IKO_FIRST_LEVEL = "

TABLES
ID = "
TREE_OF_DOUBLES = "

EXCEPTIONS
VERSION_NOT_FOUND = 1 VERSION_NOT_DEFINITE = 2 ERROR_IN_HIERARCHY = 3
.



IMPORTING Parameters details for ISP_GET_STATID_FROM_STRUCTIKO

IKO -

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

IKO_HIEVAR -

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

DATE - Date

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

IKO_FIRST_LEVEL -

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

TABLES Parameters details for ISP_GET_STATID_FROM_STRUCTIKO

ID -

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

TREE_OF_DOUBLES -

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

EXCEPTIONS details

VERSION_NOT_FOUND -

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

VERSION_NOT_DEFINITE -

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

ERROR_IN_HIERARCHY -

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

Copy and paste ABAP code example for ISP_GET_STATID_FROM_STRUCTIKO 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:
lt_id  TYPE STANDARD TABLE OF JJTIKOHY, "   
lv_iko  TYPE JJTIKO-INHALTSKOM, "   
lv_version_not_found  TYPE JJTIKO, "   
lv_iko_hievar  TYPE JJTIKOHY-IKO_HIEVAR, "   
lt_tree_of_doubles  TYPE STANDARD TABLE OF JJTIKOHY, "   
lv_version_not_definite  TYPE JJTIKOHY, "   
lv_date  TYPE SY-DATUM, "   
lv_error_in_hierarchy  TYPE SY, "   
lv_iko_first_level  TYPE JJTIKO-INHALTSKOM. "   

  CALL FUNCTION 'ISP_GET_STATID_FROM_STRUCTIKO'  "IS-M/AM: Determine ID in Statis.Hierarchy for Cont.Comp.fr.Structure Hier.
    EXPORTING
         IKO = lv_iko
         IKO_HIEVAR = lv_iko_hievar
         DATE = lv_date
         IKO_FIRST_LEVEL = lv_iko_first_level
    TABLES
         ID = lt_id
         TREE_OF_DOUBLES = lt_tree_of_doubles
    EXCEPTIONS
        VERSION_NOT_FOUND = 1
        VERSION_NOT_DEFINITE = 2
        ERROR_IN_HIERARCHY = 3
. " ISP_GET_STATID_FROM_STRUCTIKO




ABAP code using 7.40 inline data declarations to call FM ISP_GET_STATID_FROM_STRUCTIKO

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 INHALTSKOM FROM JJTIKO INTO @DATA(ld_iko).
 
 
"SELECT single IKO_HIEVAR FROM JJTIKOHY INTO @DATA(ld_iko_hievar).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_date).
 
 
"SELECT single INHALTSKOM FROM JJTIKO INTO @DATA(ld_iko_first_level).
 


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!