<?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 data from work area in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122370#M985589</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 this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: it_mara type mara occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Now Fill the internal table it_mara like&lt;/P&gt;&lt;P&gt;it_mara-matnr = '12345'.&lt;/P&gt;&lt;P&gt;*etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now modify the customized mara table with ur it_mara&lt;/P&gt;&lt;P&gt;ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify mara with table it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will do the work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;vinsee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jul 2008 04:07:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-04T04:07:47Z</dc:date>
    <item>
      <title>update data from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122365#M985584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want  update records  from internal table to customized table with same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;provide me the simplest method to do the needful.&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;R.Rajendran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 03:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122365#M985584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T03:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: update data from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122366#M985585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MODIFY dbtab FROM TABLE itab..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mass modify: Inserts new lines or updates existing lines of a database table. The primary keys for identifying the lines to be inserted or updated and the relevant values are taken from the internal table itab. The lines of the internal table itab must satisfy the same conditions as the work area wa in addition 1 to variant 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 03:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122366#M985585</guid>
      <dc:creator>sachin_mathapati</dc:creator>
      <dc:date>2008-07-04T03:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: update data from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122367#M985586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare a table of the type same as the ZTABLE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then populate the internal table with the reqd. values..in ur program....&lt;/P&gt;&lt;P&gt;Then write as..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztable from itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here itab is the internal table that u r filling in ur program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points...if useful.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 03:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122367#M985586</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-07-04T03:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: update data from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122368#M985587</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;Syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  UPDATE dbtab FROM TABLE itab.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The system field SY-DBCNT contains the number of updated lines, i.e. the number of lines in the internal table itab which have key values corresponding to lines in the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you update records from internal table return code is also set i.e SY-SUBRC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if   SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    All lines from itab could be used to update the database table. &lt;/P&gt;&lt;P&gt;if  SY-SUBRC = 4. Then &lt;/P&gt;&lt;P&gt;At least one line of the internal table itab in the database table had no line with the same primary key. The other lines of the database table were updated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the internal table is empty then SY-SUBRC and  SY-DBCNT set to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Rajitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 03:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122368#M985587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T03:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: update data from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122369#M985588</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;please  tell me declaring statement.&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;R.Rajendran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 03:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122369#M985588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T03:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: update data from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122370#M985589</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 this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: it_mara type mara occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Now Fill the internal table it_mara like&lt;/P&gt;&lt;P&gt;it_mara-matnr = '12345'.&lt;/P&gt;&lt;P&gt;*etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now modify the customized mara table with ur it_mara&lt;/P&gt;&lt;P&gt;ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify mara with table it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will do the work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;vinsee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 04:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122370#M985589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T04:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: update data from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122371#M985590</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 &lt;STRONG&gt;modify dtab from table itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here if the entry already exists then it will be modified and if the entry does not exist then it will be inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the simplest way to add entries to your custmized table.&lt;/P&gt;&lt;P&gt;the structure of itab and customized table should be same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shlesha K on Jul 4, 2008 6:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 04:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122371#M985590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T04:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: update data from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122372#M985591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear vinoth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the following syntax correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_itab.&lt;/P&gt;&lt;P&gt;      select single * from znprd_mis into corresponding fields of i_itab where pdate eq i_itab-pdate and  sloc eq i_itab-sloc and   matnr eq i_itab-matnr.&lt;/P&gt;&lt;P&gt;&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;            modify znprd_mis from table i_itab.&lt;/P&gt;&lt;P&gt;       else.&lt;/P&gt;&lt;P&gt;            insert znprd_mis  with table i_itab.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;       commit work.&lt;/P&gt;&lt;P&gt;  endloop.&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;R.Rajendran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 04:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122372#M985591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T04:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: update data from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122373#M985592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;first u are selecting in to internal table from the table znprd_mis...and then trying to update the same ztable with that internal table...so there is no meaning of modifying the table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the else part u are deleting the entry...that also wont work...b'coz there wont be any entry in the internal table...so...there is no records to delete...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 04:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122373#M985592</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-07-04T04:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: update data from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122374#M985593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want upload data from xl file to ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  yr_PDN_UPLOAD                          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : znprd_mis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : upcnt type p,&lt;/P&gt;&lt;P&gt;       uncnt type p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : i_itab type znprd_mis occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      FILENAME                      = 'd:\raj\nprd.prn'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      DATA_TAB                      = i_itab&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;     FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;     NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;     GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;     INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;     NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;     UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;     BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;     HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;     SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;     HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;     UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;     ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;     DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;     DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;     DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;     OTHERS                        = 17&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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear i_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            modify znprd_mis with table i_itab.&lt;/P&gt;&lt;P&gt;       commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 04:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122374#M985593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T04:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: update data from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122375#M985594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajendran, your code is a good one but you can use the code below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT yr_PDN_UPLOAD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Don't use TABLES as it occupies memory space as the whole  &lt;/P&gt;&lt;P&gt;*structure of that table preoccupies memory spaces&lt;/P&gt;&lt;P&gt;*tables : znprd_mis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : upcnt type p,&lt;/P&gt;&lt;P&gt;           uncnt type p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*don't use occurs instead use initial size to save preoccupied &lt;/P&gt;&lt;P&gt;*memory space and use Work Area as Header Line are obsolete &lt;/P&gt;&lt;P&gt;*in SAP&lt;/P&gt;&lt;P&gt;*data : i_itab type znprd_mis occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for znprd_mis.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_tab TYPE STANDARD TABLE OF  znprd_mis INITIAL SIZE 0,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Work area for znprd_mis.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;wa_tab type znprd_mis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = 'd:\raj\nprd.prn'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = i_tab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_OPEN_ERROR = 1&lt;/P&gt;&lt;P&gt;FILE_READ_ERROR = 2&lt;/P&gt;&lt;P&gt;NO_BATCH = 3&lt;/P&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;P&gt;INVALID_TYPE = 5&lt;/P&gt;&lt;P&gt;NO_AUTHORITY = 6&lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 7&lt;/P&gt;&lt;P&gt;BAD_DATA_FORMAT = 8&lt;/P&gt;&lt;P&gt;HEADER_NOT_ALLOWED = 9&lt;/P&gt;&lt;P&gt;SEPARATOR_NOT_ALLOWED = 10&lt;/P&gt;&lt;P&gt;HEADER_TOO_LONG = 11&lt;/P&gt;&lt;P&gt;UNKNOWN_DP_ERROR = 12&lt;/P&gt;&lt;P&gt;ACCESS_DENIED = 13&lt;/P&gt;&lt;P&gt;DP_OUT_OF_MEMORY = 14&lt;/P&gt;&lt;P&gt;DISK_FULL = 15&lt;/P&gt;&lt;P&gt;DP_TIMEOUT = 16&lt;/P&gt;&lt;P&gt;OTHERS = 17&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_tab into wa_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify znprd_mis from wa_tab.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*The MODIFY statement will update the Z-table if there is record &lt;/P&gt;&lt;P&gt;*with same primary key value if no record exists with the primary &lt;/P&gt;&lt;P&gt;*key value then it will insert a new record in Z-table.&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;Edited by: Apan Kumar Motilal on Jul 4, 2008 6:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 04:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122375#M985594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T04:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: update data from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122376#M985595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After finding the syntax &amp;amp; coding the below program is working fine. Thanks to all for helped me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YR_data_UPLOAD                          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : ZNPRD_MIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : UPCNT TYPE P,&lt;/P&gt;&lt;P&gt;       UNCNT TYPE P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : I_ITAB TYPE TABLE OF ZNPRD_MIS WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      FILENAME                = 'd:\raj\nprd.txt'&lt;/P&gt;&lt;P&gt;      FILETYPE                = 'ASC'&lt;/P&gt;&lt;P&gt;      HAS_FIELD_SEPARATOR     = '#'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      DATA_TAB                = I_ITAB[]&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      FILE_OPEN_ERROR         = 1&lt;/P&gt;&lt;P&gt;      FILE_READ_ERROR         = 2&lt;/P&gt;&lt;P&gt;      NO_BATCH                = 3&lt;/P&gt;&lt;P&gt;      GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;P&gt;      INVALID_TYPE            = 5&lt;/P&gt;&lt;P&gt;      NO_AUTHORITY            = 6&lt;/P&gt;&lt;P&gt;      UNKNOWN_ERROR           = 7&lt;/P&gt;&lt;P&gt;      BAD_DATA_FORMAT         = 8&lt;/P&gt;&lt;P&gt;      HEADER_NOT_ALLOWED      = 9&lt;/P&gt;&lt;P&gt;      SEPARATOR_NOT_ALLOWED   = 10&lt;/P&gt;&lt;P&gt;      HEADER_TOO_LONG         = 11&lt;/P&gt;&lt;P&gt;      UNKNOWN_DP_ERROR        = 12&lt;/P&gt;&lt;P&gt;      ACCESS_DENIED           = 13&lt;/P&gt;&lt;P&gt;      DP_OUT_OF_MEMORY        = 14&lt;/P&gt;&lt;P&gt;      DISK_FULL               = 15&lt;/P&gt;&lt;P&gt;      DP_TIMEOUT              = 16&lt;/P&gt;&lt;P&gt;      OTHERS                  = 17.&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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR I_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODIFY ZNPRD_MIS FROM TABLE I_ITAB[].&lt;/P&gt;&lt;P&gt;  COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;R.Rajendran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 05:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-data-from-work-area/m-p/4122376#M985595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T05:20:35Z</dc:date>
    </item>
  </channel>
</rss>

