You are on page 1of 82

BASICS OF SAP’S

LEGACY SYSTEM

MIGRATION

WORKBENCH

PROCESS

OVERVIEW

SAP has made available a transaction, LSMW, which drives the Legacy System Migration Workbench tool. This tool enables the user to:

1. record the execution of many different individual SAP transactions

  • 2. map the transactions fields to columns in a spreadsheet

  • 3. execute the recording to read the data file and repeatedly pass the data to a designated SAP

transaction for processing

This enables the user to use the tool to do mass processing, all without having to manually enter data one transaction at a time, while still subjecting the input data to required SAP

editing before saving each record.

The tool has many features and capabilities, but the purpose of this course is to provide you with a basic understanding in how to use the tool to perform mass processing for the majority of your needs. As you can envision, this process could be used for: a)mass change of

production data 2)setting up training data 3)converting legacy systems data 4)…

..

and others…

In order to use the tool, you must have both the “LSMW” transaction and a transaction that matches what you enter in the Project field. In our example, “PROJ” is being used, so a “PROJ” transaction must be in a role attached to your user ID.

COMPONENTS

The LSMW tool is made up of basically three major components:

  • 1. A recording of the screens and fields used in a given transaction

  • 2. A multi-step process whereby that recording is married to the process, input fields

mapped to screen fields, and creation of batch/online processing jobs, and subsequent

execution of those jobs

  • 3. 3-tiered library wherein the multi-step processes are organized and stored

PROCESS OVERVIEW

If you are “starting fresh” in LSMW, you must first establish the hierarchy of your library. The library is made up of two upper-levels of structure, with your transaction process’s name making up the third level. Below is an example:

PROCESS OVERVIEW If you are “starting fresh” in LSMW, you must first establish the hierarchy of

Once the Project and Subproject structures have been established, it is no longer necessary to go

through the create steps and you can simply enter the upper two levels of hierarchy followed by

an Object name for your new LSMW process to create it, or an existing one to execute it.

CREATING THE

STRUCTURE

CREATING THE STRUCTURE 1. Trigger the LSMW transaction to get to the above screen. 2. IF
  • 1. Trigger the LSMW transaction to get to the above screen.

  • 2. IF you are building a new structure, enter the desired Project identifier, the desired Subproject identifier, and the name of your first Object process.

  • 3. Position the cursor on the Project field so that it turns yellow.

  • 4. Click on the Create icon

CREATING THE

STRUCTURE

CREATING THE STRUCTURE 1. Enter the description you wish for the first level of your structure.
  • 1. Enter the description you wish for the first level of your structure.

  • 2. Click on the Green Check icon to save it and return.

CREATING THE

STRUCTURE

CREATING THE STRUCTURE 1. Highlight the Subproject level. 2. Click on the Create icon once again.
  • 1. Highlight the Subproject level.

  • 2. Click on the Create icon once again.

  • 3. Enter a description for the Subproject.

  • 4. Click on the Green Check again.

CREATING THE

STRUCTURE

CREATING THE STRUCTURE 1. Highlight the Object field 2. Click on the Create icon once again
  • 1. Highlight the Object field

  • 2. Click on the Create icon once again

CREATING THE

STRUCTURE

CREATING THE STRUCTURE 1. Enter a description for the process that you are about to create.
  • 1. Enter a description for the process that you are about to create.

  • 2. Click on the Green Check.

CREATING THE

STRUCTURE

CREATING THE STRUCTURE 1. The system will return you to the library hierarchy screen, with your
  • 1. The system will return you to the library hierarchy screen, with your new object shown.

  • 2. If you are simply creating a new Object in an existing library, you would only go through the last step to enter the new Object name.

  • 3. At this point, you are finished with the creation of your process library setup.

CREATING THE INPUT

FILE

The input file can be created by manual input into a spreadsheet and then saved in the required format

- or

May be created using tools such as reporting download or SQ01 Query to extract the basic data fields from SAP

CREATING THE INPUT

FILE

The presence and order of data fields is flexible.

The only stipulation is that any field in the file to the left of the last field that will be fed to the

recording, must be defined to SAP in one of the

process steps.

