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

How to Upload different Material with Different Selection View

former_member295881
Contributor
0 Likes
733

Hello Experts!

Iu2019m new in ABAP and trying to understand methods of LSMW. Now I get a question for you guys. Let say I need to upload 10 different materials. Now for instance.

1st material has Basic data 1 and Basic data 2.

2nd material has Basic data 1, Purchasing and Purchase Order text

3rd material has Basic data 1, Classification, Purchasing, MRP 1, MRP 2 & MRP 3.

4th material has Basic data 1 & Basic data 2.

5th material has Basic data 1, Classification, Purchasing, MRP 1, MRP 2 & MRP 3.

And so on. Now here Iu2019ve notice that every material has different INDUSTRY SECTOR, MATERIAL TYPE AND SELECTION VIEWS. I understand that Industry Sector, Material Type and other data I can specify in my file but how I can control SELECTION VIEWS for different materials. Because for different Selection view coming screens will become different accordingly.

So can somebody can please tell me how I can control different select views for different material and upload it in SAP.

Thanks.

1 ACCEPTED SOLUTION
Read only

former_member295881
Contributor
0 Likes
677

Thanks Vishwa you exactly understand what I mean & what Iu2019m trying to do. Let say if I use any other way (Recording, BAPI or IDoc) still I canu2019t upload materials with different views? Also when should I use LSMW if I canu2019t use it for t-code MM01 and what type to data I can upload through LSMW?

3 REPLIES 3
Read only

Former Member
0 Likes
677

Hi

I understand that you are performing LSMW on MM01 transaction code..and are uploading through batch input in LSMW.

Actually, for a tcode like MM01 I dont think you should use LSMW, instead you can go with the BAPI: BAPI_MATERIAL_SAVEDATA.

The views is a serious problem with MM01 when performing using batch input..

So, go through the documentation in SE37 tcode for the BAPI...

The information you get there will help you on how to proceed.

Regards,

Vishwa.

Read only

former_member295881
Contributor
0 Likes
678

Thanks Vishwa you exactly understand what I mean & what Iu2019m trying to do. Let say if I use any other way (Recording, BAPI or IDoc) still I canu2019t upload materials with different views? Also when should I use LSMW if I canu2019t use it for t-code MM01 and what type to data I can upload through LSMW?

Read only

0 Likes
677

Hi

When you use BAPI, you dont need to worry about views. A BAPI is called in the program...and then the values needed to be uploaded are passed like we do with Function Module. So, there is nothing to do with the views.

And LSMW is used when you need to upload Master Data in General. And people with less Technical Knowledge will go with LSMW. Also, the number of records that can be uploaded at one attempt using LSMW is less when compared to other technologies.

Regards,

Vishwa.