Application Development 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: 

LSMW

Former Member
0 Kudos

HI Experts,

when i am going to excute read data step in lsmw

i am getting error as <b>file "c:/asd.txt" and source structure structmm01 have no fields with the same name</b>

here i am taking flat file (text file) that contains fields and data

matnr-200-100

mtart-halt

mbrsh-c

matkl-001

meins-st

please clarify my doubt

Thanks,

Divya sree

8 REPLIES 8

Former Member
0 Kudos

Hi,

When you define the file path in the Specify Files option make sure that you have not clicked the option 'Field Names at the Start of File

If you remove this option then it will work fine.Suppose you do need the field names make sure that the names at the beginning of the file is the same as the field names specified in the Source Structure.

0 Kudos

hi

i am giving flat file contents as follows

900-100,roh,m,001,st

still i am getting error as <b>conversion errro bmmh1-meins content st,

no description transferred</b>

plz clarify

Thanks,

Divya sree

Former Member
0 Kudos

Hi

I am not quite sure wat is ur scenario. But may be one of the reason is the field length would not be maintained in the flat file. I mean to say if material no lenth is 13 digits and in ur flat file ur having mat no as 1245, then u have to append 9 blank spaces in this case. In simple what ever data u r having, if it is not upto length, then put remaining spaces to the right.

Shane

0 Kudos

HI,

Still i am getting same error

0 Kudos

What about trying to use EA instead of ST ?

0 Kudos

Divya,

1. Make sure the fields in the structure of the lsmw is same as the flat file structure.

2. refer the size of the fields in flat file and lsmw structure, it should be same.

3. Do you want to upload materials ?? Which method are you using ..BDC,idoc ?? if you are uploading the material data in the file is not enough.

REgards

vivek

  • reward points for all the helpful answers

Former Member
0 Kudos

Hi Divya,

This is probaly due to incorrect flat file contents.

Preapre your flat file data in this way.

1)Copy your flat file data into MS Excel.(Note : Each cell holds only one data field, i.e.. <b>200-100</b> ).

2)Save as ( Text tab delimited).

In your LSMW <b>Specify file</b> section.

Select the following.

<b>Sepearators</b>

Tabulator

<b>File Structure</b>

Field Order matches source strcu defn.

<b>Code page</b>

ASCII

Regards,

<b>AS</b>

shishupalreddy
Active Contributor
0 Kudos

Hi Divya,

Asper your flat file structre when you are selectiong the option for reading the file in LSMW

Better choose COMMA DELIMITER instead of TAB delimitor

It will work fine