Quantcast
Channel: SCN : Blog List - All Communities
Viewing all articles
Browse latest Browse all 2548

LSMW - Direct input for beginner!

$
0
0

Hi all,I worked with LSMW for a period of time .At the beginning ,I used Batch input and I have no idea about Direct input.In my thinking,  it will be difficult to familiar with LSMW – Direct input.But after using Direct input , I found it’s really helpful and it can solve a lot of things that Batch input cannot ( that is my perspective , so if someone feel different , you can ignore my opinion) .If nobody tell you how to use it , it can be difficult maybe very difficult to use , but if you have a overview about they specifications and steps , you can find it’s not that difficult , you can learn it.That why I write this document, to guide someone the same with me in the past , with no definition of Direct input and how to use it.With anyone who master it, my document maybe useless but with beginner, it may help.Now we start !

T-code LSWM

Input your project name. Choose Create

System pop up screen to input Description , enter name and choose Continue

New screen will be generated , input Subproject and Description.

New screen for input Object.

2.png

Choose Execute

System show Menu list of all process steps . You can remove some unnecessarily steps but we can do it later.

Step 1 : Maintain Object Attributes

Choose Execute .  Switch to change mode.Choose Standard Batch / Direct Input

Expand Object to choose the Object you want, in this case I want to mass create Routing so I choose Routing

3.png

Next , we will choose method.In this case is Direct input.

Save and Go back

Step 2:  Maintain Source Structures

Click to switch to change mode and choose Create a Structure

Input Source Structure ( Name and Description)

Save and Go back

4.png

Step 3 : Maintain Source Fields :

Execute and click Ctrl+F1 to switch to change mode.Put the cursor into source field and choose Table maintenance as below .

Input Field name – Data type – Data length – Field descritption. This is the important step.In here , you input some require fields ,for example ,material number because if you want to change routing of material , you should input material number. And some other information that you need to change  or  update or create.To know about data type and length, you can display table and see.You can check the table list in internet to know which table contain data you are changing. For example , in this case , it is PLKO for routing header.After input  the information, Save and Go back.You can see the table was maintained.

5.png

Save and Go back to Menu list.

Step 4: Maintain Structure Relations .

Execute and Switch to change mode

Choose structure and choose create Relationship .You must choose relationship for first row, the others base on what is your requirement. Example for my case as below :

6.png

Save and Go back

Step 5 : Maintain Field Mapping and Conversion Rules

Execute and switch to change mode.

You need to map the Source Field with the field in the list below.Source field is the list that you created in step 3. For example , click on WERKS and click Source Field. The list of source fields that you created before will be displayed : Choose WERKS ( remember to assign all of them)

7.png

SAP also give you some options  : You can input the constant by press Constant : For example ,you will have to use t-code CA02 to maintain routing , it will be used for every material so you can define it as constant. You can input Rule , it can be used for ABAP code, for example you want to take system date , you can write some code here.

After finishing with assigning field, add constant and Rule (if any ) Save and Go back.

Skip Maintain Fixed Values, Translations, User-Defined Routines

Step 6 : Specify Files

Execute and Switch to change mode .Put the cursor in Legacy data field and click Change Entry

System will ask you to specific the file and name.Click expand and choose path for the file ,also give a name.The file must save in Text (Tab delimited) format and contain all column base on step 3 .

In Delimiter, choose Tabulator

Example as below :

8.png

Save and Go back

Choose Assign Files : Switch to change mode and save

Step 7 : Choose Read Data and execute.

System will show the read data

Go back

You can skip some Display steps ( Display Read data , Display Converted data ) by choosing Extras / User Menu

Uncheck the one you don’t want to use and Enter

Step 8: Choose Convert Data and Execute

Execute and System will show converted data

Go back to Menu list

Step 9 :Choose Start Direct Input Program

Run with Test run first , if everything is ok , remove the check in Test run and Execute.System will be updated as you did.

Ok, I finish my LSMW ,  let try your LSMW !

 

Thanks and Best Regards,

Huong


Viewing all articles
Browse latest Browse all 2548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>