‎2009 Jan 19 12:20 PM
Hi Friends,
I have to select all the fields of mm01 transaction and upload the data according to material type using recoding technique i have to upload the data i.e, My program has to select respective views according to material type.
If u find correct procedure please help me.
Thanks and regards,
pavani.
‎2009 Jan 19 6:04 PM
Hi Pavani,
As per my understanding ur requirement is to upload Material's with different view's, right?.
I would suggest you, If you have a data in XL format filter it then upload the data one by one beased on the view's.
Other Option is:
You can use Standard BAPI for creation of Material. Go to Se37 and Type BAPI_* then F4 key.
Stnd BAPI is - BAPI_MATERIAL_CREATE. better look for the latest BAPI for this using F4 help as SAP always keeps oldest version of BAPI.
You will get list of BAPI's Choose your BAPI for creating Material.
Go through the documentation of BAPI carefully you will come to know the Parameters you need to Pass.
If you are new to BAPI's pls feel free to revert.
Regards,
Vikas
‎2009 Jan 19 12:23 PM
for this you can use BAPI or better to use LSMW method using BAPI
‎2009 Jan 19 1:29 PM
‎2009 Jan 19 6:04 PM
Hi Pavani,
As per my understanding ur requirement is to upload Material's with different view's, right?.
I would suggest you, If you have a data in XL format filter it then upload the data one by one beased on the view's.
Other Option is:
You can use Standard BAPI for creation of Material. Go to Se37 and Type BAPI_* then F4 key.
Stnd BAPI is - BAPI_MATERIAL_CREATE. better look for the latest BAPI for this using F4 help as SAP always keeps oldest version of BAPI.
You will get list of BAPI's Choose your BAPI for creating Material.
Go through the documentation of BAPI carefully you will come to know the Parameters you need to Pass.
If you are new to BAPI's pls feel free to revert.
Regards,
Vikas
‎2009 Jan 20 6:18 AM
Hi,
Do the recording material tepe wise.
IF MTART = 'ROH'.
ur recording
elseif MTART = 'FERT'.
ur recording
endif.
I think this will be helpful to you.
‎2009 Jan 20 7:11 AM
Hi,
You can use LSMW DI method thro' RMDATIND to load the material Masters
Hope this helps.
Murugesh
‎2009 Jan 20 7:53 AM
Hi Pavani,
For MM01 u can try using this BAPI 'BAPI_MATERIAL_SAVEDATA' instead of recording.
I used this BAPI and this is how i called the fn module
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = wa_it_headdata
clientdata = wa_it_clientdata
clientdatax = wa_it_clientdatax
IMPORTING
return = wa_it_return
TABLES
materialdescription = it_materialdescription.
here
wa_it_headdata: has data in main screen like material number , industry type and material type
wa_it_clientdata: has second screen values like MATL_GROUP BASE_UOM here make sure tht u pass all the mandetry feilds for this u can execute MM01 manually and try to save material.
wa_it_clientdatax:in this check all the feilds which u are passing in wa_it_clientdata
hope this helps you.
regards,
Raghu
‎2009 Jan 23 8:47 AM