<?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: problem in getting last value of a string in Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562054#M1269072</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 apologize for the mistake in if condition....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change the if condition as given below.... its working fine... have checked it out....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF LENGTH2 LT STRING_LENGTH.
  STRING3 = STRING1+LENGTH2(1).
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2009 10:29:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-12T10:29:30Z</dc:date>
    <item>
      <title>problem in getting last value of a string in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562044#M1269062</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 am working on FM in which i have to put highfen mark which is working ok,but the problem if there is when the value of string finds a space it should not insert highfen in it and i am not able to put the condition in it as it showing the higfen even when the word is full in the first line.i want to show highfen where the word is not able to display complete. here is d code which i am using right now. plzz provide me guidlines to solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's d code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

FUNCTION Z_STRING_LENGTH1.

*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(I_STRING) TYPE  STRING
*"     VALUE(LENGTH) TYPE  I
*"  EXPORTING
*"     VALUE(E_STRING) TYPE  STRING
*"----------------------------------------------------------------------
data: STRING_F type string, "Stores the value in string format
      STRING_LENGTH type i, "Length of the string
      DIFF type i,          "Difference among the value
      DIFF1 TYPE C,
      STRING1 type string,  "Stores the 1st String
      STRING2 type string,  "Stores the 2nd String
      STRING3 type string,  "Stores the 3rd String
      STRING4 type string,  "Stores the 3rd String
      STRING5 type string,  "Stores the 3rd String
      LENGTH2 type I.

STRING_F = I_STRING.
STRING_LENGTH = STRLEN( I_STRING ).
DIFF = STRING_LENGTH - LENGTH.

IF DIFF LE 0.
  DIFF = 0.
ENDIF.

IF LENGTH LE STRING_LENGTH.
  STRING1 = STRING_F(LENGTH).
ELSE.
  STRING1 = STRING_F(STRING_LENGTH).
ENDIF.

IF LENGTH LE STRING_LENGTH.
  STRING2 = STRING_F+LENGTH(DIFF).
ELSE.
  STRING2 = STRING_F+STRING_LENGTH(DIFF).
ENDIF.

length2 = length - 1.
STRING3 = STRING1+length2(1).
STRING4 = STRING2+0(1).

IF LENGTH LE STRING_LENGTH AND STRING3 NE SPACE AND STRING4 NE SPACE.
  concatenate STRING1 '-' STRING2  into STRING5.
  e_string = STRING5.
ELSE.
  concatenate  STRING1 STRING2 into STRING5.
  e_string = STRING5.
