<?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: reverse in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347392#M517981</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;Its simple&lt;/P&gt;&lt;P&gt;if you see the Dump section "Error Analysis" you will get your answer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this particular case, the variable " " for the addition "LANGUAGE" contained&lt;/P&gt;&lt;P&gt;the value "EN" in the length 2. According to the SAP text environment&lt;/P&gt;&lt;P&gt;table "TCP0C", values for "LANGUAGE" cannot be longer than 1 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the change is just put &amp;lt;b&amp;gt;LANG = 'E'&amp;lt;/b&amp;gt; in your call to string_reverse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mark if helpful&lt;/P&gt;&lt;P&gt;Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2007 13:26:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-15T13:26:53Z</dc:date>
    <item>
      <title>reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347388#M517977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;                 I want to reverse the string.i was tried one program but it rises the runtime error..i was paste my program here.please check and give the result....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:REV(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STRING_REVERSE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    STRING          = 'MA'&lt;/P&gt;&lt;P&gt;   LANG            = 'EN'&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   RSTRING         = REV&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   TOO_SMALL       = 1&lt;/P&gt;&lt;P&gt;   OTHERS          = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;*IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE 'THE STRING WAS SUCCESFULLY REVERSED' TYPE 'I'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 13:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347388#M517977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T13:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347389#M517978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;correct your code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:REV(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STRING_REVERSE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;STRING = 'MA'&lt;/P&gt;&lt;P&gt;LANG = &amp;lt;b&amp;gt;'E'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RSTRING = REV&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;TOO_SMALL = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;*IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE 'THE STRING WAS SUCCESFULLY REVERSED' TYPE 'I'.&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 13:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347389#M517978</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-06-15T13:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347390#M517979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;   USE LAGUAGE AS 'E'  INSTEAD OF 'EN'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 13:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347390#M517979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T13:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347391#M517980</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;data : v_string1(20) type C.&lt;/P&gt;&lt;P&gt;data : v_string2(20) type C.&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;v_string1 = 'RAMA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STRING_REVERSE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;string = v_string1&lt;/P&gt;&lt;P&gt;lang = sy-langu&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;rstring = v_string2&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;too_small = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; v_string1,v_string2. &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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 13:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347391#M517980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T13:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347392#M517981</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;Its simple&lt;/P&gt;&lt;P&gt;if you see the Dump section "Error Analysis" you will get your answer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this particular case, the variable " " for the addition "LANGUAGE" contained&lt;/P&gt;&lt;P&gt;the value "EN" in the length 2. According to the SAP text environment&lt;/P&gt;&lt;P&gt;table "TCP0C", values for "LANGUAGE" cannot be longer than 1 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the change is just put &amp;lt;b&amp;gt;LANG = 'E'&amp;lt;/b&amp;gt; in your call to string_reverse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mark if helpful&lt;/P&gt;&lt;P&gt;Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 13:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347392#M517981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T13:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347393#M517982</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;Use the FM STRING_REVERSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'STRING_REVERSE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      string    = v_name1&lt;/P&gt;&lt;P&gt;      lang      = sy-langu&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      rstring   = v_name2&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      too_small = 1&lt;/P&gt;&lt;P&gt;      OTHERS    = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; you pass the value SY-LANGU insted of 'EN'  to LANG parameter of function module  STRING_REVERSE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashokreddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 13:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse/m-p/2347393#M517982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T13:29:13Z</dc:date>
    </item>
  </channel>
</rss>

