‎2007 Oct 28 5:03 AM
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
‎2007 Oct 28 5:31 AM
<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
‎2007 Oct 28 5:09 AM
‎2007 Oct 28 5:31 AM
<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
‎2007 Oct 28 8:52 AM
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 .