<?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: Help required-LSMW. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878104#M51125</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;i am new to lsmw and trying to create  a retail material through lsmw. i chose business object method with business object as bus1001001.method is 'clone'&lt;/P&gt;&lt;P&gt; everything has gone well and i could create a material too.&lt;/P&gt;&lt;P&gt;but in unit field,(i.e the display of all types of units) the legacy data contains 4 rows of units. when i transfer them the new created material displays only one line of units. the other three rows in material display (code transaction- mm43)are empty.&lt;/P&gt;&lt;P&gt; i have tried using on_change_transfer too but that doesnt seem to make any difference.&lt;/P&gt;&lt;P&gt;your reply will be a great help. thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Feb 2005 16:09:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-02T16:09:11Z</dc:date>
    <item>
      <title>Help required-LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878095#M51116</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;  My requirement is that I will get a flat file in which one of the fields will be with 26 digits... I am using transaction KS01... So for the cost center creation the criteria is that I need to concatenate the company code, the 7-11 digits (of the 26 digit field) &amp;amp; zero '0'... I am able to do this for the first record ... but I am not able to get the same for the second record... the logic that i have written is as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the field mapping step under the cost center I written the following ABAP code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : V_BUKRS LIKE CSKS-BUKRS.&lt;/P&gt;&lt;P&gt;SELECT BUKRS&lt;/P&gt;&lt;P&gt;  INTO V_BUKRS&lt;/P&gt;&lt;P&gt;  FROM CSKS&lt;/P&gt;&lt;P&gt;  WHERE KOKRS = SOURCE-CONTROLLING_AREA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE V_BUKRS&lt;/P&gt;&lt;P&gt;            SOURCE-26DIGIT_CTCTR+6(5)&lt;/P&gt;&lt;P&gt;            '0'&lt;/P&gt;&lt;P&gt;      INTO TARGET-KOSTL.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I debug this program in LSMW??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is appreciated.&lt;/P&gt;&lt;P&gt;-Seema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2005 20:13:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878095#M51116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-01T20:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help required-LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878096#M51117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Double click on "convert data" in your LSMW.&lt;/P&gt;&lt;P&gt;This will take you to your conversion program.&lt;/P&gt;&lt;P&gt;Click system, status.   See your program name,  double click it.  Now look for your code, set a breakpoint.  Come back out to your conversion program selection screen and click execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, it might be better if your select was more like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA : V_BUKRS LIKE CSKS-BUKRS.

clear v_bukrs.
SELECT Single BUKRS INTO V_BUKRS
     FROM CSKS
         WHERE KOKRS = SOURCE-CONTROLLING_AREA.
if sy-subrc  = 0.
CONCATENATE V_BUKRS SOURCE-26DIGIT_CTCTR+6(5) '0'
          INTO TARGET-KOSTL.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2005 20:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878096#M51117</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-01T20:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help required-LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878097#M51118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are in the initial screen of LSMW for the object(with all the radio-buttons), click on the 'Personal Menu' push button and select the checkbox for 'Display Conversion Program.'. Then you can simply select that action and put a break-point in the code section and debug it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I may comment, just based on the code piece given here, your 'SELECT statement may not be returning any records for your second record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your SOURCE-CONTROLLING_AREA field similar to CSKS-KOKRS? Otherwise a select like this might not return any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, there is a potential for multiple records to be fetched from CSKS since you are passing only partial key. So, essentially you are moving your concatenated value into the TARGET-KOSTL based on your last record from that select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your requirement with regards to the BUKRS? Is it that you need to create cost centers for all BUKRS assigned to a given controlling area on the file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2005 20:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878097#M51118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-01T20:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help required-LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878098#M51119</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 checked up the db table &amp;amp; could find that for one controlling area there is one company code ... but the cost center are created with the concatenation of company code + 7-11 digits of the 26 digits that will be coming from the flat file (these 5 digits that I am concatenating is the functial area... ) + '0'....&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;Seema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2005 22:16:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878098#M51119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-01T22:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help required-LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878099#M51120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be that way now, but there can be multiple company codes assigned to a single controlling area. Confirm with your functional consultant that one-to-one relationship is what they intend to keep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, CSKS is the cost center table. If you want to get the company codes assigned to a controlling area, use the view V_TKA02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any luck in the debugging, to help on finding out the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2005 22:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878099#M51120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-01T22:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help required-LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878100#M51121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have set the breakpoint &amp;amp; in the debug mode found out that in the 2nd iteration of the loop V_BUKRS is empty. Can u analyse what the problem is ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;seema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2005 22:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878100#M51121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-01T22:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help required-LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878101#M51122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your select of csks seems to be strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what's your relation between controlling aerea (Kokrs)&lt;/P&gt;&lt;P&gt;and company (bukrs) is it 1:1 or is it 1:n ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it's 1:1 you've to select TKA02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it's 1 kokrs : n Bukrs you can't find out the correct company - you need more information in your flat file !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 08:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878101#M51122</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-02-02T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help required-LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878102#M51123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't really analyze what is happening without all your program code and perhaps your flat file.  You are hitting this table more than once per each record of your flat file, this is not efficient, did you change your select statement as per my instruction eariler?&lt;/P&gt;&lt;P&gt;This way you will only be hitting the table once per flat file record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tend to agree with the previous poster about getting your company code from the TKA02 table.  But your way would work in my system.  We have one company code with one controlling area and all the cost centers are tied to them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that the value that you are getting from the flat file is a valid value to select the data from the db.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 13:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878102#M51123</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-02T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help required-LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878103#M51124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanx guys for your valuable time &amp;amp; suggestion.... Now I am able to do it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx to one &amp;amp; all... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Seema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 13:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878103#M51124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-02T13:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help required-LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878104#M51125</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;i am new to lsmw and trying to create  a retail material through lsmw. i chose business object method with business object as bus1001001.method is 'clone'&lt;/P&gt;&lt;P&gt; everything has gone well and i could create a material too.&lt;/P&gt;&lt;P&gt;but in unit field,(i.e the display of all types of units) the legacy data contains 4 rows of units. when i transfer them the new created material displays only one line of units. the other three rows in material display (code transaction- mm43)are empty.&lt;/P&gt;&lt;P&gt; i have tried using on_change_transfer too but that doesnt seem to make any difference.&lt;/P&gt;&lt;P&gt;your reply will be a great help. thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 16:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-lsmw/m-p/878104#M51125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-02T16:09:11Z</dc:date>
    </item>
  </channel>
</rss>

