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
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>
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.
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
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
Add a comment