<?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: Dynamic where clause issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341747#M172856</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;Try to give the value in the quantity field as it is stroed in the field,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_itpck like ztab-itpck,&lt;/P&gt;&lt;P&gt;c_itpck(20).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_itpck = l_itpck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then concatnate your where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2006 09:47:15 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2006-05-10T09:47:15Z</dc:date>
    <item>
      <title>Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341745#M172854</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;The code returns system error which is caught in the Catch statement for the where condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( BRFAM LIKE '%L&amp;amp;%' ) AND ( ITPCK = '25' ) AND ( MKLEN = 'KS' ) AND ( MKTGR = 'SE04' ) AND PARPR IN LR_MATNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I take out the ITPCK field from the string the program works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Including the ITPCK field which is a quan data type in the where clause works fine in the dev server but returns an error in the QA server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked the patch levels and the only noticeable diff is the kernel patch level which is 79 in Dev but 85 in QA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 09:34:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341745#M172854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T09:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341746#M172855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the catch statement which traps the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH cx_sy_dynamic_osql_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 09:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341746#M172855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T09:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341747#M172856</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;Try to give the value in the quantity field as it is stroed in the field,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_itpck like ztab-itpck,&lt;/P&gt;&lt;P&gt;c_itpck(20).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_itpck = l_itpck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then concatnate your where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 09:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341747#M172856</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-05-10T09:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341748#M172857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Check the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZDYNAMIC_SELECT                         .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TABLES: VBAK.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: CONDITION TYPE STRING.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;VBELN LIKE VBAK-VBELN,&lt;/P&gt;&lt;P&gt;POSNR LIKE VBAP-POSNR,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CONCATENATE 'VBELN' 'IN' 'S_VBELN.'&lt;/P&gt;&lt;P&gt;INTO CONDITION SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT VBELN POSNR FROM VBAP INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;WHERE (CONDITION).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;WRITE 'hai'.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 09:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341748#M172857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T09:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341749#M172858</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 am using the SAP standard conversion routines for the ITCPCK field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_where_condn    TYPE SYCHAR512,  &lt;/P&gt;&lt;P&gt;lv_col_value_low  TYPE string,&lt;/P&gt;&lt;P&gt;lv_col_value_low  TYPE string,&lt;/P&gt;&lt;P&gt;lv_col_value_low  TYPE string.           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            lv_col_name = 'ITPCK'.&lt;/P&gt;&lt;P&gt;            CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;              EXPORTING&lt;/P&gt;&lt;P&gt;                INPUT  = lv_col_value_low&lt;/P&gt;&lt;P&gt;              IMPORTING&lt;/P&gt;&lt;P&gt;                OUTPUT = lv_col_value_low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            CONCATENATE lv_where_condn lv_par&lt;/P&gt;&lt;P&gt;                        lv_col_name&lt;/P&gt;&lt;P&gt;                        lc_equal&lt;/P&gt;&lt;P&gt;                        lv_col_value_low&lt;/P&gt;&lt;P&gt;            INTO lv_where_condn SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to move the quan field to the char format for the specific field ITPCK and get back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the justifiction for the problem occuring in QA server but not in the DEV server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 10:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341749#M172858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T10:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341750#M172859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;whats the error text says in class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cx_sy_dynamic_osql_error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 10:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341750#M172859</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-05-10T10:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341751#M172860</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 set the vreak-point in the class below for the all the methods but after the select the flow deoes not seem to go to the catch statemnet. Anyway the error message is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception from the class CX_SY_OPEN_SQL_DB was caught&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 10:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341751#M172860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T10:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341752#M172861</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 am using the statements:&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;dref type ref to data,&lt;/P&gt;&lt;P&gt;xref type ref to cx_dynamic_check,&lt;/P&gt;&lt;P&gt;message_txt type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CATCH cx_sy_dynamic_osql_error&lt;/P&gt;&lt;P&gt;                cx_sy_create_data_error into xref.&lt;/P&gt;&lt;P&gt;                message_txt = xref-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;                message message_txt type 'E'.&lt;/P&gt;&lt;P&gt;                MESSAGE s802(dh).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  to trap the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Is there a better way to catch the dynamic sql error in the catch statement. The program needs to be transported to the QA server before I can check the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 11:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341752#M172861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T11:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341753#M172862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Is this the correct way to trap the error text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       TRY.&lt;/P&gt;&lt;P&gt;            SELECT&lt;/P&gt;&lt;P&gt;                   TAB1~PRVAR&lt;/P&gt;&lt;P&gt;                   TAB1~PARPR&lt;/P&gt;&lt;P&gt;                   TAB1~VARID&lt;/P&gt;&lt;P&gt;                   TAB1~VARCT&lt;/P&gt;&lt;P&gt;                   TAB1~VARTX&lt;/P&gt;&lt;P&gt;                   TAB1~DMOAP&lt;/P&gt;&lt;P&gt;                   TAB2~PRDID&lt;/P&gt;&lt;P&gt;                   TAB2~BRFAM&lt;/P&gt;&lt;P&gt;                   TAB2~MATKL&lt;/P&gt;&lt;P&gt;                   TAB2~BRDIF&lt;/P&gt;&lt;P&gt;                   TAB2~MEIND&lt;/P&gt;&lt;P&gt;                   TAB2~MKLEN&lt;/P&gt;&lt;P&gt;                   TAB2~PCKTY&lt;/P&gt;&lt;P&gt;                   TAB2~ITPCK&lt;/P&gt;&lt;P&gt;                   TAB2~PMEIN&lt;/P&gt;&lt;P&gt;                   TAB2~MKTHK&lt;/P&gt;&lt;P&gt;                   TAB2~FLIND&lt;/P&gt;&lt;P&gt;                   TAB2~EDTID&lt;/P&gt;&lt;P&gt;                   TAB2~BNDTY&lt;/P&gt;&lt;P&gt;                   TAB2~ITBND&lt;/P&gt;&lt;P&gt;                   TAB2~ITCSE&lt;/P&gt;&lt;P&gt;                   TAB2~TPCOL&lt;/P&gt;&lt;P&gt;                   TAB2~SPFLV&lt;/P&gt;&lt;P&gt;                   TAB2~PRSHP&lt;/P&gt;&lt;P&gt;                   TAB2~MKTGR&lt;/P&gt;&lt;P&gt;                   TAB2~SUBMK&lt;/P&gt;&lt;P&gt;                   TAB2~BOMHD&lt;/P&gt;&lt;P&gt;                   TAB2~BRDSC&lt;/P&gt;&lt;P&gt;                   TAB2~MKSTR&lt;/P&gt;&lt;P&gt;                   TAB2~EDDSC&lt;/P&gt;&lt;P&gt;                   TAB2~EDCAT&lt;/P&gt;&lt;P&gt;                   TAB2~CCIND&lt;/P&gt;&lt;P&gt;                   TAB2~CGSTY&lt;/P&gt;&lt;P&gt;                   TAB2~FLTTY&lt;/P&gt;&lt;P&gt;                   TAB2~CPIND&lt;/P&gt;&lt;P&gt;                   TAB2~MBIND&lt;/P&gt;&lt;P&gt;                   TAB2~USPRP&lt;/P&gt;&lt;P&gt;                   TAB2~EDDET&lt;/P&gt;&lt;P&gt;                   TAB2~BRGEW&lt;/P&gt;&lt;P&gt;                   TAB2~NTGEW&lt;/P&gt;&lt;P&gt;                   TAB2~GEWEI&lt;/P&gt;&lt;P&gt;                   TAB2~VOLUM&lt;/P&gt;&lt;P&gt;                   TAB2~VOLEH&lt;/P&gt;&lt;P&gt;                   TAB2~MAKTX&lt;/P&gt;&lt;P&gt;                   TAB2~RPLVL&lt;/P&gt;&lt;P&gt;            FROM ZDM0705 AS TAB1&lt;/P&gt;&lt;P&gt;            INNER JOIN ZDMPCG1 AS TAB2&lt;/P&gt;&lt;P&gt;            ON TAB1&lt;SUB&gt;PARPR = TAB2&lt;/SUB&gt;PRDCD&lt;/P&gt;&lt;P&gt;            INTO CORRESPONDING FIELDS OF TABLE lt_data&lt;/P&gt;&lt;P&gt;            WHERE (lv_where_condn).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CATCH cx_sy_dynamic_osql_error into xref.&lt;/P&gt;&lt;P&gt;            message_txt = xref-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;            message message_txt type 'I'.&lt;/P&gt;&lt;P&gt;               MESSAGE s802(dh).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          catch CX_SY_OPEN_SQL_DB into xref.&lt;/P&gt;&lt;P&gt;            message_txt = xref-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;            message message_txt type 'I'.&lt;/P&gt;&lt;P&gt;            MESSAGE s801(dh).&lt;/P&gt;&lt;P&gt;        ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to the inputs.&lt;/P&gt;&lt;P&gt;Is there a better way to get the error text in BADI apart from the sy-msgv1, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2006 07:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341753#M172862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-11T07:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341754#M172863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Aveek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZDYNAMIC_SELECT                         .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TABLES: VBAK.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: CONDITION TYPE STRING.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;VBELN LIKE VBAK-VBELN,&lt;/P&gt;&lt;P&gt;POSNR LIKE VBAP-POSNR,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CONCATENATE 'VBELN' 'IN' 'S_VBELN.'&lt;/P&gt;&lt;P&gt;INTO CONDITION SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT VBELN POSNR FROM VBAP INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;WHERE (CONDITION).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;WRITE 'hello'.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2006 08:06:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341754#M172863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-11T08:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341755#M172864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  The question was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH cx_sy_dynamic_osql_error into xref.&lt;/P&gt;&lt;P&gt;message_txt = xref-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;message message_txt type 'I'.&lt;/P&gt;&lt;P&gt;MESSAGE s802(dh).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;catch CX_SY_OPEN_SQL_DB into xref.&lt;/P&gt;&lt;P&gt;message_txt = xref-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;message message_txt type 'I'.&lt;/P&gt;&lt;P&gt;MESSAGE s801(dh).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the correct way to get the error text from a catch statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2006 08:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341755#M172864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-11T08:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341756#M172865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; The error is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An SQL error occurred in the database when accessing a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs will be apreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2006 13:41:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341756#M172865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-11T13:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341757#M172866</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 think that your latest statement in the concatenation &lt;/P&gt;&lt;P&gt;--&amp;gt; 'S_VBELN.' &lt;/P&gt;&lt;P&gt;has an extra . in the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remove it and try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RDM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 14:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341757#M172866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T14:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341758#M172867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Aveek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZDYNAMIC_SELECT                         .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TABLES: VBAK.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: CONDITION TYPE STRING.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;VBELN LIKE VBAK-VBELN,&lt;/P&gt;&lt;P&gt;POSNR LIKE VBAP-POSNR,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CONCATENATE 'VBELN' 'IN' 'S_VBELN.'&lt;/P&gt;&lt;P&gt;INTO CONDITION SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT VBELN POSNR FROM VBAP INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;WHERE (CONDITION).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;WRITE 'hello'.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 14:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341758#M172867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T14:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic where clause issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341759#M172868</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;  While writing dynamic where codition, we cant specify some conditions like matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN operator can not be specified.&lt;/P&gt;&lt;P&gt;That is the reason why you are getting dump while execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following lines in ABAP Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... (source_text) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;In Open SQL, you can dynamically specify, at runtime, the logical conditions of the WHERE clause , the HAVING clause, as well as the ON conditions of the FROM clause in a variable source_text as ABAP source text. The condition is true if the contents of the table fields satisfy the logical condition stored in the source_text variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;The logical conditions stored in source_text must have the same form as corresponding conditions in the ABAP source text. However, the operator must not be used in the form &amp;lt;b&amp;gt;f1 IN itab1&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sailaja N.L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 15:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause-issue/m-p/1341759#M172868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T15:15:47Z</dc:date>
    </item>
  </channel>
</rss>

