<?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 database table through table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-through-table-control/m-p/4928381#M1149751</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;Refer to this link...you'll get the idea..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6532435"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2743772"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: avinash kodarapu on Dec 27, 2008 12:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Dec 2008 07:05:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-27T07:05:38Z</dc:date>
    <item>
      <title>update database table through table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-through-table-control/m-p/4928380#M1149750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends&lt;/P&gt;&lt;P&gt;i have to update entered data in table control to data base table please suggest some modification in my coding for the same&lt;/P&gt;&lt;P&gt;following is my coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  zrb_ins_data.&lt;/P&gt;&lt;P&gt;data wa_tmp_rebset type zrb_hed.&lt;/P&gt;&lt;P&gt;data wa_tmp_rebset1 type zrebate_items.&lt;/P&gt;&lt;P&gt;types:begin of st_hdr,&lt;/P&gt;&lt;P&gt;          bukrs            type zrb_hed-bukrs,&lt;/P&gt;&lt;P&gt;          sch_typ          type  zrb_hed-sch_typ,&lt;/P&gt;&lt;P&gt;          sch_desc         type  zrb_hed-sch_desc,&lt;/P&gt;&lt;P&gt;          sch_no           type  zrb_hed-sch_no,&lt;/P&gt;&lt;P&gt;          vtweg            type  zrb_hed-vtweg,&lt;/P&gt;&lt;P&gt;          vkorg	           type  zrb_hed-vkorg,&lt;/P&gt;&lt;P&gt;          vkbur            type  zrb_hed-vkbur,&lt;/P&gt;&lt;P&gt;          vkgrp	           type  zrb_hed-vkgrp,&lt;/P&gt;&lt;P&gt;          spart            type  zrb_hed-spart,&lt;/P&gt;&lt;P&gt;          regio            type  zrb_hed-regio,&lt;/P&gt;&lt;P&gt;          ort02            type  zrb_hed-ort02,&lt;/P&gt;&lt;P&gt;          ort01            type  zrb_hed-ort01,&lt;/P&gt;&lt;P&gt;          kunnr	           type  zrb_hed-kunnr,&lt;/P&gt;&lt;P&gt;          konzs            type  zrb_hed-konzs,&lt;/P&gt;&lt;P&gt;          matkl            type  zrb_hed-matkl,&lt;/P&gt;&lt;P&gt;          matnr            type  zrb_hed-matnr,&lt;/P&gt;&lt;P&gt;          lifsk            type  zrb_hed-lifsk,&lt;/P&gt;&lt;P&gt;          shtyp            type  zrb_hed-shtyp,&lt;/P&gt;&lt;P&gt;          from_date        type  zrb_hed-from_date,&lt;/P&gt;&lt;P&gt;          to_date          type  zrb_hed-to_date,&lt;/P&gt;&lt;P&gt;          hkont            type  zrb_hed-hkont,&lt;/P&gt;&lt;P&gt;          aufnr            type  zrb_hed-aufnr,&lt;/P&gt;&lt;P&gt;end of st_hdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of st_itm,&lt;/P&gt;&lt;P&gt;          item_id          type zrebate_items-sch_no,&lt;/P&gt;&lt;P&gt;          sch_no           type zrebate_items-sch_no,&lt;/P&gt;&lt;P&gt;          from_dat         type zrebate_items-from_dat,&lt;/P&gt;&lt;P&gt;          to_dat           type zrebate_items-to_dat,&lt;/P&gt;&lt;P&gt;          type             type zrebate_items-type,&lt;/P&gt;&lt;P&gt;          qty_per_rate     type zrebate_items-qty_per_rate,&lt;/P&gt;&lt;P&gt;          key1             type zrebate_items-key1,&lt;/P&gt;&lt;P&gt;          curr_com         type zrebate_items-curr_com,&lt;/P&gt;&lt;P&gt;          key2             type zrebate_items-key2,&lt;/P&gt;&lt;P&gt;          qty_per_rate1    type zrebate_items-qty_per_rate1,&lt;/P&gt;&lt;P&gt;          curr_com1        type zrebate_items-curr_com1,&lt;/P&gt;&lt;P&gt;        end of st_itm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:it_hdr type table of st_hdr with header line,&lt;/P&gt;&lt;P&gt;     wa_hdr type st_hdr,&lt;/P&gt;&lt;P&gt;     it_itm  type table of st_itm with header line,&lt;/P&gt;&lt;P&gt;     wa_itm type st_itm.&lt;/P&gt;&lt;P&gt;controls ztbl type tableview using screen 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*CALL SCREEN 1000.&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;      Module  STATUS_1000  OUTPUT&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module status_1000 output.&lt;/P&gt;&lt;P&gt;  set pf-status 'SYMBOL'.&lt;/P&gt;&lt;P&gt;  set titlebar 'xxx'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " STATUS_1000  OUTPUT&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;      Module  USER_COMMAND_1000  INPUT&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*module USER_COMMAND_1000 input.&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;      Module  get_data  OUTPUT&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&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;&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;      Module  user_command_1000  INPUT&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module user_command_1000 input.&lt;/P&gt;&lt;P&gt;  case sy-ucomm.&lt;/P&gt;&lt;P&gt;    when 'EXEC'.&lt;/P&gt;&lt;P&gt; perform get_data.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;endmodule&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;      Form  GET_DATA&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&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;  move-corresponding wa_hdr to wa_tmp_rebset.&lt;/P&gt;&lt;P&gt;      modify zrb_hed  from wa_tmp_rebset.&lt;/P&gt;&lt;P&gt;  move-corresponding wa_itm to wa_tmp_rebset1.&lt;/P&gt;&lt;P&gt;  wa_tmp_rebset1-item_id = 'TS1234'.&lt;/P&gt;&lt;P&gt;  wa_tmp_rebset1-sch_no =   wa_hdr-sch_no.&lt;/P&gt;&lt;P&gt;  wa_tmp_rebset1-from_dat = wa_itm-from_dat.&lt;/P&gt;&lt;P&gt;  wa_tmp_rebset1-to_dat = wa_itm-to_dat.&lt;/P&gt;&lt;P&gt;  append wa_itm to it_itm.&lt;/P&gt;&lt;P&gt;modify zrebate_items from wa_tmp_rebset1.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Dec 2008 06:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-through-table-control/m-p/4928380#M1149750</guid>
      <dc:creator>former_member659396</dc:creator>
      <dc:date>2008-12-27T06:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: update database table through table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-through-table-control/m-p/4928381#M1149751</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;Refer to this link...you'll get the idea..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6532435"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2743772"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: avinash kodarapu on Dec 27, 2008 12:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Dec 2008 07:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-through-table-control/m-p/4928381#M1149751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-27T07:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: update database table through table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-through-table-control/m-p/4928382#M1149752</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;this is not the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st you will have to get data in internal table of table control in PAI b4 user command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then at user command you can loop the internal table and move the data to your z table and modify it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Dec 2008 07:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-through-table-control/m-p/4928382#M1149752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-27T07:16:29Z</dc:date>
    </item>
  </channel>
</rss>

