<?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: upgrade the database table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229515#M138941</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;Which is your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should transfer the data into workarea structurated like your table and then update it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you create the screen fields using that table you should only update the table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If you design your screen using Z-TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt; CASE OK_CODE.&lt;/P&gt;&lt;P&gt;   WHEN 'SAVE'. MODIFY &amp;lt;Z-TABLE&amp;gt;.&lt;/P&gt;&lt;P&gt; ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt; CASE OK_CODE.&lt;/P&gt;&lt;P&gt;   WHEN 'SAVE'. MODIFY &amp;lt;Z-TABLE&amp;gt; FROM &amp;lt;WORK AREA&amp;gt;.&lt;/P&gt;&lt;P&gt; ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Apr 2006 07:44:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-18T07:44:07Z</dc:date>
    <item>
      <title>upgrade the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229513#M138939</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;&lt;/P&gt;&lt;P&gt; I have a sceen if i will enter the value and press the save button it will add all the value into the database table.&lt;/P&gt;&lt;P&gt;I am doing this using dialog programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if anybody have face this prob to upgrade the database table than it would help me a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mrutyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2006 07:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229513#M138939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-18T07:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229514#M138940</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;in Your PAI handle the SAVE button and update the DB .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO you will set the PF status, enable save and set the FCODE to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;handle the okcode of save button in your PAI , in that update DB with all your values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2006 07:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229514#M138940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-18T07:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229515#M138941</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;Which is your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should transfer the data into workarea structurated like your table and then update it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you create the screen fields using that table you should only update the table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If you design your screen using Z-TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt; CASE OK_CODE.&lt;/P&gt;&lt;P&gt;   WHEN 'SAVE'. MODIFY &amp;lt;Z-TABLE&amp;gt;.&lt;/P&gt;&lt;P&gt; ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt; CASE OK_CODE.&lt;/P&gt;&lt;P&gt;   WHEN 'SAVE'. MODIFY &amp;lt;Z-TABLE&amp;gt; FROM &amp;lt;WORK AREA&amp;gt;.&lt;/P&gt;&lt;P&gt; ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2006 07:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229515#M138941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-18T07:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229516#M138942</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;in the Screen PBO, in the PF-STATUS just enable the butons which you want including the SAVE button, here you will give the okcode to the save button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the PAI,&lt;/P&gt;&lt;P&gt;if SY_UCOMM = XXX&amp;lt;Save ok code&amp;gt;.&lt;/P&gt;&lt;P&gt;just insert your screen values into the database table.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2006 07:47:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229516#M138942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-18T07:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229517#M138943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that first either you have to declare internal table or you can use database table work area in the abap editor&lt;/P&gt;&lt;P&gt;after that you need to declare all 5 fields with same name in abap as well as screen painter.&lt;/P&gt;&lt;P&gt;now in the PAI of the screen you have to handle all your 3 pushbuttons with the help of fcoded assigned to them.&lt;/P&gt;&lt;P&gt;the case may be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT&lt;/P&gt;&lt;P&gt;CASE OK-CODE.&lt;/P&gt;&lt;P&gt;WHEN 'CREATE'.&lt;/P&gt;&lt;P&gt;ITABNAME-FNAME1 = SCREEN FIELD NAME1&lt;/P&gt;&lt;P&gt;ITABNAME-FNAME2 = SCREEN FIELD NAME2&lt;/P&gt;&lt;P&gt;ITABNAME-FNAME3 = SCREEN FIELD NAME3&lt;/P&gt;&lt;P&gt;ITABNAME-FNAME4 = SCREEN FIELD NAME4&lt;/P&gt;&lt;P&gt;ITABNAME-FNAME5 = SCREEN FIELD NAME5&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;DATABASE TABLE&amp;gt; FROM ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'DISPLAY'.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM DBTAB INTO ITAB.&lt;/P&gt;&lt;P&gt;SCREEN FIELD NAME1 = ITABNAME-FNAME1&lt;/P&gt;&lt;P&gt;SCREEN FIELD NAME2 = ITABNAME-FNAME2 =&lt;/P&gt;&lt;P&gt;SCREEN FIELD NAME3 = ITABNAME-FNAME3&lt;/P&gt;&lt;P&gt;SCREEN FIELD NAME4 = ITABNAME-FNAME4&lt;/P&gt;&lt;P&gt;SCREEN FIELD NAME5 = ITABNAME-FNAME5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'CHANGE'.&lt;/P&gt;&lt;P&gt;ITABNAME-FNAME1 = SCREEN FIELD NAME1&lt;/P&gt;&lt;P&gt;ITABNAME-FNAME2 = SCREEN FIELD NAME2&lt;/P&gt;&lt;P&gt;ITABNAME-FNAME3 = SCREEN FIELD NAME3&lt;/P&gt;&lt;P&gt;ITABNAME-FNAME4 = SCREEN FIELD NAME4&lt;/P&gt;&lt;P&gt;ITABNAME-FNAME5 = SCREEN FIELD NAME5&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;DATABASE TABLE&amp;gt; FROM ITAB.&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;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2006 07:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229517#M138943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-18T07:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade the database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229518#M138944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mrutyunjaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose your requirement is like this.&lt;/P&gt;&lt;P&gt;"In the initial screen , you have buttons for INSERT,MODIFY,DISPLAY.Clicking on INSERT button should insert it into database. Similarly for other buttons corresponding function should be done"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario that you have given is a very easy one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insertion.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Screen Painter, use "Dictionary elements" button to drag and drop the required data into the screen.Let the table be ZMAKT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI, when SAVE button is clicked in the INSERT screen, &amp;lt;b&amp;gt; insertion is done in the database by using INSERT Statement &amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;In this case it is &lt;/P&gt;&lt;P&gt;INSERT ZMAKT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new data will be inserted in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modification&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement required is &amp;lt;b&amp;gt;UPDATE&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;In this case, &lt;/P&gt;&lt;P&gt;UPDATE ZMAKT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your requirement is satisfied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2006 09:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-the-database-table/m-p/1229518#M138944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-18T09:15:56Z</dc:date>
    </item>
  </channel>
</rss>

