<?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: to update database tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348207#M802988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;than you have to check what the BAPI is doing, i. e. what are the retunr parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 09:39:54 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2008-02-07T09:39:54Z</dc:date>
    <item>
      <title>to update database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348201#M802982</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;I have a requirement where in which there are many records in the o/p screen.Besides each record there is a checkbox.When the user clicks on 2 or more than 2 checkboxes and clicks on the change button,control goes to update screen which contains the fields to be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the user changes the values for these fields,when he clicks on the execute button,the changed values should get updated in the database table for only the checked records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used bapi_material_savedata fm to update the database table.But this is not working.Can anyone suggest some other method to update the database tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 09:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348201#M802982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T09:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: to update database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348202#M802983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;update syntax is &lt;/P&gt;&lt;P&gt;·	UPDATE  dbtab      SET f1 ... fn. or &lt;/P&gt;&lt;P&gt;         UPDATE (dbtabname) SET f1 ... fn.&lt;/P&gt;&lt;P&gt;Four types of SET statements fi are supported:&lt;/P&gt;&lt;P&gt;1.	f = g&lt;/P&gt;&lt;P&gt;2.	f = f + g&lt;/P&gt;&lt;P&gt;3.	f = f &amp;#150; g&lt;/P&gt;&lt;P&gt;4.	(source_text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·	UPDATE  dbtab      FROM wa. or &lt;/P&gt;&lt;P&gt;        UPDATE (dbtabname) FROM wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·	UPDATE dbtab FROM TABLE itab. or &lt;/P&gt;&lt;P&gt;         UPDATE (dbtabname) FROM TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if useful&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 09:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348202#M802983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T09:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: to update database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348203#M802984</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;see commit is the thing which saves the changes you made to the&lt;/P&gt;&lt;P&gt;database otherwise imean if u have not done the commit work what&lt;/P&gt;&lt;P&gt;happens is the changes will be killed once the your program life has&lt;/P&gt;&lt;P&gt;been killed i think you got why we will do commit work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI's are the methods through which we can input the data i mean it&lt;/P&gt;&lt;P&gt;is an interface technique it is a direct input method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example you have inserted some data into one table by using this&lt;/P&gt;&lt;P&gt;BAPI technique but you not done the Commit BAPI then wht happens is&lt;/P&gt;&lt;P&gt;the changes u made to the database cannot been seen in the table these&lt;/P&gt;&lt;P&gt;will get effective once u have Done the Commit BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think i am clear to u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rollback&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see by taking the above example only we can know wht is Rollback it is nothing but UNDO option in ms office se untill saving if we want one step back we will do it by undo option am i right similalry untill commit ing i.e. nothing until saving the changes made u can delete the modified change i.e. u can go to the stage how it was previously ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think u got me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plzz reward if i am clear to u.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see once u have done commit u cant rollback &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same as once u saved one document u cant undo the document changes i think u got me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if found helpfull,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chaitanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 09:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348203#M802984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T09:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: to update database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348204#M802985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am afraid a COMMIT WORK statement is missing after the BAPI call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL 'BAPI_MATERIAL_SAVEDATA'&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 09:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348204#M802985</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-07T09:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: to update database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348205#M802986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use UPDATE statement to update Standard table. To see different syntex for the same, you can see f1 help for UPDATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 09:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348205#M802986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T09:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: to update database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348206#M802987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used BAPI_TRANSACTION_COMMIT FM after BAPI_MATERIAL_SAVEDATA FM to save the changes.But still the changes are not getting updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   WAIT          = 'X'&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;  RETURN        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 09:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348206#M802987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T09:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: to update database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348207#M802988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;than you have to check what the BAPI is doing, i. e. what are the retunr parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 09:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348207#M802988</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-07T09:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: to update database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348208#M802989</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;I am pasting a part of my code.Can you please check whether I have given proper data or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form move_mat_data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gt_bapi_head-material = gs_output1-matnr.&lt;/P&gt;&lt;P&gt;  gt_bapi_head-basic_view = 'X'.&lt;/P&gt;&lt;P&gt;  gt_bapi_head-purchase_view = 'X'.&lt;/P&gt;&lt;P&gt;  gt_bapi_head-account_view = 'X'.&lt;/P&gt;&lt;P&gt;  gt_bapi_head-sales_view = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Client&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gt_bapi_client-matl_group = gs_output1-matkl.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gt_bapi_client-base_uom   = gs_output1-meins.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gt_bapi_clientx-matl_group = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gt_bapi_clientx-base_uom   = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Plant&lt;/P&gt;&lt;P&gt;  gt_bapi_marc1-plant     = gs_output1-werks.&lt;/P&gt;&lt;P&gt;  gt_bapi_marc1-pur_status = gs_output1-mmsta.&lt;/P&gt;&lt;P&gt;  gt_bapi_marc1-mrp_type = gs_output1-dismm.&lt;/P&gt;&lt;P&gt;  gt_bapi_marc1-mrp_ctrler = gs_output1-dispo.&lt;/P&gt;&lt;P&gt;  gt_bapi_marc1-serv_level = gs_output1-zserclass.&lt;/P&gt;&lt;P&gt;  gt_bapi_marc1-availcheck = gs_output1-mtvfp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gt_bapi_marcx-plant     = gs_output1-werks .&lt;/P&gt;&lt;P&gt;  gt_bapi_marcx-pur_status = 'X'.&lt;/P&gt;&lt;P&gt;  gt_bapi_marcx-mrp_type = 'X'.&lt;/P&gt;&lt;P&gt;  gt_bapi_marcx-mrp_ctrler = 'X'.&lt;/P&gt;&lt;P&gt;  gt_bapi_marcx-serv_level = 'X'.&lt;/P&gt;&lt;P&gt;  gt_bapi_marcx-availcheck = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; GT_BAPIPAREX-STRUCTURE = 'BAPI_MARC'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; GT_BAPIPAREX-VALUEPART1 = BAPI_MARC.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; APPEND GT_BAPIPAREX.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; GT_BAPIPAREXX-STRUCTURE = 'BAPI_MARCX'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; GT_BAPIPAREXX-VALUEPART1 = BAPI_MARCX.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; APPEND GT_BAPIPAREXX.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Material Description&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; REFRESH gt_materialdesc.&lt;/P&gt;&lt;P&gt; gt_materialdesc-langu     = gs_output1-spras.&lt;/P&gt;&lt;P&gt; gt_materialdesc-matl_desc = gs_output1-maktx.&lt;/P&gt;&lt;P&gt; append gt_materialdesc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Sales&lt;/P&gt;&lt;P&gt; gt_bapi_mvke1-sales_org  = gs_output1-vkorg.&lt;/P&gt;&lt;P&gt; gt_bapi_mvke1-distr_chan = gs_output1-vtweg.&lt;/P&gt;&lt;P&gt; gt_bapi_mvke1-sal_status = gs_output1-vmsta.&lt;/P&gt;&lt;P&gt; gt_bapi_mvke1-valid_from = gs_output1-vmstd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; gt_bapi_mvkex-sales_org  = gs_output1-vkorg.&lt;/P&gt;&lt;P&gt; gt_bapi_mvkex-distr_chan = 'X'.&lt;/P&gt;&lt;P&gt; gt_bapi_mvkex-sal_status = 'X'.&lt;/P&gt;&lt;P&gt; gt_bapi_mvkex-valid_from = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " move_mat_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form extend_with_bapi .&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    headdata                   = gt_bapi_head&lt;/P&gt;&lt;P&gt;    PLANTDATA                  = gt_bapi_marc1&lt;/P&gt;&lt;P&gt;    PLANTDATAX                 = gt_bapi_marcx&lt;/P&gt;&lt;P&gt;    SALESDATA                  = gt_bapi_mvke1&lt;/P&gt;&lt;P&gt;    SALESDATAX                 = gt_bapi_mvkex&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    RETURN                     = gt_bapi_return&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    MATERIALDESCRIPTION = GT_MATERIALDESC&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXTENSIONIN = GT_BAPIPAREX&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXTENSIONINX = GT_BAPIPAREXX.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;endform.                    " extend_with_bapi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 09:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-database-tables/m-p/3348208#M802989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T09:54:02Z</dc:date>
    </item>
  </channel>
</rss>

