<?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: Try select... endtry in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-select-endtry/m-p/5745650#M1302358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try somthing like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_campos_select OCCURS 0,&lt;/P&gt;&lt;P&gt;campo TYPE fieldname,&lt;/P&gt;&lt;P&gt;END OF i_campos_select.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;sucesos&amp;gt; TYPE table.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_where OCCURS 0,&lt;/P&gt;&lt;P&gt;line LIKE rsdswhere-line,&lt;/P&gt;&lt;P&gt;END OF i_where.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRY.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     SELECT (i_campos_select)&lt;/P&gt;&lt;P&gt;          INTO CORRESPONDING FIELDS OF TABLE &amp;lt;sucesos&amp;gt;&lt;/P&gt;&lt;P&gt;        FROM (i_tipos_buzon-tabla)&lt;/P&gt;&lt;P&gt;     WHERE (i_where).&lt;/P&gt;&lt;P&gt;CATCH CX_SY_DYNAMIC_OSQL_SYNTAX.&lt;/P&gt;&lt;P&gt;   MESSAGE E???.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2009 08:49:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-26T08:49:40Z</dc:date>
    <item>
      <title>Try select... endtry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-select-endtry/m-p/5745648#M1302356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help.&lt;/P&gt;&lt;P&gt;I have the following consultation and I want to control possible dumps in the dynamic consultation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF i_campos_select  OCCURS 0,&lt;/P&gt;&lt;P&gt;           campo TYPE fieldname,&lt;/P&gt;&lt;P&gt;        END   OF i_campos_select.&lt;/P&gt;&lt;P&gt; FIELD-SYMBOLS : &amp;lt;sucesos&amp;gt; TYPE table.&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF i_where OCCURS 0,&lt;/P&gt;&lt;P&gt;           line LIKE rsdswhere-line,&lt;/P&gt;&lt;P&gt;        END   OF i_where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT (i_campos_select)&lt;/P&gt;&lt;P&gt;   INTO CORRESPONDING FIELDS OF TABLE &amp;lt;sucesos&amp;gt;&lt;/P&gt;&lt;P&gt;   FROM (i_tipos_buzon-tabla)&lt;/P&gt;&lt;P&gt;   WHERE (i_where).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use TRY ... CATCH and ENDTRY sentences:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I don't know wich is the exceptionn will be raised.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone can help me, please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 08:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-select-endtry/m-p/5745648#M1302356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T08:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Try select... endtry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-select-endtry/m-p/5745649#M1302357</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;you will get the exception with the FM : &lt;STRONG&gt;POPUP_TO_INFORM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can use the Exception Handling like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:   o_field TYPE REF TO cx_root," object to catch exception
            text TYPE string. "string variable to store exception text.

  TRY.
     --- Your logic
*Exception Catching.

    CATCH cx_root INTO o_field.
      text = o_field-&amp;gt;get_text( ).

* Calling Function to give information message regarding Exception

      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          titel = text-t03
          txt1  = text
          txt2  = text-t04.
      LEAVE TO LIST-PROCESSING.
  ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks\&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 08:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-select-endtry/m-p/5745649#M1302357</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-05-26T08:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Try select... endtry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-select-endtry/m-p/5745650#M1302358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try somthing like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_campos_select OCCURS 0,&lt;/P&gt;&lt;P&gt;campo TYPE fieldname,&lt;/P&gt;&lt;P&gt;END OF i_campos_select.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;sucesos&amp;gt; TYPE table.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_where OCCURS 0,&lt;/P&gt;&lt;P&gt;line LIKE rsdswhere-line,&lt;/P&gt;&lt;P&gt;END OF i_where.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRY.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     SELECT (i_campos_select)&lt;/P&gt;&lt;P&gt;          INTO CORRESPONDING FIELDS OF TABLE &amp;lt;sucesos&amp;gt;&lt;/P&gt;&lt;P&gt;        FROM (i_tipos_buzon-tabla)&lt;/P&gt;&lt;P&gt;     WHERE (i_where).&lt;/P&gt;&lt;P&gt;CATCH CX_SY_DYNAMIC_OSQL_SYNTAX.&lt;/P&gt;&lt;P&gt;   MESSAGE E???.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 08:49:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-select-endtry/m-p/5745650#M1302358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T08:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Try select... endtry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-select-endtry/m-p/5745651#M1302359</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;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF i_campos_select OCCURS 0,
        campo TYPE fieldname,
      END OF i_campos_select.

FIELD-SYMBOLS : &amp;lt;sucesos&amp;gt; TYPE table.

DATA: BEGIN OF i_where OCCURS 0,
        line LIKE rsdswhere-line,
      END OF i_where.

DATA: BEGIN OF i_tipos_buzon OCCURS 0, 
        tabla TYPE TABLE,    " This statement is giving me error how to declare i_tipos_buzon-tabla
      END OF i_tipos_buzon.


SELECT (i_campos_select)
INTO CORRESPONDING FIELDS OF TABLE &amp;lt;sucesos&amp;gt;
FROM (i_tipos_buzon-tabla)
WHERE (i_where).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to declare a Field Symbol table (i_tipos_buzon-tabla).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suneel G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 09:10:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-select-endtry/m-p/5745651#M1302359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T09:10:54Z</dc:date>
    </item>
  </channel>
</rss>

