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: 

Declare work area

Former Member
0 Kudos

Hi All,

How to define work area from tables without creating respective internal tables

Regards,

Chintan

1 ACCEPTED SOLUTION

JozsefSzikszai
Active Contributor
0 Kudos

do you mean from database table? if yes:

DATA : gw_bkpf TYPE bkpf.

5 REPLIES 5

JozsefSzikszai
Active Contributor
0 Kudos

do you mean from database table? if yes:

DATA : gw_bkpf TYPE bkpf.

0 Kudos

Dear Eric,

Thanks for solving my question.

prasanth_kasturi
Active Contributor
0 Kudos

hi,

for database tables

U can use TABLES statement which will define a work area.

TABLES MARA.

else you can also use data statemnt

data w_mara type mara.

regards

Prasanth

0 Kudos

>

> for database tables

> U can use TABLES statement which will define a work area.

> TABLES MARA.

TABLES statement is obsolate to create work areas, so DON'T use it!

Former Member
0 Kudos

Hi Chintan,

If it's the work area for SAP table, then

DATA: wa_mara TYPE mara.

If it's for the internal table, then

DATA: BEGIN OF wa_test,

var1 type c,

var2 type string,

END OF wa_test.

Best Regards.