Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

lsmw

Former Member
0 Likes
689

Hello all,

I have a scenario where ther are two Input files and are to be mapped to a single structure. How do I map two files to one using the LSMW tool. I finished the following

Maintain object attributes

Maintain source structures

Maintain source fields

Maintain structure relations ?????? Two files to one struc

Maintain field mapping and conversion rul ????? Two files to one struc

Thanks in Advance

Satish

Hello all,

I have a scenario where ther are two Input files and are to be mapped to a single structure. How do I map two files to one using the LSMW tool. I finished the following

Maintain object attributes

Maintain source structures

Maintain source fields

Maintain structure relations ?????? Two files to one struc

Maintain field mapping and conversion rul ????? Two files to one struc

Thanks in Advance

Satish

4 REPLIES 4
Read only

Former Member
0 Likes
589

Hi,

I am not sure how to map two files to one structure..

But I can suggest another solution..

In the FILE1 create the fields for the values in

file 2.

Then you can write code in the "FIELD MAPPING and conversion Rules" to upload the file and move the values to the fields that are part of file2..

Hope this works..

Thanks,

Naren

Read only

abdul_hakim
Active Contributor
0 Likes
589

hi,

you can easily map it.

while assigning files assign it to the respective structures..

Cheers,

Abdul Hakim

Read only

Former Member
0 Likes
589

You cannot use 2 flat files in case of LSMW, Probably you face difficulty in 7th or 8th step, i dont think you can use 2 files in case of normal LSMW.

Read only

Former Member
0 Likes
589

hi

good

 If the file consists of two or more different record layouts but in a fixed pattern (e.g. header then two details, header then two details, etc.), you must create a different source structure for each record type. The definition must include the structure name, the field names, and the technical field attributes.

 If the file consists of two or more different record layouts with a random pattern, then the first position in each row must contain information describing the record type. This is called the ID field.

 The definition must include the structure name, the field names, and the technical field attributes. In addition, when defining the fields, the ID field must be identified as such.

thanks

mrutyun