<?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 reading decimal data into a string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363567#M1542101</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;I am having an issue in converting the non char data like decimal into character.  Here is my code In the output I see '#' signs where I am supoose to get certain amount values in the decimal format. I require it because I need to download the data into a file. Any thoughts?  Rest of the code looks fine. Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs_table&amp;gt; type standard table,&lt;/P&gt;&lt;P&gt;               &amp;lt;fs_wa&amp;gt;,&lt;/P&gt;&lt;P&gt;               &amp;lt;fs_string&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CREATE DATA v_dref Type table of (v_tabname).&lt;/P&gt;&lt;P&gt;      assign v_dref-&amp;gt;* TO &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;      select * from (v_tabname) into table &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      loop at &amp;lt;fs_table&amp;gt; assigning &amp;lt;fs_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;          assign component sy-index of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_string&amp;gt; casting type c.&lt;/P&gt;&lt;P&gt;          if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;            write:/ &amp;lt;fs_string&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         else.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           write: &amp;lt;fs_string&amp;gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output:   10000100000001019999123120090101                                        ############0001&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Nov 2010 14:35:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-03T14:35:27Z</dc:date>
    <item>
      <title>reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363567#M1542101</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;I am having an issue in converting the non char data like decimal into character.  Here is my code In the output I see '#' signs where I am supoose to get certain amount values in the decimal format. I require it because I need to download the data into a file. Any thoughts?  Rest of the code looks fine. Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs_table&amp;gt; type standard table,&lt;/P&gt;&lt;P&gt;               &amp;lt;fs_wa&amp;gt;,&lt;/P&gt;&lt;P&gt;               &amp;lt;fs_string&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CREATE DATA v_dref Type table of (v_tabname).&lt;/P&gt;&lt;P&gt;      assign v_dref-&amp;gt;* TO &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;      select * from (v_tabname) into table &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      loop at &amp;lt;fs_table&amp;gt; assigning &amp;lt;fs_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;          assign component sy-index of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_string&amp;gt; casting type c.&lt;/P&gt;&lt;P&gt;          if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;            write:/ &amp;lt;fs_string&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         else.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           write: &amp;lt;fs_string&amp;gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output:   10000100000001019999123120090101                                        ############0001&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 14:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363567#M1542101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-03T14:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363568#M1542102</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;What do you mean decimal format? 3,453 ? Or float 3,210+E2 ..&lt;/P&gt;&lt;P&gt;Anyway you should try to use TYPE NUMC INSTEAD OF C for Numerical Char... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or try this For the conversion  (passing values throughout field-symbols)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : V_FLOAT TYPE F VALUE '2456.5678912',&lt;/P&gt;&lt;P&gt;       V_CHAR(25),&lt;/P&gt;&lt;P&gt;        P10_4(10)        TYPE P DECIMALS 8.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CEVA_CONVERT_FLOAT_TO_CHAR'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FLOAT_IMP  = V_FLOAT&lt;/P&gt;&lt;P&gt;    FORMAT_IMP =  P10_4&lt;/P&gt;&lt;P&gt;    ROUND_IMP  = ' '&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    CHAR_EXP   = V_CHAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to help, bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 15:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363568#M1542102</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2010-11-03T15:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363569#M1542103</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;Thanks for the response. I tried Numeric type 'N' too. It gave the same results. Yes it is decimal not float. I cannot use the FM because I am reading all the table layout dynamically. At the run time, I do not know which field has a dceimal format? Since I am using field symbols. I am stuck here. Any thoughts or leads shall be helpful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 15:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363569#M1542103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-03T15:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363570#M1542104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this your actual code ????&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at &amp;lt;fs_table&amp;gt; assigning &amp;lt;fs_wa&amp;gt;.
