<?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 change not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440158#M826162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Thank you very much, Now Its working fine yar, can we change all the fields in table including primary key as following this procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    pls advise me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Feb 2008 07:14:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-09T07:14:42Z</dc:date>
    <item>
      <title>Table change not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440155#M826159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      I tried the following coding, but its not working, pls suggest me what could be the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA message_wa TYPE vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message_wa-vbeln = '1'.&lt;/P&gt;&lt;P&gt;message_wa-posnr = '10'.&lt;/P&gt;&lt;P&gt;message_wa-ERDAT = '04.07.2006'.&lt;/P&gt;&lt;P&gt;MODIFY vbap FROM message_wa.&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;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 06:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440155#M826159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T06:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table change not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440156#M826160</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;try like this.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA wa_vbap TYPE vbap.

wa_vbap-vbeln    = '0000000001'.
wa_vbap-posnr   = '000010'.
wa_vbap-erdat   = '20060704'.
MODIFY vbap FROM wa_vbap.
IF sy-subrc is initial.
message 'Record updated' type 'S'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 07:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440156#M826160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T07:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table change not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440157#M826161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajaram,&lt;/P&gt;&lt;P&gt;Please check this sample code to change the values in VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZFORMS_TEST                                                 *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZFORMS_TEST                             .&lt;/P&gt;&lt;P&gt;DATA message_wa TYPE vbap.&lt;/P&gt;&lt;P&gt;data : begin of it_vbap occurs 0.&lt;/P&gt;&lt;P&gt;include structure VBAP.&lt;/P&gt;&lt;P&gt;data : end of it_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_vbeln like vbap-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;clear it_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  *  from vbap&lt;/P&gt;&lt;P&gt;             into table it_vbap where vbeln = p_vbeln&lt;/P&gt;&lt;P&gt;                                            and  posnr = '10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear it_vbap.&lt;/P&gt;&lt;P&gt;read table it_vbap index 1.&lt;/P&gt;&lt;P&gt;move '20060202' to it_vbap-erdat.&lt;/P&gt;&lt;P&gt;modify it_vbap index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DB_UPDATE_TABLE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    TABLENAME            = 'VBAP'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SQLCODE              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    INTTAB               = it_vbap&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   DB_ERROR             = 1&lt;/P&gt;&lt;P&gt;   NOT_FOUND            = 2&lt;/P&gt;&lt;P&gt;   WRONG_PARAM          = 3&lt;/P&gt;&lt;P&gt;   INTERNAL_ERROR       = 4&lt;/P&gt;&lt;P&gt;   OTHERS               = 5&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; write : 'Database updated successfully'.&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;&lt;/P&gt;&lt;P&gt;Please reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 07:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440157#M826161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T07:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table change not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440158#M826162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Thank you very much, Now Its working fine yar, can we change all the fields in table including primary key as following this procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    pls advise me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 07:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440158#M826162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T07:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table change not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440159#M826163</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;All fields except key fields(key is used to identify a reccord right)...............&lt;/P&gt;&lt;P&gt;u can insert a record with a new key.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 07:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440159#M826163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T07:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Table change not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440160#M826164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thank you,&lt;/P&gt;&lt;P&gt;how to insert/delete a new record, pls provide me code.&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;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 07:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440160#M826164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T07:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table change not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440161#M826165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For normal ztable, you can use &lt;/P&gt;&lt;P&gt;delete db from table itab.&lt;/P&gt;&lt;P&gt;Here itab should be a internal table and contain the data to be deleted.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;delete from db where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update db from table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 07:32:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440161#M826165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T07:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table change not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440162#M826166</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;PRE&gt;&lt;CODE&gt;DELETE FROM vbap WHERE vbeln = '0000000001' AND posnr = '000010'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;OR&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA wa_vbap TYPE vbap.
wa_vbap-vbeln = '0000000001'.
wa_vbap-posnr = '000010'.
DELETE vbap FROM wa_vbap.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;OR&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA it_vbap TYPE STANDARD TABLE OF vbap WITH HEADER LINE.
it_vbap-vbeln = '0000000001'.
it_vbap-posnr = '000010'.
APPEND it_vbap.
it_vbap-vbeln = '0000000001'.
it_vbap-posnr = '000020'.
APPEND it_vbap.
DELETE vbap FROM TABLE it_vbap.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 07:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-change-not-working/m-p/3440162#M826166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T07:38:28Z</dc:date>
    </item>
  </channel>
</rss>

