<?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: Function Module for adding Leading Zero's to a specific field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-adding-leading-zero-s-to-a-specific-field/m-p/3254488#M777211</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;data: lv_c(10) type c value '123'.
unpack lv_c TO lv_c.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 01 Nov 2023 06:52:22 GMT</pubDate>
    <dc:creator>sandro202242</dc:creator>
    <dc:date>2023-11-01T06:52:22Z</dc:date>
    <item>
      <title>Function Module for adding Leading Zero's to a specific field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-adding-leading-zero-s-to-a-specific-field/m-p/3254484#M777207</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;Can anyone please provide a Function that will do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Take the value of the field&lt;/P&gt;&lt;P&gt;2. Take the field type&lt;/P&gt;&lt;P&gt;3. Output the value of the field with leading zero's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything similar would be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You &amp;amp; Best Regards,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 00:51:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-adding-leading-zero-s-to-a-specific-field/m-p/3254484#M777207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T00:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for adding Leading Zero's to a specific field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-adding-leading-zero-s-to-a-specific-field/m-p/3254485#M777208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure use the function  CONVERSION_EXIT_ALPHA_INPUT, this will add leading zeros to a character based field of any length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: lv_c(10) type c value '123'.

call function 'CONVERSION_EXIT_ALPHA_INPUT'
          exporting 
                  input = lv_c
          importing
                 output = lv_c.
write:/ lv_c.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&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>Wed, 16 Jan 2008 01:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-adding-leading-zero-s-to-a-specific-field/m-p/3254485#M777208</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-01-16T01:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for adding Leading Zero's to a specific field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-adding-leading-zero-s-to-a-specific-field/m-p/3254486#M777209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT will serve ur purpose..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;f1 type char10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1 = 789.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;passing f1 to CONVERSION_EXIT_ALPHA_INPUT will give you output as 0000000789.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 04:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-adding-leading-zero-s-to-a-specific-field/m-p/3254486#M777209</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-16T04:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for adding Leading Zero's to a specific field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-adding-leading-zero-s-to-a-specific-field/m-p/3254487#M777210</link>
      <description>&lt;P&gt;Great, that helped a lot! Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 10:21:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-adding-leading-zero-s-to-a-specific-field/m-p/3254487#M777210</guid>
      <dc:creator>p_anastaso</dc:creator>
      <dc:date>2023-10-20T10:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for adding Leading Zero's to a specific field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-adding-leading-zero-s-to-a-specific-field/m-p/3254488#M777211</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;data: lv_c(10) type c value '123'.
unpack lv_c TO lv_c.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Nov 2023 06:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-adding-leading-zero-s-to-a-specific-field/m-p/3254488#M777211</guid>
      <dc:creator>sandro202242</dc:creator>
      <dc:date>2023-11-01T06:52:22Z</dc:date>
    </item>
  </channel>
</rss>

