<?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: write a function to read_text for material and write to a different material in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-function-to-read-text-for-material-and-write-to-a-different/m-p/11709179#M1947425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the requirement, it seems like for a one time conversion/ data load program. Hence, I would suggest to write this as a standalone report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2016 19:25:56 GMT</pubDate>
    <dc:creator>Juwin</dc:creator>
    <dc:date>2016-06-20T19:25:56Z</dc:date>
    <item>
      <title>write a function to read_text for material and write to a different material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-function-to-read-text-for-material-and-write-to-a-different/m-p/11709178#M1947424</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 am trying to create a function that can be passed a plant, old material #, and new material #.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program will execute a read_text with the material # and plant and get the purchase order text. I will then want to write that text to the new material # as purchase order text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know what I want to do, but need a little direction as to how to begin, and how to write the text to the new material #.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should this be done as a function? Can it be done as an executable program?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to anyone who can help.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Tony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 19:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-function-to-read-text-for-material-and-write-to-a-different/m-p/11709178#M1947424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-20T19:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: write a function to read_text for material and write to a different material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-function-to-read-text-for-material-and-write-to-a-different/m-p/11709179#M1947425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the requirement, it seems like for a one time conversion/ data load program. Hence, I would suggest to write this as a standalone report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 19:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-function-to-read-text-for-material-and-write-to-a-different/m-p/11709179#M1947425</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-06-20T19:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: write a function to read_text for material and write to a different material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-function-to-read-text-for-material-and-write-to-a-different/m-p/11709180#M1947426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This requirement can be done using a function an executable report or a class&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The decision is based how this code will be used .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this code will be called from multiple location then a class or a function is the way to go .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a function or a class depends if you will need screen interaction . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eitan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 03:56:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-function-to-read-text-for-material-and-write-to-a-different/m-p/11709180#M1947426</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2016-06-21T03:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: write a function to read_text for material and write to a different material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-function-to-read-text-for-material-and-write-to-a-different/m-p/11709181#M1947427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The app will be used more than once, and this was my logic.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I was going to have in my select, the original material #.&lt;/P&gt;&lt;P&gt;Also ask for a material prefix that will be added to the material number, thus providing me with the new material #.&lt;/P&gt;&lt;P&gt;I will check MARA to see if it is a valid material, and if so, I will get the Purch Order text from the original material# and write to the new material # with the prefix.&lt;/P&gt;&lt;P&gt;I am leaning towards a report because the output can be saved and looked at to see what the new data looks like.&lt;/P&gt;&lt;P&gt;It will also come in handy in the event that one of the new material# is not in MARA.&lt;/P&gt;&lt;P&gt;My biggest hurdle now is how to write the text to the new material #'s. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 17:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-function-to-read-text-for-material-and-write-to-a-different/m-p/11709181#M1947427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-21T17:17:00Z</dc:date>
    </item>
  </channel>
</rss>

