SAP FUNC_LOCATION_PREDECESSORS Function Module for NOTRANSL: Ermittlung der übergeordneten Plätze zu einem Technischen Platz









FUNC_LOCATION_PREDECESSORS is a standard func location predecessors SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Ermittlung der übergeordneten Plätze zu einem Technischen Platz 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 func location predecessors FM, simply by entering the name FUNC_LOCATION_PREDECESSORS into the relevant SAP transaction such as SE37 or SE38.

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



Function FUNC_LOCATION_PREDECESSORS 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 'FUNC_LOCATION_PREDECESSORS'"NOTRANSL: Ermittlung der übergeordneten Plätze zu einem Technischen Platz
EXPORTING
TPLNR = "Functional Location
* TPLNR_EXIT = ' ' "Functional Location
* SPRAS = SY-LANGU "Language Key
* TABSTRUCTURE = 'IFLOT' "Table Name
* BUFFER_BYPASS = ' ' "Yes/No (X/ )
* DYFIELD = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
LEVEL_FOUND = "ABAP System Field: Loop Index

TABLES
* IFLO_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
IFLOT_NOT_FOUND = 1 READ_ERROR = 2 STRUCTURE_NOT_POSSIBLE = 3 RECURSIVENESS_FOUND = 4
.



IMPORTING Parameters details for FUNC_LOCATION_PREDECESSORS

TPLNR - Functional Location

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

TPLNR_EXIT - Functional Location

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

SPRAS - Language Key

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

TABSTRUCTURE - Table Name

Data type: DD02D-TABNAME
Default: 'IFLOT'
Optional: Yes
Call by Reference: No ( called with pass by value option)

BUFFER_BYPASS - Yes/No (X/ )

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

DYFIELD - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXPORTING Parameters details for FUNC_LOCATION_PREDECESSORS

LEVEL_FOUND - ABAP System Field: Loop Index

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

TABLES Parameters details for FUNC_LOCATION_PREDECESSORS

IFLO_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXCEPTIONS details

IFLOT_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

READ_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

STRUCTURE_NOT_POSSIBLE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

RECURSIVENESS_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for FUNC_LOCATION_PREDECESSORS 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_tplnr  TYPE IFLO-TPLNR, "   
lt_iflo_tab  TYPE STANDARD TABLE OF IFLO, "   
lv_level_found  TYPE SY-INDEX, "   
lv_iflot_not_found  TYPE SY, "   
lv_read_error  TYPE SY, "   
lv_tplnr_exit  TYPE IFLO-TPLNR, "   SPACE
lv_spras  TYPE IFLO-SPRAS, "   SY-LANGU
lv_structure_not_possible  TYPE IFLO, "   
lv_tabstructure  TYPE DD02D-TABNAME, "   'IFLOT'
lv_recursiveness_found  TYPE DD02D, "   
lv_buffer_bypass  TYPE IREF-IIND, "   SPACE
lv_dyfield  TYPE IREF. "   SPACE

  CALL FUNCTION 'FUNC_LOCATION_PREDECESSORS'  "NOTRANSL: Ermittlung der übergeordneten Plätze zu einem Technischen Platz
    EXPORTING
         TPLNR = lv_tplnr
         TPLNR_EXIT = lv_tplnr_exit
         SPRAS = lv_spras
         TABSTRUCTURE = lv_tabstructure
         BUFFER_BYPASS = lv_buffer_bypass
         DYFIELD = lv_dyfield
    IMPORTING
         LEVEL_FOUND = lv_level_found
    TABLES
         IFLO_TAB = lt_iflo_tab
    EXCEPTIONS
        IFLOT_NOT_FOUND = 1
        READ_ERROR = 2
        STRUCTURE_NOT_POSSIBLE = 3
        RECURSIVENESS_FOUND = 4
. " FUNC_LOCATION_PREDECESSORS




ABAP code using 7.40 inline data declarations to call FM FUNC_LOCATION_PREDECESSORS

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 TPLNR FROM IFLO INTO @DATA(ld_tplnr).
 
 
"SELECT single INDEX FROM SY INTO @DATA(ld_level_found).
 
 
 
"SELECT single TPLNR FROM IFLO INTO @DATA(ld_tplnr_exit).
DATA(ld_tplnr_exit) = ' '.
 
"SELECT single SPRAS FROM IFLO INTO @DATA(ld_spras).
DATA(ld_spras) = SY-LANGU.
 
 
"SELECT single TABNAME FROM DD02D INTO @DATA(ld_tabstructure).
DATA(ld_tabstructure) = 'IFLOT'.
 
 
"SELECT single IIND FROM IREF INTO @DATA(ld_buffer_bypass).
DATA(ld_buffer_bypass) = ' '.
 
DATA(ld_dyfield) = ' '.
 


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!