<?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: String Manupilation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029834#M716565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   It will be populated automatically and if you need to remove you can use the CONDENSE statement.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2007 12:48:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-02T12:48:25Z</dc:date>
    <item>
      <title>String Manupilation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029832#M716563</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 have a a char variable with a length of 18. As soon as this variable is populated, i want to fill the remaining lengths with spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does any1 have an idea how i can accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks,&lt;/P&gt;&lt;P&gt;Danny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 12:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029832#M716563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T12:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: String Manupilation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029833#M716564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is char type...it will automatically fill rest length with space...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u dont need to code for it explicitely..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward useful answers,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tejas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 12:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029833#M716564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T12:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: String Manupilation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029834#M716565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   It will be populated automatically and if you need to remove you can use the CONDENSE statement.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 12:48:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029834#M716565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T12:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: String Manupilation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029835#M716566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tejas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain futher what i am trying to do. I am trying make up a key for to read the lock table using FM ENQUEUE_READ. The key is made up of mandt, matnr (18  char), and plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i can do the above, except when the material number is made up of character. i:e &lt;/P&gt;&lt;P&gt;mandt = 100; matnr=testmaterial; plant=9090; When i concatenated it the result wil be 100testmaterial9090. But on sm12 the key is 100testmaterial      9090. The spaces in between is the remaining character of the length 18.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks,&lt;/P&gt;&lt;P&gt;Danny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 12:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029835#M716566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T12:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: String Manupilation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029836#M716567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate mandt matnr to lv_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;length = strlen( matnr ).&lt;/P&gt;&lt;P&gt;length = 18 - length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do length times.&lt;/P&gt;&lt;P&gt;concatenate lv_key space to lv_key.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate lv_key plant to lv_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 13:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029836#M716567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T13:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: String Manupilation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029837#M716568</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;Thankx for the response. But the code still does not work correctly. I am getting this result : 050TestMat3091, instead of 050TestMat           3091.&lt;/P&gt;&lt;P&gt; Below is the code that i am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: matnr(18) type c value 'TestMat',&lt;/P&gt;&lt;P&gt;      plant type werks_d value '3091',&lt;/P&gt;&lt;P&gt;      length type i,&lt;/P&gt;&lt;P&gt;      lv_key(22) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE sy-mandt matnr into lv_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;length = strlen( matnr ).&lt;/P&gt;&lt;P&gt;length = 18 - length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do length times.&lt;/P&gt;&lt;P&gt;concatenate lv_key space INTO lv_key.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate lv_key plant INTO lv_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: lv_key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tks,&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 13:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029837#M716568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T13:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: String Manupilation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029838#M716569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: matnr(18) type c value 'TestMat',&lt;/P&gt;&lt;P&gt;plant type werks_d value '3091',&lt;/P&gt;&lt;P&gt;lv_key type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONCATENATE&amp;lt;/b&amp;gt; mandt matnr plat &amp;lt;b&amp;gt;INTO&amp;lt;/b&amp;gt; lv_key &amp;lt;b&amp;gt;RESPECTING BLANKS&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 13:53:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029838#M716569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T13:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: String Manupilation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029839#M716570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danny ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems I found solution...check this code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: matnr(18) TYPE c VALUE 'TestMat',
plant TYPE werks_d VALUE '3091',
length TYPE i.

DATA : pv_key TYPE char22,
lv_key TYPE char26.

DATA : spc TYPE char18.

length = STRLEN( matnr ).

length = 18 - length.


CONCATENATE matnr plant INTO pv_key SEPARATED BY spc+0(length).
CONCATENATE sy-mandt pv_key INTO lv_key.

WRITE: lv_key.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 14:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029839#M716570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T14:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: String Manupilation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029840#M716571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent Perez. It works like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for the response.&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 14:12:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupilation/m-p/3029840#M716571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T14:12:10Z</dc:date>
    </item>
  </channel>
</rss>

