<?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 SM30 Saving data event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-saving-data-event/m-p/6633381#M1442243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This SM30 event coding is really bugging me. In the event 18 I put following code &lt;/P&gt;&lt;P&gt;if &amp;lt;action&amp;gt; = 'U'.&lt;/P&gt;&lt;P&gt;zcustomtable-date = sydatum.&lt;/P&gt;&lt;P&gt;zcustomtable-uname = sy-uname.&lt;/P&gt;&lt;P&gt;modify zcustomtable.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;However while this does not work, the coding was ok for event 05 when I said as following &lt;/P&gt;&lt;P&gt;if &amp;lt;action&amp;gt; = 'N'.&lt;/P&gt;&lt;P&gt;zcustomtable-date = sydatum.&lt;/P&gt;&lt;P&gt;zcustomtable-uname = sy-uname.&lt;/P&gt;&lt;P&gt;modify zcustomtable.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I changed the code to following &lt;/P&gt;&lt;P&gt;if &amp;lt;action&amp;gt; = 'U'.&lt;/P&gt;&lt;P&gt;  extract+41(10) = sy-datum.&lt;/P&gt;&lt;P&gt;  extract+49(12) = sy-uname.&lt;/P&gt;&lt;P&gt;  modify extract index sy-tabix.&lt;/P&gt;&lt;P&gt;  total+41(10) = sy-datum.&lt;/P&gt;&lt;P&gt;  total+49(12) = sy-uname.&lt;/P&gt;&lt;P&gt;  modify total index sy-tabix.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;now what is happeneing in this case is although the correct placement in sy-uname is not happeneing but it shows me on the screen the values who is chaning and when, when i press the Save button and then go to SE12 to see whether really it has saved the data, it is not doing so. Can somebody help me understand where I am going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2010 06:20:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-22T06:20:02Z</dc:date>
    <item>
      <title>SM30 Saving data event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-saving-data-event/m-p/6633381#M1442243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This SM30 event coding is really bugging me. In the event 18 I put following code &lt;/P&gt;&lt;P&gt;if &amp;lt;action&amp;gt; = 'U'.&lt;/P&gt;&lt;P&gt;zcustomtable-date = sydatum.&lt;/P&gt;&lt;P&gt;zcustomtable-uname = sy-uname.&lt;/P&gt;&lt;P&gt;modify zcustomtable.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;However while this does not work, the coding was ok for event 05 when I said as following &lt;/P&gt;&lt;P&gt;if &amp;lt;action&amp;gt; = 'N'.&lt;/P&gt;&lt;P&gt;zcustomtable-date = sydatum.&lt;/P&gt;&lt;P&gt;zcustomtable-uname = sy-uname.&lt;/P&gt;&lt;P&gt;modify zcustomtable.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I changed the code to following &lt;/P&gt;&lt;P&gt;if &amp;lt;action&amp;gt; = 'U'.&lt;/P&gt;&lt;P&gt;  extract+41(10) = sy-datum.&lt;/P&gt;&lt;P&gt;  extract+49(12) = sy-uname.&lt;/P&gt;&lt;P&gt;  modify extract index sy-tabix.&lt;/P&gt;&lt;P&gt;  total+41(10) = sy-datum.&lt;/P&gt;&lt;P&gt;  total+49(12) = sy-uname.&lt;/P&gt;&lt;P&gt;  modify total index sy-tabix.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;now what is happeneing in this case is although the correct placement in sy-uname is not happeneing but it shows me on the screen the values who is chaning and when, when i press the Save button and then go to SE12 to see whether really it has saved the data, it is not doing so. Can somebody help me understand where I am going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 06:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-saving-data-event/m-p/6633381#M1442243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T06:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 Saving data event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-saving-data-event/m-p/6633382#M1442244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this code should used in Event#01. Why are you using Event#18 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i think the constants you are using does not look correct. From SAP documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field symbols which show the processing status of the entries in the internal tables TOTAL and EXTRACT can take the following constant values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GELOESCHT flagged for deletion &lt;/P&gt;&lt;P&gt;NEUER_EINTRAG: New entry&lt;/P&gt;&lt;P&gt;AENDERN: changed entry &lt;/P&gt;&lt;P&gt;UPDATE_GELOESCHT: entry first changed and then flagged for deletion &lt;/P&gt;&lt;P&gt;NEUER_GELOESCHT: entry first newly created, not yet saved, and then flagged for deletion&lt;/P&gt;&lt;P&gt;ORIGINAL: the same as the database status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Feb 22, 2010 12:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 06:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-saving-data-event/m-p/6633382#M1442244</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-02-22T06:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 Saving data event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-saving-data-event/m-p/6633383#M1442245</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 can use event 01(before save) and write your code there.&lt;/P&gt;&lt;P&gt;Tables in this event will be &amp;lt;vcl_extract&amp;gt; and &amp;lt;vcl_total&amp;gt;. There won't be any variable named &amp;lt;action&amp;gt;.&lt;/P&gt;&lt;P&gt;You have to figure out the postion of the action in global tables(vcl_extract&amp;gt; and &amp;lt;vcl_total&amp;gt;). eg. &amp;lt;wa_vcl_extract&amp;gt;+48(1) = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Seema Naharia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 09:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-saving-data-event/m-p/6633383#M1442245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T09:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 Saving data event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-saving-data-event/m-p/6633384#M1442246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 11:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-saving-data-event/m-p/6633384#M1442246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-24T11:26:38Z</dc:date>
    </item>
  </channel>
</rss>

