<?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: problem with converting data types in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189045#M1625017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At run time you can see all the data........ like what i have shown...&lt;/P&gt;&lt;P&gt;but if you clearly see, DATE will be in the internal format..but if you print it, it will be in dd:mm:yyyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;can you suggest me if i have a dynamic field symbol (table data) ,,,, How can i convert data types dynamically..&lt;/P&gt;&lt;P&gt;if it is a static internal table i am achieving with WRITE TO statement.....but i have huge data in field symbols...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of all these , please specify the exact problem your are facing . What is it with date field ? . In SAP while printing the internal format will be converted to external. What is your requirement with this date field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My output looks some thing like this:&lt;/P&gt;&lt;P&gt;04 36876 15.09.2011 39600 1999&lt;/P&gt;&lt;P&gt;06 36960 15.09.2011 39600 2632&lt;/P&gt;&lt;P&gt;07 36874 15.09.2011 39541 9232&lt;/P&gt;&lt;P&gt;My expected output&lt;/P&gt;&lt;P&gt;04 36.876 15.09.2011 39.600 1.999&lt;/P&gt;&lt;P&gt;06 36.960 15.09.2011 39.600 2.632&lt;/P&gt;&lt;P&gt;07 36.874 15.09.2011 39.541 9.232&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont see any problems mentioned in your date field. Both your actual and expected outputs reflects the same in date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SCN you will only get solutions if your question is precise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 07:21:30 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2011-09-15T07:21:30Z</dc:date>
    <item>
      <title>problem with converting data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189038#M1625010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I am stuck up with a little problem, i need your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;i am converting all the data types to CHAR but i am not getting the expected data out.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is as below...where do i go wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT &amp;lt;T_ITAB&amp;gt; ASSIGNING &amp;lt;FIELD&amp;gt;.
