<?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: Modify table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998024#M75686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the function module CONVERSION_EXIT_ALPHA_INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give i_purchase-MATNR in the parameter INPUT and&lt;/P&gt;&lt;P&gt;give another variable of length 17 in the parameter OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if this is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2005 11:54:35 GMT</pubDate>
    <dc:creator>Vinod_Chandran</dc:creator>
    <dc:date>2005-09-07T11:54:35Z</dc:date>
    <item>
      <title>Modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998023#M75685</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;I have a internal table that I want to clean up a little bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside i_purchase I have a field name MATNR.&lt;/P&gt;&lt;P&gt;i_purchase-MATNR now is 100727&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want it to be '00000000000100727' (orginal form). &lt;/P&gt;&lt;P&gt;Is this possible without using a loop ?&lt;/P&gt;&lt;P&gt;//MA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Martin Andersson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 11:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998023#M75685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-07T11:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998024#M75686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the function module CONVERSION_EXIT_ALPHA_INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give i_purchase-MATNR in the parameter INPUT and&lt;/P&gt;&lt;P&gt;give another variable of length 17 in the parameter OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if this is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 11:54:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998024#M75686</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-09-07T11:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998025#M75687</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;Hmmm... there are 100000 items in the table... I want to update them all at the same time wihtout using a loop..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 12:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998025#M75687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-07T12:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998026#M75688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_purchase-MATNR = '00000000000100727'.&lt;/P&gt;&lt;P&gt;MODIFY i_purchase TRANSPORTING MATNR WHERE MATNR = '100727'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 12:04:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998026#M75688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-07T12:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998027#M75689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just convert this(i_purchase-MATNR) field type to NUMC with 18 characters long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you move 100727 to i_purchase-MATNR it will be automatically padded with 12 0s in the front.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 12:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998027#M75689</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-07T12:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998028#M75690</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;Let me explan a little more...&lt;/P&gt;&lt;P&gt;If u use standard SQL the statement would be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update MYTABLE set MATNR = '00000000000' + MATNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would this look like when having a internal table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//MA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 12:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998028#M75690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-07T12:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998029#M75691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the command UNPACK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 12:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998029#M75691</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-09-07T12:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998030#M75692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the leading zeros are padded by the conversion routine at the domain level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to have it in you internal table if the field is define like mara-matnr then you have to use the function module mentioned earlier. the same can be achieved as i said. (changing the data type to NUMC with lenth 18(as this is the length of matnr in mara))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only problem with my approach would be that if you matnr is a alpha numberic one , you cannot use the approach i have explained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 12:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998030#M75692</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-07T12:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998031#M75693</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;Hmm...I got the i_purhcase from another FM.&lt;/P&gt;&lt;P&gt;This anothern FM has deleted all the leading '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now I want It back &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//MA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 12:24:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998031#M75693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-07T12:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998032#M75694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;copy it to your internal table where the matnr field has to be of typ n with lenth 18. thats all you need. it will automatically be padded with leading zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 12:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998032#M75694</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-07T12:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998033#M75695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you find the answers helpful, reward them and if the question is answered, please mark it as answered and close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 12:43:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998033#M75695</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-07T12:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998034#M75696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check this "another FM" to see if there is a setting not to convert the material number to output format? MATNR in your i_purchase should be defined as NUMC(18).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2005 12:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table/m-p/998034#M75696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-07T12:47:55Z</dc:date>
    </item>
  </channel>
</rss>

