<?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: Function module SBUF_OBJ_RESET_OBJECT to delete shared buffer doesn't delete shared buffer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-sbuf-obj-reset-object-to-delete-shared-buffer-doesn-t/m-p/422581#M11623</link>
    <description>&lt;P&gt;Solved it myself. It works when using code DEL_HERE_GENERIC instead of DEL_HERE_DIRECT, and leaving away the parameter KEY_L. My worries were that "generic" meant that all the entries for this tabkey would be deleted, but they were unjustified: If a KEY is given, then only those entries whose key starts with that parameter will be deleted. &lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2017 08:22:56 GMT</pubDate>
    <dc:creator>Ruediger_Plantiko</dc:creator>
    <dc:date>2017-04-03T08:22:56Z</dc:date>
    <item>
      <title>Function module SBUF_OBJ_RESET_OBJECT to delete shared buffer doesn't delete shared buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-sbuf-obj-reset-object-to-delete-shared-buffer-doesn-t/m-p/422580#M11622</link>
      <description>&lt;P&gt;From its description and its inline code comments, the function module SBUF_OBJ_RESET_OBJECT appears to be the right guy to delete shared buffer import/export areas. (I know, there is a built-in statement "delete from shared buffer", but I need an RFC, since I have to do this operation on other systems/servers - so the function module seems to be a perfect match).&lt;/P&gt;&lt;P&gt;Unfortunately, the following report yields a &lt;STRONG&gt;NOK &lt;/STRONG&gt; Why?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zz_test_delete_indx.&lt;BR /&gt;
constants: gc_id type c length 55 value 'ZCL_PARAMTESTHUHU'.&lt;BR /&gt;
data gv_test type string value 'Huhu'.
export gv_test from gv_test to shared buffer indx(zb) id gc_id.&lt;BR /&gt;
data: gv_key type rsobjkey.&lt;BR /&gt;
concatenate sy-mandt 'ZB' gc_id into gv_key.&lt;BR /&gt;
call function 'SBUF_OBJ_RESET_OBJECT'
* destination iv_server
 exporting
 buff_id = 0 " Import/Export Buffer
 inv_code = 'DEL_HERE_DIRECT'
 tabname = 'INDX'
 key = gv_key
 key_l = strlen( gv_key )
 exceptions
 c_func_error = 1
* system_failure = 97 message gv_msg
* communication_failure = 98 message gv_msg
 others = 99.&lt;BR /&gt;
clear gv_test.
import gv_test to gv_test from shared buffer indx(zb) id gc_id.
if gv_test is initial.
 format color col_positive.
 write: / 'OK, RESET worked'.
else.
 format color col_negative.
 write: / 'NOK, RESET didn''t work, still reading ''' no-gap, gv_test no-gap, ''' from buffer.'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-sbuf-obj-reset-object-to-delete-shared-buffer-doesn-t/m-p/422580#M11622</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2017-03-31T15:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Function module SBUF_OBJ_RESET_OBJECT to delete shared buffer doesn't delete shared buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-sbuf-obj-reset-object-to-delete-shared-buffer-doesn-t/m-p/422581#M11623</link>
      <description>&lt;P&gt;Solved it myself. It works when using code DEL_HERE_GENERIC instead of DEL_HERE_DIRECT, and leaving away the parameter KEY_L. My worries were that "generic" meant that all the entries for this tabkey would be deleted, but they were unjustified: If a KEY is given, then only those entries whose key starts with that parameter will be deleted. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 08:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-sbuf-obj-reset-object-to-delete-shared-buffer-doesn-t/m-p/422581#M11623</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2017-04-03T08:22:56Z</dc:date>
    </item>
  </channel>
</rss>