ENDIF.
ENDFUNCTION.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ricx .s on May 12, 2009 5:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 03:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562044#M1269062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T03:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting last value of a string in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562045#M1269063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what exactly u have to do..But can guess whats wrong with ur code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the last condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF LENGTH LE STRING_LENGTH AND STRING3 NE SPACE AND STRING4 NE SPACE.&lt;/P&gt;&lt;P&gt;  concatenate STRING1 '-' STRING2  into STRING5.&lt;/P&gt;&lt;P&gt;  e_string = STRING5.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  concatenate  STRING1 STRING2 into STRING5.&lt;/P&gt;&lt;P&gt;  e_string = STRING5.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here... string3 will never be space...so ur code will never go into else part..&lt;/P&gt;&lt;P&gt;Bcoz, string with spaces at the last will take only the characters into it..but not the spaces..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: string = 'ABCDE         '..&lt;/P&gt;&lt;P&gt;The value in ur string is 'ABCDE'...thats all...no spaces at the last!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code..&lt;/P&gt;&lt;P&gt;DATA: str TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str = '123456789         '.&lt;/P&gt;&lt;P&gt;DATA: i1 TYPE i.&lt;/P&gt;&lt;P&gt;i1 = strlen( str ).&lt;/P&gt;&lt;P&gt;WRITE : str, 'KING'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What u can do is...&lt;/P&gt;&lt;P&gt;take the character at ur line end as...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING+length(index)...string is ur main string...length is length where u have to break the string the put a hifen..and index is value 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Veeranji Reddy on May 12, 2009 10:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 04:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562045#M1269063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T04:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting last value of a string in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562046#M1269064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code is working fine, it is putting hyphen only at the specified position, not between the spaces.&lt;/P&gt;&lt;P&gt;Can u write what exactly u r getting as output string and what u want to display.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 05:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562046#M1269064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T05:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting last value of a string in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562047#M1269065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;i know that the Fm is working ok but the problem it is also inserting the highfen where it is not requiered.&lt;/P&gt;&lt;P&gt;for example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'this is demo'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i give length = 5, then it is inserting the highfen in it as there is no need of it. bcoz till 4 th position word this is complete and there is no need of inserting highfen in it,but if i pass the value =  6,it should add highfen at position i-s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should i do it in  my logic?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 05:22:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562047#M1269065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T05:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting last value of a string in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562048#M1269066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ricx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk the following part of coding..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NA (contains Not Any)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logical expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;f1&amp;gt; NA &amp;lt;f2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is true if &amp;lt;f1&amp;gt; does not contain any character from &amp;lt;f2&amp;gt;. The comparison is case-sensitive. If the comparison is true, the system field SY-FDPOS contains the length of &amp;lt;f1&amp;gt;. If it is false, SY-FDPOS contains the offset of the first character of &amp;lt;f1&amp;gt; that occurs in &amp;lt;f2&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF ( LENGTH LE STRING_LENGTH )
AND ( STRING3 Na SPACE )
AND ( STRING4 Na SPACE ).
  concatenate STRING1 '-' STRING2  into STRING5.
  e_string = STRING5.
  write:/ e_string.
ELSE.
  concatenate  STRING1 STRING2 into STRING5.
  e_string = STRING5.
    write:/ e_string.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps..&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mdi.Deeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 05:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562048#M1269066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T05:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting last value of a string in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562049#M1269067</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;&lt;/P&gt;&lt;P&gt;I checked your code... its working fine except for some cases it is giving dumps for which I have added certain if conditions....&lt;/P&gt;&lt;P&gt;Please check the modified code below... have optimized it as well by removing one extra if condition....&lt;/P&gt;&lt;P&gt;you can copy and paste the code below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: STRING_F TYPE STRING, "Stores the value in string format
      STRING_LENGTH TYPE I, "Length of the string
      DIFF TYPE I,          "Difference among the value
      DIFF1 TYPE C,
      STRING1 TYPE STRING,  "Stores the 1st String
      STRING2 TYPE STRING,  "Stores the 2nd String
      STRING3 TYPE STRING,  "Stores the 3rd String
      STRING4 TYPE STRING,  "Stores the 3rd String
      STRING5 TYPE STRING,  "Stores the 3rd String
      LENGTH2 TYPE I.

STRING_F = I_STRING.
STRING_LENGTH = STRLEN( I_STRING ).
DIFF = STRING_LENGTH - LENGTH.

IF DIFF LE 0.
  DIFF = 0.
ENDIF.

IF LENGTH LE STRING_LENGTH.
  STRING1 = STRING_F(LENGTH).
  STRING2 = STRING_F+LENGTH(DIFF). " added this statement in this if itself instead of one extra if 
" which is not required
ELSE.
  STRING1 = STRING_F(STRING_LENGTH).
  STRING2 = STRING_F+STRING_LENGTH(DIFF).
ENDIF.

IF LENGTH IS NOT INITIAL.
  LENGTH2 = LENGTH - 1.
ENDIF.
" put this if condition as there is a dump occuring at this place.
" Dump occurs when you give the length value as 0
" Say for example the value of I_STRING, I passed it as SIDDARTH
" and the length I passed as 0, then it gives me a dump

STRING3 = STRING1+LENGTH2(1).
IF STRING2 IS NOT INITIAL.
  STRING4 = STRING2+0(1).
