<?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: Table Maintaince Generator Using Single Step Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336190#M1396849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinay,&lt;/P&gt;&lt;P&gt;There is a workarea exist with the same name of the table .So use that work area  in your code.&lt;/P&gt;&lt;P&gt;Any ways if its while creation or update you want to fill the sy-datum and sy-uname.&lt;/P&gt;&lt;P&gt;Just use the update the value of the  ZTABLE-changedon and Ztable-changedby.&lt;/P&gt;&lt;P&gt;The standard code of the table maintainance will handle the rest of the thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2009 14:38:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-25T14:38:02Z</dc:date>
    <item>
      <title>Table Maintaince Generator Using Single Step Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336186#M1396845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am using table maintaince generator in single step , I am using events for updating the back ground entries like created by and changed by and I am using  the total structure , the Table is  getting updated in case of create and if the same entry is being modified in same screen the value it is over wrriting and the created field in the data base it is not populating for this i am using the event befor save .&lt;/P&gt;&lt;P&gt;below is the code that i have used .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT total INTO l_wa_total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  IF l_wa_total-action EQ 'N'.&lt;/P&gt;&lt;P&gt;    l_wa_total-createdon   = sy-datum .&lt;/P&gt;&lt;P&gt;    l_wa_total-createdby   = sy-uname .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF l_wa_total-action EQ 'U'.&lt;/P&gt;&lt;P&gt;    l_wa_total-changedon   = sy-datum .&lt;/P&gt;&lt;P&gt;    l_wa_total-changedby   = sy-uname .&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODIFY TOTAL  FROM l_wa_total.&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;K.Vinay Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 07:37:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336186#M1396845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T07:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintaince Generator Using Single Step Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336187#M1396846</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;Modify your code as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT total INTO l_wa_total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;IF l_wa_total-action EQ 'N'.&lt;/P&gt;&lt;P&gt;l_wa_total-createdon = sy-datum .&lt;/P&gt;&lt;P&gt;l_wa_total-createdby = sy-uname .&lt;/P&gt;&lt;P&gt;MODIFY TOTAL FROM l_wa_total transporting createdon createdby.&lt;/P&gt;&lt;P&gt;endif .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF l_wa_total-action EQ 'U'.&lt;/P&gt;&lt;P&gt;l_wa_total-changedon = sy-datum .&lt;/P&gt;&lt;P&gt;l_wa_total-changedby = sy-uname .&lt;/P&gt;&lt;P&gt;MODIFY TOTAL FROM l_wa_total transporting changedon changedby.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 16:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336187#M1396846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T16:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintaince Generator Using Single Step Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336188#M1396847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DO these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use clear whenever necessary.&lt;/P&gt;&lt;P&gt;2. Use different workarea . not as you are using at present . Use one for loop and second for new values.&lt;/P&gt;&lt;P&gt;3. Use sy-index to modify your table. It is faster and accurate.(AS, per my understanding this will solve your issue)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 17:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336188#M1396847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T17:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintaince Generator Using Single Step Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336189#M1396848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked the help for event 01? It's explained there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 17:09:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336189#M1396848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T17:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintaince Generator Using Single Step Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336190#M1396849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinay,&lt;/P&gt;&lt;P&gt;There is a workarea exist with the same name of the table .So use that work area  in your code.&lt;/P&gt;&lt;P&gt;Any ways if its while creation or update you want to fill the sy-datum and sy-uname.&lt;/P&gt;&lt;P&gt;Just use the update the value of the  ZTABLE-changedon and Ztable-changedby.&lt;/P&gt;&lt;P&gt;The standard code of the table maintainance will handle the rest of the thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 14:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336190#M1396849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T14:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintaince Generator Using Single Step Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336191#M1396850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have solved the problem thanks for your information .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;K Vinay Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 15:32:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintaince-generator-using-single-step-problem/m-p/6336191#M1396850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T15:32:09Z</dc:date>
    </item>
  </channel>
</rss>

