BAPI_FUNCLOC_STRUC_ASSIGN is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name BAPI_FUNCLOC_STRUC_ASSIGN into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
ITOB_BAPI_FL
Released Date:
30.08.2007
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_FUNCLOC_STRUC_ASSIGN' "Assign Superior Functional Location
EXPORTING
functlocation = " bapi_itob_parms-funcloc_int Functional Location
functlocation_superior = " bapi_itob_fl_only-supfloc Superior functional location
* position = " bapi_itob_fl_only-posnr Position in superior technical object
valid_from_iso = " bapi_itob_parms_time-timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
IMPORTING
data_general_exp = " bapi_itob PM: BAPI Structure for ITOBAPI_CREATE + READ Fields
data_specific_exp = " bapi_itob_fl_only PM: BAPI Structure for ITOBAPI_CREATE_FL_ONLY + READ Fields
TABLES
return = " bapiret2 Table with BAPI Return Information
. " BAPI_FUNCLOC_STRUC_ASSIGN
The ABAP code below is a full code listing to execute function module BAPI_FUNCLOC_STRUC_ASSIGN including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_data_general_exp | TYPE BAPI_ITOB , |
| ld_data_specific_exp | TYPE BAPI_ITOB_FL_ONLY , |
| it_return | TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM |
| wa_return | LIKE LINE OF it_return . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_data_general_exp | TYPE BAPI_ITOB , |
| ld_functlocation | TYPE BAPI_ITOB_PARMS-FUNCLOC_INT , |
| it_return | TYPE STANDARD TABLE OF BAPIRET2 , |
| wa_return | LIKE LINE OF it_return, |
| ld_data_specific_exp | TYPE BAPI_ITOB_FL_ONLY , |
| ld_functlocation_superior | TYPE BAPI_ITOB_FL_ONLY-SUPFLOC , |
| ld_position | TYPE BAPI_ITOB_FL_ONLY-POSNR , |
| ld_valid_from_iso | TYPE BAPI_ITOB_PARMS_TIME-TIMESTAMP . |
You can use this BAPI to assign a higher-level functional location to a
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_FUNCLOC_STRUC_ASSIGN or its description.
BAPI_FUNCLOC_STRUC_ASSIGN - Assign Superior Functional Location BAPI_FUNCLOC_SET_LABEL_SYSTEM - BAPI_FUNCLOC_SAVEREPLICA - BAPI for Mass Maintenance of Functional Locations BAPI_FUNCLOC_INHERIT_CHANGE - Change Inheritance Indicator of Functional Location BAPI_FUNCLOC_GETSTATUS - PM BAPI: Read (System-/User-) Status of Functional Location BAPI_FUNCLOC_GETLIST - BAPI PM: Read List of Functional Locations (with Internal Key)