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

Declare work area

Former Member
0 Likes
4,466

Hi All,

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

Regards,

Chintan

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,136

do you mean from database table? if yes:

DATA : gw_bkpf TYPE bkpf.

5 REPLIES 5
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,137

do you mean from database table? if yes:

DATA : gw_bkpf TYPE bkpf.

Read only

0 Likes
1,136

Dear Eric,

Thanks for solving my question.

Read only

prasanth_kasturi
Active Contributor
0 Likes
1,136

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

Read only

0 Likes
1,136

>

> 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!

Read only

Former Member
0 Likes
1,136

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.