<?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: update ztable from database table directly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091417#M978337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make your question clear. ZTABLE is nothing but a database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And abt which database table you are talking abt the new entry creation.Same table??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jul 2008 07:10:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-02T07:10:26Z</dc:date>
    <item>
      <title>update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091416#M978336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u tell me the possible ways to update a ztable from database table directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean is there anyway to update ztable whenever entry is created in database table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont want to update using insert,modify statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points will be rewarded to all hlpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 07:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091416#M978336</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-07-02T07:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091417#M978337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make your question clear. ZTABLE is nothing but a database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And abt which database table you are talking abt the new entry creation.Same table??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 07:10:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091417#M978337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T07:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091418#M978338</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;for example , if u have  any new entry created in some database table like mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it should be updated in Zmara .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont want to run any program using insert,modify statements continously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the table Zmara should get that values from mara when ever new records are created there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this is clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 07:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091418#M978338</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-07-02T07:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091419#M978339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can be done with events in table maintainenance generator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below for blog on events in table maintenance&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 07:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091419#M978339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T07:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091420#M978340</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;any other ways to acheive this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 08:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091420#M978340</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-07-02T08:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091421#M978341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gautam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are these tables external to SAP Business One and do not have a Business Object? If there is a Business Object available such as if you were to enter an order, that order would use the Documents object which abstracts you, the programmer, from the underlying tables that need to be updated. If you are handling multiple business objects you would need to wrap the transaction with the StartTransaction - EndTransaction methods. This information is detailed in the SAP Business One SDK Help Center that comes with the SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 08:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091421#M978341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T08:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091422#M978342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there are such "triggered" event in SAP, some database have these tools but this is not the forum ad hoc, in SAP you have to look for BADI or Business Event executed after update/insert into tables.&lt;/P&gt;&lt;P&gt;Another way would be to analyze in pseudo-real time, the table DBTABLOG or CDHDR/CDPOS and create new records in your Z-tables.&lt;/P&gt;&lt;P&gt;If you don't want to program this, look for your database, look for "triggering" event on database update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 08:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091422#M978342</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-07-02T08:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091423#M978343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can ensure that the KEYs of ZMARA are correctly maintained automatically, by making it an APPEND table of MARA.  ( You may have to use a different name ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 08:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091423#M978343</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-02T08:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091424#M978344</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;There is no such way to do this. Because your Ztable may contain some fields that are not present in DB table. So how these fields would be populated... So you have to write some logic behind this in your code for insert/update/modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is just create a Database view for that... This may solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 08:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091424#M978344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T08:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091425#M978345</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;actually we have created a ztable with some fields from VWBEVI table and there is also a program written to update the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the data gets updated only if we run that program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i wanted to know if there is any other alternative so that the table gets updated directly instead of using the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 10:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091425#M978345</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-07-02T10:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091426#M978346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think their is no additional information available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for everyone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 11:43:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091426#M978346</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-07-02T11:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091427#M978347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, simply there is no such option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 11:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091427#M978347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T11:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091428#M978348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prerequisites:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each key field in the database table (except the client) must have a corresponding characteristic in the variant table. &lt;/P&gt;&lt;P&gt;The variant table must not contain interval values. &lt;/P&gt;&lt;P&gt;The characteristics must not be in exponential format 1 (standard) or 2 (Exponent entered).&lt;/P&gt;&lt;P&gt;The variant table must be linked to a database table. The link must be active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. From the variant configuration menu, choose Tools ® Table entries ® Transfer to database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function executes report program RCCUVTDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Enter the database operation you want to execute:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Insert inserts new data records in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Insert and change inserts new data records in the database and changes existing records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 12:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091428#M978348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T12:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091429#M978349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A slightly dirty solution: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SAP functions for reading from CDHEADER and CDPOS tables [with enough filters such that you extract minimum records possible] to read changes to MARA table fields since last run of your program. Use this information to update your ZTABLE. I would recommend having a table maintainance generator on ZTABLE. The actual update should be by a BDC by calling transaction SM30 for ZTABLE maintainance. Now the program may be set up as a batch job running 1ce an hour. You get updates to the extent of 1 hour latency. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you may look if an opportunistic BADI / user Exit is there alongside MM01/02 transactions - assuming the latter are the only ones updating MARA. In this BADI you may write the code to update ZTABLE- again, look to do it by BDC call transaction sm30 to maintain ZTable. To lighten up the code -load on BADI you may simply raise a custom event and move on. You will configure a job that runs your program when that particular event is raised. This will need the 'burden' of figuring out the changes, though. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An elegant way would be to fire a MATMAS fIDOC for every change to Material, capture that and turn back the changes to ZTABLE. This will facilitate the delta load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 13:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091429#M978349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T13:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: update ztable from database table directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091430#M978350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I am creating database view in production.using lips, likp, mara..for to view  the delivery order  details in that view. but in each line come 4 times . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: &lt;/P&gt;&lt;P&gt;in delivery order 80010010 contains 2  line item &lt;/P&gt;&lt;P&gt;DO#         line item material    qty&lt;/P&gt;&lt;P&gt;80010010 90001     AAAAAA  345&lt;/P&gt;&lt;P&gt;80010010 90002     AbbbA-df  456&lt;/P&gt;&lt;P&gt;in my view shows four line item as follows &lt;/P&gt;&lt;P&gt;80010010 90001     AAAAAA  345&lt;/P&gt;&lt;P&gt;80010010 90001     AAAAAA  345&lt;/P&gt;&lt;P&gt;80010010 90002     AbbbA-df  456&lt;/P&gt;&lt;P&gt;80010010 90002     AbbbA-df  456&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some each line item show four the times actual line items...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i solve it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 03:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-ztable-from-database-table-directly/m-p/4091430#M978350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T03:28:46Z</dc:date>
    </item>
  </channel>
</rss>

