<?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: append in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611096#M598935</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 this syntax  it is usefull to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes entries in database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; SET  &amp;lt;si&amp;gt; = &amp;lt;f&amp;gt; &lt;/P&gt;&lt;P&gt;                   |&amp;lt;si&amp;gt; = &amp;lt;s i&amp;gt; + &amp;lt;f&amp;gt; &lt;/P&gt;&lt;P&gt;                   |&amp;lt;si&amp;gt; = &amp;lt;s i&amp;gt; - &amp;lt;f&amp;gt; [WHERE &amp;lt;cond&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value in the column &amp;lt;si&amp;gt; is set to the value &amp;lt;f&amp;gt;, increases it by &amp;lt;f&amp;gt;, or decreases it by &amp;lt;f&amp;gt; for all lines selected. The WHERE clause specifies the lines that are changed. If you omit the WHERE clause, all lines are changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This deletes the line that has the same primary key as the work area &amp;lt;wa&amp;gt;, or deletes all the lines in the database that have the same primary key as a line in the internal table &amp;lt;itab&amp;gt;. The work area &amp;lt;wa&amp;gt; or the lines of the internal table &amp;lt;itab&amp;gt; must have at least the same length and alignment as the lines of the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****&lt;STRONG&gt;reward points for usefull answrs&lt;/STRONG&gt;***&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2007 12:51:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-02T12:51:32Z</dc:date>
    <item>
      <title>append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611093#M598932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i had to update a table then i had done &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB_EMP_SAL.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE ZHR_PR_M_SAL.&lt;/P&gt;&lt;P&gt;DATA: END OF ITAB_EMP_SAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB_EMP_SAL-INACT = ZHR_PR_M_SAL-INACT.&lt;/P&gt;&lt;P&gt;UPDATE ZHR_PR_M_SAL SET INACT = ITAB_EMP_SAL-INACT WHERE&lt;/P&gt;&lt;P&gt;PERID = ITAB_EMP_SAL-PERID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but friends &lt;/P&gt;&lt;P&gt;now i m changing enteires for this table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i want to append the whole line with chnaged enteries&lt;/P&gt;&lt;P&gt;that is to append the line in table and a field is their names STATS&lt;/P&gt;&lt;P&gt;for previous entry it should donate 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help me out &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u people got my Problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Best Regards&lt;/P&gt;&lt;P&gt;Ruby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611093#M598932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611094#M598933</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;Your requirement is not clear. Which table you want to update. &lt;/P&gt;&lt;P&gt;elaborate ur requirement pls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Azad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611094#M598933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611095#M598934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;basically &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had a table zhr_pr_m, zhr_pr_m_ad,zhr_pr_m_sal.&lt;/P&gt;&lt;P&gt;i had displayed the values from these above table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these r fields of zhr_pr_m&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;PERID&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;OBJID&lt;/P&gt;&lt;P&gt;INACT&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;STATS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;PCODE&lt;/P&gt;&lt;P&gt;CCODE&lt;/P&gt;&lt;P&gt;FNAME&lt;/P&gt;&lt;P&gt;MNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zhr_pr_m_ad&lt;/P&gt;&lt;P&gt;MANDT&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;PERID&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;OBJID&lt;/P&gt;&lt;P&gt;INACT&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;STATS&amp;lt;/b&amp;gt;ADDR1&lt;/P&gt;&lt;P&gt;ADDR2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a tabstrip i had displayed all these fields through internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now wen i make any changes in fname or nay other field and save in database then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all &lt;/P&gt;&lt;P&gt;the previous entry &amp;lt;b&amp;gt;stats&amp;lt;/b&amp;gt; should be marked as "X'.&lt;/P&gt;&lt;P&gt;and objid should be incremented by 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and all the enteries should be appended in the table not updating the current field&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;perid&amp;lt;/u&amp;gt; is primary key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope Now u got my problem and will naswer soon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Best Regards&lt;/P&gt;&lt;P&gt;Ruby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611095#M598934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611096#M598935</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 this syntax  it is usefull to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes entries in database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; SET  &amp;lt;si&amp;gt; = &amp;lt;f&amp;gt; &lt;/P&gt;&lt;P&gt;                   |&amp;lt;si&amp;gt; = &amp;lt;s i&amp;gt; + &amp;lt;f&amp;gt; &lt;/P&gt;&lt;P&gt;                   |&amp;lt;si&amp;gt; = &amp;lt;s i&amp;gt; - &amp;lt;f&amp;gt; [WHERE &amp;lt;cond&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value in the column &amp;lt;si&amp;gt; is set to the value &amp;lt;f&amp;gt;, increases it by &amp;lt;f&amp;gt;, or decreases it by &amp;lt;f&amp;gt; for all lines selected. The WHERE clause specifies the lines that are changed. If you omit the WHERE clause, all lines are changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This deletes the line that has the same primary key as the work area &amp;lt;wa&amp;gt;, or deletes all the lines in the database that have the same primary key as a line in the internal table &amp;lt;itab&amp;gt;. The work area &amp;lt;wa&amp;gt; or the lines of the internal table &amp;lt;itab&amp;gt; must have at least the same length and alignment as the lines of the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****&lt;STRONG&gt;reward points for usefull answrs&lt;/STRONG&gt;***&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611096#M598935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611097#M598936</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 this syntax  it is usefull to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes entries in database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value in the column &amp;lt;si&amp;gt; is set to the value &amp;lt;f&amp;gt;, increases it by &amp;lt;f&amp;gt;, or decreases it by &amp;lt;f&amp;gt; for all lines selected. The WHERE clause specifies the lines that are changed. If you omit the WHERE clause, all lines are changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This deletes the line that has the same primary key as the work area &amp;lt;wa&amp;gt;, or deletes all the lines in the database that have the same primary key as a line in the internal table &amp;lt;itab&amp;gt;. The work area &amp;lt;wa&amp;gt; or the lines of the internal table &amp;lt;itab&amp;gt; must have at least the same length and alignment as the lines of the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****&lt;STRONG&gt;reward points for usefull answrs&lt;/STRONG&gt;***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Venkata Santosh Kumar Boddu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Venkata Santosh Kumar Boddu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Venkata Santosh Kumar Boddu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611097#M598936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611098#M598937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruby,&lt;/P&gt;&lt;P&gt;       Use MODIFY instead of APPEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards Points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sourabh Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611098#M598937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611099#M598938</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;You can do that using MODIFY statement.&lt;/P&gt;&lt;P&gt;Loop at itab into wa.&lt;/P&gt;&lt;P&gt;read table itab1 into wa1 with key field1 = wa-field1.&lt;/P&gt;&lt;P&gt;move wa1-field2 to wa-field2.&lt;/P&gt;&lt;P&gt;MODIFY itab from wa.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it helps... don't forget REWARD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;harris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 12:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611099#M598938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T12:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611100#M598939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ruby,&lt;/P&gt;&lt;P&gt;        Do one thing . Store the previous values of fname or any other fields in a some variables. Then compare the previous values with the new values. If the values are different then APPEND, Else let it remain same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards Points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sourabh Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 13:00:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611100#M598939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T13:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611101#M598940</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;Wat u can do is,&lt;/P&gt;&lt;P&gt;see you have data in internal table which you are displaying.&lt;/P&gt;&lt;P&gt;when ever you make change and press save button append a record in that internal table with increased number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that use MODIFY database table From your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Azad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 13:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611101#M598940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T13:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611102#M598941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF ITAB_EMP.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE ZHR_PR_M.&lt;/P&gt;&lt;P&gt;DATA: END OF ITAB_EMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module USER_COMMAND_0012 input.&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;when 'DISP'.&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;perform get_data.&lt;/P&gt;&lt;P&gt;when 'save'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " USER_COMMAND_0012  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from zhr_pR_m into corresponding fields of itab_emp&lt;/P&gt;&lt;P&gt;where perid = zhr_pR_m-perid.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zhr_pr_m-FNAME = itab_emp-fname.&lt;/P&gt;&lt;P&gt;zhr_pr_m-MNAME = itab_emp-mname.&lt;/P&gt;&lt;P&gt;zhr_pr_m-LNAME = itab_emp-lname.&lt;/P&gt;&lt;P&gt;endform.                    " get_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it displays the data in my input output fields of my screens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now tell me code for Case 'Save'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With best Regards&lt;/P&gt;&lt;P&gt;Ruby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 13:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611102#M598941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T13:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611103#M598942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ruby ,&lt;/P&gt;&lt;P&gt;          Can you plese elaborate what action you want to do on save..&lt;/P&gt;&lt;P&gt;I sure i can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sourabh Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 13:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611103#M598942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T13:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611104#M598943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;had a table zhr_pr_m, zhr_pr_m_ad,zhr_pr_m_sal.&lt;/P&gt;&lt;P&gt;i had displayed the values from these above table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these r fields of zhr_pr_m&lt;/P&gt;&lt;P&gt;PERID&lt;/P&gt;&lt;P&gt;OBJID&lt;/P&gt;&lt;P&gt;INACT&lt;/P&gt;&lt;P&gt;STATS&lt;/P&gt;&lt;P&gt;PCODE&lt;/P&gt;&lt;P&gt;CCODE&lt;/P&gt;&lt;P&gt;FNAME&lt;/P&gt;&lt;P&gt;MNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zhr_pr_m_ad&lt;/P&gt;&lt;P&gt;MANDT&lt;/P&gt;&lt;P&gt;PERID&lt;/P&gt;&lt;P&gt;OBJID&lt;/P&gt;&lt;P&gt;INACT&lt;/P&gt;&lt;P&gt;STATSADDR1&lt;/P&gt;&lt;P&gt;ADDR2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a tabstrip i had displayed all these fields through internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now wen i make any changes in fname or nay other field and save in database then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;the previous entry stats should be marked as "X'.&amp;lt;/b&amp;gt;and &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;objid should be incremented by 1&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;append enteirs shoul dbe their with previous entry&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Means Old entries are to be their in database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u got now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and all the enteries should be appended in the table not updating the current field&lt;/P&gt;&lt;P&gt;perid is primary key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope Now u got my problem and will naswer soon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;BOLD LINES GIVES TEH REQUIREMENT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Best Regards&lt;/P&gt;&lt;P&gt;Ruby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 13:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611104#M598943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T13:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611105#M598944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ruby,&lt;/P&gt;&lt;P&gt;   Do this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from zhr_pR_m into corresponding fields of itab_emp&lt;/P&gt;&lt;P&gt;where perid = zhr_pR_m-perid.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to get the existing data into itab_emp based on the particular perid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare declare variable v_fname , v_perid, v_inact, v_stats...and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the values of itab_emp in these variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now get the existing values entered.&lt;/P&gt;&lt;P&gt;Compare these valuse against the previous values.&lt;/P&gt;&lt;P&gt;If the values are different then&lt;/P&gt;&lt;P&gt; STAT = 'X'.&lt;/P&gt;&lt;P&gt;  and objid = objid +1.&lt;/P&gt;&lt;P&gt;APPEND itab_empl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ruby I can only tell you the logic how to get your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points if it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sourabh Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 13:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611105#M598944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T13:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611106#M598945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Friend but logic is some hw clear to me also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m not getting how to deal with it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had tried some of them &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not appending &lt;/P&gt;&lt;P&gt;its just changing the table values means updating &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pata nahi kaise karna hai &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope somebody post me the code which will help me out &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement must be clear &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ruby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 04:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append/m-p/2611106#M598945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T04:22:19Z</dc:date>
    </item>
  </channel>
</rss>

