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 using batch input record session

Former Member
0 Likes
310

HI experts,

My requirement is to load the data from flat file consists of header and line items. In flat file i have 1 record for header and 5 records for line items. for this i declared 2 source structures one for header and second for line item data.

My question is how to repeat the loop for 5 times for each and every header . how to specify the data in flat file. give me example data also.

Thanks& Regard,

Srikanth.

1 REPLY 1
Read only

ThomasZloch
Active Contributor
0 Likes
285

Recordings only provide a single, flat target structure, this implies that you can have only one flat source structure as well.

Do you always have five items per header, no more and no less? Then you could rearrange your source data to have everything in one file and create your recording accordingly.

What data are you loading? In many cases SAP provides standard migration objects that cover more complex data structures.

Thomas