2008 Nov 19 8:09 AM
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!!!!!!!!!!!!!!!!
2008 Nov 19 8:24 AM
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
2008 Nov 19 9:05 AM
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
2008 Nov 27 8:09 AM
BAPI_MATERIAL_GETALL returns structures similar to BAPI_MATERIAL_SAVEDATA
2014 Aug 07 9:24 AM
Nice to find help, even in an "old" post !
Have a nice day,
Paskalo
2014 Aug 07 10:29 AM
Hi soumya,,
Use these bapi
'BAPI_MATERIAL_SAVEDATA'
If u want sample code share your mail id
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |