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

uploading mm01 data

Former Member
0 Likes
886

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
828

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

7 REPLIES 7
Read only

Former Member
0 Likes
828

for this you can use BAPI or better to use LSMW method using BAPI

Read only

Former Member
0 Likes
828

Hi,

In LSMW choose Standard Batch/Direct Input

then give object as '0020' then automatically methos and prog name will be set to '0000' and

'RMDATIND' respectively. This can be used for material master.

For Bapi method refer [BAPI for MM01|;

Regards,

Manoj Kumar P

Read only

Former Member
0 Likes
829

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

Read only

venkateswarareddy_medam
Active Participant
0 Likes
828

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.

Read only

Former Member
0 Likes
828

Hi,

You can use LSMW DI method thro' RMDATIND to load the material Masters

Hope this helps.

Murugesh

Read only

Former Member
0 Likes
828

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

Read only

Former Member
0 Likes
828

Thanks one and all