<?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 Data Format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431340#M206202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I am sending data to an external system through an internal table(i_input). However the external system can read data only in CHAR format.&lt;/P&gt;&lt;P&gt;For my quantity field when i use quantity as (eg - line item 1 quantity is 3.500 T and for line item 2 quantity field is 1.000 T and when i add line 1 and 2 and modify my internal table the quantity is shown as 4500 T)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_input like ZSDINPUT occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZSDINPUT is a structure that i have created in SE11 and for the quantity field i used component type as CHAR15 and has no decimals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Jul 2006 22:05:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-01T22:05:15Z</dc:date>
    <item>
      <title>Data Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431340#M206202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I am sending data to an external system through an internal table(i_input). However the external system can read data only in CHAR format.&lt;/P&gt;&lt;P&gt;For my quantity field when i use quantity as (eg - line item 1 quantity is 3.500 T and for line item 2 quantity field is 1.000 T and when i add line 1 and 2 and modify my internal table the quantity is shown as 4500 T)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_input like ZSDINPUT occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZSDINPUT is a structure that i have created in SE11 and for the quantity field i used component type as CHAR15 and has no decimals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2006 22:05:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431340#M206202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-01T22:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431341#M206203</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;Change the data type of the quantity field to DEC with decimals , after sum , assign the value to character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data : i_input like ZSDINPUT occurs 0 with header line.&lt;/P&gt;&lt;P&gt; data : begin of i_process occurs 0,&lt;/P&gt;&lt;P&gt;        fld1 like BSEG-ZBD1P,&lt;/P&gt;&lt;P&gt;        end of i_process,&lt;/P&gt;&lt;P&gt;        fld2 like BSEG-ZBD1P.&lt;/P&gt;&lt;P&gt;suppose if i_process contains data entries like 1.000,2.500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_process.&lt;/P&gt;&lt;P&gt;  fld2 = fld2 + i_process-fld1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at last move fld2 to i_input table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_input-chrfld = fld2.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Laxmana Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2006 22:10:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431341#M206203</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-01T22:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431342#M206204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks LAxman for your suggestion.&lt;/P&gt;&lt;P&gt;you mean change the char field in SE11 structure and then do the calculation and once the calculation is done change back to CHAR format in the program.&lt;/P&gt;&lt;P&gt;is that what you mean and if thats true how can that be done.&lt;/P&gt;&lt;P&gt;Is it this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once i am done with the calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DAtA i_input-quantity like char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know more in detail.&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2006 22:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431342#M206204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-01T22:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431343#M206205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How the data is send as 4500? normally it should not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else like laxmana suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your final internal table data should have 4.500, for this whenever before you are sending data to external system move this data to new internal table, where you move quantity field to character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( should have standard interfacing format mapped, like decimal separater is dot or comma )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2006 22:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431343#M206205</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-07-01T22:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431344#M206206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manohar,&lt;/P&gt;&lt;P&gt;Yaa i thinking of working like lakshman said. But my question is do i need to change my structure in SE11 and once i do the calculation change it back to a char format.&lt;/P&gt;&lt;P&gt;if yes can you guide me how. Do you mean to use 2 internal tables of the same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2006 22:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431344#M206206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-01T22:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431345#M206207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you should not change the data types in SE11. You need two internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1 - to do all manipulations in SAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2 - is a copy of T1 with changes of quantity to char fields for sending to external system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2006 22:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431345#M206207</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-07-01T22:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431346#M206208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shejal, you do not have to change anything in SE11.  From your previous posts, I am under the assumption that you are working in the sales document user exit.  These include programs are not set as "Fixed Point Arithmatic"  This is the reason for the calculation being 4500 instead of 4.500.  There are two ways to work your problem.  One, which I would not recommend, is to set the "Fix Point Arithmatic" checkbox in the attributes of the main program.  Doing so will fix your issue in the user exit, but may mess other things up.  The other way is to do your calculating and divide by 1000.  This is a safe way to go.  If your fields in the calculation have 3 decimal places, then divide by 1000, if 2, then by 100 an so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;result = ( value1 + value2 ) / 1000.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2006 23:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431346#M206208</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-01T23:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Data Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431347#M206209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Max,&lt;/P&gt;&lt;P&gt;Its the easiest and i guess the safest method.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2006 23:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431347#M206209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-01T23:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431348#M206210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2006 23:19:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431348#M206210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-01T23:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431349#M206211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;Yes i am working on the sales user Exit and as you have suggested, to just add the values and divide by 100 or 1000 which ever i need but when i do this the problem i have is its not getting me anything after the decimal. eg&lt;/P&gt;&lt;P&gt;1500.000 LBS and 1000.000 Lbs i get the result as 2500 LBS but i want it to be displayed as 2500.000 LBS.&lt;/P&gt;&lt;P&gt;Any Suggestions on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2006 14:46:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431349#M206211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-03T14:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431350#M206212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you need to do your calculation into a type p field, then move this to your charcter field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: c(15) type c.
data: p type p decimals 3.

p = ( value1 + value2 ) / 1000.

c = p.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2006 15:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431350#M206212</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-03T15:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431351#M206213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THanks everyone.&lt;/P&gt;&lt;P&gt;The problem is solved.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2006 15:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-format/m-p/1431351#M206213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-03T15:24:54Z</dc:date>
    </item>
  </channel>
</rss>

