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

BAPI_MATERIAL_SAVEREPLICA creating and changing data always

Former Member
0 Likes
847

Hello,

we are writing a program to extend a material across multiple plants and are using BAPI_MATERIAL_SAVEREPLICA to do this.

when called, the function module seems to be executing twice. Once to create the material's plant views as specified in the structures and then immediately after to change the same data. It is creating the data fine.. but then in some cases such as the accountign view.. when it goes to change the valatin type it erros as this field is no longer editable.

is this normal? surely there is a flag somewhere or i am not populating the tables correctly - am using function "INS" for all relevant structures.

any help greatly appreciated!

regards

Budgie.

3 REPLIES 3
Read only

jaideepsharma
Active Contributor
0 Likes
624

Hi,

Try using UPD instead of INS.

KR Jaideep,

Read only

0 Likes
624

thanks for the quick reply but changing to UPD did not work...

Read only

0 Likes
624

Hi NaughtyBudgie ,

For extending material master to other plants you can use this FM' BAPI_MATERIAL_SAVEDATA'.

It will works fine for you.

Regards,

Thiyagu