<?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 Error using FM SAP_CONVERT_TO_CSV_FORMAT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-fm-sap-convert-to-csv-format/m-p/2765576#M644011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                I'm having problems with the FM SAP_CONVERT_TO_CSV_FORMAT and to be honest I don't have the slightest idea why it prompts the run time error DBIF_RSQL_INVALID_RSQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS:TRUXS.&lt;/P&gt;&lt;P&gt;DATA: ITAB1 TYPE TRUXS_T_TEXT_DATA OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT polno lname fname mi pfx apl pos ofccode basic gsisid empno div stn &lt;/P&gt;&lt;P&gt;               duemon ps psion psint psintion gs gsion gsint gsintion ec ecion ecint   &lt;/P&gt;&lt;P&gt;  FROM zcddepted&lt;/P&gt;&lt;P&gt;  INTO table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     I_FIELD_SEPERATOR          = ','&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      I_TAB_SAP_DATA             = itab&lt;/P&gt;&lt;P&gt;   CHANGING&lt;/P&gt;&lt;P&gt;     I_TAB_CONVERTED_DATA       =  itab1&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     CONVERSION_FAILED          = 1&lt;/P&gt;&lt;P&gt;     OTHERS                     = 2.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you guys could help me.  What happens is that when I try to execute the program the run time error automatically comes out.  Below is the reason of the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?                                                                                &lt;/P&gt;&lt;P&gt;Error in the ABAP Application Program                                                                                &lt;/P&gt;&lt;P&gt;The current ABAP program "ZCD_DEPTED_LAYOUT" had to be terminated&lt;/P&gt;&lt;P&gt;    because it has come across a statement that unfortunately cannot be &lt;/P&gt;&lt;P&gt;    executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, please, please, hope you guys could help me.  Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2007 02:30:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-18T02:30:55Z</dc:date>
    <item>
      <title>Error using FM SAP_CONVERT_TO_CSV_FORMAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-fm-sap-convert-to-csv-format/m-p/2765576#M644011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                I'm having problems with the FM SAP_CONVERT_TO_CSV_FORMAT and to be honest I don't have the slightest idea why it prompts the run time error DBIF_RSQL_INVALID_RSQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS:TRUXS.&lt;/P&gt;&lt;P&gt;DATA: ITAB1 TYPE TRUXS_T_TEXT_DATA OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT polno lname fname mi pfx apl pos ofccode basic gsisid empno div stn &lt;/P&gt;&lt;P&gt;               duemon ps psion psint psintion gs gsion gsint gsintion ec ecion ecint   &lt;/P&gt;&lt;P&gt;  FROM zcddepted&lt;/P&gt;&lt;P&gt;  INTO table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     I_FIELD_SEPERATOR          = ','&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      I_TAB_SAP_DATA             = itab&lt;/P&gt;&lt;P&gt;   CHANGING&lt;/P&gt;&lt;P&gt;     I_TAB_CONVERTED_DATA       =  itab1&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     CONVERSION_FAILED          = 1&lt;/P&gt;&lt;P&gt;     OTHERS                     = 2.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you guys could help me.  What happens is that when I try to execute the program the run time error automatically comes out.  Below is the reason of the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?                                                                                &lt;/P&gt;&lt;P&gt;Error in the ABAP Application Program                                                                                &lt;/P&gt;&lt;P&gt;The current ABAP program "ZCD_DEPTED_LAYOUT" had to be terminated&lt;/P&gt;&lt;P&gt;    because it has come across a statement that unfortunately cannot be &lt;/P&gt;&lt;P&gt;    executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, please, please, hope you guys could help me.  Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 02:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-fm-sap-convert-to-csv-format/m-p/2765576#M644011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T02:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error using FM SAP_CONVERT_TO_CSV_FORMAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-fm-sap-convert-to-csv-format/m-p/2765577#M644012</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;Could you please tell me the number of records being fetched by your select statement?&lt;/P&gt;&lt;P&gt;If they are very large in number,then this short dump occurs.&lt;/P&gt;&lt;P&gt;Also, try reducing the number of fields being fetched in the Select statement and it might work because sometimes the size of the memory available to hold the data exceeds.&lt;/P&gt;&lt;P&gt;Also, try using "Into corresponding fields of" instead of into itab. in the Select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have any further clarifications,do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Puneet Jhari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 04:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-fm-sap-convert-to-csv-format/m-p/2765577#M644012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T04:14:29Z</dc:date>
    </item>
  </channel>
</rss>

