<?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: Modfiy database table from work area or variable issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582792#M1273120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; below is the sample code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select mara from Zmaterial into ls_mara&lt;/P&gt;&lt;P&gt;                where ZMPN = &amp;lt;ls_INPUT_row&amp;gt;-ZMPN  and&lt;/P&gt;&lt;P&gt;                         ZMNFR = &amp;lt;ls_INPUT_row&amp;gt;-ZGLBMF_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        NR_RANGE_NR = '01'&lt;/P&gt;&lt;P&gt;        OBJECT      = 'ZOBJ_MPN'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        NUMBER      = LS_INTER_NUMB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modfiy zmaterial from LS_INTER_NUMB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this iam dooing ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2009 09:28:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-20T09:28:14Z</dc:date>
    <item>
      <title>Modfiy database table from work area or variable issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582786#M1273114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys ,&lt;/P&gt;&lt;P&gt;              I need to modfiy database table from the value in workare .iam dooing the code as below ..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;modify Zdata_base  from ls_inter_numb&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;      but it is not working ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one give right approach .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 07:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582786#M1273114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T07:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modfiy database table from work area or variable issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582787#M1273115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;what is the error you getting ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the same workarea structure as your database table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you paste the code of your workarea declaration ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 07:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582787#M1273115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T07:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Modfiy database table from work area or variable issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582788#M1273116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Make sure that the structure of the internal table / Work area is same as the structure of the data base table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Write COMMIT WORK statement after the MODIFY statement and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar Bandanadham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 07:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582788#M1273116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T07:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modfiy database table from work area or variable issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582789#M1273117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check the strucutre of the work area is same with the ztable&lt;/P&gt;&lt;P&gt;Loop at itab into ls_inter_numb.&lt;/P&gt;&lt;P&gt;modify Zdata_base from ls_inter_numb.&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;this must resolve your issue.. if dont please post the code -&amp;gt;  ztable updating&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 07:26:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582789#M1273117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T07:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modfiy database table from work area or variable issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582790#M1273118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use a where clause and observe the Sy-subrc after that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mathivanan.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 07:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582790#M1273118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T07:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Modfiy database table from work area or variable issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582791#M1273119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sriram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Collect all the data into an internal table and then modify in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append ls_workarea TO it_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT it_table BY field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT it_table[] IS INTIAL.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;    MODIFY Z_DB_TABLE from TABLE it_TABLE.&lt;/P&gt;&lt;P&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 07:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582791#M1273119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T07:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Modfiy database table from work area or variable issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582792#M1273120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; below is the sample code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select mara from Zmaterial into ls_mara&lt;/P&gt;&lt;P&gt;                where ZMPN = &amp;lt;ls_INPUT_row&amp;gt;-ZMPN  and&lt;/P&gt;&lt;P&gt;                         ZMNFR = &amp;lt;ls_INPUT_row&amp;gt;-ZGLBMF_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        NR_RANGE_NR = '01'&lt;/P&gt;&lt;P&gt;        OBJECT      = 'ZOBJ_MPN'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        NUMBER      = LS_INTER_NUMB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modfiy zmaterial from LS_INTER_NUMB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this iam dooing ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 09:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582792#M1273120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T09:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Modfiy database table from work area or variable issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582793#M1273121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope the Database table(ZMATERIAL) has only one field MARA. If not then your logic is wrong...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 09:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modfiy-database-table-from-work-area-or-variable-issue/m-p/5582793#M1273121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T09:35:35Z</dc:date>
    </item>
  </channel>
</rss>

