Skip to Content
author's profile photo Former Member
Former Member

LSMW

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2006 at 07:15 AM

    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>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2006 at 09:01 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2006 at 09:51 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • Posted on Oct 16, 2006 at 11:01 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.