SAP OIJ_LOCATION_UPDATE Function Module for OIL-TSW : Location posting function









OIJ_LOCATION_UPDATE is a standard oij location update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for OIL-TSW : Location posting function 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 oij location update FM, simply by entering the name OIJ_LOCATION_UPDATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: OIJL
Program Name: SAPLOIJL
Main Program: SAPLOIJL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1



Function OIJ_LOCATION_UPDATE 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 'OIJ_LOCATION_UPDATE'"OIL-TSW : Location posting function
EXPORTING
I_OIJLOC = "
I_OIJLOC_FLAG = "
I_INTTAB_FLAG = "
I_PLOC_FLAG = "Transaction type
* I_RECOVER_DELETE = ' ' "Deletion indicator
* I_OIJTSLOC_TAB = "OIL-TSW: Structure to update OIJTSLOC table

TABLES
I_OIJLOCMAT_TAB = "
I_OIJLOCMAT_DELETE_TAB = "
I_OLD_OIJLOCMAT_TAB = "Holds Old OIJLOCMAT value
I_OIJRRA_TAB = "
I_PLANLOC_TAB = "OIL TSW: Multiple planning Locations structure
I_PLOC_DELETE_TAB = "OIL TSW: Multiple planning Locations structure
* I_OIJSDLOC_TAB = "OIL-TSW: Multiple sources/destinations of location
.



IMPORTING Parameters details for OIJ_LOCATION_UPDATE

I_OIJLOC -

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

I_OIJLOC_FLAG -

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

I_INTTAB_FLAG -

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

I_PLOC_FLAG - Transaction type

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

I_RECOVER_DELETE - Deletion indicator

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

I_OIJTSLOC_TAB - OIL-TSW: Structure to update OIJTSLOC table

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

TABLES Parameters details for OIJ_LOCATION_UPDATE

I_OIJLOCMAT_TAB -

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

I_OIJLOCMAT_DELETE_TAB -

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

I_OLD_OIJLOCMAT_TAB - Holds Old OIJLOCMAT value

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

I_OIJRRA_TAB -

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

I_PLANLOC_TAB - OIL TSW: Multiple planning Locations structure

Data type: OIJPLANLOC_STR
Optional: No
Call by Reference: Yes

I_PLOC_DELETE_TAB - OIL TSW: Multiple planning Locations structure

Data type: OIJPLANLOC_STR
Optional: No
Call by Reference: Yes

I_OIJSDLOC_TAB - OIL-TSW: Multiple sources/destinations of location

Data type: ROIJSDLOC
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for OIJ_LOCATION_UPDATE 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_i_oijloc  TYPE OIJLOC, "   
lt_i_oijlocmat_tab  TYPE STANDARD TABLE OF ROIJLOCMAT, "   
lv_i_oijloc_flag  TYPE T180-TRTYP, "   
lt_i_oijlocmat_delete_tab  TYPE STANDARD TABLE OF OIJLOCMAT, "   
lv_i_inttab_flag  TYPE T180-TRTYP, "   
lt_i_old_oijlocmat_tab  TYPE STANDARD TABLE OF OIJLOCMAT, "   
lv_i_ploc_flag  TYPE T180-TRTYP, "   
lt_i_oijrra_tab  TYPE STANDARD TABLE OF ROIJRRA, "   
lt_i_planloc_tab  TYPE STANDARD TABLE OF OIJPLANLOC_STR, "   
lv_i_recover_delete  TYPE ROIJSTAT-DELIND, "   SPACE
lv_i_oijtsloc_tab  TYPE ROIJTSLOC_T, "   
lt_i_ploc_delete_tab  TYPE STANDARD TABLE OF OIJPLANLOC_STR, "   
lt_i_oijsdloc_tab  TYPE STANDARD TABLE OF ROIJSDLOC. "   

  CALL FUNCTION 'OIJ_LOCATION_UPDATE'  "OIL-TSW : Location posting function
    EXPORTING
         I_OIJLOC = lv_i_oijloc
         I_OIJLOC_FLAG = lv_i_oijloc_flag
         I_INTTAB_FLAG = lv_i_inttab_flag
         I_PLOC_FLAG = lv_i_ploc_flag
         I_RECOVER_DELETE = lv_i_recover_delete
         I_OIJTSLOC_TAB = lv_i_oijtsloc_tab
    TABLES
         I_OIJLOCMAT_TAB = lt_i_oijlocmat_tab
         I_OIJLOCMAT_DELETE_TAB = lt_i_oijlocmat_delete_tab
         I_OLD_OIJLOCMAT_TAB = lt_i_old_oijlocmat_tab
         I_OIJRRA_TAB = lt_i_oijrra_tab
         I_PLANLOC_TAB = lt_i_planloc_tab
         I_PLOC_DELETE_TAB = lt_i_ploc_delete_tab
         I_OIJSDLOC_TAB = lt_i_oijsdloc_tab
. " OIJ_LOCATION_UPDATE




ABAP code using 7.40 inline data declarations to call FM OIJ_LOCATION_UPDATE

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 TRTYP FROM T180 INTO @DATA(ld_i_oijloc_flag).
 
 
"SELECT single TRTYP FROM T180 INTO @DATA(ld_i_inttab_flag).
 
 
"SELECT single TRTYP FROM T180 INTO @DATA(ld_i_ploc_flag).
 
 
 
"SELECT single DELIND FROM ROIJSTAT INTO @DATA(ld_i_recover_delete).
DATA(ld_i_recover_delete) = ' '.
 
 
 
 


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!