Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

copy functional location with reference

Former Member
0 Likes
2,097

in sap we can create  functional location with reference using: IL01 .

we can create new functional location based on existing functional location. I need create same with using BAPI or Functional modules.

I was see create functional location:BAPI_FUNCLOC_CHANGE,

but I need create new functional location with reference of exist functional location.

please help me it urgent..

Regards

Praveen Cheatpally

7 REPLIES 7
Read only

Former Member
0 Likes
1,559

Hi Praveen,

Check the BAPI_FUNCLOC_CREATE

check BAPI_ITOB_FL_ONLY Structure and u find a field READ_REFERENCE_LOCATION filed here u pass the reference function location.

Read only

Former Member
0 Likes
1,559

Hi  Pattajoshi,

while create new functional location using IL01 using like in attachment file.

I need to uncheck some functionality while copy one functional location into another functional location.

it will not work with BAPI_FUNCLOC_CREATE.

Regards

Praveen Chetpally

Hi  Pattajoshi,

while create new functional location using IL01 using like in attachment file.

I need to uncheck some functionality while copy one functional location into another functional location.

it will not work with BAPI_FUNCLOC_CREATE.

Regards

Praveen Chetpally

Read only

0 Likes
1,559

Hi Praveen,

For ur requirement u can create BDC for IL01.else


If u want  BAPI then 1st  use BAPI_FUNCLOC_GETDETAIL for reference function location details and pass all the data to  BAPI_FUNCLOC_CREATE in the  respective field.

Regards,

Lingaraj

Read only

0 Likes
1,559

It will be better if you go with BDC

Read only

Former Member
0 Likes
1,559

Hi ,

Use this FM "PM_COPY_SUBOBJECTS" and then Call "BAPI_FUNCLOC_CREATE" for Create Functional Location with reference of other functional location .

also you can check this FM Source Code "ITOB_EQUIPMENT_CREATE_SING_REF" for how to use 

this FM "PM_COPY_SUBOBJECTS" like  which parameter are required to fill  , Commit Work ...etc...

Regard's

Smruti

Read only

Former Member
0 Likes
1,559

Hi Smruti Ranjan,

I was try with PM_COPY_SUBOBJECTS  functional module , it copying only classification with characteristics  data only. it not copy other parameters.

for testing :

1)  I create functional location il01.

2) used that new functional location and existing functional location

3) commit transaction

please suggest if any other F.M or BAPI is there....

Regards

Praveen

Read only

0 Likes
1,559

Hi praveen,

For ur requirement It will be better to create BDC.