SAP BAPI_FUNCLOC_CHANGE Function Module for PM BAPI: Change Functional Location









BAPI_FUNCLOC_CHANGE is a standard bapi funcloc change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for PM BAPI: Change Functional Location 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 bapi funcloc change FM, simply by entering the name BAPI_FUNCLOC_CHANGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: ITOB_BAPI_FL
Program Name: SAPLITOB_BAPI_FL
Main Program: SAPLITOB_BAPI_FL
Appliation area:
Release date: 03-Feb-2000
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_FUNCLOC_CHANGE 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 'BAPI_FUNCLOC_CHANGE'"PM BAPI: Change Functional Location
EXPORTING
FUNCTLOCATION = "Functional Location
DATA_GENERAL = "PM: BAPI Structure for ITOBAPI_CREATE + READ Fields
DATA_GENERALX = "PM: Flag Structure for BAPI_ITOB (For Change BAPIs)
DATA_SPECIFIC = "PM: BAPI Structure for ITOBAPI_CREATE_FL_ONLY + READ Fields
DATA_SPECIFICX = "PM: Flag Structure for BAPI_ITOB_FL_ONLY (Change BAPI)

IMPORTING
DATA_GENERAL_EXP = "PM: BAPI Structure for ITOBAPI_CREATE + READ Fields
DATA_SPECIFIC_EXP = "PM: BAPI Structure for ITOBAPI_CREATE_FL_ONLY + READ Fields
RETURN = "Return Parameter
.



IMPORTING Parameters details for BAPI_FUNCLOC_CHANGE

FUNCTLOCATION - Functional Location

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

DATA_GENERAL - PM: BAPI Structure for ITOBAPI_CREATE + READ Fields

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

DATA_GENERALX - PM: Flag Structure for BAPI_ITOB (For Change BAPIs)

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

DATA_SPECIFIC - PM: BAPI Structure for ITOBAPI_CREATE_FL_ONLY + READ Fields

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

DATA_SPECIFICX - PM: Flag Structure for BAPI_ITOB_FL_ONLY (Change BAPI)

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

EXPORTING Parameters details for BAPI_FUNCLOC_CHANGE

DATA_GENERAL_EXP - PM: BAPI Structure for ITOBAPI_CREATE + READ Fields

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

DATA_SPECIFIC_EXP - PM: BAPI Structure for ITOBAPI_CREATE_FL_ONLY + READ Fields

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

RETURN - Return Parameter

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

Copy and paste ABAP code example for BAPI_FUNCLOC_CHANGE 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_functlocation  TYPE BAPI_ITOB_PARMS-FUNCLOC_INT, "   
lv_data_general_exp  TYPE BAPI_ITOB, "   
lv_data_general  TYPE BAPI_ITOB, "   
lv_data_specific_exp  TYPE BAPI_ITOB_FL_ONLY, "   
lv_return  TYPE BAPIRET2, "   
lv_data_generalx  TYPE BAPI_ITOBX, "   
lv_data_specific  TYPE BAPI_ITOB_FL_ONLY, "   
lv_data_specificx  TYPE BAPI_ITOB_FL_ONLYX. "   

  CALL FUNCTION 'BAPI_FUNCLOC_CHANGE'  "PM BAPI: Change Functional Location
    EXPORTING
         FUNCTLOCATION = lv_functlocation
         DATA_GENERAL = lv_data_general
         DATA_GENERALX = lv_data_generalx
         DATA_SPECIFIC = lv_data_specific
         DATA_SPECIFICX = lv_data_specificx
    IMPORTING
         DATA_GENERAL_EXP = lv_data_general_exp
         DATA_SPECIFIC_EXP = lv_data_specific_exp
         RETURN = lv_return
. " BAPI_FUNCLOC_CHANGE




ABAP code using 7.40 inline data declarations to call FM BAPI_FUNCLOC_CHANGE

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 FUNCLOC_INT FROM BAPI_ITOB_PARMS INTO @DATA(ld_functlocation).
 
 
 
 
 
 
 
 


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!