<?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: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072930#M1355811</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;Well you can use GUI_DOWNLOAD. This can be considered as a standard download FM for any kind of file in ECC 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2009 12:09:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-28T12:09:30Z</dc:date>
    <item>
      <title>Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072927#M1355808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ABAP developpers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen that a commonly used function on our current R3 (4.6c), SAP_CONVERT_TO_CSV_FORMAT, is marked as obsolete in ECC6. As we have plans for the upgrade to ECC6, I would like to know if anybody has an alternative for this function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Groothof&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 11:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072927#M1355808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-28T11:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072928#M1355809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sap has not provide any alternative FM for this FM SAP_CONVERT_TO_CSV_FORMAT&lt;/P&gt;&lt;P&gt;till now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if you can do it by other way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 11:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072928#M1355809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-28T11:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072929#M1355810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply but my basic question is if anybody has found an alternative way for using the functionality of this FM which is not available in ECC6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, I can use his information as a workaround for not having this FM in ECC6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Groothof&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 12:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072929#M1355810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-28T12:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072930#M1355811</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;Well you can use GUI_DOWNLOAD. This can be considered as a standard download FM for any kind of file in ECC 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 12:09:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072930#M1355811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-28T12:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072931#M1355812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Vik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your anser but mabye you misunderstood my question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM Gui_download is not the same as the FM SAP_CONVERT_TO_CSV_FORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM SAP_CONVERT_TO_CSV_FORMAT converts any internal table into a CSV formatted output table. This fucntion module is currently available in our SAP R3 4.7 system but will not be available in ECC6. I am looking for someone that has encountered the same problem and I am interested in his solution or workaround for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Groothof&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 12:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072931#M1355812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-28T12:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072932#M1355813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would you be doing with a CSV formatted output table? I assumed you will be downloading the internal table as a CSV converted file, Which is the main function of SAP_CONVERT_TO_CSV_FORMAT. The same thing can be done using GUI_DOWNLOAD too by using the WRITE_FIELD_SEPARATOR parameter. Am not sure if this would help you but this is what i meant. &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;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 12:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072932#M1355813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-28T12:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072933#M1355814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vik, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good thinking but this is my problem: I need an internal table to be converted into CSV format and then pass this CSV internal table to an e-mail program. This e-mail program will add the CSV internal table as an attachment to the mail. This process is done in background and the GUI_DOWNLOAD needs to be executed on foreground. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 12:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072933#M1355814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-28T12:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072934#M1355815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Erik , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well in that case am not sure if there is any alternate FM to convert a internal table to CSV formatted table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though this can be done manually , which can be considered as a workaround&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of itab occurs 0,
      fld1(10) type c,
      fld2(10) type c,
      fld3(10) type c,
      end of itab.
 
 
data: begin of iout occurs 0,
      rec(1000) type c,
      end of iout.
 
start-of-selection.
 
* Build the ITAB
  itab-fld1 = 'A'.
  itab-fld2 = 'B'.
  itab-fld3 = 'C'.
  append itab.
 
  itab-fld1 = 'D'.
  itab-fld2 = 'E'.
  itab-fld3 = 'F'.
  append itab.
 
  itab-fld1 = 'G'.
  itab-fld2 = 'H'.
  itab-fld3 = 'I'.
  append itab.
 
 
* Build the output internal table from ITAB  Concatenate all fields into IOUT-REC

  loop at itab.
    concatenate itab-fld1 itab-fld2 itab-fld3 into iout-rec
                separated by ','.
    condense iout-rec no-gaps.
    append iout.
   endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the internal table iout can be use as a attachment for sending the E-mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 13:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072934#M1355815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-28T13:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072935#M1355816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vik, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again. This is usefull but the  FM SAP_CONVERT_TO_CSV could handle any internal table and that makes it a generic solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With your sample I will need to know the exact structure of the table and need so create a solution for every implementation where I used this FM, where previously different internal tables were  handled by the FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe I can create this logic using class cl_abap_typedescr and cl_abap_structdescr to determine dynamically the fields in an internal table and then process them with your solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I was just hoping that all of this work would be ready and done in a class/method or FM like all of this work is already done in FM SAP_CONVERT_TO_CSV_FORMAT . &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any way, thanks for your comments, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Erik Groothof on Sep 9, 2009 3:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 13:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072935#M1355816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-28T13:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072936#M1355817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Hi all",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the ones that are interested in a similair function like SAP_CONVERT_TO_CSV_FORMAT I created the following methods:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;due to limitation of 2500 characters, I posted this solution in multiple posts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:
      ref_csv           type ref to zcl_csv.

  create object lref_csv.

  lt_table_out = lref_csv-&amp;gt;convert_to_csv( iw_seperator = zcl_contract_position=&amp;gt;c_csv_sep
                                                                     it_tab_in         = it_table_in ).

