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 to Create a meterial from a template material

Former Member
0 Likes
3,432

Dear All,

I have a requirement to create a material, through a bapi.. But if there is a template material ( copy from material.. ) is given, the material should be created with the details of the given material except the basic data and Classification view. Can any one tell me how can i proceed with this?

I Can use BAPI_MATERIAL_GET_DETAIL, and the BAPI_MATERIAL_SAVEDATA. But how can the data be passed from one to another, as they have different structures? and will all the views be taken care of in this way? Please Help!!!!!!!!!!!!!!!!

Dear All,

I have a requirement to create a material, through a bapi.. But if there is a template material ( copy from material.. ) is given, the material should be created with the details of the given material except the basic data and Classification view. Can any one tell me how can i proceed with this?

I Can use BAPI_MATERIAL_GET_DETAIL, and the BAPI_MATERIAL_SAVEDATA. But how can the data be passed from one to another, as they have different structures? and will all the views be taken care of in this way? Please Help!!!!!!!!!!!!!!!!

5 REPLIES 5
Read only

arjun_subhash
Active Participant
0 Likes
1,516

Hi,

u can copy the output of BAPI_MATERIAL_GETDETAIL in a structure or itab and pass relevant values to the create material bapi.

thanks and regards

Arjun

Read only

Former Member
0 Likes
1,516

hi

you can try out these BAPI's

BAPI_STANDARDMATERIAL_CREATE

BAPI_MATERIAL_MAINTAINDATA_RT

BAPI_MATERIAL_GET_ALL to get out the data you need to copy

hope this helps

regards

Aakash

Read only

Former Member
0 Likes
1,516

BAPI_MATERIAL_GETALL returns structures similar to BAPI_MATERIAL_SAVEDATA

Read only

0 Likes
1,516

Nice to find help, even in an "old" post !

Have a nice day,

Paskalo

Read only

kabil_g
Active Participant
0 Likes
1,516

Hi soumya,,

Use these bapi

'BAPI_MATERIAL_SAVEDATA'


If u want sample code share your mail id