<?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: Removing Zeros in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546238#M248341</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;when we check thje data type in se11 of pspid , it is character type with length of 24, so i declared w_final1-pspid of smae length i.e 24 but the value it is holding in that field is of only 18 characters, so i have written the code given below. but still it is not working.&lt;/P&gt;&lt;P&gt;data l_string type char18.&lt;/P&gt;&lt;P&gt;loop at t_final1 into w_final1.&lt;/P&gt;&lt;P&gt;If w_final1-pspid+17(1) = '0'.&lt;/P&gt;&lt;P&gt;move w_final1-posid to l_string.&lt;/P&gt;&lt;P&gt;shift l_string RIGHT deleting trailing '0'.&lt;/P&gt;&lt;P&gt;move l_string to w_final2-posid.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2006 11:27:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-10T11:27:02Z</dc:date>
    <item>
      <title>Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546232#M248335</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 a field called PSPID which iam fetching from the table PROJ, the field as for the following values:&lt;/P&gt;&lt;P&gt;PSPID&lt;/P&gt;&lt;P&gt;HURT00031 00000000&lt;/P&gt;&lt;P&gt;HURT00031R00000000&lt;/P&gt;&lt;P&gt;HURT00031R01000000&lt;/P&gt;&lt;P&gt;HURT00031R02000000&lt;/P&gt;&lt;P&gt;HURT00031R03000000&lt;/P&gt;&lt;P&gt;HURT00031C00000000&lt;/P&gt;&lt;P&gt;HURT00031C02000000&lt;/P&gt;&lt;P&gt;HURT00031C03000000&lt;/P&gt;&lt;P&gt;Now my requirement is to remove the trailing zeros from that field. i have used &lt;/P&gt;&lt;P&gt;shift W_FINAL1-PSPID right deleting trailing '0'.&lt;/P&gt;&lt;P&gt;But this is not working with this shift command.&lt;/P&gt;&lt;P&gt;plz help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 10:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546232#M248335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T10:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546233#M248336</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;Try moving the value to a character field and then use shift right deleting trailing 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;HR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 11:04:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546233#M248336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T11:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546234#M248337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move that field into a char field and then use no-zero say&lt;/P&gt;&lt;P&gt;data: w_temp(24) type c.&lt;/P&gt;&lt;P&gt;move  W_FINAL1-PSPID to w_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: w_temp no-zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 11:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546234#M248337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T11:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546235#M248338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi HR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I declared it as character field only but still it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 11:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546235#M248338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T11:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546236#M248339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the problem is with the length , what is the length of the field W_FINAL1-PSPID , check if it matches the length of the value , if it matches only shift will work &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ABC.

DATA : VAR1(18) VALUE 'HURT00031C03000000'.

SHIFT VAR1 RIGHT  DELETING  TRAILING '0'.

WRITE VAR1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now change the length of var1 to 20 it will not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 11:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546236#M248339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T11:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546237#M248340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_len type i,&lt;/P&gt;&lt;P&gt;l_pspid(20),&lt;/P&gt;&lt;P&gt;l_off type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_pspid = 'HURT00031 00000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_len = strlen( l_pspid ).&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;l_off = l_len - 1.&lt;/P&gt;&lt;P&gt;if l_pspid+l_off(1) = '0'.&lt;/P&gt;&lt;P&gt;clear l_pspid+l_off(1).&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;l_len = l_off.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 11:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546237#M248340</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-08-10T11:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546238#M248341</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;when we check thje data type in se11 of pspid , it is character type with length of 24, so i declared w_final1-pspid of smae length i.e 24 but the value it is holding in that field is of only 18 characters, so i have written the code given below. but still it is not working.&lt;/P&gt;&lt;P&gt;data l_string type char18.&lt;/P&gt;&lt;P&gt;loop at t_final1 into w_final1.&lt;/P&gt;&lt;P&gt;If w_final1-pspid+17(1) = '0'.&lt;/P&gt;&lt;P&gt;move w_final1-posid to l_string.&lt;/P&gt;&lt;P&gt;shift l_string RIGHT deleting trailing '0'.&lt;/P&gt;&lt;P&gt;move l_string to w_final2-posid.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 11:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546238#M248341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T11:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546239#M248342</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;Thanks a lot , it is working now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 11:34:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546239#M248342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T11:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546240#M248343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just FYI.&lt;/P&gt;&lt;P&gt;here is my program to do that&lt;/P&gt;&lt;P&gt;REPORT  ZSRIM_TEMP2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_char(50) type c.&lt;/P&gt;&lt;P&gt;v_char = 'HURT00031 00000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense v_char NO-GAPS.&lt;/P&gt;&lt;P&gt;shift v_Char left deleting leading space.&lt;/P&gt;&lt;P&gt;shift v_Char right deleting trailing space.&lt;/P&gt;&lt;P&gt;shift v_char right deleting trailing '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense v_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; v_char.&lt;/P&gt;&lt;P&gt;now this will HURT00031&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:10:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/1546240#M248343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T12:10:04Z</dc:date>
    </item>
  </channel>
</rss>

