Fonction SAP AIP1_GET_PRPOS_SINGLE - Determine position/measure for index or object number

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_INDEX SYST-TABIX I 4 X Index
I_OBJNR IMZO-OBJNR C 22 X CO object number

Paramètre Reférence Type Long. Description
E_AUFKV AUFKV u 790 Order
E_FLG_LEAF C C 0
E_FLG_MEASURES C C 0 Ind: Measures exist for the position
E_FLG_REALMEAS C C 0
E_IDENT IMPU-POST1 C 40 Text (with indentation according to level)
E_IGNORE C C 0 Ind: Element to be ignored
E_IMAK IMAK u 421
E_IMAKT IMAKT u 116
E_IMPR IMPR u 416 Inv. prog. position
E_IMPU IMPU u 97 Text for inv. program position
E_INDEX SYST-TABIX I 4 Index
E_INDEX_POS SYST-TABIX I 4
E_OBART IMPS-OBART C 2 CO object type
E_OBJNR IMZO-OBJNR C 22 CO object number
E_POSIT BPGE-POSIT C 8
E_PROJ PROJ u 681 Project
E_PRPS PRPS u 991 WBS element
E_RAIPATTR RAIPATTR u 21
E_STREENODE STREENODE u 64
E_STUFE I I 4 Hierarchy level
E_STUFE_POS I I 4

Paramètre Reférence Long. Facultatif Description
ET_IMAKPGES RIMAKPGES 56 X
ET_IMZO IMZO 55 X
ET_IMZO_ALL IMZO 55 X
ET_ROPA IMIS_TYPE_TX_ROPA 0 X

Exception Description
NOT_FOUND I_INDEX does not indicate a position/measure

Functionality
The function module determines the element that belongs to indexI_INDEX or to the CO object number I_OBJNR. It makes this determinationfrom the "naturally ordered" internal table of buffered elements. Thesystem returns the hierarchy level/short text of the element inE_STUFE/E_IDENT. The system returns the index/object number/object typeof the element in E_INDEX/E_OBJNR/E_OBART. If you are working with apoint of entry element, this point of entry element defines level '1'.
For external processing, the system returns the investment programposition in E_IMPR.
The indicator I_INDEX/I_OBJNR can indicate
1.) an investment program position or
2.) an operative object
In the first instance, the system returns the investment programposition in E_IMPR. E_OBART is set to 'IP'.
In the second instance, the system returns the program position that isdirectly above the object in the hierarchy, in E_IMPR. E_OBART containsthe object type of the operative object. The system also returns thestructure AUFKV/PRPS that corresponds to the obect type, for theoperative object.
For external processing, all operative objects are buffered, but theyare not displayed. If I_INDEX/I_OBJNR indicates such an object duringexternal processing, E_IGNORE is set to 'X'.
During internal processing, all operative objects are also buffered.However, the system only displays the operative objects of theindicated object type. If, during internal processing, I_INDEX/I_OBJNRindicates an operative object that does not belong to the indicatedobject type, E_IGNORE is set to 'X'.