Create a class zcl_csv an put the following methods in it.

The parameters are defined as follows:
iw_separator type char1 (optional default value ';')
it_tab_in        type table
it_tab_out      type ztt_text4096 (a table type based on line type text4096)

method CONVERT_TO_CSV .

  DATA:
     lw_fields_table         TYPE int2,
     lref_typedescr          TYPE REF TO cl_abap_typedescr,
     lref_structdescr        TYPE REF TO cl_abap_structdescr,
     ls_structure            TYPE REF TO data.

  FIELD-SYMBOLS: &amp;lt;lfs_table&amp;gt;  TYPE ANY TABLE,
                 &amp;lt;lfs_struct&amp;gt; TYPE ANY.

* Create a dynamic structure based on the passed table.
  ASSIGN it_tab_in TO &amp;lt;lfs_table&amp;gt;.
  CREATE DATA ls_structure LIKE LINE OF &amp;lt;lfs_table&amp;gt;.
  ASSIGN ls_structure-&amp;gt;* TO &amp;lt;lfs_struct&amp;gt;.

* describe the structure by data
  lref_typedescr = cl_abap_typedescr=&amp;gt;describe_by_data( &amp;lt;lfs_struct&amp;gt; ) .

* Downcasting ! to get the fields of the structure
  lref_structdescr ?= lref_typedescr.
* get the number of fields of the structure
  DESCRIBE TABLE lref_structdescr-&amp;gt;components LINES lw_fields_table.

* get the converted CSV file back
  it_tab_out = me-&amp;gt;convert_2_csv_table( ut_table_in  = it_tab_in
                                        uw_separator = iw_seperator
                                        uw_fields    = lw_fields_table
                                        us_struct    = &amp;lt;lfs_struct&amp;gt; ).
The parameters for this method can be found in the calling method CONVERT_TO_CSV (above)
endmethod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Erik Groothof on Oct 13, 2009 11:35 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Erik Groothof on Oct 13, 2009 11:43 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Erik Groothof on Dec 14, 2009 9:02 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 13:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072936#M1355817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T13:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072937#M1355818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;part 2 of the methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;method CONVERT_2_CSV_TABLE .
* data type logic copied from fm SAP_CONVERT_TO_TEX_FORMAT (which is not available
* in ECC6 any more.)

  constants:
    lc_colon:           type char1  value ':',
    lc_integer          TYPE char1  VALUE 's',
    lc_packed           type char1  value 'P',
    lc_date             type char1  value 'D',
    lc_time             type char1  value 'T',
    lc_float            type char1  value 'F',
    lc_hex              type char1  value 'X',
    lc_number           type char12 value '1234567890 '.


  data:
     lw_struc_index     type int2,
     lref_field         type ref to data,
     ls_struct          type ref to data,
     lw_first           type char1,
     ls_time            type zss_time,
     lw_char            type char30,
     lw_type            type char1,
     ls_char4096        type text4096,
     lw_string          type string.

  field-symbols:
     &amp;lt;lfs_field&amp;gt;        type any,
     &amp;lt;lfs_char&amp;gt;         type c,
     &amp;lt;lfs_dref&amp;gt;         type any.

* create a reference to the same type of structure that is passed in this form
  get reference of us_struct into ls_struct.
* assign this structure to be able to loop over the passed table
  assign ls_struct-&amp;gt;* to &amp;lt;lfs_dref&amp;gt;.

* loop at the table and convert every single field
  loop at ut_table_in assigning &amp;lt;lfs_dref&amp;gt;.

    lw_first = abap_true.
    lw_struc_index = 1.

* for the number of fields in the table, process them
    do uw_fields times.

      assign component lw_struc_index
         of structure &amp;lt;lfs_dref&amp;gt;
        to &amp;lt;lfs_field&amp;gt;.

      if sy-subrc is not initial.
        exit.
      endif.

      describe field &amp;lt;lfs_field&amp;gt; type lw_type.

