<?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: To write code in LSMW. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340062#M1539346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;"7"" casting test""&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;7 casting test&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to debug, just hardcode BREAK-POINT in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Oct 2010 11:34:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-26T11:34:34Z</dc:date>
    <item>
      <title>To write code in LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340057#M1539341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;We have created LSMW, in which when we upload the file,  the file which we are uploading contains the entry of MAKTX field in double quotes only, thats why in the MAKTX field we are getting the string with double quotes, which is causing the problem.&lt;/P&gt;&lt;P&gt;So in the field mapping , we want to remove the double quotes for the field in LSMW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example : the line is "7"" casting test"".&lt;/P&gt;&lt;P&gt;we want to remove the first and last double quote from the value of MAKTX in lsmw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how we can write the code to remove this double quote from the string for the field MAKTX in LSMW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 10:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340057#M1539341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T10:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: To write code in LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340058#M1539342</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;while mapping the field maktx in lsmw with structure,you can remove the quote and assign the field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 10:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340058#M1539342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T10:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: To write code in LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340059#M1539343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;The file contains so many entries and user will not going to remove quotes each time he/she upload the data.&lt;/P&gt;&lt;P&gt;So we have to write some code to remove quotes each time we will process the file.&lt;/P&gt;&lt;P&gt;So how can to write the code for the same in field mapping?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 10:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340059#M1539343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T10:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: To write code in LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340060#M1539344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to the field mapping / conversion rules section and just double click in the mapping for MAKTX. There you can add your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 10:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340060#M1539344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T10:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: To write code in LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340061#M1539345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i had written code in the field mapping , in the coding section of MAKTX field, but it does seem to be working.&lt;/P&gt;&lt;P&gt;i had declare the variables and even put the loop statement there, but its not working.&lt;/P&gt;&lt;P&gt;the code is :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : string(100) TYPE c,&lt;/P&gt;&lt;P&gt;       stringf(100) TYPE c,&lt;/P&gt;&lt;P&gt;       len TYPE i,&lt;/P&gt;&lt;P&gt;       len2 TYPE i,&lt;/P&gt;&lt;P&gt;       len3 TYPE i,&lt;/P&gt;&lt;P&gt;       count TYPE i,&lt;/P&gt;&lt;P&gt;       count2 TYPE i,&lt;/P&gt;&lt;P&gt;       l_string(100) TYPE c.&lt;/P&gt;&lt;P&gt;string = bgr001-maktx.&lt;/P&gt;&lt;P&gt;len = strlen( string ).&lt;/P&gt;&lt;P&gt;DO len TIMES.&lt;/P&gt;&lt;P&gt;  IF string+count(1) = '"'.&lt;/P&gt;&lt;P&gt;    IF stringf = '"'.&lt;/P&gt;&lt;P&gt;      len2 = strlen( l_string ).&lt;/P&gt;&lt;P&gt;      len3 = len2 - 1.&lt;/P&gt;&lt;P&gt;      IF l_string+len3(len2) NE '"'.&lt;/P&gt;&lt;P&gt;        l_string&lt;EM&gt;count2(1) = string&lt;/EM&gt;count(1).&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    l_string&lt;EM&gt;count2(1) = string&lt;/EM&gt;count(1).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  stringf = string+count(1).&lt;/P&gt;&lt;P&gt;  count = count + 1.&lt;/P&gt;&lt;P&gt;  count2 = count2 + 1.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt; SHIFT l_string LEFT DELETING LEADING space.&lt;/P&gt;&lt;P&gt; bmmh1-maktx = l_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please tell me how we can debug it?&lt;/P&gt;&lt;P&gt;or is there something wrong in it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 10:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340061#M1539345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T10:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: To write code in LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340062#M1539346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;"7"" casting test""&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;7 casting test&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to debug, just hardcode BREAK-POINT in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 11:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340062#M1539346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T11:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: To write code in LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340063#M1539347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are correct , i want to change the way you had written , and i also put the break-point statement as well but still it does not stop at that point.&lt;/P&gt;&lt;P&gt;Is that i m missing something or what else is required?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 04:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340063#M1539347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-27T04:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: To write code in LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340064#M1539348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My above code is working correctly now, i can see that in display converted data, double quotes gets deleted.&lt;/P&gt;&lt;P&gt;Thank you all for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 05:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340064#M1539348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-27T05:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: To write code in LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340065#M1539349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the answer to my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 05:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340065#M1539349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-27T05:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: To write code in LSMW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340066#M1539350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tip: get rid of all that coding as you can do it with 1 line: it's just confusing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;replace all occurrences of '"' in string with space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 10:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-write-code-in-lsmw/m-p/7340066#M1539350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-27T10:34:29Z</dc:date>
    </item>
  </channel>
</rss>

