<?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: New field format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813945#M917315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;Check if below example satisfies original requirement:
&lt;PRE&gt;&lt;CODE&gt;DATA: p_dec(8) TYPE p DECIMALS 5 VALUE '99999.99',
      p_text(15) TYPE c,
      p_num(15) TYPE n.

p_text = p_dec.
p_num = p_text.
WRITE:/ p_dec,
      / p_num.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2008 03:27:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-20T03:27:05Z</dc:date>
    <item>
      <title>New field format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813938#M917308</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;&lt;/P&gt;&lt;P&gt;I'm getting this requirement, not sure if it makes any sense or not, but I really appreciate if you can give me an idea about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I read the cluster and get this amount $99999.99&lt;/P&gt;&lt;P&gt;They want me to show it in the output file under this format&lt;/P&gt;&lt;P&gt;000009999999000 (15 bytes in length)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is is there any function module to do this? or any suggestion? Thanks and points will be surely rewarded!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 21:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813938#M917308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T21:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: New field format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813939#M917309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the function module CONVERSION_EXIT_ALPHA_INPUT to convert 256 to 0000000256. You can put this FM in a subroutine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 21:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813939#M917309</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-05-19T21:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: New field format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813940#M917310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ben Boman,&lt;/P&gt;&lt;P&gt;                            No FM's available. You need to do make use of string manupulation functions.&lt;/P&gt;&lt;P&gt;Do the following logic :&lt;/P&gt;&lt;P&gt;1) seperate the value into two field value ( one before decimal poing and another after decimal value).&lt;/P&gt;&lt;P&gt;2) then count the string value and add zeros according to your requirement and concatenate both values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 21:48:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813940#M917310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T21:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: New field format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813941#M917311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your prompt responses, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@jack, It's very useful, I will check with my client if they want that instead of the original requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@greetson, thanks for your solution, I'm thinking about this case your solution may not work, if I have an amount of $500, so, if I put it in the variable that's 15 byte long, something like this 000000000500000   how do I (or they) know that it's 500 or 50000 dollars. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And by the way, it really depends on the amount so the numbers of begin and ending zero are not fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 22:12:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813941#M917311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T22:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: New field format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813942#M917312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack, I tried the module function named 'conversion_exit_alpha_input'&lt;/P&gt;&lt;P&gt;But it turned out 0000000000000009 instead of 0000000000009999 as I thought&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my test code on that FM, if there's something wrong please let me know, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;REPORT  Ztest.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data: numtest type n.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data: test(15) TYPE n.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;numtest = 9999.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;  &lt;EM&gt;EXPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;    &lt;EM&gt;INPUT         = numtest&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; &lt;EM&gt;IMPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;   &lt;EM&gt;OUTPUT        = test.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;write test.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 23:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813942#M917312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T23:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: New field format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813943#M917313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;            The code should be in the following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: numtest(15) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: test(15) TYPE n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;numtest = 9999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;INPUT = numtest&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT = test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is coming perfectly as 000000000009999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 23:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813943#M917313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T23:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: New field format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813944#M917314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! thanks Abhishek, I will confirm with them if they want this format, in the mean time still looking for a solution for this format. Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 23:30:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813944#M917314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T23:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: New field format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813945#M917315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;Check if below example satisfies original requirement:
&lt;PRE&gt;&lt;CODE&gt;DATA: p_dec(8) TYPE p DECIMALS 5 VALUE '99999.99',
      p_text(15) TYPE c,
      p_num(15) TYPE n.

p_text = p_dec.
p_num = p_text.
WRITE:/ p_dec,
      / p_num.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 03:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813945#M917315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T03:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: New field format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813946#M917316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Eswar, It works, I marked this as right answer &lt;SPAN __jive_emoticon_name="grin"&gt;&lt;/SPAN&gt; You're amazing, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ben Boman on May 21, 2008 12:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 22:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-field-format/m-p/3813946#M917316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T22:20:39Z</dc:date>
    </item>
  </channel>
</rss>