Any fields to the right of the last field to be used in the recording can be present but will be ignored.

CREATING THE INPUT

FILE

CREATING THE INPUT FILE 1. The input file must be a .TXT- formatted file. 2. It
  • 1. The input file must be a .TXT- formatted file.

  • 2. It can have a header record in it. This record can be ignored by the record reading.

  • 3. If there is a field that is being changed and is always the same value, you can either have it in the input file or define it as a “constant” when executing the process.

  • 4. The file can contain values that will not be used in the process execution.

CREATING THE

RECORDING

After having created the process name for the process we wish to run, we must now create the recording.

The LSMW transaction, by design, expects to process one record at a time, thus it will be fed data from a spreadsheet, one record at a time. This means that the input file must contain the key to the record to be processed, along with the fields to be changed. This

also applies to the recording.

When doing the recording, it is recommended that you do not use the pulldown feature in SAP. Instead, know the values for each field on the SAP screens and key them in rather than selecting from a pulldown. This forces LSMW to recognize that you entered data in

specific fields and store that field in the recording.

CREATING THE

RECORDING

If you have not already done so, trigger the LSMW transaction

Take path: >Goto >Recordings

CREATING THE

RECORDING

CREATING THE RECORDING • When the system returns the screen shown here to the left, click

When the system returns the screen

shown here to the left, click on the CREATE icon (to the left of the

“pencil”)

CREATING THE

RECORDING

CREATING THE RECORDING 1. When the sub-cell shown here appears, enter a recording name and a
  • 1. When the sub-cell shown here appears, enter a recording name and a description.

  • 2. The recording name must be contiguous alpha-numeric characters with no spaces in the name

  • 3. Click the Green Check.

CREATING THE

RECORDING

CREATING THE RECORDING 1. When the screen to the left appears, enter the desired SAP transaction
  • 1. When the screen to the left appears, enter the desired SAP transaction you wish to execute and record.

  • 2. Note: Certain transactions in SAP (such as CJ20N) will not record successfully and as such you must use alternative transactions to achieve your objective. In this example we are changing persons responsible in project wbs‟s so we are using transaction CJ02 instead of CJ20N.

  • 3. Click the Green Check.

CREATING THE

RECORDING

CREATING THE RECORDING • LSMW cannot handle very well screens which have multiple records stacked, so

LSMW cannot handle very well

screens which have multiple records stacked, so you must try to control which record on the screen you are accessing.

In this example, we are entering a single wbs number rather than a project def so that the wbs we wish to process is the only one on the screen and therefore is the first one in the stack.

We enter the wbs number and click on the WBS ELEMENT OVERVIEW icon.

CREATING THE

RECORDING

CREATING THE RECORDING • The system returns a screen with • the single wbs on it.

The system returns a screen with

the single wbs on it. We then click on the RESPONSIBILITIES tab to get to the Person Responsible field

CREATING THE

RECORDING

CREATING THE RECORDING • The system displays the wbs number along with the existing person responsible

The system displays the wbs

number along with the existing person responsible value in the record.

CREATING THE

RECORDING

CREATING THE RECORDING • In this example, we change the person responsible to 1322. • In

In this example, we change the

person responsible to 1322.

In this example we want to change the costing sheet, so we click on the tab containing it and

change it to the desired value.

Then, having completed our work, we click the SAVE icon.

If there were other fields to be changed as well, we would

proceed through the screens

making the changes before doing the SAVE.

CREATING THE

RECORDING

CREATING THE RECORDING • The system will then return the screen shown here, reflecting all fields

The system will then return the

screen shown here, reflecting all fields that it used in the process.

Click on the DEFAULT ALL icon to have the system save all of

the fields to the recording.

CREATING THE

RECORDING

CREATING THE RECORDING 1. The system will expand the description of all fields. 2. Click on
  • 1. The system will expand the description of all fields.

  • 2. Click on the SAVE icon.

  • 3. The system will return a message indicating that the recording has been saved.

  • 4. Click on the Green Arrow to go back.

CREATING THE

RECORDING

CREATING THE RECORDING • The system will show the list of recordings again, with your recording

The system will show the list of

recordings again, with your recording temporarily showing at the top of the list.

NOTE: If for any reason you

wish to delete your recording,

simply highlight it and click on

the “trash can” icon at the top of

the screen.

You may then go through the

recording process again to

recreate it.

Click on the Green Arrow to return.

EXECUTION OF THE

PROCESS

EXECUTION OF THE PROCESS • The system will return you to the process screen. • Making

The system will return you to the

process screen.

Making sure that your Object name is the one you created earlier, click on the EXECUTE

icon to start the process.

EXECUTION OF THE

PROCESS

EXECUTION OF THE PROCESS • The system will then display the screen to the left, showing

The system will then display the

screen to the left, showing all of the possible steps that can be executed.

We are going to use a select

group of them and ignore others.

NOTE: As you execute each step, the system will timestamp to the right of the step AND will

increment the radio button to the

next one in the list.

PROCESS STEPS TO BE

USED

  • 1. MAINTAIN OBJECT ATTRIBUTES

  • 2. MAINTAIN SOURCE STRUCTURE

  • 3. MAINTAIN SOURCE FIELDS

  • 4. MAINTAIN STRUCTURE RELATIONS

  • 5. MAINTAIN FIELD MAPPING

  • 6. SPECIFY FILES

  • 7. ASSIGN FILES

  • 8. READ DATA

  • 9. DISPLAY READ DATA

    • 10. CONVERT DATA

    • 11. DISPLAY CONVERTED DATA

    • 12. CREATE BATCH INPUT SESSION

    • 13. RUN BATCH INPUT SESSION

PROCESS STEPS TO BE

USED

MAINTAIN OBJECT ATTRIBUTES Used to tie the recording to the processing session

MAINTAIN SOURCE STRUCTURE Used to define a structure under which we will list all of the fields coming in in the input file

MAINTAIN SOURCE FIELDS Here we enter each of the input fields from the input file.

MAINTAIN STRUCTURE RELATIONSHIPS This step then ties the defined structure of input fields to the recording

MAINTAIN FIELD MAPPING In this process we tie the input file fields to the SAP recording screen fields. We also specify any constant values for

certain SAP recording screen fields.

SPECIFY FILES Here we specify where the input .TXT file is stored on our PC so that the process can find it when the execution starts.

PROCESS STEPS TO BE

USED

ASSIGN FILES Ties the input file to the process

READ DATA Reads the data from the input file into a temporary storage file known to the process

DISPLAY READ DATA Displays a listing of all of the records read in from the input file and displays the columns of data you identified earlier.

Any columns of data in the input file but not identified earlier will not be

displayed.

CONVERT DATA This takes the read data and converts it into a format that can be read in by the actual SAP transaction that will be using the data.

DISPLAY CONVERTED DATA As part of the conversion process, SAP

brings in not only the input fields from the input file, but adds other data

values it needs. All of these fields will be shown here, including any constant values that you may have specified.

PROCESS STEPS TO BE

USED

CREATE BATCH INPUT SESSION This step reads in the converted data and sets up a batch input session for processing

RUN BATCH INPUT SESSION This step allows you to then execute the actual mass update. This feeds the batch of data, along with the recorded transaction code, to SAP for processing. There are three options for execution

which will be described further ahead.

EXECUTING THE PROCESS

EXECUTING THE PROCESS • With the radio button turned on beside the first step, click on

With the radio button turned on

beside the first step, click on the EXECUTE button.

1. MAINTAIN OBJECT ATTRIBUTES

1. MAINTAIN OBJECT ATTRIBUTES • The system will bring you to the screen shown, in DISPLAY

The system will bring you to the

screen shown, in DISPLAY mode.

Click on the DISPLAY/CHANGE icon to get

into Change mode.

1. MAINTAIN OBJECT ATTRIBUTES

1. MAINTAIN OBJECT ATTRIBUTES • Enter/pulldown-select your recording in the RECORDING field. • Click on the

Enter/pulldown-select your

recording in the RECORDING field.

Click on the SAVE icon. The system will return a message

indicating that it has saved.

Click on the Green Arrow to exit.

2. MAINTAIN SOURCE STRUCTURE

2. MAINTAIN SOURCE STRUCTURE • The system will timestamp and increment the radio button down to

The system will timestamp and

increment the radio button down to the next step in the screen.

Click the EXECUTE icon.

2. MAINTAIN SOURCE STRUCTURE

2. MAINTAIN SOURCE STRUCTURE • The system will take you the next screen……again in Display mode.

The system will take you the next

screen……again in Display

mode.

Click on the “Pencil” icon to get

to Change mode.

2. MAINTAIN SOURCE STRUCTURE

2. MAINTAIN SOURCE STRUCTURE • The system will then display a • CREATE icon. Click on

The system will then display a

CREATE icon. Click on the CREATE icon.

2. MAINTAIN SOURCE STRUCTURE

2. MAINTAIN SOURCE STRUCTURE • When the shown cell appears, enter a source structure name of

When the shown cell appears,

enter a source structure name of your own choosing and a description.

All of the characters of the

structure ID must be contiguous

and there are are a few characters that are not allowed. The system will prompt you if you use them.

Click on the Green Check.

2. MAINTAIN SOURCE STRUCTURE

2. MAINTAIN SOURCE STRUCTURE • The structure name you set up will then be confirmed back

The structure name you set up

will then be confirmed back to you on this screen.

Click on the SAVE icon to save it.

The system will confirm the Save

with a message at the bottom of

the screen.

Click on the Green Arrow to return.

2. MAINTAIN SOURCE STRUCTURE

2. MAINTAIN SOURCE STRUCTURE • When the system sets the radio button to the MAINTAIN SOURCE

When the system sets the radio

button to the MAINTAIN SOURCE FIELDS, click on the EXECUTE icon to get to this screen.

You will again be in DISPLAY mode so click on the

Display/Change “pencil” icon to

get to Change mode.

3. MAINTAIN SOURCE FIELDS

3. MAINTAIN SOURCE FIELDS • When the system returns the screen shown here, highlight the structure

When the system returns the

screen shown here, highlight the structure ID, and click on the CREATE icon at the top of the screen.

3. MAINTAIN SOURCE FIELDS

3. MAINTAIN SOURCE FIELDS • We are now ready to start defining the list of data

We are now ready to start defining

the list of data columns in our input file.

In this example, all we are going to need is the wbs number and person responsible, but since the project defintion is to the left of the wbs number, we must define it.

Enter a Field Name for the Project Def, along with a description.

Enter a length value at least as big as the number of characters for the field in the spreadsheet. Entry of a

number smaller will result in

dropped characters when reading the input file.

Leave the Field Type set to C (Character).

Click on the Green Check.

3. MAINTAIN SOURCE FIELDS

3. MAINTAIN SOURCE FIELDS • The system will return you to the screen to the left

The system will return you to the

screen to the left and display the first

field defined, indented under the structure name.

We are now ready to define the second data column from our input

file. However, we must tell the

system that it is to the right of the

project definition. In order to do that, we must define it BELOW the proj definition on this screen.

Highlight the PROJDEF field and click on the CREATE icon. This will take you to the screen to create the next field, and show it under the Project Def field.

3. MAINTAIN SOURCE FIELDS

3. MAINTAIN SOURCE FIELDS • We now enter the Field name, Description, and Field Length for

We now enter the Field name,

Description, and Field Length for the WBS. (Remember to make the field length equal to or larger than the number of characters for the wbs in the input file)

Click on the Green Check.

3. MAINTAIN SOURCE FIELDS

3. MAINTAIN SOURCE FIELDS • Repeat the process for all fields that you will be feeding

Repeat the process for all fields that

you will be feeding to the SAP transaction. In our example, we need only the wbs and person responsible, so that is all that needs to be defined. Even though the WBS description is

in the input file, to the right of the

person responsible, it is not needed for processing and we therefore do not need to define it.

Click on the SAVE icon.

The system will return a message that it was saved.

Click on the Green Arrow to return.

4. MAINTAIN STRUCTURE RELATIONS

4. MAINTAIN STRUCTURE RELATIONS • When the system increments to the above step, click the Execute

When the system increments to

the above step, click the Execute icon.

When the system presents the screen to the left, click on the

Display/Change (“pencil”) icon.

Simply Click on the SAVE icon. This will then tie the structure with its fields to the process.

Click on the Green Arrow to

return.

5. MAINTAIN FIELD MAPPING

5. MAINTAIN FIELD MAPPING • When the system sets the radio button to Maintain Field Mapping,

When the system sets the radio

button to Maintain Field Mapping, execute it.

The system will display the screen shown here.

Click on the Display/Change icon to get to Change mode.

The system will display all fields that were touched during the recording.

We are now ready to tie the

screen field names to the input

file fields.

Highlight the first field, the WBS, and click on the Source Field.

5. MAINTAIN FIELD MAPPING

5. MAINTAIN FIELD MAPPING • Select the WBS field by double- clicking on it. • We

Select the WBS field by double-

clicking on it.

We will not use the PROJDEF field since, even though it is in the input file, we do not need it as

input.

Click on the Green Check.

5. MAINTAIN FIELD MAPPING

5. MAINTAIN FIELD MAPPING • If your source field is defined larger than the SAP field

If your source field is defined

larger than the SAP field (even though the actuals values in your input sheet are less than the length specified) you will see this message.

Simply click on the Green Check to bypass it.

5. MAINTAIN FIELD MAPPING

5. MAINTAIN FIELD MAPPING • The system will “tie” the two fields together and reflect it

The system will “tie” the two

fields together and reflect it in the screen shown.

Repeat the process for the Person Responsible field.

5. MAINTAIN FIELD MAPPING

5. MAINTAIN FIELD MAPPING • At this point, we have tied the two fields needed from

At this point, we have tied the

two fields needed from the input file to SAP screen fields.

We now want to have the process

“plug” a constant for the Costing

Sheet field.

5. MAINTAIN FIELD MAPPING

5. MAINTAIN FIELD MAPPING • After highlighting the Costing Sheet field, click on the CONSTANTS icon.

After highlighting the Costing

Sheet field, click on the CONSTANTS icon.

The system will open up the cell to the left.

Enter the desired costing sheet,

NA in the field. Click the Green Check.

5. MAINTAIN FIELD MAPPING

5. MAINTAIN FIELD MAPPING • The system will then return you to the screen shown, with

The system will then return you

to the screen shown, with the constant value depicted for the field specified.

We are now finished with the

tying of input fields to SAP fields.

Click on the SAVE icon.

Click on the Green Arrow to return.

6. SPECIFY FILES

6. SPECIFY FILES • Click on the Specify Files radio button to skip past the Maintain

Click on the Specify Files radio

button to skip past the Maintain Fixed Values process. We are not using it.

Click on the Execute icon.

6. SPECIFY FILES

6. SPECIFY FILES • The system will take you to the screen to the left, in

The system will take you to the

screen to the left, in Display mode.

Click on the Display/Change icon to move to Change mode.

6. SPECIFY FILES

6. SPECIFY FILES • We are now ready to provide the input file name to the

We are now ready to provide the

input file name to the process.

Double click on the “Legacy Data” field name with the subtitle “On the PC”.

The sub-cell shown to the left will

appear.

6. SPECIFY FILES

6. SPECIFY FILES • Enter the input file name in the FILE field by using the

Enter the input file name in the

FILE field by using the pulldown function to find the file on your PC hard-drive.

Enter a description of the input file.

Click on the TABULATOR radio button. This is critical. If you do not, the system will string all columnar data together into one column and feed it to your process and your process will fail.

Click on the Green Check to return.

7. ASSIGN FILES

7. ASSIGN FILES • When the system returns to the process screen and the radio button

When the system returns to the

process screen and the radio button moves to the Assign Files line, click on the Execute icon.

Click on the Display/Change icon

to move to Change mode.

Click on the SAVE icon.

Click on the Green Arrow to return.

This process will tie your input

file to the process structure.

8. READ DATA

8. READ DATA • When the process screen positions itself on the Read Data line, click

When the process screen

positions itself on the Read Data line, click on the EXECUTE icon.

The system will display the screen to the left.

In order to keep relative record

numbers constant, we want to read the entire file. We will however only convert portions of the read file.

Click on the EXECUTE icon.

8. READ DATA

8. READ DATA • The system returns a report which shows the number of records read

The system returns a report

which shows the number of records read from the input file. In this case, it will include the data as well as the header record.

We will bypass the header record during conversion.

Click on the Green Arrow TWICE to return to the process screen.

9. DISPLAY READ DATA

9. DISPLAY READ DATA • Execute the Read Data step. • The system will display the

Execute the Read Data step.

The system will display the screen shown to allow you to indicate which read records you wish to see.

Click on the Green Check to see

all of them.

9. DISPLAY READ DATA

9. DISPLAY READ DATA • The system then displays a list of all of the records

The system then displays a list of

all of the records in the file or the range you specified.

Double-click on one of the records.

9. DISPLAY READ DATA

9. DISPLAY READ DATA • The system then displays all of the fields from the read

The system then displays all of the

fields from the read record selected.

Notice that the system shows only the fields read in from the input file. The

“constants” field values will be

brought in later since they were not part of the input file.

Click on the Green Arrow to return.

NOTE: If at a later date you re-read your input file, it is not necessary to re-display the data if you are confident it has not changed in displacement. The purpose of this screen is to simply verify that you have the fields properly aligned and defined.

10. CONVERT DATA

10. CONVERT DATA • Execute the Convert Data step in • the process. The screen to

Execute the Convert Data step in

the process. The screen to the left will appear.

If this is the first time you are running the conversion step, you should only convert one or two records as you will be monitoring their use coming up and, if you have data problems, you only want to deal with a few records.

In this example we have selected

record 3 since record „1” is the

header, and we used record “2”

during the recording. Click on the EXECUTE icon.

10. CONVERT DATA

10. CONVERT DATA • The system displays the report shown, with a count of the number

The system displays the report

shown, with a count of the number of records converted.

Click on the Green Arrow to return.

11. DISPLAY CONVERTED DATA

11. DISPLAY CONVERTED DATA • Execute the Display Converted Data step in the process. • The

Execute the Display Converted

Data step in the process.

The first time you execute this, leave the From Line and To Line blank since we have just

converted only a couple of

records to test our LSMW process.

Click the Green Check.

11. DISPLAY CONVERTED DATA

11. DISPLAY CONVERTED DATA • The system will display a listing • of the converted records.

The system will display a listing

of the converted records. Double-click on any one of them.

11. DISPLAY CONVERTED DATA

11. DISPLAY CONVERTED DATA • At this point, you can now see exactly how SAP sees

At this point, you can now see

exactly how SAP sees the

data….field by field.

Included now in the display are any fields you defined as

“constants”.

Click on the Green Arrow to return.

NOTE: This step is also not

necessary to repeat once you are

confident in the alignment of data fields.

12. CREATE BATCH INPUT SESSION

12. CREATE BATCH INPUT SESSION • When the screen to the left appears, simply click on

When the screen to the left

appears, simply click on the EXECUTE icon. This will use the converted data from the work file to create a batch process to be fed to SAP.

12. CREATE BATCH INPUT SESSION

12. CREATE BATCH INPUT SESSION • A confirmation of the number of • records loaded to

A confirmation of the number of

records loaded to the batch session will be displayed. Click on the Green Check.

13. RUN BATCH INPUT SESSION

13. RUN BATCH INPUT SESSION • When the screen shown appears, highlight the session by clicking

When the screen shown appears,

highlight the session by clicking on the cell to the left of it.

Click on the PROCESS icon.

13. RUN BATCH INPUT SESSION

13. RUN BATCH INPUT SESSION • The system will present you with three options for executing

The system will present you with

three options for executing your batch.

The first time you execute a new recording, select either the PROCESS/FOREGROUND or the DISPLAY ERRORS ONLY option.

By selecting the Foreground one, the system will take you through every field that is being updated, requiring you to click on a Green Check icon in sub-cells as it touches each field.

If you choose the Display Errors

Only option, the system will attempt

to process all of the records you converted.

13. RUN BATCH INPUT SESSION

13. RUN BATCH INPUT SESSION • If it successfully processes the converted records, you will see

If it successfully processes the

converted records, you will see the screen to the left.

Click on the Exit Batch Input icon and it will complete the process and take you back to the main menu in SAP.

If the conversion fails, the system will stop on each of the fields in error and allow you to manually enter a correct value.

If your process fails during your test, then it is most likely that you have

either not aligned your input file

layout with the input file or have not tied the input file fields with the SAP field names properly.

PROCESSING REMAINING RECORDS

PROCESSING REMAINING RECORDS • Now that we have tested our process and it works successfully, we

Now that we have tested our process

and it works successfully, we are ready to process the rest of the records in our input file.

Start with step 10, Convert Data, but this time specify a range of records to convert. Since in this case we have only 30 records in all to convert, we will specify a range of 4 through 30. (Remember, we have the header in 1, we used record 2 for the recording, and we used record 3 for our test).

Click the Execute icon to convert the

specified records.

Bypass the “display of converted records” and proceed with creation

of the batch input session. Execute the Run Batch Input Session.

PROCESSING REMAINING RECORDS

PROCESSING REMAINING RECORDS • This time, however, we want to let the batch run in the

This time, however, we want to let the

batch run in the background, so we select the BACKGROUND radio button as shown previously, and EXECUTE.

The system will display our session, but the status will indicate

“background processing”.

If the batch processes successfully, it will disappear from this screen.

If it has any errors in it, the system will process all records it can and will provide an error log indicating the

records with errors. You will need to

determine the cause of the errors and deal with them.

PROCESSING REMAINING RECORDS

PROCESSING REMAINING RECORDS • To get to the log, select the session desired and click on

To get to the log, select the

session desired and click on the LOG icon on the batch sessions screen and you will be taken to this screen.

Double click on the line item shown.

PROCESSING REMAINING RECORDS

PROCESSING REMAINING RECORDS • A listing similar to what is shown here will appear. • It

A listing similar to what is shown

here will appear.

It lists each record read in and indicates whether or not it was processed successfully.

Sometimes it shows the key of the

record being processed….other times not….based on the

particular SAP transaction you are executing in your LSMW.

AT THIS POINT, YOU HAVE COMPLETED THE PROCESS OF:

  • 1. SETTING UP A STRUCTURE

  • 2. CREATING A RECORDING

  • 3. TESTING YOUR LSMW

  • 4. EXECUTING THE LSMW AGAINST MASS DATA

ADDITIONAL TECHNIQUES

PROCESSING LARGE AMOUNTS OF DATA

When processing large volumes of data through LSMW, it is

recommended that you use the “loop” steps of:

1. Convert data

2. Create batch processing session

3. Process batch processing session

….to convert “slices” of the data read in and feed that to SAP in sections. For

example, if you had 30,000 records to process, cut the data up into 5,000 increments and feed each one of them into individual batch processing

sessions. This is done by specifying the range of 2-5000, then 5001-10,000, then

10,001-15,000, etc. during each conversion step, and releasing each batch session, until you have processed all 30,000 records. You can then review each of the batches to see if you had any errors and deal with them.

ADDITIONAL TECHNIQUES

POSITIONING”

If, while doing the recording, you are reading certain structures such as Project wbs structures or cost center hiearchies, you must deal with the fact that the record you seek can be down in the stack, you can bring it consistently to the top line of the screen so that you can then select it for

processing, by using the path: >Select Object >Position, and then entering

the key of the record you wish to have LSMW work with.

ADDITIONAL TECHNIQUES

STOP SESSION

If you are in the process of testing your recording by feeding it a small

stack of records and it “locks up‟ with an error, you can exit LSMW and

let the session end by entering “/BEND” in the command line at the top of

the SAP screen and hitting the Enter key.

ADDITIONAL TECHNIQUES

BATCH SESSION DELETION

If any of your batch sessions have any errors in them, they will remain in the system and must be deleted .

Once you have dealt with the session and handled the errors in it, access

the list of batch sessions via step 13, “Execute batch sessions”, and select

that session. Then click on the “trash can” to delete the session and clean

up your file of sessions. space problems for you.

Otherwise, the list can grow and possibly cause