<?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 Problem with conversion of Data Types in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-conversion-of-data-types/m-p/2014738#M411632</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;   In my program I need to consider a internal in the follwoing fashion. But &lt;/P&gt;&lt;P&gt;actually LABST  is "Valuated stock with unrestricted use"&lt;/P&gt;&lt;P&gt;with DATA TYPE : QUAN and length 13 with decimal length 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to  do conversion with out  any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************&lt;/P&gt;&lt;P&gt;data:  begin of i_mard occurs 0,&lt;/P&gt;&lt;P&gt;          matnr like mard-matnr,&lt;/P&gt;&lt;P&gt;          labst(17)  type &amp;lt;b&amp;gt;N&amp;lt;/b&amp;gt;,   "otherwise  what I have to change&lt;/P&gt;&lt;P&gt;         end of i_mard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr  labst   from mard into table i_mard.&lt;/P&gt;&lt;P&gt;**********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want to use  labst like mard-labst.If its necessary to declare like that I use this .So I think I need to create one more internal table  and I have to pass this internal table to it again I think &lt;/P&gt;&lt;P&gt;Please help me in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is going to Short dump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2007 07:50:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-16T07:50:17Z</dc:date>
    <item>
      <title>Problem with conversion of Data Types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-conversion-of-data-types/m-p/2014738#M411632</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;   In my program I need to consider a internal in the follwoing fashion. But &lt;/P&gt;&lt;P&gt;actually LABST  is "Valuated stock with unrestricted use"&lt;/P&gt;&lt;P&gt;with DATA TYPE : QUAN and length 13 with decimal length 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to  do conversion with out  any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************&lt;/P&gt;&lt;P&gt;data:  begin of i_mard occurs 0,&lt;/P&gt;&lt;P&gt;          matnr like mard-matnr,&lt;/P&gt;&lt;P&gt;          labst(17)  type &amp;lt;b&amp;gt;N&amp;lt;/b&amp;gt;,   "otherwise  what I have to change&lt;/P&gt;&lt;P&gt;         end of i_mard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr  labst   from mard into table i_mard.&lt;/P&gt;&lt;P&gt;**********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want to use  labst like mard-labst.If its necessary to declare like that I use this .So I think I need to create one more internal table  and I have to pass this internal table to it again I think &lt;/P&gt;&lt;P&gt;Please help me in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is going to Short dump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 07:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-conversion-of-data-types/m-p/2014738#M411632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T07:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conversion of Data Types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-conversion-of-data-types/m-p/2014739#M411633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Better, You can declare LABST like MARD-LABST in the Itab.&lt;/P&gt;&lt;P&gt;But what are you going to do with this int table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 07:52:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-conversion-of-data-types/m-p/2014739#M411633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T07:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conversion of Data Types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-conversion-of-data-types/m-p/2014740#M411634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare in this way then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of i_mard occurs 0,
matnr like mard-matnr,
*labst(17) type N, "otherwise what I have to change
 labst(13) type P decimals 3,
end of i_mard,
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 07:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-conversion-of-data-types/m-p/2014740#M411634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T07:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conversion of Data Types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-conversion-of-data-types/m-p/2014741#M411635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Anji Reddy&lt;/P&gt;&lt;P&gt;In order to make heading in Excel Sheet .Its not accepting String heading for the numberical Fields .So I was forced to declare variables not as table fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report y_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_mard occurs 0,&lt;/P&gt;&lt;P&gt;          matnr like mard-matnr,&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;         labst(17)  type n, "&amp;lt;b&amp;gt; I have written this instead of labst like mard-labst.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      end of i_mard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      begin of it_fnames occurs 0,&lt;/P&gt;&lt;P&gt;        reptext like dfies-reptext,&lt;/P&gt;&lt;P&gt;      end of it_fnames.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr LABST  from mard into table i_mard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_fnames-reptext = 'MATERIAL'.&lt;/P&gt;&lt;P&gt;Append it_fnames.&lt;/P&gt;&lt;P&gt;*it_fnames-reptext = &amp;lt;b&amp;gt;'Valued Stock'&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;*Append it_fnames.&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;CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILE_NAME                       = 'C:\T001'&lt;/P&gt;&lt;P&gt;    DATA_SHEET_NAME                 = 'Companies'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                        = i_MARD&lt;/P&gt;&lt;P&gt;   FIELDNAMES                      = &amp;lt;b&amp;gt;it_fnames&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FILE_NOT_EXIST                  = 1&lt;/P&gt;&lt;P&gt;    FILENAME_EXPECTED               = 2&lt;/P&gt;&lt;P&gt;    COMMUNICATION_ERROR             = 3&lt;/P&gt;&lt;P&gt;    OLE_OBJECT_METHOD_ERROR         = 4&lt;/P&gt;&lt;P&gt;    OLE_OBJECT_PROPERTY_ERROR       = 5&lt;/P&gt;&lt;P&gt;    INVALID_FILENAME                = 6&lt;/P&gt;&lt;P&gt;    INVALID_PIVOT_FIELDS            = 7&lt;/P&gt;&lt;P&gt;    DOWNLOAD_PROBLEM                = 8&lt;/P&gt;&lt;P&gt;    OTHERS                          = 9&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 07:56:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-conversion-of-data-types/m-p/2014741#M411635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T07:56:37Z</dc:date>
    </item>
  </channel>
</rss>