DO.
   ASSIGN COMPONENT SY-INDEX OF STRUCTURE &amp;lt;FIELD&amp;gt; TO &amp;lt;RECORD&amp;gt;.
   IF SY-SUBRC = 0.
      LV_FIELD = &amp;lt;RECORD&amp;gt;.
      N = STRLEN( LV_FIELD ).
      IF N = '8'.
           IF LV_FIELD IS NOT INITIAL.
                  LV_DATE = LV_FIELD.
         
                  CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
                          EXPORTING
                          DATE                     = LV_DATE
                         EXCEPTIONS
                                PLAUSIBILITY_CHECK_FAILED = 1
                                OTHERS                     = 2.
                         IF SY-SUBRC &amp;lt;&amp;gt; 0.
                                &amp;nbsp;MESSAGE&amp;nbsp;ID&amp;nbsp;SY-MSGID&amp;nbsp;TYPE&amp;nbsp;SY-MSGTY&amp;nbsp;NUMBER&amp;nbsp;SY-MSGNO
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;                WITH&amp;nbsp;SY-MSGV1&amp;nbsp;SY-MSGV2&amp;nbsp;SY-MSGV3&amp;nbsp;SY-MSGV4.
                         ENDIF.
          
                     IF SY-SUBRC EQ 0.
                        CONCATENATE LV_FIELD+6(2) LV_FIELD+4(2) LV_FIELD+0(4) INTO LV_FIELD SEPARATED BY '.'.
                    ENDIF.
            ENDIF.
         ENDIF.
            IF LV_RECORD IS INITIAL.
                     LV_RECORD = LV_FIELD.
            ELSE.
                   CONCATENATE LV_RECORD LV_FIELD INTO LV_RECORD SEPARATED BY '  * '.
           ENDIF.
       ELSE.
     EXIT."&amp;nbsp;DO
    ENDIF.
   ENDDO.
  APPEND LV_RECORD TO LT_OUTPUT.
 CLEAR LV_RECORD.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;THE TABLE LT_OUTPUT	LIKE	THENV(CHAR 255)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;My output looks some thing like this:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;04  36876   15.09.2011  39600   1999&lt;/P&gt;&lt;P&gt;06  36960   15.09.2011  39600   2632&lt;/P&gt;&lt;P&gt;07  36874   15.09.2011  39541   9232&lt;/P&gt;&lt;P&gt;&lt;U&gt;My expected output&lt;/U&gt;&lt;/P&gt;&lt;P&gt;04    36.876  15.09.2011    39.600  1.999&lt;/P&gt;&lt;P&gt;06    36.960  15.09.2011    39.600  2.632&lt;/P&gt;&lt;P&gt;07    36.874  15.09.2011    39.541  9.232&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;sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 06:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189038#M1625010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T06:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem with converting data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189039#M1625011</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;Please let us know the detail of one record in &amp;lt;T_ITAB&amp;gt;.&lt;/P&gt;&lt;P&gt;data type of LV_FIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 06:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189039#M1625011</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-15T06:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem with converting data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189040#M1625012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;thank u .............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field names of   &amp;lt;T_ITAB&amp;gt;  and data types:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TASKTYPE  &lt;STRONG&gt;(raw)&lt;/STRONG&gt;    FIRSTRECT &lt;STRONG&gt;(dec)&lt;/STRONG&gt;      FIRSTRECDY &lt;STRONG&gt;(dats)&lt;/STRONG&gt;        LASTRECT &lt;STRONG&gt;(dec)&lt;/STRONG&gt;   &lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;T_ITAB&amp;gt; TYPE ANY TABLE.&lt;/P&gt;&lt;P&gt;                              &amp;lt;RECORD&amp;gt; TYPE ANY,&lt;/P&gt;&lt;P&gt;                              &amp;lt;FIELD&amp;gt;  TYPE ANY.&lt;/P&gt;&lt;P&gt;DATA: W_TABNAME TYPE W_TABNAME,&lt;/P&gt;&lt;P&gt;           W_DREF TYPE REF TO DATA,&lt;/P&gt;&lt;P&gt;           LV_FIELD TYPE STRING,&lt;/P&gt;&lt;P&gt;           LV_RECORD TYPE STRING,&lt;/P&gt;&lt;P&gt;           N TYPE I,&lt;/P&gt;&lt;P&gt;           LV_DATE TYPE DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LV_FIELD TYPE &lt;STRONG&gt;STRING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 06:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189040#M1625012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T06:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with converting data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189041#M1625013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please let us know the detail of one record in &amp;lt;T_ITAB&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 06:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189041#M1625013</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-15T06:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem with converting data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189042#M1625014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;at run time the data in the field symbol   &lt;STRONG&gt;&amp;lt;T_ITAB&amp;gt;&lt;/STRONG&gt;  is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    	01      |    37136         |    20110915  |    39531        |              1039 &lt;/P&gt;&lt;P&gt;    	02      |    36863         |    20110915  |    38709        |                 3 &lt;/P&gt;&lt;P&gt;    	03      |    36865         |    20110915  |    39600        |                49 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 07:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189042#M1625014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T07:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem with converting data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189043#M1625015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem is not with converting datatypes. The code you have written works correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You records in  &amp;lt;T_ITAB&amp;gt; doesnt have decimals for values of 2nd and 4 th field . How do you expect to have decimals by moving it to another variable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 07:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189043#M1625015</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-15T07:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem with converting data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189044#M1625016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi...&lt;/P&gt;&lt;P&gt;thanks for your quick reply....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At run time you can see all the data........ like what i have shown...&lt;/P&gt;&lt;P&gt;but if you clearly see,  DATE will be in the internal format..but if you print it, it will be in dd:mm:yyyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;can you suggest me if i have a dynamic field symbol (table data) ,,,,  &lt;STRONG&gt;How can i convert data types dynamically..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if it is a static internal table i am achieving with  &lt;EM&gt;WRITE TO&lt;/EM&gt;  statement.....but i have huge data in field symbols...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any inputs ,really appreciated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 07:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189044#M1625016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T07:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with converting data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189045#M1625017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At run time you can see all the data........ like what i have shown...&lt;/P&gt;&lt;P&gt;but if you clearly see, DATE will be in the internal format..but if you print it, it will be in dd:mm:yyyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;can you suggest me if i have a dynamic field symbol (table data) ,,,, How can i convert data types dynamically..&lt;/P&gt;&lt;P&gt;if it is a static internal table i am achieving with WRITE TO statement.....but i have huge data in field symbols...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of all these , please specify the exact problem your are facing . What is it with date field ? . In SAP while printing the internal format will be converted to external. What is your requirement with this date field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My output looks some thing like this:&lt;/P&gt;&lt;P&gt;04 36876 15.09.2011 39600 1999&lt;/P&gt;&lt;P&gt;06 36960 15.09.2011 39600 2632&lt;/P&gt;&lt;P&gt;07 36874 15.09.2011 39541 9232&lt;/P&gt;&lt;P&gt;My expected output&lt;/P&gt;&lt;P&gt;04 36.876 15.09.2011 39.600 1.999&lt;/P&gt;&lt;P&gt;06 36.960 15.09.2011 39.600 2.632&lt;/P&gt;&lt;P&gt;07 36.874 15.09.2011 39.541 9.232&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont see any problems mentioned in your date field. Both your actual and expected outputs reflects the same in date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SCN you will only get solutions if your question is precise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 07:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189045#M1625017</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-15T07:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem with converting data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189046#M1625018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thank u &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is very simple....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am executing a FM which will give me table data in internal tables....&lt;/P&gt;&lt;P&gt;now i wanna convert all the data types into CHAR..&lt;/P&gt;&lt;P&gt;since this FM is triggered by third party system....whic can understand only CHAR data type... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expected output:&lt;/P&gt;&lt;P&gt;Link: [Screenshot1|http://picturepush.com/public/6544689] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my output.........&lt;/P&gt;&lt;P&gt;Link: [Screenshot2|http://www5.picturepush.com/photo/a/6544688/640/6544688.jpeg] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u...........&lt;/P&gt;&lt;P&gt;sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 07:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189046#M1625018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T07:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: problem with converting data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189047#M1625019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still i am not clear withyour question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i wanna convert all the data types into CHAR..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can use this example for this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 DO.
      ASSIGN COMPONENT sy-index OF STRUCTURE lwa TO &amp;lt;fs&amp;gt;.
      IF sy-subrc = 0.
        DESCRIBE FIELD &amp;lt;fs&amp;gt; LENGTH lv_len IN BYTE MODE.
        CREATE DATA wf_data TYPE c LENGTH lv_len.
        ASSIGN wf_data-&amp;gt;* TO &amp;lt;fs_str&amp;gt;.
        &amp;lt;fs_str&amp;gt; = &amp;lt;fs&amp;gt;.
        WRITE:/ &amp;lt;fs_str&amp;gt;.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 08:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189047#M1625019</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-15T08:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: problem with converting data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189048#M1625020</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;really that was a good reply...&lt;/P&gt;&lt;P&gt;but to be precise ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you can see in my code i am calling a FM 'DATE_CHECK_PLAUSIBILITY' which in fact pipes me the output as &lt;/P&gt;&lt;P&gt;required format(dd:mm:yyyy)...  .if i am not calling that FM..,,the output is printed as (yyyymmdd)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similarly, how can i achieve this for other data type (say RAW,PACKED.......)&lt;/P&gt;&lt;P&gt;moreover..i don't want to print it.....i want the data in an internal table..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and Regards&lt;/P&gt;&lt;P&gt;sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 08:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-converting-data-types/m-p/8189048#M1625020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T08:53:03Z</dc:date>
    </item>
  </channel>
</rss>

