<?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: Modify Database table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1491028#M228468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;after you give statement to modify your table,&lt;/P&gt;&lt;P&gt;give 'Commit work' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Aditya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Sep 2006 07:23:11 GMT</pubDate>
    <dc:creator>former_member184495</dc:creator>
    <dc:date>2006-09-06T07:23:11Z</dc:date>
    <item>
      <title>Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1491026#M228466</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;i have a int .table(T_ZVXX) that has a status field .&lt;/P&gt;&lt;P&gt; my code is&lt;/P&gt;&lt;P&gt;  select *&lt;/P&gt;&lt;P&gt;   from ZVXX (ZVXX has matnr,inv.no. is key field)&lt;/P&gt;&lt;P&gt;   into t_zvxx&lt;/P&gt;&lt;P&gt;   where status is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; now i have certain proceesing after thati m doing like that &lt;/P&gt;&lt;P&gt; concatenate 'Screen'&lt;/P&gt;&lt;P&gt;             T_ZVXX-matnr&lt;/P&gt;&lt;P&gt;             'Business Area'&lt;/P&gt;&lt;P&gt;             '100'&lt;/P&gt;&lt;P&gt;             T_ZVXX-maktx&lt;/P&gt;&lt;P&gt;           into T_OUTPUT-line.&lt;/P&gt;&lt;P&gt;Append t_output&lt;/P&gt;&lt;P&gt;clear t_output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'Message'&lt;/P&gt;&lt;P&gt;             T_ZVXX-vbeln&lt;/P&gt;&lt;P&gt;             sy-datum&lt;/P&gt;&lt;P&gt;             '500'&lt;/P&gt;&lt;P&gt;             T_ZVXX-matnr&lt;/P&gt;&lt;P&gt;           into T_OUTPUT-line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Download T_OUTPUT to a unix file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Main problem is i have to update a table(set the Staus to X initialy it was null )for the records which is downloaded successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can modify the Data base table ZVXX for the successfully downloaded record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since it is concatenation i can not detect the key fields bcoz i have different conditions for concatenate(i.e sequence of Concatenate changes always)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saurabh Tiwari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 15:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1491026#M228466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T15:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1491027#M228467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Saurabh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand correctly you get for certain entries in T_ZVXX a corresponding concatenated entry in T_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve your problem I would define a third itab like that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  ld_idx     TYPE sy-tabix,
  lt_index   TYPE TABLE OF sytabix.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every time that you process an entry of T_ZVXX you write its index into this itab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT t_zvxx INTO ls_zvxx.
  ld_idx = syst-tabix.

  IF ( &amp;lt;condition is true&amp;gt; ).
*   do concatenation into t_output
    APPEND ld_idx TO lt_index.  " collect indices
  ELSE.
    continue.
  ENDIF.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, loop over your index itab and modify the status of the corresponding entry in t_zvxx, then DB update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;   Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 20:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1491027#M228467</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-09-05T20:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1491028#M228468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;after you give statement to modify your table,&lt;/P&gt;&lt;P&gt;give 'Commit work' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Aditya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 07:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1491028#M228468</guid>
      <dc:creator>former_member184495</dc:creator>
      <dc:date>2006-09-06T07:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1491029#M228469</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;use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;update ZVXX  
       set status = 'X'
       where Status = space
        and
          ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Andreas Mann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 07:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1491029#M228469</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-09-06T07:51:59Z</dc:date>
    </item>
  </channel>
</rss>