assign component sy-index of 
structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_string&amp;gt;.  "sy-index or sy-tabix ??
if sy-subrc = 0.
write:/ &amp;lt;fs_string&amp;gt;.
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 15:37:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363570#M1542104</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-03T15:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363571#M1542105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;...Can't you determine type using DESCRIBE FIELD &amp;lt;W_FIELD&amp;gt; TYPE c_type? and moving in this way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably it works....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 15:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363571#M1542105</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2010-11-03T15:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363572#M1542106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the working code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For every field in the table I create a character field of the defined length. The just move the contents to it and do a WRITE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM tabout .
  DATA:
    lv_len  TYPE sy-linsz,
    lr_data TYPE REF TO data.
  FIELD-SYMBOLS:
    &amp;lt;fs_table&amp;gt;  TYPE STANDARD TABLE,
    &amp;lt;fs_wa&amp;gt;     TYPE ANY,
    &amp;lt;fs_string&amp;gt; TYPE ANY,
    &amp;lt;any&amp;gt;       TYPE ANY.

  CREATE DATA lr_data TYPE TABLE OF (p_table).
  ASSIGN lr_data-&amp;gt;* TO &amp;lt;fs_table&amp;gt;.
  SELECT * FROM (p_table) INTO TABLE &amp;lt;fs_table&amp;gt; UP TO 20 ROWS.

  LOOP AT &amp;lt;fs_table&amp;gt; ASSIGNING &amp;lt;fs_wa&amp;gt;.
    DO.
      ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;fs_wa&amp;gt; TO &amp;lt;any&amp;gt;.
      IF sy-subrc = 0.
        DESCRIBE FIELD &amp;lt;any&amp;gt; LENGTH lv_len IN BYTE MODE.
        CREATE DATA lr_data TYPE c LENGTH lv_len.
        ASSIGN lr_data-&amp;gt;* TO &amp;lt;fs_string&amp;gt;.
        &amp;lt;fs_string&amp;gt; = &amp;lt;any&amp;gt;.
        IF sy-index = 1.
          WRITE:/ &amp;lt;fs_string&amp;gt;.
        ELSE.
          WRITE: &amp;lt;fs_string&amp;gt;.
        ENDIF.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
  ENDLOOP.
ENDFORM.                    " TABOUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 16:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363572#M1542106</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-11-03T16:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363573#M1542107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code, getting an error . at &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is the same incompatible issue failing to convert the decimal data into character.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;fs_string&amp;gt; = &amp;lt;fs_any&amp;gt;.    UC_OBJECTS_NOT_CONVERTIBLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 17:21:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363573#M1542107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-03T17:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363574#M1542108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure you used &lt;STRONG&gt;exactly&lt;/STRONG&gt; my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with database table EKBE which definitely has decimal values, got output like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;110    4500000017           00010      00   1  2009     5000000039           0001     E  101    20091130          0.001   0.001    0.01    1.20  EU4&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your table?&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 17:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363574#M1542108</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-11-03T17:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363575#M1542109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@-Clemens - I tried your code , some problems with decimals values , adds a * in front.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Vinu - Just some rough modification to the code written by Clemens&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS:p_table TYPE tabname.

DATA:wf_maximum TYPE i,
     wf_total_fields TYPE i,
     wi_count TYPE i,
     wf_ltype TYPE c,
     wf_length TYPE i,
     wi_index TYPE i.

DATA:i_comp TYPE cl_abap_structdescr=&amp;gt;component_table,
      wa_comp LIKE LINE OF i_comp,
     wa_fields TYPE abap_compdescr.

DATA:lr_data TYPE REF TO data,
     lr_line TYPE REF TO data,
     wf_data_str TYPE REF TO data,
     wf_type_struct TYPE REF TO cl_abap_structdescr.

FIELD-SYMBOLS:&amp;lt;fs_table&amp;gt; TYPE STANDARD TABLE,
&amp;lt;fs_wa&amp;gt;     TYPE ANY,
&amp;lt;fs_line&amp;gt; TYPE ANY,
&amp;lt;fs_field_s&amp;gt; TYPE ANY.

CREATE DATA lr_data TYPE TABLE OF (p_table).
ASSIGN lr_data-&amp;gt;* TO &amp;lt;fs_table&amp;gt;.
CREATE DATA lr_line LIKE LINE OF &amp;lt;fs_table&amp;gt;.
ASSIGN lr_line-&amp;gt;* TO &amp;lt;fs_line&amp;gt;.

SELECT * FROM (p_table) INTO TABLE &amp;lt;fs_table&amp;gt; UP TO 20 ROWS.
CLEAR:wf_ltype,wi_count.
DESCRIBE FIELD &amp;lt;fs_line&amp;gt; TYPE       wf_ltype
                           COMPONENTS wi_count.

