<?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: Length Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/length-problem/m-p/1495915#M230252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use CO you are saying contains only, instead use the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : i_strlen type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_strlen = STRLEN(x_value1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case i_strlen.&lt;/P&gt;&lt;P&gt; when 4.&lt;/P&gt;&lt;P&gt; when 5.&lt;/P&gt;&lt;P&gt;Endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Sep 2006 19:05:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-05T19:05:24Z</dc:date>
    <item>
      <title>Length Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/length-problem/m-p/1495914#M230251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data:  x_value1 type string,&lt;/P&gt;&lt;P&gt;           x_value2(10) type c.&lt;/P&gt;&lt;P&gt;if x_value1 co '1234'&lt;/P&gt;&lt;P&gt; concatenate '0' x_value1 into x_value2.&lt;/P&gt;&lt;P&gt;elseif x_value1 co'12345'.&lt;/P&gt;&lt;P&gt;  concatenate '-' x_value1 into x_value2.&lt;/P&gt;&lt;P&gt;elseif x_value1 co '12345678'&lt;/P&gt;&lt;P&gt;concatenate '*' into x_value2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_value1 may contain 4 digits or 5 digits or 8 digits or 9 digitis or 10 digitis.based on the number of digits i need to concatenate '-' or '0' or '*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried by declaring x_value1(10) type c &lt;/P&gt;&lt;P&gt;also...but no answer...&lt;/P&gt;&lt;P&gt;how can i get ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 18:59:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/length-problem/m-p/1495914#M230251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T18:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Length Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/length-problem/m-p/1495915#M230252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use CO you are saying contains only, instead use the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : i_strlen type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_strlen = STRLEN(x_value1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case i_strlen.&lt;/P&gt;&lt;P&gt; when 4.&lt;/P&gt;&lt;P&gt; when 5.&lt;/P&gt;&lt;P&gt;Endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 19:05:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/length-problem/m-p/1495915#M230252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T19:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Length Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/length-problem/m-p/1495916#M230253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Based on the field length you can pass the different different variables, &lt;/P&gt;&lt;P&gt;lets see the example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: x_value1 type string,&lt;/P&gt;&lt;P&gt;x_value2(10) type c,&lt;/P&gt;&lt;P&gt;len type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = STRLEN(x_value1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if len = 4.
concatenate '0' x_value1 into x_value2.
elseif len = 5.
concatenate '-' x_value1 into x_value2.
elseif len = 8.
concatenate '*' into x_value2.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 19:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/length-problem/m-p/1495916#M230253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T19:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Length Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/length-problem/m-p/1495917#M230254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    v_len = strlen(x_value1)&lt;/P&gt;&lt;P&gt;    case v_len&lt;/P&gt;&lt;P&gt;      when  1 or 2 or 3 or 4.&lt;/P&gt;&lt;P&gt;         concatenate '0' x_value1 into x_value2&lt;/P&gt;&lt;P&gt;      when 5 or 6 or 7 .&lt;/P&gt;&lt;P&gt;       concatenate '-' x_value1 into x_value2 &lt;/P&gt;&lt;P&gt;      when 8 or 9 or 10 .&lt;/P&gt;&lt;P&gt;       concatenate '*' x_value1 into x_value2 &lt;/P&gt;&lt;P&gt;     endcase.  &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 19:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/length-problem/m-p/1495917#M230254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T19:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Length Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/length-problem/m-p/1495918#M230255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense x_value1.&lt;/P&gt;&lt;P&gt;lth = strlen (x_value1).&lt;/P&gt;&lt;P&gt;case lth.&lt;/P&gt;&lt;P&gt; when 4.&lt;/P&gt;&lt;P&gt;   lval = '0'.&lt;/P&gt;&lt;P&gt; when 5.&lt;/P&gt;&lt;P&gt;   lval = '-'.&lt;/P&gt;&lt;P&gt; when 8.&lt;/P&gt;&lt;P&gt;   lval = '*'.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;concatenate lval x_value1 into x_value2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 19:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/length-problem/m-p/1495918#M230255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T19:49:29Z</dc:date>
    </item>
  </channel>
</rss>

