<?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 MB_PHYSICAL_INVENTORY buffer not cleared in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb-physical-inventory-buffer-not-cleared/m-p/405852#M10559</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am developing a
custom program to delete Physical Inventory Document (standard transaction
MI02). I am calling Function Module MB_PHYSICAL_INVENTORY in loop to delete multiple Physical Inventory Documents. But variable EIN_BELEG is not getting cleared after the
first call to the FM. How can I clear the buffer values after the first function call. &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/36515-mb-physical-inventory.png" /&gt;&lt;/P&gt;&lt;P&gt;Note: I have already tried &lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BUFFER_REFRESH_ALL'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION
'CKML_BUFFER_REFRESH_ALL'.&lt;/P&gt;&lt;P&gt;CALL METHOD PO_BUFFER_REFRESH.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dipin&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2017 08:35:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-05-30T08:35:42Z</dc:date>
    <item>
      <title>MB_PHYSICAL_INVENTORY buffer not cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb-physical-inventory-buffer-not-cleared/m-p/405852#M10559</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am developing a
custom program to delete Physical Inventory Document (standard transaction
MI02). I am calling Function Module MB_PHYSICAL_INVENTORY in loop to delete multiple Physical Inventory Documents. But variable EIN_BELEG is not getting cleared after the
first call to the FM. How can I clear the buffer values after the first function call. &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/36515-mb-physical-inventory.png" /&gt;&lt;/P&gt;&lt;P&gt;Note: I have already tried &lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BUFFER_REFRESH_ALL'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION
'CKML_BUFFER_REFRESH_ALL'.&lt;/P&gt;&lt;P&gt;CALL METHOD PO_BUFFER_REFRESH.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dipin&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 08:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb-physical-inventory-buffer-not-cleared/m-p/405852#M10559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-30T08:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: MB_PHYSICAL_INVENTORY buffer not cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb-physical-inventory-buffer-not-cleared/m-p/405853#M10560</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;As I see, this variable not cleared by any initialization FMs, so you can try to use construction CALL FUNCTION ... DESTINATION 'NONE' for all your function calls and then CALL FUNCTION 'RFC_DESTINATION_CLOSE' after loop step is finished. It will separate the processing into different user sessions.&lt;/P&gt;&lt;P&gt;Hope it's helpful.&lt;/P&gt;&lt;P&gt;Evgeny&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 09:03:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb-physical-inventory-buffer-not-cleared/m-p/405853#M10560</guid>
      <dc:creator>former_member400468</dc:creator>
      <dc:date>2017-05-30T09:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: MB_PHYSICAL_INVENTORY buffer not cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb-physical-inventory-buffer-not-cleared/m-p/405854#M10561</link>
      <description>&lt;P&gt;First call FM 'MB_PHYSICAL_INVENTORY' with inv_action = 1 and then call the same FM with  inv_action = 2. This will delete the physical inventory
document.&lt;/P&gt;inv_action,1 = Check 2 = Post the invoice document&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/39503-mi02.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dipin&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 14:14:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb-physical-inventory-buffer-not-cleared/m-p/405854#M10561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-06-15T14:14:36Z</dc:date>
    </item>
  </channel>
</rss>

