<?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 Problems with method &amp;quot;CALL_METHOD&amp;quot; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-method-quot-call-method-quot/m-p/3169123#M754087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get a text from a Custom Control and put it in a table. To do it I use the method get_text_as_r3table and this method calls another method : call_method as follows : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD call_method&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        method  = 'SaveSelectedTextToDP'&lt;/P&gt;&lt;P&gt;        p_count = 1&lt;/P&gt;&lt;P&gt;        p1      = m_dp_handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the text is only saved when I select it, because of this statement "'SaveSelectedTextToDP'".&lt;/P&gt;&lt;P&gt;So my question is ... Is there a way to get the text from this custom control without selecting it ?? Maybe something like "SaveTextToDP" ?! I couldn't find anything like it ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2007 18:31:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-27T18:31:19Z</dc:date>
    <item>
      <title>Problems with method "CALL_METHOD"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-method-quot-call-method-quot/m-p/3169123#M754087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get a text from a Custom Control and put it in a table. To do it I use the method get_text_as_r3table and this method calls another method : call_method as follows : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD call_method&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        method  = 'SaveSelectedTextToDP'&lt;/P&gt;&lt;P&gt;        p_count = 1&lt;/P&gt;&lt;P&gt;        p1      = m_dp_handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the text is only saved when I select it, because of this statement "'SaveSelectedTextToDP'".&lt;/P&gt;&lt;P&gt;So my question is ... Is there a way to get the text from this custom control without selecting it ?? Maybe something like "SaveTextToDP" ?! I couldn't find anything like it ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 18:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-method-quot-call-method-quot/m-p/3169123#M754087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T18:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with method "CALL_METHOD"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-method-quot-call-method-quot/m-p/3169124#M754088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pedro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"from a Custom Control" ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kind of Custom Control?  Is this an SAP-provided control?  Or a Windows OS control?  Or VB, C++, etc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 18:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-method-quot-call-method-quot/m-p/3169124#M754088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T18:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with method "CALL_METHOD"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-method-quot-call-method-quot/m-p/3169125#M754089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are using the method get_text_as_r3table  belonging to the class &lt;STRONG&gt;CL_GUI_TEXTEDIT.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, there should be no problem retrieving the text entered from exporting parameter TABLE.&lt;/P&gt;&lt;P&gt; Please ensure the importing flag (to the method) &lt;STRONG&gt;ONLY_WHEN_MODIFIED is left as ' '&lt;/STRONG&gt; and not checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 04:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-method-quot-call-method-quot/m-p/3169125#M754089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T04:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with method "CALL_METHOD"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-method-quot-call-method-quot/m-p/3169126#M754090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My custom control is like a text editor, in fact i'm using the classes of the new abap editor, that Thomas Jung develop. I inherit this editor from this class "cl_gui_control" and my method "get_text_as_r3table" is declared this way : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD get_text_as_r3table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TYPES:&lt;/P&gt;&lt;P&gt;      src_line_type(72) TYPE x,&lt;/P&gt;&lt;P&gt;      src_type TYPE STANDARD TABLE OF src_line_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    source_string type string,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      source_table  TYPE src_type,&lt;/P&gt;&lt;P&gt;      wa_src1       TYPE src_line_type,&lt;/P&gt;&lt;P&gt;      wa_src        TYPE string,&lt;/P&gt;&lt;P&gt;      m_size        TYPE i,&lt;/P&gt;&lt;P&gt;      encoding      TYPE abap_encod,&lt;/P&gt;&lt;P&gt;      codepage      TYPE cpcodepage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD call_method&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        method  = 'SaveSelectedTextToDP'&lt;/P&gt;&lt;P&gt;        p_count = 1&lt;/P&gt;&lt;P&gt;        p1      = m_dp_handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Get table/stream from frontend&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'DP_GET_STREAM'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        h_dp                   = m_dp_handle&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCEPTTYPE             = MIMETYPE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCEPTSUBTYPE          = MIMESUBTYPE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;         size                   = m_size&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TYPE                   = MIMETYPE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SUBTYPE                = MIMESUBTYPE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data                   = source_table&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        dp_error_get_data      = 1&lt;/P&gt;&lt;P&gt;        dp_error_invalid_param = 2&lt;/P&gt;&lt;P&gt;        dp_error_no_data       = 3&lt;/P&gt;&lt;P&gt;        dp_error_general       = 4&lt;/P&gt;&lt;P&gt;        OTHERS                 = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      RAISE error_dp.&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;    encoding = 'UTF-16LE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'SCP_CODEPAGE_BY_EXTERNAL_NAME'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        external_name = encoding&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        sap_codepage  = codepage&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        not_found     = 1&lt;/P&gt;&lt;P&gt;        OTHERS        = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    encoding = codepage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CALL FUNCTION 'SCMS_BINARY_TO_FTEXT'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       input_length          = m_size&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;      FIRST_LINE            = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;      LAST_LINE             = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;      APPEND_TO_TABLE       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;      MIMETYPE              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;      OUTPUT_LENGTH         = OUTPUT_LENGTH&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       binary_tab            = source_table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       ftext_tab             = table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       failed                = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       OTHERS                = 2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'SCMS_BINARY_TO_TEXT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        input_length          = m_size&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIRST_LINE            = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LAST_LINE             = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       append_to_table       = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MIMETYPE              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       wrap_lines            = 'X'&lt;/P&gt;&lt;P&gt;       encoding              = encoding&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OUTPUT_LENGTH         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        binary_tab            = source_table&lt;/P&gt;&lt;P&gt;        text_tab              = table .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FAILED                = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;**.&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;*break-point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&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;  ENDMETHOD.                    "GET_TEXT_AS_R3TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use only_when_modified = '', but the problem is the same.&lt;/P&gt;&lt;P&gt;Is there any function or method that selects all the text ?! Because it's very boring having to select all the text manually when I want to save my text =/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 12:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-method-quot-call-method-quot/m-p/3169126#M754090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T12:04:37Z</dc:date>
    </item>
  </channel>
</rss>

