<?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: Error: Work area too small, while updating table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922094#M1148495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; solved it, &lt;/P&gt;&lt;P&gt;&amp;gt; my it line was not as wide as the line structure of dbtab,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; thank you guys for pointing it out..&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;We're happy to take credit for it, but actually, everything was in the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Dec 2008 17:30:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-08T17:30:50Z</dc:date>
    <item>
      <title>Error: Work area too small, while updating table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922083#M1148484</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 trying to update entries in a DB Table.&lt;/P&gt;&lt;P&gt;There about 1000 entries at once, but whenever I am trying to do that it gives me error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPSQL_WA_TOO_SMALL&lt;/P&gt;&lt;P&gt;Work area too small for ABAP/4 Open SQL work area operation.&lt;/P&gt;&lt;P&gt;                                                            &lt;/P&gt;&lt;P&gt;The table to be updated has about 2 million recs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the FM: RSAR_ODS_API_PUT to update this table. This is a BW FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips to get around this error.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 15:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922083#M1148484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T15:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Work area too small, while updating table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922084#M1148485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U  CLEAR work area and REFRESH internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 15:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922084#M1148485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T15:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Work area too small, while updating table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922085#M1148486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create your work area with all table fields and update it....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 15:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922085#M1148486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T15:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Work area too small, while updating table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922086#M1148487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an IT which has about same recs as the table to be updated (about 2million).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load 1000 entries from this IT to another IT (IT_2) and then call the FM with this new IT (IT_2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the program calls the FM, i get this dump,.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 15:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922086#M1148487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T15:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Work area too small, while updating table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922087#M1148488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show us the definition of the work area and the table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 15:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922087#M1148488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T15:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Work area too small, while updating table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922088#M1148489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;data: gt_tab type standard table of  mara.&lt;/P&gt;&lt;P&gt;        gwa_tab  type mara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 15:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922088#M1148489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T15:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Work area too small, while updating table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922089#M1148490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table: /BIC/B0000578000 (this a PSA table in BW)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Field                         dataelement              type
REQUEST	                RSREQUNR	CHAR	30
DATAPAKID	RSDATAPID	NUMC	6
RECORD	                RSARECORD	INT4	10
/BIC/ZITM_STAT	/BIC/OW_BICZITM_STAT_AF	CHAR	4
/BIC/ZBIB_ID	/BIC/OW_BICZBIB_ID_AF	NUMC	9
/BIC/ZITM_CLAS	/BIC/OW_0000000481	CHAR	5
/BIC/ZITM_REQ	/BIC/OW_BICZITM_REQ_AF	CHAR	17
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT definition:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF i_dp OCCURS 0,
        request TYPE rsrequnr,
        datapakid TYPE rsdatapid,
        record TYPE rsarecord,
        zitm_stat(4) TYPE c,
        zbib_id(9) TYPE c,
        zitm_clas(5) TYPE c,
        zitm_req TYPE n,
      END OF i_dp.

DATA: z_dp LIKE i_dp OCCURS 0.

from i_dp I load 1000 entries at a time to z_dp and then call the FM 

  CALL FUNCTION 'RSAR_ODS_API_PUT'
    EXPORTING
      i_request             = req_id
    TABLES
      e_t_data              = i_dp
    EXCEPTIONS
      parameter_failure     = 1
      no_ods_found          = 2
      put_data_failure      = 3
      put_header_failure    = 4
      decide_partno_failure = 5
      write_partno_failure  = 6
      OTHERS                = 7.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM will update the table /BIC/B0000578000 with entries of z_dp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the FM program terminates at following point:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Update the ODS table                          
  UPDATE /BIC/B0000578000 FROM TABLE P_T_DATA.  
  IF SY-SUBRC NE 0.                             
    ROLLBACK WORK.                              
    P_SUBRC = 13.                               
  ENDIF.                                        
ENDFORM.                    "UPDATE_ODS         
                                                
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 15:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922089#M1148490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T15:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Work area too small, while updating table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922090#M1148491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cant create table with type /BIC/B0000578000 coz this table name will be different in all the 3 systems (dev, qa and prod)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 15:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922090#M1148491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T15:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Work area too small, while updating table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922091#M1148492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And how is P_T_DATA declared??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 15:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922091#M1148492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T15:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Work area too small, while updating table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922092#M1148493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This FM calls:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      PERFORM  ods_put TABLES  e_t_data
                       USING   i_request
                               i_datapakid
                               l_isource
                               l_s_ods-odsname_tech
                               rsods_s_formname-update
                               l_s_ods-progname
                               l_partval
                     CHANGING  l_subrc.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the form is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM ods_put TABLES p_t_data
              USING p_request      TYPE rsa_request
                    p_datapakid    TYPE rsa_datapakid
                    p_isource      TYPE rsa_isource
                    p_odsname_tech TYPE rsa_odsdbname
                    p_formname     TYPE rsa_formname
                    p_progname     TYPE rsa_progname
                    p_partno       TYPE rspartval   " partition value!!!
           CHANGING p_subrc        TYPE sy-subrc.
.....
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the FM e_t_data is defined as:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*"  IMPORTING
*"     VALUE(I_REQUEST) TYPE  RSARI_REQUESTID
*"     VALUE(I_DATAPAKID) TYPE  RSARI_PACKETNR OPTIONAL
*"     VALUE(I_ISOURCE) TYPE  RSA_ISOURCE OPTIONAL
*"     VALUE(I_ISTYPE) TYPE  RSA_ISTYPE OPTIONAL
*"     VALUE(I_LOGSYS) TYPE  RSA_LOGSYS OPTIONAL
*"     VALUE(I_OLTPSOURCE) TYPE  RSOLTPSOURCER OPTIONAL
*"     VALUE(I_PUTSTATE) TYPE  RSODS_PUTSTATE DEFAULT
*"       RSODS_S_PUT-UPDATE
*"     VALUE(I_SEGMENT_ID) TYPE  RSSEGID OPTIONAL
*"  EXPORTING
*"     VALUE(E_ODSNAME) TYPE  RSA_ODSNAME
*"  TABLES
*"      E_T_DATA
*"  EXCEPTIONS
*"      PARAMETER_FAILURE
*"      NO_ODS_FOUND
*"      PUT_DATA_FAILURE
*"      PUT_HEADER_FAILURE
*"      DECIDE_PARTNO_FAILURE
*"      WRITE_PARTNO_FAILURE
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 15:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922092#M1148493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T15:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Work area too small, while updating table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922093#M1148494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved it, &lt;/P&gt;&lt;P&gt;my it line was not as wide as the line structure of dbtab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you guys for pointing it out..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 17:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922093#M1148494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T17:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Work area too small, while updating table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922094#M1148495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; solved it, &lt;/P&gt;&lt;P&gt;&amp;gt; my it line was not as wide as the line structure of dbtab,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; thank you guys for pointing it out..&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;We're happy to take credit for it, but actually, everything was in the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 17:30:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-work-area-too-small-while-updating-table/m-p/4922094#M1148495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T17:30:50Z</dc:date>
    </item>
  </channel>
</rss>

