<?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 help with Table declartion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-table-declartion/m-p/3729511#M897642</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 declare table type char to move data to text format&lt;/P&gt;&lt;P&gt;the problem is that i have Field type Dec5.2 and i have erorr to send them how can i declare table that &lt;STRONG&gt;take all the fields types&lt;/STRONG&gt;  like (char,numc,dec)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : BEGIN OF itab,
        rec(500) TYPE c,
       END OF itab.

DATA: c_tab  TYPE TABLE OF itab WITH HEADER LINE ,


  LOOP AT it_d_2.
    CONCATENATE it_d_2-employee_number it_data_2-bow it_data_2-num
    it_d_2-text1 it_d_2-text2 it_d_2-text3 it_d_2-leihg

    INTO c_tab-rec SEPARATED BY ','..
    APPEND c_tab.

  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2008 07:30:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-23T07:30:43Z</dc:date>
    <item>
      <title>help with Table declartion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-table-declartion/m-p/3729511#M897642</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 declare table type char to move data to text format&lt;/P&gt;&lt;P&gt;the problem is that i have Field type Dec5.2 and i have erorr to send them how can i declare table that &lt;STRONG&gt;take all the fields types&lt;/STRONG&gt;  like (char,numc,dec)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : BEGIN OF itab,
        rec(500) TYPE c,
       END OF itab.

DATA: c_tab  TYPE TABLE OF itab WITH HEADER LINE ,


  LOOP AT it_d_2.
    CONCATENATE it_d_2-employee_number it_data_2-bow it_data_2-num
    it_d_2-text1 it_d_2-text2 it_d_2-text3 it_d_2-leihg

    INTO c_tab-rec SEPARATED BY ','..
    APPEND c_tab.

  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 07:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-table-declartion/m-p/3729511#M897642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T07:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: help with Table declartion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-table-declartion/m-p/3729512#M897643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi you cannot use conctenate with other than char data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you declare a character data type and assign value of field having type Dec5.2  and than concatinate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. if you have  it_data_2-num type Dec5.2 &lt;/P&gt;&lt;P&gt;data: char(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_d_2.&lt;/P&gt;&lt;P&gt;char = it_data_2-num.&lt;/P&gt;&lt;P&gt;    CONCATENATE it_d_2-employee_number it_data_2-bow char&lt;/P&gt;&lt;P&gt;    it_d_2-text1 it_d_2-text2 it_d_2-text3 it_d_2-leihg&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    INTO c_tab-rec SEPARATED BY ','..&lt;/P&gt;&lt;P&gt;    APPEND c_tab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  ENDLOOP.&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;&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;reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 07:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-table-declartion/m-p/3729512#M897643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T07:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: help with Table declartion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-table-declartion/m-p/3729513#M897644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Recardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As well as the MOVE statement, which converts the value of the source field into the data type of the target field, there is also a statement WRITE TO, which converts the contents of the source field into a field with type C. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE &amp;lt;f1&amp;gt; TO &amp;lt;f2&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement converts the contents of a data object &amp;lt;f1&amp;gt; to type C, and places the string in the variable &amp;lt;f2&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, u use the field of type dec5.2 to Char variable &amp;amp; then concatenate that variable in the required position to that record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE &amp;lt;FIELD&amp;gt; TO v_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will surely works. Try it out &amp;amp; let me know in case of any concerns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget to reward points if this is useful&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 07:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-table-declartion/m-p/3729513#M897644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T07:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: help with Table declartion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-table-declartion/m-p/3729514#M897645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you move a decimal number to char field, the decimal format will not be stored instead...use the "WRITE - Formatting options ":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write : &amp;lt;Field1&amp;gt; to &amp;lt;Field2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field 2 is a char type.. Field 1 can be of any data type...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the help on Write statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 07:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-table-declartion/m-p/3729514#M897645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T07:47:58Z</dc:date>
    </item>
  </channel>
</rss>

