Application Development 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: 

Two Workareas..

Former Member
0 Kudos

How to create Two workareas for an internal table?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

DATA: ITAB TYPE STANDARD TABLE OF MARA.

DATA: WA1 TYPE MARA. "first work area for ITAB

DATA: WA2 TYPE MARA. "second work area for ITAB

4 REPLIES 4

Former Member
0 Kudos

Whats the problem in creating 2 wrk areas,

tables: mara.

data:wa1 like mara,

wa2 like mara.

Regards,

Former Member
0 Kudos

Hi,

DATA: ITAB TYPE STANDARD TABLE OF MARA.

DATA: WA1 TYPE MARA. "first work area for ITAB

DATA: WA2 TYPE MARA. "second work area for ITAB

Former Member
0 Kudos

data : begin of itab occurs 1,

col1 type i,

col2(6) type c,

end of itab.

data : wa like line of itab. "2 nd workarea where 1st work area is default workarea

" itab .

Former Member
0 Kudos

tables: spfli.

data : wa1 type spfli,

wa2 type spfli.

If u want two work areas with the same name u can use TABLES * SPFLI along with tables spfli.

But this is obselete statement.