Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

LSMW – Task List Creation with 5 level input file using Batch Input

$
0
0

Requirement: 

Creation of Task List using LSMW Batch Input with 1 input file having 5 level Structure data.

 

Mapping Template:

5 Structures:

1.jpg

Fields in the structures:

2.jpg

Note:     1) All these 5 rows generate 1 Task list.  

2) There can contain multiple Operations (level2) for each Header (Level1) in the input file.

3) There can be multiple Text Lines (Level3), Components (Level4), and Packages (Level5) for   

each Operation (Level2).

 

Input File Format:

3.jpg

The first Column is the Unique Identifier, which we need to maintain at the source field level for correct mapping.



LSMW:

Steps Involved:

4.jpg

Step1:  Maintain Object Attributes

 

We have Batch Input for the Task List Creation in the LSMW.

Data Transfer Object:           0490

Data Transfer Method:        B (Batch Input)

5.jpg

Step 2: Maintain Source Structures

 

Maintain Source Structures as per the Hierarchy.

Create a Header File Structure. Add Operation as the child Node (Next Level) to Header.

Add Long Text, Components, Packages structures as the child node (Next level) to Operations.

But all these three at same level

 

6.jpg

 

Step3: Maintain Source Fields

 

Maintain a Unique Identifier “RECORDNAME” in each structure.

 

7.jpg

 

Double Click the RECORDNAME Field and fill the identifying Field Content with some Unique Value.    

8.jpg

Similarly, do this for all the Identifying fields in each structure. The same can be screen in the screenshots.

9.jpg

Step4: Maintain Structure Relations

 

Map the structures respectively.

 

10.jpg

Step5: Maintain Field Mapping and Conversion Rules

Go to Menu Bar -> Extras -> Auto Field Mappings.

11.jpg

This will map the fields in our Source structures to the corresponding fields the Target Structures.

 

12.jpg

13.jpg

Similarly, all the fields will be mapped accordingly. It will be better to cross check.

 

Step6:Maintain Fixed Values, Translations, User-Defined Routines

 

User Defined Routines or Values can be maintained at this step.

 

Step7:Specify Files

 

At this step, specify the input file present at the Presentation Server.

14.jpg

Step8:Assign Files

 

Assign the input file to each structure applicable as shown below

15.jpg

As we have single input file, assign the same to all the structures applicable.

 

Step9: Read Data

 

At this Step, the data in the input file will be read and stored in the Structures.

16.jpg


Step10: Display Read Data

17.jpg

 

Step11:Convert Data

 

The data read from the input file, will be converted as the rules we provide in the field mapping stage.

Ex: Here, Conversion Exit was used was for Equipment Number.  This conversion will be executed at this stage.

 

18.jpg

 

Step12: Display Converted Data

 

The data converted, can be seen at this step.

 

19.jpg

Step13: Create Batch Input Session

 

This step will create the Batch Session. We need to provide the Session Name at this step.

20.jpg

 

Provide the Session Name. Delete the Deletion indicator, if you want to keep the session even after processing.

21.jpg

 

Step14: Run Batch Input Session

This will take you to SM35.  You can process the session according to your requirement.

 


Hope this might be helpful...!



Thanks

Prasanth Reddy.


Viewing all articles
Browse latest Browse all 935

Trending Articles



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