<?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: reg dataset declarations... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dataset-declarations/m-p/2867749#M672783</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;Moving decimal (packed) values to CHAR field always works. Take care that the CHAR field is long enough so that value does not get truncated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way back from CHAR to decimal field works if the numbers are in numeric format. You can try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;  &amp;lt;decimalfield&amp;gt; = &amp;lt;charfield&amp;gt;..&lt;/P&gt;&lt;P&gt;CATCH cx_sy_conversion_no_number CONVT_OVERFLOW.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset fnam for input in legacy text mode code page '1100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2007 01:53:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-02T01:53:47Z</dc:date>
    <item>
      <title>reg dataset declarations...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dataset-declarations/m-p/2867748#M672782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i have a doubt in declaring dataset. i have 2 fields with,&lt;/P&gt;&lt;P&gt;PIC S999999V99 SIGN TRAILING SEPARATE,&lt;/P&gt;&lt;P&gt;PIC S999999V99 SIGN TRAILING SEPARATE,&lt;/P&gt;&lt;P&gt;im using ,&lt;/P&gt;&lt;P&gt; OPEN DATASET gv_unixfile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;if i use that field,&lt;/P&gt;&lt;P&gt;TAX_1(6) type p DECIMALS 2,&lt;/P&gt;&lt;P&gt;TAX_2(6) type p DECIMALS 2.&lt;/P&gt;&lt;P&gt;The program goes for a DUMP. but if use ,&lt;/P&gt;&lt;P&gt;TAX_1(6) type c,&lt;/P&gt;&lt;P&gt;TAX_2(6) type c.&lt;/P&gt;&lt;P&gt; it's working fine but in the file iam able to see 0.00 but my requirement is i need 00000000+45658950&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me in this issue,&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Prem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 01:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dataset-declarations/m-p/2867748#M672782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T01:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: reg dataset declarations...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dataset-declarations/m-p/2867749#M672783</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;Moving decimal (packed) values to CHAR field always works. Take care that the CHAR field is long enough so that value does not get truncated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way back from CHAR to decimal field works if the numbers are in numeric format. You can try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;  &amp;lt;decimalfield&amp;gt; = &amp;lt;charfield&amp;gt;..&lt;/P&gt;&lt;P&gt;CATCH cx_sy_conversion_no_number CONVT_OVERFLOW.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset fnam for input in legacy text mode code page '1100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 01:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dataset-declarations/m-p/2867749#M672783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T01:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: reg dataset declarations...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dataset-declarations/m-p/2867750#M672784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While passing the amounts / quantities to file, you need to pass values to Character field. Here you are using Type P whose size is 11. That value you are trying to pass in a character variable of size 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change Character variable size value to 11 and check again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 01:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dataset-declarations/m-p/2867750#M672784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T01:57:48Z</dc:date>
    </item>
  </channel>
</rss>