* some data types need special processing
      case lw_type.

        when lc_packed or lc_integer.
          write &amp;lt;lfs_field&amp;gt; to lw_char.
          assign lw_char  to &amp;lt;lfs_field&amp;gt;.

        when lc_time.
          ls_time = &amp;lt;lfs_field&amp;gt;.
          concatenate ls_time-hour
                      lc_colon
                      ls_time-min
                      lc_colon
                      ls_time-sec
                 into lw_char.
          assign lw_char  to &amp;lt;lfs_field&amp;gt;.

        when lc_date.
          call function 'CONVERT_DATE_TO_EXTERNAL'
            exporting
              date_internal = &amp;lt;lfs_field&amp;gt;
            importing
              date_external = lw_char.

          assign lw_char  to &amp;lt;lfs_field&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 09:38:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072937#M1355818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T09:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072938#M1355819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;part 3 final part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;when lc_float.
          call function 'FLTP_CHAR_CONVERSION'
            exporting
              input = &amp;lt;lfs_field&amp;gt;
            importing
              flstr = lw_char.

          assign lw_char  to &amp;lt;lfs_field&amp;gt;.

        when lc_hex.
          assign component lw_struc_index
            of structure &amp;lt;lfs_dref&amp;gt;
            to &amp;lt;lfs_char&amp;gt; casting.

          write &amp;lt;lfs_char&amp;gt; to lw_char.
          assign lw_char   to &amp;lt;lfs_field&amp;gt;.

      endcase.

      if &amp;lt;lfs_field&amp;gt;  co lc_number.
        condense &amp;lt;lfs_field&amp;gt;  no-gaps.
      else.
        condense &amp;lt;lfs_field&amp;gt;.
      endif.

      case lw_first.

        when abap_true.
          lw_string = &amp;lt;lfs_field&amp;gt;.

        when others.
          concatenate lw_string
                      uw_separator
                      &amp;lt;lfs_field&amp;gt;
                into  lw_string.

      endcase.

      clear lw_first.

      add 1 to lw_struc_index.

    enddo.

    append lw_string to rt_table_out.
    clear: lw_string,
           lw_first.

  endloop.

endmethod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 09:40:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072938#M1355819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T09:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072939#M1355820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi well done!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but could you please explain whats:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. in the structure: zss_time&lt;/P&gt;&lt;P&gt;2. in the class: zcl_contract_position&lt;/P&gt;&lt;P&gt;3. what are the exact parameters for CONVERT_TO_CSV - I guess you forgot the seperator (?)&lt;/P&gt;&lt;P&gt;4. what are the exact parameters for CONVERT_2_CSV_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it, but cant figure it out .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Andreas Profitlich on Dec 7, 2009 7:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 18:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072939#M1355820</guid>
      <dc:creator>profitlich42</dc:creator>
      <dc:date>2009-12-07T18:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative function for  function module SAP_CONVERT_TO_CSV_FORMAT in ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072940#M1355821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was away for some holliday but here is my feedback on your remarks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zcl_contract_position=&amp;gt;c_csv_sep  is just a reference to a constant value.  It's the separator value and It contains the value ';'&lt;/P&gt;&lt;P&gt;ZSS_TIME is a structure with 3 fields&lt;/P&gt;&lt;P&gt;1) hour (num2)&lt;/P&gt;&lt;P&gt;2) min (num2)&lt;/P&gt;&lt;P&gt;3) sec (num2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The param. for Convert_to_CSV are:&lt;/P&gt;&lt;P&gt;1) iw_separator - type char01 - default ';'&lt;/P&gt;&lt;P&gt;2) it_tab_in          -  type table - &lt;/P&gt;&lt;P&gt;3) it_tab_out       - type ZTT_TEXT4096 ( this is a user define table type to data element TEXT4096 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the param for Convert_2_csv_table&lt;/P&gt;&lt;P&gt;1) ut_table_in       - type any table&lt;/P&gt;&lt;P&gt;2) uw_separator - type any&lt;/P&gt;&lt;P&gt;3) uw_fields         - type int2&lt;/P&gt;&lt;P&gt;4) us_struct         - type any&lt;/P&gt;&lt;P&gt;5) rt_table_out    - type ZTT_TEXT4096 ( this is a user define table type to data element TEXT4096 )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2009 08:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-function-for-function-module-sap-convert-to-csv-format-in-ecc6/m-p/6072940#M1355821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-14T08:25:17Z</dc:date>
    </item>
  </channel>
</rss>

