2008 Jul 15 7:22 AM
hi sap technical guru,
while uploading material master data using MM01 how to handle different types of materials(mtart).
this is bit urgent.
regards,
2008 Jul 15 7:30 AM
Hi Ashwini,
While recording material master select the views and click on default button / views. ( Use different recordings for different material types as views selection depends on the material type You can use Selection_view_find function module for selecting the views for material type --- check the documentation of the function module )
if excel sheet consists of different material types get the excel data into internal table and perform sort based on material type.
Once you identify the material types write performs to get different records for a given material type.
eg
if itab-mtart = 'ROH'.
< recording code for ROH>
elseif itab-mtart = 'FERT'
<recording code for FERT>
endif.
regards
padma
2008 Jul 15 7:27 AM
2008 Jul 15 7:30 AM
Hi Ashwini,
While recording material master select the views and click on default button / views. ( Use different recordings for different material types as views selection depends on the material type You can use Selection_view_find function module for selecting the views for material type --- check the documentation of the function module )
if excel sheet consists of different material types get the excel data into internal table and perform sort based on material type.
Once you identify the material types write performs to get different records for a given material type.
eg
if itab-mtart = 'ROH'.
< recording code for ROH>
elseif itab-mtart = 'FERT'
<recording code for FERT>
endif.
regards
padma
2008 Jul 15 7:47 AM