Copy Functional Location To Another

I was given the task to transfer the Functional Location and Equipment.

Can we copy a functional location with its equipment’s from one plant to another plant? If so, then what do we need in the target plant?

Answer

You can copy the FLoc structure via TCode IL04; however, you cannot copy the equipment.

Start by creating in the customizing all the objects depending on planning and maintenance plant: Company area, planer group, and location.

Then, create the new work center, and cost center for the new plant.

Download, from the functional location all the data depending on planning and the maintenance plant.

Do the same for the pieces of equipment if they are not installed on functional location.

At the first level of the FL, change the maintenance plant. Normally, the system changes all the data on all the sub level and EQ. Now you can reload on FL and/or EQ all the data depending on planning and maintenance plant.
 

I have a requirement from a client that he wants to copy the Functional location with its equipment from one plant to another plant if it is possible.

If yes, how can I accomplish  this?

Answer

Try transaction CC04:

  • Use a  filter to  display only  what you  need in the hierarchy;
  • From the hierarchy display, right mouse click on the node you need to copy;
  • From the  context  options  dialog, select  ‘Copy sub hierarchy’;
Test this thoroughly before using in your Production system as it is possible to create part of your structure. If SAP encounters a problem with an object, the rest of the structure will not be created.
 

Can anybody suggest a function module or a BAPI which can create a new functional location with reference to another functional location.

Answer

There is no direct FM available but you can use 2 FM to achieve the same.

1. BAPI_FUNCLOC_GETDETAIL  - Get the FL Details.

2. BAPI_FUNCLOC_CREATE  - Create the FL based on the Details 

You can take reference from below pseudo code:

data : data_specific type BAPI_ITOB_FL_ONLY.

data_specific-STRIND = Mention Functional location structure indicator
data_specific-CATEGORY = Mention Functional location category
data_specific-SUPFLOC = Mention reference functional location
data_specific-EQINSTALL = check or uncheck this as per your requirement

CALL FUNCTION 'BAPI_FUNCLOC_CREATE'
  EXPORTING
    external_number         = Provide your function location number to be created

    LABELING_SYSTEM         = provide Labeling System for Functional Locations
*    data_general            =
    data_specific           = pass data_specific instruction filled above

* IMPORTING
*   FUNCTLOCATION           =
*   DATA_GENERAL_EXP        =
*   DATA_SPECIFIC_EXP       =
*   RETURN                  =
          .

      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING
         WAIT          = 'X'.

SAP PM Tips

See Also

Have a SAP PM Problems?
SAP PM Forum - Do you have a SAP PM Question?

SAP Plant Maintenance Books
SAP PM Books - Certification, Interview Questions and Configuration

SAP PM
SAP PM Tips and Plant Maintenance Discussion Forum

Main Index
SAP ERP Modules, Basis, ABAP and Other IMG Stuff

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.