SAP REF_LOCATION_PREDECESSORS Function Module for









REF_LOCATION_PREDECESSORS is a standard ref 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 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 ref location predecessors FM, simply by entering the name REF_LOCATION_PREDECESSORS into the relevant SAP transaction such as SE37 or SE38.

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



Function REF_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 'REF_LOCATION_PREDECESSORS'"
EXPORTING
TRPNR = "Reference functional location
* TRPNR_EXIT = ' ' "Reference functional location
* SPRAS = SY-LANGU "Language Key
* TABSTRUCTURE = 'IRLOT' "Table Name
* BUFFER_BYPASS = ' ' "Yes/No (X/ )
* DYFIELD = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
LEVEL_FOUND = "ABAP System Field: Loop Index

TABLES
IRLO_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IRLOTH_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
IRLOT_NOT_FOUND = 1 STRUCTURE_NOT_POSSIBLE = 2 RECURSIVENESS_FOUND = 3
.



IMPORTING Parameters details for REF_LOCATION_PREDECESSORS

TRPNR - Reference functional location

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

TRPNR_EXIT - Reference functional location

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

SPRAS - Language Key

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

TABSTRUCTURE - Table Name

Data type: DD02D-TABNAME
Default: 'IRLOT'
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 REF_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 REF_LOCATION_PREDECESSORS

IRLO_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

IRLOTH_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

IRLOT_NOT_FOUND - 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 REF_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_trpnr  TYPE IRLO-TRPNR, "   
lt_irlo_tab  TYPE STANDARD TABLE OF IRLO, "   
lv_level_found  TYPE SY-INDEX, "   
lv_irlot_not_found  TYPE SY, "   
lt_irloth_tab  TYPE STANDARD TABLE OF SY, "   
lv_trpnr_exit  TYPE IRLO-TRPNR, "   SPACE
lv_structure_not_possible  TYPE IRLO, "   
lv_spras  TYPE IRLO-SPRAS, "   SY-LANGU
lv_recursiveness_found  TYPE IRLO, "   
lv_tabstructure  TYPE DD02D-TABNAME, "   'IRLOT'
lv_buffer_bypass  TYPE IREF-IIND, "   SPACE
lv_dyfield  TYPE IREF. "   SPACE

  CALL FUNCTION 'REF_LOCATION_PREDECESSORS'  "
    EXPORTING
         TRPNR = lv_trpnr
         TRPNR_EXIT = lv_trpnr_exit
         SPRAS = lv_spras
         TABSTRUCTURE = lv_tabstructure
         BUFFER_BYPASS = lv_buffer_bypass
         DYFIELD = lv_dyfield
    IMPORTING
         LEVEL_FOUND = lv_level_found
    TABLES
         IRLO_TAB = lt_irlo_tab
         IRLOTH_TAB = lt_irloth_tab
    EXCEPTIONS
        IRLOT_NOT_FOUND = 1
        STRUCTURE_NOT_POSSIBLE = 2
        RECURSIVENESS_FOUND = 3
. " REF_LOCATION_PREDECESSORS




ABAP code using 7.40 inline data declarations to call FM REF_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 TRPNR FROM IRLO INTO @DATA(ld_trpnr).
 
 
"SELECT single INDEX FROM SY INTO @DATA(ld_level_found).
 
 
 
"SELECT single TRPNR FROM IRLO INTO @DATA(ld_trpnr_exit).
DATA(ld_trpnr_exit) = ' '.
 
 
"SELECT single SPRAS FROM IRLO INTO @DATA(ld_spras).
DATA(ld_spras) = SY-LANGU.
 
 
"SELECT single TABNAME FROM DD02D INTO @DATA(ld_tabstructure).
DATA(ld_tabstructure) = 'IRLOT'.
 
"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!