
LSMW. I wonder where that 4 letter acronym ranks in terms of frequency of use here on SCN. I'm sure it's in the top 10 even with stiff competition from SAP, ERP, BAPI, ABAP, and some others.
Why is that? Well, it's a very useful tool and comes up frequently in the functional forums. I remember when I got an email from a fellow SAP colleague introducing me to it. That was back sometime in the fall of 1999 but I know version 1.0 came out a year earlier and was supported as far back as R/3 3.0F. I dove into it and the guide that SAP had published and it was really great. I could see immediately that for basic data conversions, I could handle the entire conversion process without the help of a developer. Back in 1998, that was a fairly big deal and one that I'm sure the ABAPers had no problem ceding territory in.
Just a year earlier I was using CATT to do legacy conversion. It had a similar transaction code based recording mechanism, a way to define import parameters, and a loading mechanism to map a .txt file to those parameters. But CATT was not designed specifically for data conversion so it could be a pain to deal with. In particular, tracking load errors was very tedious which required you to do a large number of mock loads on your data to ensure that it was perfect.
Back in 1999, it was obvious to me that LSMW was a big improvement over CATT for a few reasons:
Once word spread about LSMW inside SAP, it seemed that every functional consultant I worked with was using it. Eventually we started using it for purposes other than legacy data conversion. Mass changes, mass creation of new data that wasn't legacy related, etc. Other non-functional areas used it too; I've seen security teams upload mass changes to userID records.
But... I didn't write this to praise LSMW. Now, in the year 2014, I can't stand working with it. It's limitations have been bugging me for years and SAP hasn't done anything to improve it. My gripes:
But my biggest gripe isn't with the tool. It's how it's used by the SAP community.
It seems that every consultant I know uses LSMW as their go-to source for all data changes. I've walked into customers that have been using an LSMW to maintain some object for 10+ years!!!! How the heck can something like that happen? This is an area where LSMW's flexibility works against it... or rather, works against the customer's long term success with SAP. The problem here is that it allows us functional folks to quickly develop a 'tool' to maintain data. It's the quickest way to develop a solution on the Excel-to-SAP highway that accountants et al. need throughout the year. For a truly ad-hoc requirement to do just about any process in SAP based on data in Excel, it works fine. I don't have an issue with that and would recommend LSMW in those appropriate cases. But it's not a long term solution. Period, end of story.
If you have a recurring need to mass change master data, you should be using the mass maintenance tool. Just about every module has developed a solution using this tool to change the most important master data records in the system.
Anyone heard of a BAPI? If you have a recurring need to upload transaction data or make changes to certain POs, sales orders, etc, or have a master record not in the list above, there is a BAPI that will do that for you. Get with your ABAPer, develop a suitable selection screen, get a test-run parameter on there, get a nice ALV based output report, and then get the tcode created. Done... that's a good solution using an SAP supported protocol that is far better, safer, consistent, and easier to work with than a screen based recording that dumps your data into BDC. In my opinion, if part of your solution has the letters 'SM35' in it, you've done something wrong.
Why would anyone recommend to a customer that they should use this crummy process (read data, convert data, display converted data...) as the long term solution for making changes like this? That's not a solution, it's a lame recommendation.
LSMW and other similar screen based recording tools (Winrunner et al.) are flexible and it's tempting for people... and I'm talking primarily to the consultants out there that over-use and over-recommend LSMW... to keep going back to it. It's a useful tool but there are problems when you don't have enough tools in your toolbox to use... you're limited in options and you keep going back to what you know.
Have you heard of the phrase "When you have a hammer, everything looks like a nail". It came from noted psychologist Abraham H. Maslow in his 1966 book The Psychology of Science.
His quote is also part of something called the Law of the Instrument. A related concept of this is the notion of the Golden Hammer which was written about in AntiPatterns: Refactoring Software, Architectures, and Projects in Crisis: William J. Brown, Raphael... The book covers the factors that come up repeatedly in bad software projects. Among them is what they call the Golden Hammer which is "a single technology that is used for every conceivable programming problem".
LSMW's time as my hammer of choice passed a long time ago. It's a useful tool and should be in everyone's toolbox but we shouldn't use it unless there is an actual nail sticking out.
UPDATE as of August 30th, 2016
Per OSS 2287723:
"As of S/4HANA 1511 (and higher)... The LSMW (Legacy System Migration Workbench) function is still available within SAP S/4HANA (on-premise edition) but not considered as the migration tool. LSMW might propose incorrect migration interfaces that cannot be used in SAP S/4HANA."
... and...
"The Legacy System Migration Workbench (LSMW) can only be considered as a migration tool for SAP S/4HANA using workarounds and careful testing for each and every object. The use of LSMW for data load to SAP S/4HANA is not recommended and at the customer's own risk."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |