26
Hi Friends, I want share some knowledge regarding how to upload the OM Objects (organization management) like jobs, positions & Org. units through LSMW with batch input recording. I know everyone is well versed with this LSMW, just consider it as a quick reference. Pre-requisites We have to create all the OM Objects External Number range before uploading the objects through LSMW. Because system will not consider for Internal number ranges. T-code: OONR

LSMW OM Relationships (11.11.2014).docx

Embed Size (px)

Citation preview

Page 1: LSMW OM Relationships (11.11.2014).docx

Hi Friends,

I want share some knowledge regarding how to upload the OM Objects (organization management) like jobs, positions & Org. units through LSMW with batch input recording.

I know everyone is well versed with this LSMW, just consider it as a quick reference.

Pre-requisites

We have to create all the OM Objects External Number range before uploading the objects through LSMW. Because system will not consider for Internal number ranges.

T-code: OONR

Page 2: LSMW OM Relationships (11.11.2014).docx

Creating Project / Subproject and Object:

Go to Tcode- LSMW

Click on Create button and give the name of the Project, Subproject and Object as desired

*Give Project names as SMALL otherwise while assigning upload file at step 7 Specify files, error will come. System path is not allowed more than 45 words (this is standard by the system)

Press Enter

Recording: Sample recording of Objects

In menu bar, Goto Recordings

Now click on Create Recording and give the Recording name and description

Page 3: LSMW OM Relationships (11.11.2014).docx

System will ask for Transaction code, give PP02

Maintain the fields that are mandatory, to create object types

Page 4: LSMW OM Relationships (11.11.2014).docx

Save the Record and click the button Back

Page 5: LSMW OM Relationships (11.11.2014).docx

Now system will show the recording results in the screen Create Recording Click the Button Default All to default the system for Technical fields which are entered while recording and Save the screen and go back

Our Recording is completed

Once again go back to the LSMW screen

Page 6: LSMW OM Relationships (11.11.2014).docx

Now, we have to do step by step LSMW (14 steps)

Step 1: Maintain Object Attributes Select this radio button and click on execute(Do same for other steps) Now, click on Display/ Change icon (do this for every step, because by default it will be display mode) Here, we are telling system that what kind recording should take into consideration while performing upload. Select ‘Batch Input Recording’ and give name as shown below Save and back

Page 7: LSMW OM Relationships (11.11.2014).docx

Step 2: Maintain Source Structures

Source structures are helpful in building hierarchical relationships. While uploading the data system always checks highest level structure first before going for subordinate structure. Select source structure and create

Enter details as shown below

Save and go back

Page 8: LSMW OM Relationships (11.11.2014).docx

Step 3: Maintain Source Fields

Here we assign all the fields which need to upload to source structure. Click on Object Overviewselect table

Copy the fields and length in excel sheet (for temporary) Note: exclude TABNAME and TCODE which are not required to maintain separately, system will take these from recording we made. Make excel sheet as shown:

Page 9: LSMW OM Relationships (11.11.2014).docx

Now select ‘Maintain Source Fields’ button and executeClick on ‘table maintenance’

Paste from the excel sheet which we maintained.*we can take either C or D for the Date format accordingly upload data has to be maintained

Page 10: LSMW OM Relationships (11.11.2014).docx

Save and go back

Step 4: Maintain Structure Relations

Here we check whether structure relations between legacy and R/3 established or not.

Page 11: LSMW OM Relationships (11.11.2014).docx

In this step there is no need to change, just save and come back.

Step 5: Display Field Mapping and Conversion

Here we establish the relationship between legacy and R/3 based on object fields. In menu bar, go to ExtrasAuto Field Mapping Cntrl+shift+Note: Make sure that you select your recording before auto field mapping

Click on accept proposal for all the fields which want to upload

Page 12: LSMW OM Relationships (11.11.2014).docx
Page 13: LSMW OM Relationships (11.11.2014).docx

After auto field mapping complete, save and back.

Step 6: Maintain Fixed Values, Translations, User-Defined Routines

No need of this step-6

Step 7: Specify Files

In this step, you specify the location of the legacy file. The file in tabular form with first row field names

Now, double click on ‘Legacy Data – On the PC (Front End)

Page 14: LSMW OM Relationships (11.11.2014).docx
Page 15: LSMW OM Relationships (11.11.2014).docx

Save and go back

Example of Excel file to upload in the .TXT form

Page 16: LSMW OM Relationships (11.11.2014).docx

Step 8: Assign Files

Here, we just check whether file is assigned to source structure or not.

Save and go back

Step 9: Read Data

Here our legacy data is read

ExecuteNow, next screen shows how many number of records have been read

Page 17: LSMW OM Relationships (11.11.2014).docx

Step 10: Display Read Data

Here, we can display all for part of the data by giving line numbers

Check, whether data has been correctly fit into fields

Page 18: LSMW OM Relationships (11.11.2014).docx
Page 19: LSMW OM Relationships (11.11.2014).docx

Step 11: Convert Data

Here, whatever data has been read will convert to SAP standards.

ExecuteNow, it shows how many records have been converted. It should be same as data which have been read in step 9.

Step 12: Display Converted Data

Here, converted data can be viewed for cross check.

Page 20: LSMW OM Relationships (11.11.2014).docx

Data from the legacy file is fitting to correct fields, so we configured all prior steps without any mistake. Note: If data is not fitting correctly, then we need to cross check Step3 and Step5.

Page 21: LSMW OM Relationships (11.11.2014).docx

Step 13: Create Batch Input Session

In this step, we create session for batch input Make sure you check box for ‘Keep batch input folder’ is active

Execute

Step 14: Run Batch Input Session

Here we run the batch input session which we created in step 13. Select Session and execute process

Here we can choose options, how upload should be done

Page 22: LSMW OM Relationships (11.11.2014).docx

It is recommendable that, first 3 to 4 records upload foreground to make sure data is uploading correct, for rest of records select ‘Display errors only.

Now legacy data will we upload to Master data of employees in SAP system.

Testing: whether objects relations are created or not

Page 23: LSMW OM Relationships (11.11.2014).docx

Relationship between OM & PA

If the switches are activated, system was defaulted the objects in the PA also (for hiring the Employee in the specific position)

Page 24: LSMW OM Relationships (11.11.2014).docx

Otherwise run the Report RHINTE10