<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem while Creating BOM using LSMW Direct Input in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045642#M1172933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be one or more fields in header and line item structures which have same name. For example:&lt;/P&gt;&lt;P&gt;Header -&amp;gt; VBELN(key), NAME1 (let it be customer name)&lt;/P&gt;&lt;P&gt;Line     -&amp;gt; VBELN(key), VBELP(line item no.), NAME1 (let it be vendor name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now while reading the files, the read program will read all the records from header as well as line item files. &lt;/P&gt;&lt;P&gt;However while writing in corresponding internal tables (of the LSMW program) if it does not find the combination of VBELN and NAME1 same in header and line files, then the write program will not write those unmatching records. Note that in this case instead of matching only VBELN it is also matching NAME1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the best way is to change the common field's (other then the linking one) name in header or line structures. For example you can give NAME1  as NAME1 in header structure but in line structure assign its title as NAME_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget giving rewards in case my answer helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2009 09:34:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-08T09:34:16Z</dc:date>
    <item>
      <title>Problem while Creating BOM using LSMW Direct Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045638#M1172929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  all , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create the BOM Using LSMW Direct Input Method . &lt;/P&gt;&lt;P&gt;I am getting problem at step 9 that is &lt;STRONG&gt;Read Data&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is able to read the values from header and item files . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is not able to write , so the &lt;STRONG&gt;Written&lt;/STRONG&gt; is 0 always . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put the field names first in the flat file and correcponding values below it with tab delimited. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know where the Problem would be.... I am trying this from long time .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards , &lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 22:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045638#M1172929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T22:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while Creating BOM using LSMW Direct Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045639#M1172930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Did you specify file where read data will be written?&lt;/P&gt;&lt;P&gt;Check &lt;STRONG&gt;specify files&lt;/STRONG&gt; step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 04:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045639#M1172930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T04:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while Creating BOM using LSMW Direct Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045640#M1172931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when the step7(Specify Files) afte assining the files in the block   FILE STRCTURE---&amp;gt; you can tick the &lt;STRONG&gt;Field names at start of file&lt;/STRONG&gt; and &lt;STRONG&gt;field order matches source strcture definition&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 07:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045640#M1172931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T07:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while Creating BOM using LSMW Direct Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045641#M1172932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you enter step "Specify files" in change mode, make sure filename is filled in for Read Data (application server). If this does not work, mark checkbox "Display Read Program" (accessible via Personal Menu), execute it in debug mode and put a breakpoint at the transfer statement (maybe write permissions on application server are not correct).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 07:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045641#M1172932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T07:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while Creating BOM using LSMW Direct Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045642#M1172933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be one or more fields in header and line item structures which have same name. For example:&lt;/P&gt;&lt;P&gt;Header -&amp;gt; VBELN(key), NAME1 (let it be customer name)&lt;/P&gt;&lt;P&gt;Line     -&amp;gt; VBELN(key), VBELP(line item no.), NAME1 (let it be vendor name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now while reading the files, the read program will read all the records from header as well as line item files. &lt;/P&gt;&lt;P&gt;However while writing in corresponding internal tables (of the LSMW program) if it does not find the combination of VBELN and NAME1 same in header and line files, then the write program will not write those unmatching records. Note that in this case instead of matching only VBELN it is also matching NAME1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the best way is to change the common field's (other then the linking one) name in header or line structures. For example you can give NAME1  as NAME1 in header structure but in line structure assign its title as NAME_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget giving rewards in case my answer helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 09:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045642#M1172933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T09:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while Creating BOM using LSMW Direct Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045643#M1172934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still getting problem while for writing the records after reading the data ..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my header structure : &lt;/P&gt;&lt;P&gt;STYPE&lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;WERKS&lt;/P&gt;&lt;P&gt;SELAL&lt;/P&gt;&lt;P&gt;STLAN&lt;/P&gt;&lt;P&gt;DATUV&lt;/P&gt;&lt;P&gt;ZTEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my item structure : &lt;/P&gt;&lt;P&gt;STYPE&lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;WERKS&lt;/P&gt;&lt;P&gt;SELAL&lt;/P&gt;&lt;P&gt;POSTP&lt;/P&gt;&lt;P&gt;MENGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my header data : &lt;/P&gt;&lt;P&gt;STYPE	MATNR	WERKS	SELAL	STLAN	DATUV	ZTEXT&lt;/P&gt;&lt;P&gt;1	388	0110	20	1	06.01.2009	SAMPLE ZTEXT	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my item data : &lt;/P&gt;&lt;P&gt;STYPE	MATNR1	WERKS	SELAL	POSTP	MENGE&lt;/P&gt;&lt;P&gt;1	388	0110	20	N	1234&lt;/P&gt;&lt;P&gt;1	382	0110	20	N	12345&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above text files are delimited by tabulator. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me . The files are reading but unable to write ..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 16:12:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045643#M1172934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T16:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while Creating BOM using LSMW Direct Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045644#M1172935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , &lt;/P&gt;&lt;P&gt;Yes i am specify files i am attaching 2 files . &lt;/P&gt;&lt;P&gt;ones is header and the other is line item data . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my strucure is : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still getting problem while for writing the records after reading the data ..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my header structure : &lt;/P&gt;&lt;P&gt;STYPE&lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;WERKS&lt;/P&gt;&lt;P&gt;SELAL&lt;/P&gt;&lt;P&gt;STLAN&lt;/P&gt;&lt;P&gt;DATUV&lt;/P&gt;&lt;P&gt;ZTEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my item structure : &lt;/P&gt;&lt;P&gt;STYPE&lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;WERKS&lt;/P&gt;&lt;P&gt;SELAL&lt;/P&gt;&lt;P&gt;POSTP&lt;/P&gt;&lt;P&gt;MENGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my header data : &lt;/P&gt;&lt;P&gt;STYPE	MATNR	WERKS	SELAL	STLAN	DATUV	ZTEXT&lt;/P&gt;&lt;P&gt;1	388	0110	20	1	06.01.2009	SAMPLE ZTEXT	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my item data : &lt;/P&gt;&lt;P&gt;STYPE	MATNR1	WERKS	SELAL	POSTP	MENGE&lt;/P&gt;&lt;P&gt;1	388	0110	20	N	1234&lt;/P&gt;&lt;P&gt;1	382	0110	20	N	12345&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above text files are delimited by tabulator. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me . The files are reading but unable to write ..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 16:14:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045644#M1172935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T16:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while Creating BOM using LSMW Direct Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045645#M1172936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the &lt;STRONG&gt;Maintain Field Mapping and Conversion Rules&lt;/STRONG&gt; step &lt;/P&gt;&lt;P&gt;assign source fields to destination fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, line items must be stored in the table, yes?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;transfer_record&lt;/STRONG&gt; macro plays role of &lt;STRONG&gt;append&lt;/STRONG&gt; statement .&lt;/P&gt;&lt;P&gt;So, you can fill tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 05:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-bom-using-lsmw-direct-input/m-p/5045645#M1172936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T05:01:03Z</dc:date>
    </item>
  </channel>
</rss>

