<?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: serial number in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612590#M274556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;before passing the Internal table data to table control write your logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at ITAB.&lt;/P&gt;&lt;P&gt;call function 'CONVERSION_EXIT_ALPHA_OUTPUT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            input  = ITAB-FIELD&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            output = ITAB-FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY ITAB index SY_TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Oct 2006 05:39:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-06T05:39:22Z</dc:date>
    <item>
      <title>serial number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612585#M274551</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 have noe table control in the second screen.&lt;/P&gt;&lt;P&gt;in that i am displaying the item details along with the serial number.&lt;/P&gt;&lt;P&gt;the serial number is the char of 18 lenth.&lt;/P&gt;&lt;P&gt;it should not show the leading zeros .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it it is showing the leading zeros.&lt;/P&gt;&lt;P&gt;how to delete the leading zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks&amp;amp;Regards.&lt;/P&gt;&lt;P&gt;Ramu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 05:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612585#M274551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-06T05:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: serial number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612586#M274552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it a char field follow thsi way -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can either use this function module also&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;yourField&amp;gt; LEFT DELETING LEADING '0'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try NO-ZERO option of WRITE statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is to create another variable of type I and assign the value into it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;DATA: L_NUMC(08) TYPE N.&lt;/P&gt;&lt;P&gt;DATA: L_INT TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_NUMC = '00000018'.&lt;/P&gt;&lt;P&gt;L_INT = L_NUMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result will be = 18.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;&amp;lt;b&amp;gt;if not change the data type to number and then it will not show the leading zeros.&amp;lt;/b&amp;gt;&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;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 05:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612586#M274552</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-10-06T05:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: serial number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612587#M274553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;u can use the function module for removing leading zeros&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT (adding zeros)&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_OUTPUT (removing zeros)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 05:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612587#M274553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-06T05:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: serial number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612588#M274554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     You can suppress Zero's using String operation command SHIFT. If it comes even after that declare the same table again with serial number doesnot refer to the data element or the transparent table but should be CHAR18. Then suppress all zero's and update the new table and use this table to display the contents in table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Reward useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 05:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612588#M274554</guid>
      <dc:creator>sathish_perumal</dc:creator>
      <dc:date>2006-10-06T05:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: serial number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612589#M274555</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;Field SERNR is a character domain GERNR 18 characters so should not show leading zeros&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I am getting the serial number into internaltable t_item along with some more information.&lt;/P&gt;&lt;P&gt;thie internal table  linked to table control.&lt;/P&gt;&lt;P&gt;when i am going to display in tablecontrol before that i need to delete the zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where i need to write the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards.&lt;/P&gt;&lt;P&gt;Ramu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 05:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612589#M274555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-06T05:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: serial number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612590#M274556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;before passing the Internal table data to table control write your logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at ITAB.&lt;/P&gt;&lt;P&gt;call function 'CONVERSION_EXIT_ALPHA_OUTPUT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            input  = ITAB-FIELD&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            output = ITAB-FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY ITAB index SY_TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 05:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612590#M274556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-06T05:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: serial number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612591#M274557</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;Here is the sample code.You need to write before you populate the values in table control.&lt;/P&gt;&lt;P&gt;data s1 type sernr value '045'.&lt;/P&gt;&lt;P&gt;pack s1 to s1.&lt;/P&gt;&lt;P&gt;write s1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 05:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612591#M274557</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-10-06T05:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: serial number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612592#M274558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the PBO Module of Table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flow logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop with tab ctrl.&lt;/P&gt;&lt;P&gt;module read_tab_ctrl.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module read_tab_ctrl.&lt;/P&gt;&lt;P&gt;read table itab.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;shift &amp;lt;itab-field&amp;gt; left deleting leading '0'.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF YOU CAN NOT UNDERSTAND PASTE UR PBO TABLE CONTROL MODULE HERE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 05:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-number/m-p/1612592#M274558</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-10-06T05:43:16Z</dc:date>
    </item>
  </channel>
</rss>

