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

Line Type

Former Member
0 Likes
779

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.

6 REPLIES 6
Read only

0 Likes
740

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

Read only

0 Likes
740

This is the line type I have IOHEADER_TAB.

And I want to declare a warkarea of this type.

Read only

0 Likes
740

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.

Read only

0 Likes
740
LIKE LINE OF xxx
Read only

0 Likes
740

Its a Line type IOHEADER

Read only

0 Likes
740

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.