<?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: converting all data types to CHAR type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197979#M1625885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be sure to understand you, you want to create an internal table with same field list (same field names) than an original one (internal table or ddic structrure) but in external format "character" (with or without conversion, comma ? conversion exit ?), map the data field by field converting to characters (kind of write-corresponding) and display,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where are you blocked, getting structure definition, creating the dynamic internal table, mapping the data or displaying the table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many threads at sdn on each of these topics in sdn, did you use the search tool ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2011 07:53:00 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2011-08-31T07:53:00Z</dc:date>
    <item>
      <title>converting all data types to CHAR type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197975#M1625881</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;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;I have a requirement where i have to convert all(packed,raw,etc..) data types in CHAR type &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;Populate the data , in a table where all associated type are CHAR type and display it.&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;samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 06:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197975#M1625881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-31T06:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: converting all data types to CHAR type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197976#M1625882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should look at the method &lt;EM&gt;CL_ABAP_CONTAINER_UTILITIES=&amp;gt;FILL_CONTAINER_C( )&lt;/EM&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 06:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197976#M1625882</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-08-31T06:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: converting all data types to CHAR type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197977#M1625883</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 quick response&lt;/P&gt;&lt;P&gt;could you please elaborate with some sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my values in the variables are 1.999(RAW)   33.666(DEC)   30.08.2011(DATS) respectively.&lt;/P&gt;&lt;P&gt; i am expecting these values to associate with 1.999(CHAR)  33.666(CHAR)  30.08.2011(CHAR) data type  in an internal table .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 07:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197977#M1625883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-31T07:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: converting all data types to CHAR type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197978#M1625884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this method is pretty straight forward &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;could you please elaborate with some sample code&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Spoon feeding is not encouraged in the forums. Please try the solution &amp;amp; get back to the forum in case you face any specific errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 07:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197978#M1625884</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-08-31T07:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: converting all data types to CHAR type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197979#M1625885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be sure to understand you, you want to create an internal table with same field list (same field names) than an original one (internal table or ddic structrure) but in external format "character" (with or without conversion, comma ? conversion exit ?), map the data field by field converting to characters (kind of write-corresponding) and display,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where are you blocked, getting structure definition, creating the dynamic internal table, mapping the data or displaying the table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many threads at sdn on each of these topics in sdn, did you use the search tool ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 07:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197979#M1625885</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-08-31T07:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: converting all data types to CHAR type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197980#M1625886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;You can get this by searching the sdn,[R|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="732236"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;any ways please find the following code to be usefull.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables mara.
data : wa_ymara type mara. 
loop at i_ymara into wa_ymara.
  call method cl_abap_container_utilities=&amp;gt;fill_container_c
    exporting
      im_value               = wa_ymara
    importing
      ex_container           = i_yindx-vdata
    exceptions
      illegal_parameter_type = 1
      others                 = 2.
  append i_yindx.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 09:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197980#M1625886</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-08-31T09:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: converting all data types to CHAR type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197981#M1625887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Method cl_abap_container_utilities=&amp;gt;fill_container_c map the whole structure into a string field (container) that can be then converted  back with method cl_abap_container_utilities=&amp;gt;read_container_c, in no case will this method convert data from internal format to external format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you confirm your requirement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 11:30:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197981#M1625887</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-08-31T11:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: converting all data types to CHAR type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197982#M1625888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 11:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197982#M1625888</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2011-08-31T11:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: converting all data types to CHAR type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197983#M1625889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Raymond Giuseppi  	&lt;/P&gt;&lt;P&gt;THANK YOU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the table data in a field symbol ,now i want to convert the table data into CHAR type and put it in a static internal table and display it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ACTUAL DATA at runtime in the field symbol :   01(raw)    29.647(dec)      17.08.2011(dats)     38.446(dec)     17.08.2011(dats)&lt;/P&gt;&lt;P&gt;Now i want to display the data in                   :   01(char)   29.647(char)      17.08.2011(char)    38.446(char)    17.08.2011(char)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 14:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197983#M1625889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-01T14:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: converting all data types to CHAR type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197984#M1625890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- In the LOOP AT &amp;lt;itab&amp;gt; assigning &amp;lt;record&amp;gt; you can loop ASSIGNing [COMPONENT integer OF STRUCTURE record|http://help.sap.com/abapdocu_70/en/ABAPASSIGN_MEM_AREA.htm#&amp;amp;ABAP_ALTERNATIVE_7@7@] thru the fields of the record&lt;/P&gt;&lt;P&gt;- You could use method of CL_ABAP_STRUCTDESCR  and/or CL_ABAP_DATADESCR (*)  to get description of each field (once at first record) -&amp;gt; get length of external format (CHAR type) - perform this only once at first record (store result somewhere in an itab for performance)&lt;/P&gt;&lt;P&gt;- You will also be able to find a conversion exit name and then convert from internal to external format,  or use WRITE (**), you may have to manage some types the "hard coded" way, eg. TIMS, DATS, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(*) Read first [RTTS - Run Time Type Services|http://help.sap.com/abapdocu_70/en/ABENRTTI.htm]&lt;/P&gt;&lt;P&gt;(**) Problem with WRITE is it will pad some fields to the length available in the target field, which may be undesirable depending the definition of target field, so use length retrieved via abap utilities class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 14:54:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197984#M1625890</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-09-01T14:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: converting all data types to CHAR type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197985#M1625891</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 reply&lt;/P&gt;&lt;P&gt;i am unable to interpret the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;- You will also be able to find a conversion exit name and
 then convert from internal to external format&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since i am new...it seems to be complex to me &lt;/P&gt;&lt;P&gt;could you please explain with some sample code&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;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;samuel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sam_samuel on Sep 2, 2011 2:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 05:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197985#M1625891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-02T05:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: converting all data types to CHAR type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197986#M1625892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your valuable suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Sep 2011 14:20:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-all-data-types-to-char-type/m-p/8197986#M1625892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-03T14:20:52Z</dc:date>
    </item>
  </channel>
</rss>

