<?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: Problems in stament INSERT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341755#M1230316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer is still lock objects. You can lock a single row of the table at a time and then multiple users will be able to update it at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[SAP Locking Concept.|http://help.sap.com/saphelp_47x200/helpdata/EN/c2/2d7037ecc92a7ee10000009b38f8cf/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 3, 2009 10:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2009 15:24:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-03T15:24:11Z</dc:date>
    <item>
      <title>Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341746#M1230307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, I've a problem, I've a table Z and many users use it in dialogue, the program use INSERT and DELETE constantly and the program there is a sentence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT TABLE ITAB FROM ztabla. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do a debugger to the program, and I come to the sentence INSERT and want to go to the next step, the program doesn,t go to the next step (F5) because many users use it, anybody can help me please, sry for the bad english&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 23:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341746#M1230307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T23:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341747#M1230308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope these was some issue in the code, if you want to insert the data into database table ...check the below code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Adding single lines

TABLES SPFLI.

DATA WA TYPE SPFLI.

WA-CARRID = 'LH'.
WA-CITYFROM = 'WASHINGTON'.
...
INSERT INTO SPFLI VALUES WA.

WA-CARRID = 'UA'.
WA-CITYFROM = 'LONDON'.
...
INSERT SPFLI FROM WA.

SPFLI-CARRID = 'LH'.
SPFLI-CITYFROM = 'BERLIN'.
...
INSERT SPFLI.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;~Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 23:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341747#M1230308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T23:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341748#M1230309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Satya, but my problem is "Problem when I use stament INSERT", because many user do UPDATE (INSERT and DELETE) at same table Z and at the same time, so I dont know how to do because the process are queued and this process is in dialogue ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 00:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341748#M1230309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T00:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341749#M1230310</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;  In that case you need to create lock objects for the table, in this way you can lock the table while updating the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;~Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 00:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341749#M1230310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T00:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341750#M1230311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly, but there's a other problem, this program must be worked for many users at same time, if I created a lock object, only 1 user could be work and the others don't work =(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 01:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341750#M1230311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T01:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341751#M1230312</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;&lt;/P&gt;&lt;P&gt;    Just create copy of that table into Z nd lock objects ... Then users do their work with Original table ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 04:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341751#M1230312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T04:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341752#M1230313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are not getting any syntax errors with your INSERT statement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INSERT TABLE ITAB FROM ztabla.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks\&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mahesh Reddy on Mar 3, 2009 6:00 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 05:00:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341752#M1230313</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-03-03T05:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341753#M1230314</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 check for if the record exits or not by checking the sy-subrc and then put the logic of either INSERT or MODIFY the records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM INSERT_INTO_TABLE .&lt;/P&gt;&lt;P&gt;LOOP AT it_tab into wa_tab.&lt;/P&gt;&lt;P&gt;INSERT z_tablename  FROM  wa_tab&lt;/P&gt;&lt;P&gt;*check sy-subrc here to understand if update was suucessful&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;BREAK_POINT.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;else....&lt;/P&gt;&lt;P&gt;MODIFY table here &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM. " WRITE_OUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 05:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341753#M1230314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T05:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341754#M1230315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The stament INSERT works perfectly, the problem is when I use this stament, because many users work with a program and they do INSERT and DELETE on this table Z, when a user work whit this table, others can not, how can I do to all user can UPDATE table Z at the same time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sry for my bad english ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;La sentencia INSERT funciona perfectamente, el problema se da cuando un usuario trabaja con la transaccion que actualiza la tabla Z y los otros no pueden porque ese usuario la esta bloqueando, y los procesos estan encolados, la pregunta seria como hacer para que todos los usuarios puedan actualizar la tabla Z al mismo tiempo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 15:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341754#M1230315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T15:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341755#M1230316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer is still lock objects. You can lock a single row of the table at a time and then multiple users will be able to update it at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[SAP Locking Concept.|http://help.sap.com/saphelp_47x200/helpdata/EN/c2/2d7037ecc92a7ee10000009b38f8cf/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 3, 2009 10:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 15:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341755#M1230316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T15:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341756#M1230317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob, I see that 2 users cant UPDATE the same row in a table, the link is very interesting, thanks you =D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 21:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341756#M1230317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T21:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341757#M1230318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Hi,

In that case you need to create lock objects for the table, in this way you can lock the table while updating the table.

Regards,
~Satya&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 21:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341757#M1230318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T21:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in stament INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341758#M1230319</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;As you are doing either INSERT or DELETE, there shouldn't be much complication. You need not to use any locking when you are inserting any value.  But when you will delete a data, at that time as well I don't think it should create any problem, as no other user is going to modify the same document. Only problem I can think of, to handing with a deleted data. I think you can lock that particular row, before deletion and before deleting a data, you can do a select and check whether that is a existing data or not. If sy-subrc eq 0, then only you can proceed for deletion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kuntal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 21:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-stament-insert/m-p/5341758#M1230319</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2009-03-03T21:57:30Z</dc:date>
    </item>
  </channel>
</rss>

