cancel
Showing results for 
Search instead for 
Did you mean: 

declarations

Former Member
0 Kudos

Hi all,

DATA lt_employee TYPE wd_this->elements_employee.

DATA ls_employee TYPE wd_this->element_employee.

whats the diff between these statements.

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

One is table type

other is Structure

Goto Attributes Tab and double click wd_this

you find the declaration of this data.

Abhi

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Naming convention (it_) is used for defining internal tables (i.e. local table). (ls_) (i.e. local structure) used to define work area. But if you are not following naming conventions then there is no difference in statements.

Kind Regards,

Gopal

Former Member
0 Kudos

>

> Hi all,

>

> DATA lt_employee TYPE wd_this->elements_employee.

> DATA ls_employee TYPE wd_this->element_employee.

>

> whats the diff between these statements.

data lt_employee type wd_this->elements_employee

this will create internal table of your node employee

and

data ls_employee type wd_this->element_employee

will create work area or structure type of your node employee.

You can see the actual declaration of this types elements_employee and elements_employee in "Display Controller Interface(CtrlShiftF1)"

Hope this 'll help you to understand this declaration.

-Haresh