ENDIF.
" put this if condition as there is a dump occuring at this place.
" Dump occurs when you give the length value greater than or equal to
" the string length
" Say for example the value of I_STRING, I passed it as SIDDARTH
" and the length I passed as 8, then it gives me a dump

IF LENGTH LE STRING_LENGTH AND STRING3 NE SPACE AND STRING4 NE SPACE.
  CONCATENATE STRING1 '-' STRING2  INTO STRING5.
  E_STRING = STRING5.
ELSE.
  CONCATENATE  STRING1 STRING2 INTO STRING5.
  E_STRING = STRING5.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 05:27:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562049#M1269067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T05:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting last value of a string in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562050#M1269068</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;&lt;/P&gt;&lt;P&gt;and also one more change as you said that for space also it is giving a '-' which is not required... do the change at declaration.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change the data type of string3 and string4 as shown below......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: STRING_F TYPE STRING, 
      STRING_LENGTH TYPE I, 
      DIFF TYPE I,         
      DIFF1 TYPE C,
      STRING1 TYPE STRING,  
      STRING2 TYPE STRING, 
      STRING3 TYPE C,   "  Make string3 and string4 as type c, which holds just one character...
      STRING4 TYPE C, 
"  this will surely resolve your issue... 100%
      STRING5 TYPE STRING,  
      LENGTH2 TYPE I.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 05:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562050#M1269068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T05:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting last value of a string in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562051#M1269069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sidarth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had made up the changes which you had mentioned to do but still it is giving the run time error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


*STRING3 = STRING1+LENGTH2(1).*

 An exception occurred that is explained in detail below.
 The exception, which is assigned to class 'CX_SY_RANGE_OUT_OF_BOUNDS', was not
  caught in
 procedure "Z_STRING_LENGTH2" "(FUNCTION)", nor was it propagated by a RAISING
  clause.
 Since the caller of the procedure could not have anticipated that the
 exception would occur, the current program is terminated.
 The reason for the exception is:
 In the running program "SAPLZGROUP_FOR_555", part of a string was about to be
  accessed
 via an offset.
 However, the offset (4) was larger than the current length of the
 string (4).
 This kind of access is illegal.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though i had made up the changes in STRING3 and  STRING4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plzzzprovide me guidleines to solve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 09:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562051#M1269069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T09:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting last value of a string in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562052#M1269070</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;write this statement&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;STRING3 = STRING1+LENGTH2(1).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;within if condition ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if string1 is not initial.
  STRING3 = STRING1+LENGTH2(1).
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem for sure...&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 09:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562052#M1269070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T09:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting last value of a string in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562053#M1269071</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;If i am using the syntax above mentioned by you it is not giving the desired result. &lt;/P&gt;&lt;P&gt;for example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had made a change in the code by passing the value as:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF STRING1 IS NOT INITIAL.
STRING3 = STRING1+LENGTH2(1).
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the string is 'THIS' and i pass the value 4,3,2. It is inserting the highfen in it,&lt;/P&gt;&lt;P&gt; but when i  pass the value = 5 it is still giving the run time error.&lt;/P&gt;&lt;P&gt;plzz provide  me guidelines to this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ricx .s on May 12, 2009 12:02 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ricx .s on May 12, 2009 12:14 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ricx .s on May 12, 2009 12:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 10:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562053#M1269071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T10:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting last value of a string in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562054#M1269072</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 apologize for the mistake in if condition....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change the if condition as given below.... its working fine... have checked it out....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF LENGTH2 LT STRING_LENGTH.
  STRING3 = STRING1+LENGTH2(1).
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 10:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562054#M1269072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T10:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting last value of a string in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562055#M1269073</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;THANKS A LOT ,u helped a lot and i am assigning full points to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 10:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-getting-last-value-of-a-string-in-function-module/m-p/5562055#M1269073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T10:40:29Z</dc:date>
    </item>
  </channel>
</rss>

