<?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 Implicit character or charactered structure --&amp;gt; to String  Conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867890#M1322740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;that sounds trivial but i am struggeling.... which is the most elegant way to do a implicit "To-String" Conversion in ABAP Objects...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data lok_string type string.&lt;/P&gt;&lt;P&gt;    lok_string = wa.&lt;/P&gt;&lt;P&gt;    m_object-&amp;gt;addline( lok_string ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is working fine but is not elegant comaring with java.&lt;/P&gt;&lt;P&gt;i want &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    m_object-&amp;gt;addline( wa ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this don't go when "wa" is a structured workarea with many "type c"s in it (and only these).&lt;/P&gt;&lt;P&gt;but since the explicit assignment "lok_string = wa." is working well, there could be a elegant  implicit  one?&lt;/P&gt;&lt;P&gt;(m_object-&amp;gt;addline expects a string variable.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank is aprreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hartmut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2009 10:26:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-20T10:26:57Z</dc:date>
    <item>
      <title>Implicit character or charactered structure --&gt; to String  Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867890#M1322740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;that sounds trivial but i am struggeling.... which is the most elegant way to do a implicit "To-String" Conversion in ABAP Objects...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data lok_string type string.&lt;/P&gt;&lt;P&gt;    lok_string = wa.&lt;/P&gt;&lt;P&gt;    m_object-&amp;gt;addline( lok_string ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is working fine but is not elegant comaring with java.&lt;/P&gt;&lt;P&gt;i want &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    m_object-&amp;gt;addline( wa ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this don't go when "wa" is a structured workarea with many "type c"s in it (and only these).&lt;/P&gt;&lt;P&gt;but since the explicit assignment "lok_string = wa." is working well, there could be a elegant  implicit  one?&lt;/P&gt;&lt;P&gt;(m_object-&amp;gt;addline expects a string variable.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank is aprreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hartmut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 10:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867890#M1322740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T10:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit character or charactered structure --&gt; to String  Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867891#M1322741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can't understand. You must have forgotten something...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 10:54:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867891#M1322741</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-07-20T10:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit character or charactered structure --&gt; to String  Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867892#M1322742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, I am getting more clear now, i am searching a conversion method which converts data from a character-structured workarea to a string, and which i can use as a functional method (say as part of an expression), for that i can ommit the help variables in the example above.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hartmut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 13:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867892#M1322742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T13:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit character or charactered structure --&gt; to String  Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867893#M1322743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;something like that ?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
class lcl_xxx definition.
  public SECTION.
    class-methods addline IMPORTING charlike TYPE clike RETURNING VALUE(string) TYPE string.
endclass.
class lcl_xxx IMPLEMENTATION.
  method addline.
    string = charlike.
  endmethod.
endclass.
start-of-SELECTION.
data a type bapireturn.
data b type string.

b = lcl_xxx=&amp;gt;addline( charlike = a ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 13:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867893#M1322743</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-07-20T13:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit character or charactered structure --&gt; to String  Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867894#M1322744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;this is the right direction.... but i would like to have it as an nested expression... (since implicit conversion seams to be impossible)&lt;/P&gt;&lt;P&gt;like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m_object-&amp;gt;addline( lcl_xxx=&amp;gt;tostring( wa_head ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this line above is not an valid abap objects syntax, unfortunatelly &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... having:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lcl_xxx definition.&lt;/P&gt;&lt;P&gt;  public section.&lt;/P&gt;&lt;P&gt;    class-methods tostring importing charlike type clike returning value(string) type string.&lt;/P&gt;&lt;P&gt;endclass.                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lcl_xxx implementation.&lt;/P&gt;&lt;P&gt;  method tostring.&lt;/P&gt;&lt;P&gt;    string = charlike.&lt;/P&gt;&lt;P&gt;  endmethod.                    &lt;/P&gt;&lt;P&gt;endclass.                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Hartmut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 14:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867894#M1322744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T14:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit character or charactered structure --&gt; to String  Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867895#M1322745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, we must define intermediate variables. Be patient, nested functions will be available from release 7.10 (or 7.0 from unknown EHP)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 14:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867895#M1322745</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-07-20T14:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit character or charactered structure --&gt; to String  Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867896#M1322746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is ok for me, i am looking forward having this feature some day &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Hartmut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 14:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-character-or-charactered-structure-gt-to-string-conversion/m-p/5867896#M1322746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T14:18:50Z</dc:date>
    </item>
  </channel>
</rss>

