<?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 Direct Input Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/direct-input-program/m-p/2953706#M696639</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 using LSMW for loading materials and RMDATIND. I need to load only materials whose  old material number does not exist in the table MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: in the spreadsheet , if i have Old material number: &lt;/P&gt;&lt;P&gt;RECORD      OLD MATERIAL NUMBER&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------" /&gt;&lt;P&gt;REC1                     345&lt;/P&gt;&lt;P&gt;REC2                     345&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it does not exist in the table MARA, it is loading both the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want REC1 to be loaded, not REC2.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to load only REC1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 20:08:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-10T20:08:15Z</dc:date>
    <item>
      <title>Direct Input Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/direct-input-program/m-p/2953706#M696639</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 using LSMW for loading materials and RMDATIND. I need to load only materials whose  old material number does not exist in the table MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: in the spreadsheet , if i have Old material number: &lt;/P&gt;&lt;P&gt;RECORD      OLD MATERIAL NUMBER&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------" /&gt;&lt;P&gt;REC1                     345&lt;/P&gt;&lt;P&gt;REC2                     345&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it does not exist in the table MARA, it is loading both the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want REC1 to be loaded, not REC2.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to load only REC1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 20:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/direct-input-program/m-p/2953706#M696639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T20:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Direct Input Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/direct-input-program/m-p/2953707#M696640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vamsee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to write any sort of logic u can write in begin of record or begin of transaction in field mapping and conversion step...&lt;/P&gt;&lt;P&gt;while you are passing the material number you can check whether the material is already existing in mara or not...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is existing then skip the record and write to the error log so that u can have the track of the records..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is not existing then load the material &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it would be helpful for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~~Guduri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 20:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/direct-input-program/m-p/2953707#M696640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T20:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Direct Input Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/direct-input-program/m-p/2953708#M696641</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;You can write your custom code in the "Maintain Field Mapping and conversion rules Step". .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be able to see all the events available in LSMW , change the layout using ( Ctrl + F7 ) in this step. Then you will be able to see events like "__GLOBAL_DATA__" , "__BEGIN_OF_PROCESSING__" ... etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now write a code in the Begin of processing as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Check wether we have the material available in MARA , if the material is available the say CONTINUE ( This skips the current record &amp;amp; gets the second record). If there is no record available in MARA then continue your current process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 20:29:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/direct-input-program/m-p/2953708#M696641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T20:29:58Z</dc:date>
    </item>
  </channel>
</rss>

