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

Types - Structure

Former Member
0 Likes
561

Hi Experts,

Types:begin of t_line,

col1 type I,

col2 type i,

end of t_line.

Is t_line structure?

can we use t_line as workarea? I think this is not possible unless we specify

'wa_line type t_line', where wa_line can be used as work area..

Is is correct?

Please help me solve this.

Thanks in advance,

Smitha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
537

<b>Types</b>:begin of t_line,

col1 type I,

col2 type i,

end of t_line.

As u declared it as TYPES.. it comes under <b>user defined datatype.

</b>

can we use t_line as workarea? I think this is not possible unless we specify

'wa_line type t_line', where wa_line can be used as work area..

<b>Yes u have to declare it as below to use it as work area.

Data : wa_line type t_line.

</b>

hope Ur problem is solved..

<b>Reward points if it is helpful.</b>

Thanks & Regards

ilesh 24x7

3 REPLIES 3
Read only

Former Member
0 Likes
537

hi,

d solution to ur problem is here in dese links:-

and plzz if u find it useful den do give points also.

regrads,

ric.s

Read only

Former Member
0 Likes
538

<b>Types</b>:begin of t_line,

col1 type I,

col2 type i,

end of t_line.

As u declared it as TYPES.. it comes under <b>user defined datatype.

</b>

can we use t_line as workarea? I think this is not possible unless we specify

'wa_line type t_line', where wa_line can be used as work area..

<b>Yes u have to declare it as below to use it as work area.

Data : wa_line type t_line.

</b>

hope Ur problem is solved..

<b>Reward points if it is helpful.</b>

Thanks & Regards

ilesh 24x7

Read only

Former Member
0 Likes
537

when u using the types keyword before the t_file , it suggests as a structure

if u use Data before the t_file then that can be work area .

so when ever u r defining the field string with type , that only can be converted to work area if call that structure to work area with keyword data .