<?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 Filling the needed characters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-the-needed-characters/m-p/7159890#M1515716</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 need to fill a variable with some char like 'A' or 'B' but it is flexible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean, i will do it as required, for example i need to put 10 'A' if the variable needs 10,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;15 if it needs 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And need is like that, variable lenght is 40 and assume 25 of it is full and 15 is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to fill this 15 char with 'A'. How can i put a number of char to the variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Aug 2010 08:44:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-09T08:44:50Z</dc:date>
    <item>
      <title>Filling the needed characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-the-needed-characters/m-p/7159890#M1515716</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 need to fill a variable with some char like 'A' or 'B' but it is flexible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean, i will do it as required, for example i need to put 10 'A' if the variable needs 10,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;15 if it needs 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And need is like that, variable lenght is 40 and assume 25 of it is full and 15 is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to fill this 15 char with 'A'. How can i put a number of char to the variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 08:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-the-needed-characters/m-p/7159890#M1515716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T08:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the needed characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-the-needed-characters/m-p/7159891#M1515717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    You can achieve ur requirement like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_value(10) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_value = 'ABCDEF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE v_value 'AAAAAAAAAA' INTO v_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the value of v_value variable.  If your variable has 10 char then concatenate 10 'A's, it is 15 char length concatenate 15 'A's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will be an overflow when it calls in runtime but it gives solution to ur requirement.&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;Selva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Selva M on Aug 9, 2010 2:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 09:11:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-the-needed-characters/m-p/7159891#M1515717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T09:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the needed characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-the-needed-characters/m-p/7159892#M1515718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data:char_var(40) type c.&lt;/P&gt;&lt;P&gt;data:value type char25.&lt;/P&gt;&lt;P&gt;value = '1234567891234567891234567'.&lt;/P&gt;&lt;P&gt;do 40 times.&lt;/P&gt;&lt;P&gt;concatenate char_var 'A' into char_var.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen ( value ).&lt;/P&gt;&lt;P&gt;len = len - 1.&lt;/P&gt;&lt;P&gt;char_var+0(len) = value.&lt;/P&gt;&lt;P&gt;write char_var.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 09:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-the-needed-characters/m-p/7159892#M1515718</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-09T09:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the needed characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-the-needed-characters/m-p/7159893#M1515719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best way is to use TRANSLATE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: v_ip(40) TYPE c.

v_ip = '12345678901234567890123456789012345'. "35 characters

TRANSLATE v_ip USING ' A'. " ' A' --&amp;gt; Replace the space with A, output will have 5 A's

WRITE / v_ip.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Aug 9, 2010 3:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 09:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-the-needed-characters/m-p/7159893#M1515719</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-09T09:31:19Z</dc:date>
    </item>
  </channel>
</rss>

