<?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: move fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794113#M341348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I guess solution 3 should work for you, what are you getting values of itab-id_number and w_length.  You are keeping w_length out side the loop , keep that w_length inside the loop and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that will work and will solve your problem.&lt;/P&gt;&lt;P&gt;reward points if it is solved your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : v_strlen TYPE i.&lt;/P&gt;&lt;P&gt;DATA : w_length TYPE i.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_length = STRLEN( itab-id_number ).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_length = w_length - 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_stell TYPE i , n_stell(8) TYPE n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="------" /&gt;table with data from file(csv)--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab1.&lt;/P&gt;&lt;P&gt;SPLIT itab1 AT ',' INTO:&lt;/P&gt;&lt;P&gt;itab-id_number&lt;/P&gt;&lt;P&gt;itab-hagbla&lt;/P&gt;&lt;P&gt;itab-date_open_hagbla&lt;/P&gt;&lt;P&gt;itab-date_start_hagbl&lt;/P&gt;&lt;P&gt;itab-date_stop_hagbla&lt;/P&gt;&lt;P&gt;itab-date_open_hamora&lt;/P&gt;&lt;P&gt;itab-date_close_hamor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_stell = itab-id_number.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;n_stell = i_stell.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;itab-pernr = n_stell. solution1* this bring zero before number ex.id 12345 perner 00012345&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;itab-pernr = itab-id_number+0(8). solution2 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_length = STRLEN( itab-id_number ).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_length = w_length - 1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;itab-pernr = itab-id_number+0(w_length). solution3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use code with bolded in side the loop.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        kiran i&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Dec 2006 08:20:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-18T08:20:03Z</dc:date>
    <item>
      <title>move fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794111#M341346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallow I have a little problem that I spend a lot of time to solve it with out answer .my problem is that I have id.number NUMC 9 and pernr NUMC 8 .I wont in my loop to move id.number to pernr with out the last number ex. Id number 123456789 I wont perner 12345678 the problem is that in some time I have id number that with 5  or 6 number like 12345 and I wont perner 1234 (cut the last number) how can I do that I try it with 3 solution but it not work well u can see it with asterisk. Thanks for your answeres&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : v_strlen TYPE i.&lt;/P&gt;&lt;P&gt;  DATA : w_length TYPE i.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; w_length = STRLEN( itab-id_number ).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; w_length  = w_length - 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:  i_stell  TYPE i , n_stell(8) TYPE n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="------" /&gt;table with data from file(csv)--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab1.&lt;/P&gt;&lt;P&gt;    SPLIT itab1 AT ',' INTO:&lt;/P&gt;&lt;P&gt;      itab-id_number&lt;/P&gt;&lt;P&gt;      itab-hagbla&lt;/P&gt;&lt;P&gt;      itab-date_open_hagbla&lt;/P&gt;&lt;P&gt;      itab-date_start_hagbl&lt;/P&gt;&lt;P&gt;      itab-date_stop_hagbla&lt;/P&gt;&lt;P&gt;      itab-date_open_hamora&lt;/P&gt;&lt;P&gt;      itab-date_close_hamor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   i_stell = itab-id_number.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   n_stell = i_stell.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   itab-pernr = n_stell.  &amp;lt;b&amp;gt;solution1&amp;lt;/b&amp;gt;*  this bring zero before number ex.id 12345 perner 00012345&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   itab-pernr = itab-id_number+0(8).    &amp;lt;b&amp;gt;solution2&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   itab-pernr = itab-id_number+0(w_length). &amp;lt;b&amp;gt; solution3&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND itab.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 08:09:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794111#M341346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T08:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: move fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794112#M341347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following statements should be right before the assigning statement.&lt;/P&gt;&lt;P&gt;Move them to inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_length = STRLEN( itab-id_number ).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_length = w_length - 1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;itab-pernr = itab-id_number+0(w_length). &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 08:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794112#M341347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T08:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: move fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794113#M341348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I guess solution 3 should work for you, what are you getting values of itab-id_number and w_length.  You are keeping w_length out side the loop , keep that w_length inside the loop and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that will work and will solve your problem.&lt;/P&gt;&lt;P&gt;reward points if it is solved your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : v_strlen TYPE i.&lt;/P&gt;&lt;P&gt;DATA : w_length TYPE i.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_length = STRLEN( itab-id_number ).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_length = w_length - 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_stell TYPE i , n_stell(8) TYPE n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="------" /&gt;table with data from file(csv)--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab1.&lt;/P&gt;&lt;P&gt;SPLIT itab1 AT ',' INTO:&lt;/P&gt;&lt;P&gt;itab-id_number&lt;/P&gt;&lt;P&gt;itab-hagbla&lt;/P&gt;&lt;P&gt;itab-date_open_hagbla&lt;/P&gt;&lt;P&gt;itab-date_start_hagbl&lt;/P&gt;&lt;P&gt;itab-date_stop_hagbla&lt;/P&gt;&lt;P&gt;itab-date_open_hamora&lt;/P&gt;&lt;P&gt;itab-date_close_hamor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_stell = itab-id_number.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;n_stell = i_stell.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;itab-pernr = n_stell. solution1* this bring zero before number ex.id 12345 perner 00012345&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;itab-pernr = itab-id_number+0(8). solution2 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_length = STRLEN( itab-id_number ).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_length = w_length - 1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;itab-pernr = itab-id_number+0(w_length). solution3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use code with bolded in side the loop.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        kiran i&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 08:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794113#M341348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T08:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: move fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794114#M341349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;string1 contains the input string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute n = strlen( string1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n = n - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string2 = string1(n).&lt;/P&gt;&lt;P&gt;now string2 contains your required value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 08:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794114#M341349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T08:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: move fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794115#M341350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following&lt;/P&gt;&lt;P&gt;SHIFT itab-id_number RIGHT by 0 PLACES.&lt;/P&gt;&lt;P&gt;Write itab-id_number TO itab-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write itab-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Meera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 08:24:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794115#M341350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T08:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: move fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794116#M341351</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;LOOP AT itab1.&lt;/P&gt;&lt;P&gt;SPLIT itab1 AT ',' INTO:&lt;/P&gt;&lt;P&gt;itab-id_number&lt;/P&gt;&lt;P&gt;itab-hagbla&lt;/P&gt;&lt;P&gt;itab-date_open_hagbla&lt;/P&gt;&lt;P&gt;itab-date_start_hagbl&lt;/P&gt;&lt;P&gt;itab-date_stop_hagbla&lt;/P&gt;&lt;P&gt;itab-date_open_hamora&lt;/P&gt;&lt;P&gt;itab-date_close_hamor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;unpack itab-id_number to itab-id_number.&lt;/P&gt;&lt;P&gt;itab-pernr = itab_id_number+0(8).&amp;lt;/b&amp;gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 08:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794116#M341351</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-12-18T08:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: move fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794117#M341352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT itab1.&lt;/P&gt;&lt;P&gt;SPLIT itab1 AT ',' INTO:&lt;/P&gt;&lt;P&gt;itab-id_number&lt;/P&gt;&lt;P&gt;itab-hagbla&lt;/P&gt;&lt;P&gt;itab-date_open_hagbla&lt;/P&gt;&lt;P&gt;itab-date_start_hagbl&lt;/P&gt;&lt;P&gt;itab-date_stop_hagbla&lt;/P&gt;&lt;P&gt;itab-date_open_hamora&lt;/P&gt;&lt;P&gt;itab-date_close_hamor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_stell = itab-id_number.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;n_stell = i_stell.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;itab-pernr = n_stell. solution1* this bring zero before number ex.id 12345 perner 00012345&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt; w_length = STRLEN( itab-id_number ).&lt;/P&gt;&lt;P&gt; w_length = w_length - 1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;move itab-id_number+0(w_length) to itab-pernr.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;itab-pernr = itab-id_number+0(8). solution2 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;itab-pernr = itab-id_number+0(w_length). solution3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;logic&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : id_num type num9,
       pernr  type num8,
       cnt type i .
       id_num = 123456789.  "is ur input
*        id_num = 123456.

       cnt = strlen( id_num ).
       cnt = cnt - 1.

       move  id_num+0(cnt) to pernr.
       write:/ pernr. "is ur output&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 08:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields/m-p/1794117#M341352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T08:29:43Z</dc:date>
    </item>
  </channel>
</rss>

