<?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: Program does not find created material in MARA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141705#M1819396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;are you able to see the material created in MM03 or mara table? if yes, then&lt;/P&gt;&lt;P&gt;after commit statement,&lt;/P&gt;&lt;P&gt;get parameter id 'MAT' field v_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should do.&lt;/P&gt;&lt;P&gt;Regards-&lt;/P&gt;&lt;P&gt;Makarand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 08:26:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-04-03T08:26:54Z</dc:date>
    <item>
      <title>Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141696#M1819387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a material through calling MM01 in a dialog program.&lt;/P&gt;&lt;P&gt;After the transaction completed, the control returns to my program, but i cannot find my material created in MARA, even though it gets created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even after writing several seconds of WAIT, the select returns subrc as '4'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TRANSACTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'MM01'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;COMMIT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WORK &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WAIT&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DB_COMMIT'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'BAPI_TRANSACTION_COMMIT'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;wait &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'X'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;WAIT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;UP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4 &lt;/SPAN&gt;SECONDS&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;matnr &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;mara&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;v_matnr1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;matnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;v_matnr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;A loop which keeps on checking in MARA (using select) can be performed, but if the user cancels the transaction purposely and does not want to create the material, then the user will have to wait un-neccessarily in the loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what else can be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Rajat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141696#M1819387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-02T14:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141697#M1819388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can your program work at all? Where is v_matnr getting set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141697#M1819388</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-04-02T14:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141698#M1819389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to mention that i just pasted a part of my code, not the whole.&lt;/P&gt;&lt;P&gt;So v_matnr is set, it is just not here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141698#M1819389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-02T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141699#M1819390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matthew is right Rajat - your Material number is not set in v_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly, you dont need a commit - MM01 will commit the update for you.&lt;/P&gt;&lt;P&gt;Fortunately, material number has a PID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use that after MM01&lt;/P&gt;&lt;P&gt;get parameter id 'MAT' field v_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should set it ok....I reckon...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry, didn't try it myself in test, but am confident it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141699#M1819390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-02T14:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141700#M1819391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Matthew have a point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where filling v_matnr.(You can use import the MATNR from MAT parameter fetch the MATNR and query MARA table)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141700#M1819391</guid>
      <dc:creator>former_member183073</dc:creator>
      <dc:date>2014-04-02T14:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141701#M1819392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well you may need to run the v_matnr through the conversion exit...as well depending on where that number is sourced - it may not have leading zeros or something similar in the select - but MM01 is formatting the number in internal format for you when saving&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATNR conv exits are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MG_MATN1_RANGE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MATN1 Conversion with Ranges&lt;BR /&gt;CONVERSION_EXIT_MATN1_RANGE_I&amp;nbsp; Conversion Exit MATN1, External Range -&amp;gt; Internal Range&lt;BR /&gt;CONVERSION_EXIT_MATN1_RANGE_O&amp;nbsp; Conversion Exit MATN1, Internal Range -&amp;gt; External Range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OMCV&lt;BR /&gt;CONVERSION_EXIT_MATN1_INPUT&lt;BR /&gt;CONVERSION_EXIT_MATN1_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the right one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 15:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141701#M1819392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-02T15:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141702#M1819393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the comments. But all of this I have already done and it's not working. I will paste the some more extended code (this is not the full code):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the below code is working when I place a break-point inside the code and then sy-subrc after select statement has value '0'.&lt;/P&gt;&lt;P&gt;I cannot use the parameter-id to check whether it is set after MM01, because i am already setting it before calling the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;SET &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;PARAMETER &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ID &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'MAT' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIELD mara-&lt;/SPAN&gt;matnr&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TRANSACTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'MM01'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;COMMIT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WORK &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WAIT&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DB_COMMIT'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'BAPI_TRANSACTION_COMMIT'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;wait &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'X'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WAIT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;UP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4 &lt;/SPAN&gt;SECONDS&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'CONVERSION_EXIT_MATN1_INPUT'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;input&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= mara-&lt;/SPAN&gt;matnr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IMPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;output &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;v_matnr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'CONVERSION_EXIT_ALPHA_INPUT'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;input&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;v_matnr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IMPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;output &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;v_matnr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;matnr &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;mara&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;v_matnr1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;matnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;v_matnr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The issue is, that even after commit work and wait, and other commits and waits, still the DB takes time to reflect value in MARA.&lt;/P&gt;&lt;P&gt;Is there any interim table which tells me whether the update has been carried out successfully or not ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 07:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141702#M1819393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-03T07:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141703#M1819394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is MARA buffered? Probably not. But if it is, try BYPASSING BUFFER. But no - there is no interim table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of waiting 4 seconds, you should first check if the data is there. If not, then loop a few times, wiating each loop, until the data is there, or you give up. That way, if the data is there quickly, you don't have any delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not need your DB_COMMIT and BAPI_TRANSACTION_COMMIT, unless you've got some other data that needs to be committed. It will have no effect on MM01.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 07:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141703#M1819394</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-04-03T07:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141704#M1819395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you done a manual check ? Please try follwoing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) After BAPI_TRANSACTION_COMMIT put DEQUE_ALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.) Put a break point on SELECT SINGLE matnr FROM mara. When program execution will stop there, manully check using T-Code MM03 , whether material created , if created then check entry in MARA table using t-code SE16 or SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways Material master upate is huge thing and it tooks time to update completly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:04:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141704#M1819395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-03T08:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141705#M1819396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;are you able to see the material created in MM03 or mara table? if yes, then&lt;/P&gt;&lt;P&gt;after commit statement,&lt;/P&gt;&lt;P&gt;get parameter id 'MAT' field v_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should do.&lt;/P&gt;&lt;P&gt;Regards-&lt;/P&gt;&lt;P&gt;Makarand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:26:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141705#M1819396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-03T08:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141706#M1819397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matthew,&lt;/P&gt;&lt;P&gt;Thanks, but.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;You do not need your DB_COMMIT and BAPI_TRANSACTION_COMMIT, unless you've got some other data that needs to be committed. It will have no effect on MM01.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;- Agreed. I just put it there for some additional checks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Instead of waiting 4 seconds, you should first check if the data is there. If not, then loop a few times, waiting each loop, until the data is there, or you give up. That way, if the data is there quickly, you don't have any delay.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- That would work, but in the case , when the user does a 'CANCEL' or 'EXIT' from MM01, he has to wait, while the loop completes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141706#M1819397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-03T08:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141707#M1819398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Makarand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;Yes i can see the material in MM03, but as I am setting the parameter id 'MAT' myself before calling MM01, it would always return value in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, I cannot use that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141707#M1819398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-03T08:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141708#M1819399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you get the MATNR before the call transaction MM01?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141708#M1819399</guid>
      <dc:creator>former_member183073</dc:creator>
      <dc:date>2014-04-03T08:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141709#M1819400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok.. that means it is external no range.&lt;/P&gt;&lt;P&gt;Strange issue. Just try to condence v_matnr before the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards-&lt;/P&gt;&lt;P&gt;Makarand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141709#M1819400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-03T08:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141710#M1819401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As already pointed out by Matthew you can put a maximum time limit lets say you try for 30 seconds in a loop if you get it you exit else you exit after 30 seconds(meaning either user cancelled it or your system is too slow:))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141710#M1819401</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-04-03T08:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141711#M1819402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After calling transaction MM01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just code as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get parameter id 'MAT'&amp;nbsp; field V_MATNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and convert this material no as input using conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then do select query as it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will definitely work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Srimanta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:46:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141711#M1819402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-03T08:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141712#M1819403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;report&amp;nbsp; ztest&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;tables &lt;/SPAN&gt;mara&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;data &lt;/SPAN&gt;ls_mara &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;mara&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;parameters &lt;/SPAN&gt;p_matnr &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;matnr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;start&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;selection&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;set &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;parameter &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;id &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'MAT' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;field &lt;/SPAN&gt;p_matnr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; break&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;point&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;call &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;transaction &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'MM01'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;select &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;single &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;mara &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;ls_mara&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;where &lt;/SPAN&gt;matnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;p_matnr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S52"&gt;is &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;initial&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; break&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;point&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;here pid assigned and sy-subrc is 0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/424754" width="450" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;then the tcode call to mm01, immediately after - but the matnr field on screen is NOT set.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/424755" /&gt;&lt;/P&gt;&lt;P&gt;Can you show me your screenshots when you execute on your system&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141712#M1819403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-03T08:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141713#M1819404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;further, if i change the tcode to MM03 and use material 123, now see what happens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/424756" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you can see my material of 123 now gets set correctly - and also SAP has put leading zeros in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so MM01 and MM03 are treating the PID differently - I have seen some tcodes&amp;nbsp; CLEAR PIDs in create mode....in the past&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do a bit more debug...&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 09:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141713#M1819404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-03T09:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141714#M1819405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thinking outside the box for a moment, if you're needing to wrap MM01 in other functionality, perhaps this can be best achieved via a workflow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 09:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141714#M1819405</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-04-03T09:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Program does not find created material in MARA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141715#M1819406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well the line s after CALL TRANSACTION are not useful, transaction has already triggered its own commit without wait. so if you did not execute some update OPEN-SQL statements, remove :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="keyword"&gt;COMMIT &lt;SPAN class="keyword"&gt;WORK&lt;/SPAN&gt; &lt;SPAN class="op"&gt;AND&lt;/SPAN&gt; WAIT.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;CALL &lt;SPAN class="keyword"&gt;FUNCTION &lt;SPAN class="string"&gt;'DB_COMMIT'&lt;/SPAN&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;CALL &lt;SPAN class="keyword"&gt;FUNCTION &lt;SPAN class="string"&gt;'BAPI_TRANSACTION_COMMIT'&lt;/SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait = &lt;SPAN class="string"&gt;'X'. &lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="string"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="string"&gt;Before trying to select the material record, first try to lock the record (ENQUEUE_EMMARAE with wait in a loop) if user has saved a material it will be kept locked by the update task until executed. then execute a single selection from MARA bypassing buffer, if not found a single WAIT 1 second would be sufficient (and often not necessary) to wait for DB server.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;Also you could save another value in memory to detect actual creation of material (and actual number) with some BAdIs or a BTE like &lt;SPAN class="L0S32"&gt;00001250, if not found in memory, don't execute the wait.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;FUNCTION z_interface_00001250.&lt;/P&gt;
&lt;P&gt;*"--------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;*"*"Interface locale :&lt;/P&gt;
&lt;P&gt;*"&amp;nbsp; IMPORTING&lt;/P&gt;
&lt;P&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE(I_MARA_NEW) LIKE&amp;nbsp; MARA STRUCTURE&amp;nbsp; MARA OPTIONAL&lt;/P&gt;
&lt;P&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE(I_MARA_OLD) LIKE&amp;nbsp; MARA STRUCTURE&amp;nbsp; MARA OPTIONAL&lt;/P&gt;
&lt;P&gt;* etc.&lt;/P&gt;
&lt;P&gt;*"--------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp; EXPORT i_mara_new-matnr TO MEMORY ID 'ZMATNR'.&lt;/P&gt;
&lt;P&gt;ENDFUNCTION.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="string"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="string"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;Raymond&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 09:15:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-does-not-find-created-material-in-mara/m-p/10141715#M1819406</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-04-03T09:15:30Z</dc:date>
    </item>
  </channel>
</rss>

