11-07-2008 1:29 PM
Hi All,
How to define work area from tables without creating respective internal tables
Regards,
Chintan
11-07-2008 1:34 PM
do you mean from database table? if yes:
DATA : gw_bkpf TYPE bkpf.
11-07-2008 1:34 PM
do you mean from database table? if yes:
DATA : gw_bkpf TYPE bkpf.
11-07-2008 1:50 PM
11-07-2008 1:37 PM
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
11-07-2008 1:46 PM
>
> 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!
11-07-2008 1:37 PM
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.