This blog is in continuation to my previous blog “LSMW for Master Data upload Simple Explanation (Part – 1)” – LSMW for Master Data upload Simple Explanation (Part – 1)
We will continue here with Step 9 – Specify Files
Step 9 – Specify Files:
Before performing this Step, you need to create your File format with exact field sequence.
For creating the Format, simply transpose your Excel File fields from column to Row as shown below:
(Here I have mentioned only Single line for data you should have all the data which you wish to create in one time as in screen shot below)
Select only the Data from excel sheet and copy it to notepad file as shown below and Save:
Now in SAP, double click “Specify Files” in the Menu List screen which will guide you to the screen as shown below:
Double click on “Legacy Data – On the PC (Frontend)” which will pop-up the dialog box as shown below:
In File field select the Notepad File created, in the Name Field assign any desired name and make other selections exactly as shown in the screen and Press Enter, Save and Back.
Step 10 – Assign Files:
Double click “Assign Files” in the Menu List screen, which will guide you to the screen as shown below:
As we have single Structure and Single File, it is auto assigned to Structure. Just Press Save and Back
Step 11 – Read Data:
Double click “Read Data” in the Menu List screen, which will guide you to the screen as shown below:
Without making any changes to this screen, press execute button which will show the screen as below:
This will Show the exact number of total records/ Masters which you have mentioned in your notepad file. If this does not match the exact value, check your notepad and excel file for data. Once Confirmed, Press back twice
Step 12 – Display Read Data:
Double click “Display Read Data” in the Menu List screen, will pop-up a dialog box as shown below:
Without making any changes to this screen press enter, which will show the screen as below:
This screen is displaying all the Master Data Records which are read from your notepad file. Double Clicking any record will show Field-wise Data where you can check the correctness of your data (this step is not mandatory).
Once confirmed press back twice.
Step 13 – Convert Data:
Double click “Convert Data” in the Menu List screen, which will guide you to the screen as shown below:
Without making any changes to this screen, press execute button which will show the screen as below:
This will Show the exact number of total records/ Masters which are converted from your notepad file to Structure. If this does not match the exact value, check your notepad and excel file for data. Once Confirmed, Press back twice
Step 12 – Display Convert Data:
Doubleclick “Display Convert Data” in the Menu List screen, will pop-up a dialog box as shown below:
Without making any changes to this screen press enter, which will show the screen as below:
This screen is displaying all the Master Data Records which are read from your notepad file. Double Clicking any record will show Field-wise Data where you can check the correctness of your data (this step is not mandatory).
Once confirmed press back twice.
Step 13 – Create Batch Input Session:
Double click “Create Batch Input Session” in the Menu List screen, which will guide you to the screen as shown below:
Make the selections as per shown in the screen above and press execute. This will guide you to screen as shown below:
This will display the number of transactions saved for execution. This all fields should be in green. If any record is in red, please check your entries again. If all records are green, press back twice.
Note: For some masters or for recording method Step 13 would show a simple screen where you need to tick “Keep Batch Input Session” and execute.
Step 13 – Create Batch Input Session:
Double click “Run Batch Input Session” in the Menu List screen, which will guide you to the screen as shown below:
This screen can also be executed through SM35.
Here select the record you want to process and presswhich will pop-up a dialog box as shown below:
Processing Mode:
First Option “Process/ foreground” will guide you to each field of each screen of your Master records.
Second option “Display errors only” will process your program in Background but will stop at Errors in any Field of any Screen which you can change.
Third Option “Background” will process your program completely in background and will update the errors at last.
(Recommended to use “Display errors only” option)
Additional Functions
Select the “Extended Log”, “Expert Mode” and “Dynpro Standard Size” options.
Once made the above selections, press process.
Once all the data are uploaded will pop-up a dialog box as shown below:
Pressing “Session overview” will show the session details and “Exit Batch input” will exit the transaction.
Here it completes the Legacy Data Migration Workbench (LSMW) process.
Hope I have clarified the process very clearly.
(This is the First time I have written a blog. Request you to please post your honorable comments).
Very ease steps really helpful
Great job!
Thanks for your efforts and knowledge sharing!
Such kind of participations in the community should be rewarded!
Patrick S.
So nice of you to give such a great comment...
Hi Chintan,
Nice document and very well explained....
For the first time I have read LSMW and it really helped....
Keep up the good work !!!!!!!!!!
Cheers 🙂
Rgds,
SA
Saad Aslam
Thank you 🙂
Will Try to give out my best ever.
Chin2.
Hi Chintan,
Nice document and we can easily understand the LSMW.
Regards,
Prashanth
Hi,
This is a perfect document. I am only facing a small problem. I have created an LSMW program following the above guide which perfectly execute in Development but when i transport the same program to Quality i get an error ANZHL not an input field. The task am caring out is to upload leave balance from excel to IT2006. Where am i going wrong?
Thanks in advance
Patrick Mitei
It seems that LSMW is working perfectly fine but, the issue is with your transaction.
I am not sure what transaction you are using but the field ANZHL (i.e., a Number field) in your transaction is made as display field (that means it is non editable field).
I would request you to run the transaction manually and see whether the field is editable there or not.
If it is in display mode in Quality server, LSMW wont be able to update this field and for that, you need to make the configuration changes to allow it to be editable.
I hope I have cleared your doubt. If not, I would request you to reply with the transaction code for which you are using the LSMW and the screenshot of transaction which you are executing.
Hope this helps.
Regards,
Chin2.
Thanks Chin2 for your quick reply. The transaction which i am using is PA30 since my objective is to upload leave balance from excel. Again, the funny thing is that when i use foreground during the process, table pa2006 is updated even though it gives me an error message in the status bar. The file which i have to upload is very big and when i try to run on Background mode nothing is processed.
i will appreciate your assistance.
Thanks in advance.
Patrick Mitei
Sorry but am not much aware about the HR related transactions.
I see that ANZHL is Quota Number in PA30 (if I am correct).
Are you using this field as your source fields? If yes, does it have any value in your excel?
If it does not have any value in your excel I would recommend you to remove this field from your field list in step Maintain Source Fields (mentioned in my previous post).
Hope this helps.
Regards,
Chin2.
Thanks so much for your reply. Your assistance is highly appreciated
Hello,
I would like to get some help on how to update/change some data using LSMW input recording. i would like to update/change the current BEGDA and ENDA in PA2006. Assume the current dates in pa2006 is BEGDA: 01.01.2015 ENDA: 31.01.9999. I would like to change the above to match the data in the excel which is BEGDA: 01.01.2016 and ENDA: 31.01.2016. I am uploading leave balance manually. The excel file has four fields that is PERNR, BEGDA, ENDA, ANZHL.
Patrick Mitei
Sorry for the late reply but you question is more related to HR master data rather than about LSMW.
Would recommend you to create a question in SAP ERP Human Capital Management (SAP ERP HCM)
You can get a clear feedback there.
Sorry that I would not be able to help much on HR related Masters.
Hope this helps.
Regards,
Chin2.