Please also have a look in our OnlineHelp for further information.
This sample shows how to create a Functional Location. The Functional Location(External Number) must match the structure definied in the exporting parameter STRIND. You can export the default value for the superior functional location under data_specific - SUPFLOC.
To change a Functional Location replace the function “BAPI_FUNCLOC_CREATE” with the function “BAPI_FUNCLOC_CHANGE”. To get the function running a connection object (Con) must be available.