LOOP AT &amp;lt;fs_table&amp;gt; ASSIGNING &amp;lt;fs_wa&amp;gt;.
  AT FIRST.
    wf_maximum = 0.
    wf_total_fields = wi_count.
    WHILE wi_count GT 0.
      wi_index = sy-index.
      ASSIGN COMPONENT wi_index OF STRUCTURE &amp;lt;fs_wa&amp;gt; TO &amp;lt;fs_field_s&amp;gt;.
      IF sy-subrc EQ 0.
        DESCRIBE FIELD &amp;lt;fs_field_s&amp;gt; TYPE          wf_ltype
                                    OUTPUT-LENGTH wf_length.
        IF wf_maximum LT wf_length.
          wf_maximum = wf_length.
        ENDIF.
      ENDIF.
      wi_count = wi_count - 1.
    ENDWHILE.
    CLEAR:wa_comp,i_comp[].
    wa_comp-name = 'FIELD'(005).
    wa_comp-type ?= cl_abap_elemdescr=&amp;gt;get_c( wf_maximum ).
    APPEND wa_comp TO i_comp.
    TRY.
        wf_type_struct =
        cl_abap_structdescr=&amp;gt;create( p_components = i_comp ).
      CATCH cx_sy_struct_creation.
    ENDTRY.
    CREATE DATA: wf_data_str TYPE HANDLE wf_type_struct.
    ASSIGN:wf_data_str-&amp;gt;* TO &amp;lt;fs_line&amp;gt;.
  ENDAT.

  DO.
    ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;fs_wa&amp;gt; TO &amp;lt;fs_line&amp;gt;.
    IF sy-subrc = 0.
      WRITE &amp;lt;fs_line&amp;gt;.
    ELSE.
      EXIT.
    ENDIF.
  ENDDO.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 17:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363575#M1542109</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-03T17:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363576#M1542110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I do is create a character field with internal length of the respective structure field and move the structures field content to the character field. This will not use any built-in output conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do a lot of mumbojumbo but nothing more than a simple write on each field. This will use all conversion exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not get the conversion error, c ode not complexified but simplified:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM tabout .
  DATA:
    lv_string type string,
    lr_data   TYPE REF TO data.
  FIELD-SYMBOLS:
    &amp;lt;fs_table&amp;gt;  TYPE STANDARD TABLE,
    &amp;lt;fs_wa&amp;gt;     TYPE ANY,
    &amp;lt;fs_string&amp;gt; TYPE ANY,
    &amp;lt;any&amp;gt;       TYPE ANY.

  CREATE DATA lr_data TYPE TABLE OF (p_table).
  ASSIGN lr_data-&amp;gt;* TO &amp;lt;fs_table&amp;gt;.
  SELECT * FROM (p_table) INTO TABLE &amp;lt;fs_table&amp;gt; UP TO 20 ROWS.

  LOOP AT &amp;lt;fs_table&amp;gt; ASSIGNING &amp;lt;fs_wa&amp;gt;.
    DO.
      ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;fs_wa&amp;gt; TO &amp;lt;any&amp;gt;.
      IF sy-subrc = 0.
        lv_string = &amp;lt;any&amp;gt;.
        IF sy-index = 1.
          WRITE: lv_string .
        ELSE.
          WRITE lv_string .
        ENDIF.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
  ENDLOOP.
ENDFORM.                    " TABOUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So again the question: Where does what kind of error occur with &lt;STRONG&gt;this&lt;/STRONG&gt; code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 18:20:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363576#M1542110</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-11-03T18:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363577#M1542111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;That works like a charm &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; . &lt;/P&gt;&lt;P&gt;As said you previous code had a problem .&lt;/P&gt;&lt;P&gt; &amp;lt;fs_string&amp;gt; = &amp;lt;any&amp;gt;. "while moving a large value it adds a * to it .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 18:24:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363577#M1542111</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-03T18:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363578#M1542112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot guys. I need to get the data in one line something like this...because I need to download the data into a text file  Any thoughts? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output: 10000100000001019999123120090101 ############0001 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 18:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363578#M1542112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-03T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363579#M1542113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to give a determined fixed length to the output. This will not work with numerical type P or F data: P means we have Packed decimals, 2 decimals per byte (of defined length) plus half a byte for the sign. F is stored as pure binary, don't know the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I decided just to move to string (implicit conversion should work for all simple types, that means all field types available in the used database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now we will not have constant line lengths. We could use the defined output length as a constant and (theoretical) maximum. But this may lead top confusion if some kind of (weird) output conversion will make the output (and the defined output length) shorter than the field's content. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In most cases we will waste space; most fields have more output length than internal length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, nice thread to see how simple or how complex some tasks may be.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 18:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363579#M1542113</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-11-03T18:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363580#M1542114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We could use the defined output length as a constant and (theoretical) maximum. But this may lead top confusion if some kind of (weird) output conversion will make the output (and the defined output length) shorter than the field's content. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In most cases we will waste space; most fields have more output length than internal length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your concerns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keshav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 19:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363580#M1542114</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-03T19:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363581#M1542115</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;Thanks a lot guys. My purpose is half done. I need to donwload the data into a text file. Hence I am trying to convert the data into character. It is not happening. how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:v_char(2550) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DO.&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;fs_wa&amp;gt; TO &amp;lt;fs_line&amp;gt;.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      condense v_char.&lt;/P&gt;&lt;P&gt;      concatenate v_char &amp;lt;fs_line&amp;gt; into v_char.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     WRITE:/ &amp;lt;fs_line&amp;gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 19:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363581#M1542115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-03T19:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: reading decimal data into a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363582#M1542116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the help. I have rewarded the points accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 20:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-decimal-data-into-a-string/m-p/7363582#M1542116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-03T20:28:24Z</dc:date>
    </item>
  </channel>
</rss>

