<?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: Re: Condensing Values from Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734583#M1673971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must have declared your database field as integer-type. When you transfer it back to your internal table into a character field, it will have leading zeroes in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2012 11:56:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-04-10T11:56:03Z</dc:date>
    <item>
      <title>Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734575#M1673963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO i have written a select query which fetches data from Z table. Everything work's fine for me but when am adding or inserting a new record to database&lt;/P&gt;&lt;P&gt;table and fetching it back, in debugging mode it shows that new values added in internal table are with leading space. Due to this my sort functionality is getting this values first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i see the same entry&amp;nbsp; in ztable it's fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in this regard!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Sandy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 10:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734575#M1673963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T10:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734576#M1673964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a local variable of type c with length as per your requriement. &lt;/P&gt;&lt;P&gt;Then use the keyword PACK .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg - Data : l_temp length 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PACK gv_xxxx TO l_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 11:01:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734576#M1673964</guid>
      <dc:creator>rajesh_kumar2</dc:creator>
      <dc:date>2012-04-10T11:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734577#M1673965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your select query. &lt;/P&gt;&lt;P&gt;Field order should be same as it is in declaration&lt;/P&gt;&lt;P&gt;Also, check type of the field, should be same as database table (I don't see any issue here, but check it once)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 11:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734577#M1673965</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2012-04-10T11:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734578#M1673966</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;There is a mismatch in your internal table definition and the table structure in the underlying database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the same data elements as that of the table for your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 11:08:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734578#M1673966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T11:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734579#M1673967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you checking that the data in the z-table is without space? Try putting breakpoint before you are actually inserting entries in z-table. I think you will get spaces at this point too?&lt;/P&gt;&lt;P&gt;Sometimes what appears in se16(n) may not be correct due to various conversion rouintes and ingnoring of space. What you get in select query.is what data is actually is in the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 11:13:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734579#M1673967</guid>
      <dc:creator>Private_Member_49934</dc:creator>
      <dc:date>2012-04-10T11:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734580#M1673968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a FM 'CONVERSION_EXIT_ALPHA_OUTPUT' which can be used to remove the leading zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shardul P Jitkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 11:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734580#M1673968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T11:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734581#M1673969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use the following:&lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;field&amp;gt; LEFT DELETING LEADING space.&lt;/P&gt;&lt;P&gt;Hope it serves useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 11:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734581#M1673969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T11:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734582#M1673970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandy&lt;/P&gt;&lt;P&gt;What i understood is; you are getting like this "_this is a sentense_". where "_" is space&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CONDENSE&lt;/EM&gt; statement is used to delete unwanted leading spaces in string.&lt;/P&gt;&lt;P&gt;Use &lt;EM&gt;CONDENSE&lt;/EM&gt; statement, when you store data in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this sandy this should work. ...&amp;nbsp; Thx Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 11:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734582#M1673970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T11:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734583#M1673971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must have declared your database field as integer-type. When you transfer it back to your internal table into a character field, it will have leading zeroes in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 11:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734583#M1673971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T11:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734584#M1673972</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;Thanks for all the Post, I tried checking with internal table and way the select query is written.&lt;/P&gt;&lt;P&gt;But condense or conversion exit alpa fm will work for single entry that is for work area.&lt;/P&gt;&lt;P&gt;But how to condense value in an internal table which the newly inserted value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 12:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734584#M1673972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T12:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734585#M1673973</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;Thanks for all the Post, I tried checking with internal table and way the select query is written.&lt;/P&gt;&lt;P&gt;But condense or conversion exit alpa fm will work for single entry that is for work area.&lt;/P&gt;&lt;P&gt;But how to condense value in an internal table which the newly inserted value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 12:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734585#M1673973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T12:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734586#M1673974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to convert it manually after fetching it from the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 12:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734586#M1673974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T12:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734587#M1673975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Loop at that internal table into workarea like below:&lt;/P&gt;&lt;P&gt;Loop at itab into w_tab.&lt;/P&gt;&lt;P&gt;SHIFT w_tab-field LEFT DELETING LEADING space.&lt;/P&gt;&lt;P&gt;modify itab from w_tab index sy-tabix.&lt;/P&gt;&lt;P&gt;clear: w_tab.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;I hope it solves your problem now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 12:54:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734587#M1673975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T12:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734588#M1673976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Akankshi Prasad it worked for me. &lt;/P&gt;&lt;P&gt;Thank you all for all the post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 14:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734588#M1673976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T14:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734589#M1673977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can we solve this problem by using the conversion_exit_alpha_output function module. if so how can we....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 16:16:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734589#M1673977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T16:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Condensing Values from Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734590#M1673978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Kindly make this post as answered &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/5.0.1/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 11:31:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-condensing-values-from-internal-table/m-p/8734590#M1673978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-11T11:31:47Z</dc:date>
    </item>
  </channel>
</rss>

