‎2008 Apr 23 7:01 PM
Hi Everybody,
I have a standard line type in the system.
How can I declare a WORKAREA for the given line type.
Please help.Its urgent.
Thanks,
Sandhya Rowal.
‎2008 Apr 23 7:05 PM
See the sample code
Types Declaration
TYPES: BEGIN OF ty_ord,
vbeln like vbak-vbeln,
matna like mara-matnr,
END OF ty_ord.
Work Area Declaration
DATA wa_ord TYPE ty_ord.
Saravanan
‎2008 Apr 23 7:12 PM
This is the line type I have IOHEADER_TAB.
And I want to declare a warkarea of this type.
‎2008 Apr 23 7:15 PM
are you sure IOHEADER_TAB is a line type or is it a table type?
if it is a line type you can declare it like:
data: line type IOHEADER_TAB.
but if it is a table type, double click on it an determine the linetype. Use that one when declaring line type.
‎2008 Apr 23 7:16 PM
‎2008 Apr 23 8:13 PM
‎2008 Apr 23 8:21 PM
Internal table declaration:
data: lt_table type IOHEADER_TAB. "Internal table without header line.
workarea (more options).
data: wa_line like line of lt_table. "workarea for internal table.
data: wa_line type IOHEADER. "also workarea for internal table.
loop at lt_table into wa_line.
endloop.