LSMW contains 14 steps. Not feasible to explain in detail.
Discuss with someone who knows LSMW & you can achieve this.
Refer below link on basic LSMW steps.
Steps to create a simple LSMW using batch input recording - ABAP Development - SCN Wiki
You can transpose these steps for your purpose.