<?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: Technical setting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070596#M727807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;you mean to say that  DELETED or UPDATED data are stored in that database table &amp;lt;b&amp;gt;DBTABPRT&amp;lt;/b&amp;gt; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Prajwal.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2007 05:37:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-26T05:37:11Z</dc:date>
    <item>
      <title>Technical setting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070591#M727802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all... Good morning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please tell me what is the use of check box &amp;lt;b&amp;gt;log data changes&amp;lt;/b&amp;gt; in database technical settings.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Prajwal.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 04:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070591#M727802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T04:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Technical setting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070592#M727803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When creating a log entry, you can tell the system how long should it be stored before it&amp;#146;s deleted automatically. Unlike in the above case with your own log table, you don&amp;#146;t need a reorganization program. I normally request the log messages to be stored for 30 days, it can be less if you feel like your system will not be happy to carry the weight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enough with discussion, let&amp;#146;s see the code now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;this include contains log system constants and has to be used&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;in your program (or top include if it's a function group)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  include sbal_constants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the form writes a single log entry to application log,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;building log entry identifier from parameters pf_par1 and pf_par2,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and writing the content of other parameters into the message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  form write_log&lt;/P&gt;&lt;P&gt;    using pf_par1&lt;/P&gt;&lt;P&gt;          pf_par2&lt;/P&gt;&lt;P&gt;          pf_str1  type  char50&lt;/P&gt;&lt;P&gt;          pf_str2  type  char50&lt;/P&gt;&lt;P&gt;          pf_str3  type  char50&lt;/P&gt;&lt;P&gt;          pf_str4  type  char50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data:&lt;/P&gt;&lt;P&gt;       ls_log        type bal_s_log,&lt;/P&gt;&lt;P&gt;       lt_handle     type bal_t_logh,&lt;/P&gt;&lt;P&gt;       lf_handle     type balloghndl,&lt;/P&gt;&lt;P&gt;       ls_msg        type bal_s_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;we use production order / operation log objects&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ls_log-object     = 'PPORDER'.&lt;/P&gt;&lt;P&gt;    ls_log-subobject  = 'OPERATION'.&lt;/P&gt;&lt;P&gt;    concatenate 'Some_Name_' pf_par1 '_' pf_par2&lt;/P&gt;&lt;P&gt;      into ls_log-extnumber.&lt;/P&gt;&lt;P&gt;    ls_log-aluser     = sy-uname.&lt;/P&gt;&lt;P&gt;    ls_log-alprog     = sy-repid.&lt;/P&gt;&lt;P&gt;    ls_log-altcode    = 'YOUR_TCODE'.&lt;/P&gt;&lt;P&gt;    ls_log-aldate_del = sy-datum + 30.  "keep for one month&lt;/P&gt;&lt;P&gt;    ls_log-del_before = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  create a log&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call function 'BAL_LOG_CREATE'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              i_s_log      = ls_log&lt;/P&gt;&lt;P&gt;         importing&lt;/P&gt;&lt;P&gt;              e_log_handle = lf_handle&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              others       = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  define data of message for Application Log&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Use generic message template with &amp;amp; &amp;amp; &amp;amp; &amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ls_msg-msgty     = 'S'.&lt;/P&gt;&lt;P&gt;    ls_msg-msgid     = '01'.&lt;/P&gt;&lt;P&gt;    ls_msg-msgno     = '319'.&lt;/P&gt;&lt;P&gt;    ls_msg-msgv1     = pf_str1.&lt;/P&gt;&lt;P&gt;    ls_msg-msgv2     = pf_str2.&lt;/P&gt;&lt;P&gt;    ls_msg-msgv3     = pf_str3.&lt;/P&gt;&lt;P&gt;    ls_msg-msgv4     = pf_str4.&lt;/P&gt;&lt;P&gt;    ls_msg-probclass = probclass_none.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  add this message to log&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  this function can be called several times to have one log entry&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  store several different messages&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call function 'BAL_LOG_MSG_ADD'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              i_log_handle = lf_handle&lt;/P&gt;&lt;P&gt;              i_s_msg      = ls_msg&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              others       = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  save the log&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    append lf_handle to lt_handle.&lt;/P&gt;&lt;P&gt;    call function 'BAL_DB_SAVE'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              i_save_all     = 'X'&lt;/P&gt;&lt;P&gt;              i_t_log_handle = lt_handle&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              others         = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 04:51:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070592#M727803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T04:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Technical setting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070593#M727804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/cf/21f244446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/cf/21f244446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 04:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070593#M727804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T04:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Technical setting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070594#M727805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If logging is switched on, each change to an existing data record (with UPDATE, DELETE) by the user or application program is recorded in the database in a log table (DBTABPRT).&lt;/P&gt;&lt;P&gt;The existing logs can be displayed with Transaction Table History (SCU3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more refer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eab8446011d189700000e8322d00/frameset.htm"&amp;gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eab8446011d189700000e8322d00/frameset.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 04:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070594#M727805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T04:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Technical setting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070595#M727806</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;&amp;lt;b&amp;gt;Log data changes&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The logging flag defines whether changes to the data records of a table should be logged. If logging is activated, every change (with UPDATE, DELETE) to an existing data record by a user or an application program is recorded in a log table in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Activating logging slows down accesses that change the table. First of all, a record must be written in the log table for each change. Secondly, many users access this log table in parallel. This could cause lock situations even though the users are working with different application tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Dependencies&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Logging only takes place if parameter rec/client in the system profile is set correctly. Setting the flag on its own does not cause the table changes to be logged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The existing logs can be displayed with Transaction Table history (SCU3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 04:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070595#M727806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T04:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Technical setting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070596#M727807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;you mean to say that  DELETED or UPDATED data are stored in that database table &amp;lt;b&amp;gt;DBTABPRT&amp;lt;/b&amp;gt; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Prajwal.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 05:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/technical-setting/m-p/3070596#M727807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T05:37:11Z</dc:date>
    </item>
  </channel>
</rss>

