<?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: work area in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682927#M886860</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;work area like database table is declared using tables keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg write the bellow code&lt;/P&gt;&lt;P&gt;tables: mara.&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from mara into mara&lt;/P&gt;&lt;P&gt;where matnr = '100-100'.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;now write   ' write statement ' for out put.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2008 09:55:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-21T09:55:43Z</dc:date>
    <item>
      <title>work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682923#M886856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would like to crate a work area of type a database table mara&lt;/P&gt;&lt;P&gt;wat is th syntax&lt;/P&gt;&lt;P&gt;and how to use modify&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682923#M886856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T09:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682924#M886857</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;Work area declaration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_mara type mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/modify_d.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/modify_d.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682924#M886857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T09:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682925#M886858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;wa_mara type mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to modify,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY MARA FROM WA_MARA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682925#M886858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T09:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682926#M886859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jamnun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can declare a work area as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_mara type table of mara,&lt;/P&gt;&lt;P&gt;         wa_mara type mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify is a DML command.Using this u can modify the data of the database records from your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if help full&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682926#M886859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T09:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682927#M886860</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;work area like database table is declared using tables keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg write the bellow code&lt;/P&gt;&lt;P&gt;tables: mara.&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from mara into mara&lt;/P&gt;&lt;P&gt;where matnr = '100-100'.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;now write   ' write statement ' for out put.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682927#M886860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T09:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682928#M886861</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;&lt;/P&gt;&lt;P&gt;MODIFY - Change a database table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. MODIFY dbtab. or &lt;/P&gt;&lt;P&gt;MODIFY *dbtab. or &lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) ... . . &lt;/P&gt;&lt;P&gt;2. MODIFY dbtab FROM TABLE itab. or &lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) FROM TABLE itab. &lt;/P&gt;&lt;P&gt;3. MODIFY dbtab VERSION vers. or &lt;/P&gt;&lt;P&gt;MODIFY *dbtab VERSION vers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Inserts new lines or updates existing lines in a database table . If a line with the specified primary key already exists, an INSERT is executed. Otherwise, an UPDATE is performed. You can specify the name of the database table either in the program itself in the form MODIFY dbtab ... or at runtime as the contents of the field dbtabname in the form MODIFY (dbtabname) ... . In both cases, the database table must be defined in the ABAP/4 Dictionary. If the program contains the name of the database table, it must also have a corresponding TABLES statement. Normally, records are inserted or updated only in the current client. Data can only be inserted or updated using a view , if the view refers to a single table and was created in the ABAP/4 Dictionary with the maintenance status "No restriction". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY belongs to the Open SQL command set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the statement has been executed, the system field SY-DBCNT contains the number of edited lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code value is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 All lines were successfully inserted or updated. Any other result causes a runtime error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;Automatic definition of INSERT and UPDATE is expensive. You should therefore use MODIFY only if you cannot define the INSERT and UPDATE cases yourself in the program. &lt;/P&gt;&lt;P&gt;Since the MODIFY statement does not perform authority checks , you have to program them yourself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1&lt;/P&gt;&lt;P&gt;MODIFY dbtab. or &lt;/P&gt;&lt;P&gt;MODIFY *dbtab. or &lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... FROM wa &lt;/P&gt;&lt;P&gt;2. ... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Inserts a new line or updates an existing line in a database table. If you specify the name of the database table yourself, the primary key for identifying the line to be inserted or updated and the relevant values are taken from the table work area dbtab or *dbtab (see TABLES ). If the name of the database table is not determined until runtime, you need to use the addition ... FROM wa . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Insert or change data of the customer Robinson in the current client: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES SCUSTOM.&lt;/P&gt;&lt;P&gt;SCUSTOM-ID        = '12400177'.&lt;/P&gt;&lt;P&gt;SCUSTOM-NAME      = 'Robinson'.&lt;/P&gt;&lt;P&gt;SCUSTOM-POSTCODE  = '69542'.&lt;/P&gt;&lt;P&gt;SCUSTOM-CITY      = 'Heidelberg'.&lt;/P&gt;&lt;P&gt;SCUSTOM-CUSTTYPE  = 'P'.&lt;/P&gt;&lt;P&gt;SCUSTOM-DISCOUNT  = '003'.&lt;/P&gt;&lt;P&gt;SCUSTOM-TELEPHONE = '06201/44889'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY SCUSTOM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1&lt;/P&gt;&lt;P&gt;... FROM wa &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;The values for the line to be inserted or upodated are not taken from the table work area dbtab , but from the explicitly specified work area wa . When doing this, the data is read from left to right according to the structure of the table work area dbtab (see TABLES ). Since the structure of wa is not taken into account, the work area wa must be at least as wide (see DATA ) as the table work area dbtab and the alignment of the work area wa must correspond to the alignment of the table work area. Otherwise, a runtime error occurs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;If a work area is not explicitly specified, the values for the line to be inserted or updated are also taken from the table work area dbtab if the statement is in a FORM or FUNCTION where the table work area is storeed in a formal parameter or local variable of the same name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2&lt;/P&gt;&lt;P&gt;... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Switches off automatic client handling. This allows you to edit data across all clients even when dealing with client-specific tables. The client field is treated like a normal table field that can be programmed to accept values in the table work area dbtab or *dbtab where the line to be edited occurs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The addition CLIENT SPECIFIED must be specified immediately after the name of the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2&lt;/P&gt;&lt;P&gt;MODIFY dbtab FROM TABLE itab. or &lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) FROM TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&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;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;If the internal table itab is empty, SY-SUBRC and SY-DBCNT are set to 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition&lt;/P&gt;&lt;P&gt;... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;As for variant 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3&lt;/P&gt;&lt;P&gt;MODIFY dbtab VERSION vers. or &lt;/P&gt;&lt;P&gt;MODIFY *dbtab VERSION vers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;This variant is obsolete . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Inserts a new line or updates an existing line in a database table, the name of which is taken from the field vers at runtime. If no line exists with the specified primary key, an INSERT is executed. Otherwise, an UPDATE is performed. The database table must be defined in the ABAP/4 Dictionary and its name must conform to the naming conventions for R/2 ATAB tables. These stipulate that the name must begin with 'T' and may contain up to four further characters. The field vers must contain the table name without the leading 'T'. Only lines in the current client are inserted or updated. The line to be inserted is taken from the statically specified table work area dbtab or *dbtab . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC is set to 0 if the line is successfully inserted or updated. SY-SUBRC &amp;lt;&amp;gt; 0 is not possible since any other result causes a runtime error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REWARD IF HELPFUL&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682928#M886861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T09:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682929#M886862</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;&lt;/P&gt;&lt;P&gt;for work area.&lt;/P&gt;&lt;P&gt;data :wa_mara type mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify statemnet&lt;/P&gt;&lt;P&gt;modify &amp;lt;target&amp;gt; from &amp;lt;source&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example modify mara from wa_mara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify works like both insert and update. if record is present it  works like update and if record is not there it works like insert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 10:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/3682929#M886862</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-04-21T10:01:40Z</dc:date>
    </item>
  </channel>
</rss>

