Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Work Area Length Exceeded

Former Member
0 Likes
735

I'm getting an error message that says 'The work area ITABTWO is not long enough.'

How do I extend the length of my work area.

//zdolsarc03 is a structure with caseid, SearchFld, and a Value (component type RSDSSELOPT <which is the structure of generic select-option for dynamic selections>)

ZDOLTARC03 is a table similar to the structure ZDOLSARC03, however its value is of data element: rsdsselop_ not rsdsselopT.

Could this be the reason why the WA's size is exceeded?

DATA: ITABTWO LIKE ZDOLSARC03 OCCURS 0,
      WATWO LIKE ZDOLSARC03.
SELECT * INTO TABLE ITABTWO FROM ZDOLTARC03
        WHERE SEARCHFLD EQ WAONE-SEARCHFLD ORDER BY SEARCHFLD.

N L

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
508

this is how it should be :

ZDOLSARC03 - structure of DDIC type

ZDOLTARC03 - table of DDIC type

It should <b>not be similar</b>, but have exactly the <b>same number of elements and in the same order</b>.

If ZDOLTARC03 and ZDOLSARC03 have different number of elements, your program will give an error.

Regards,

Subramanian V.

2 REPLIES 2
Read only

Former Member
0 Likes
509

this is how it should be :

ZDOLSARC03 - structure of DDIC type

ZDOLTARC03 - table of DDIC type

It should <b>not be similar</b>, but have exactly the <b>same number of elements and in the same order</b>.

If ZDOLTARC03 and ZDOLSARC03 have different number of elements, your program will give an error.

Regards,

Subramanian V.

Read only

0 Likes
508

Try this....



SELECT *
   INTO <b>CORRESPONDING FIELDS OF</b>
                TABLE itaBTWO       
                    FROM ZDOLTARC03 
       WHERE SEARCHFLD EQ WAONE-SEARCHFLD
                      ORDER BY SEARCHFLD.

Regards,

Rich Heilman