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

TABLE

Former Member
0 Likes
1,241

hi,

I am not able to execute the following table. plz let me know where is the mistake.

*Creating a Table

DATA:

Begin of ITAB TAB_EMP.

EMPID(4) TYPE N,

ENAME(30) TYPE C,

SALARY TYPE I,

END OF ITAB TAB_EMP

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,219

Hi,

I want to create a Internal table. still it is showing error like this

"," expected after "ITAB".

*Creating a Table

DATA:

Begin of ITAB TAB_EMP occurs 0,

EMPID(4) TYPE N,

ENAME(30) TYPE C,

SALARY TYPE I,

END OF ITAB TAB_EMP.

12 REPLIES 12
Read only

former_member404244
Active Contributor
0 Likes
1,219

hi,

Occurs statement is missing.

DATA:

Begin of ITAB TAB_EMP occurs 0,

EMPID(4) TYPE N,

ENAME(30) TYPE C,

SALARY TYPE I,

END OF ITAB TAB_EMP .

Regards,

nagaraj

Read only

Former Member
0 Likes
1,219

hi,

u have to declare like this. Remove ITAB.

DATA:

Begin of TAB_EMP.

EMPID(4) TYPE N,

ENAME(30) TYPE C,

SALARY TYPE I,

END OF TAB_EMP .

Regards,

Praveena

Read only

Former Member
0 Likes
1,219

Hi,

DATA:Begin of TAB_EMP occurs 0,

EMPID(4) TYPE N,

ENAME(30) TYPE C,

SALARY TYPE I,

END OF TAB_EMP .

rgds,

bharat.

Read only

Former Member
0 Likes
1,219

DATA:

Begin of ITAB TAB_EMP.<<---<b>Put , not .</b>

EMPID(4) TYPE N,

ENAME(30) TYPE C,

SALARY TYPE I,

END OF ITAB TAB_EMP

Read only

Former Member
0 Likes
1,219

try now this it works fine .....

DATA: Begin of ITAB_TAB_EMP,
     EMPID(4) TYPE N,
    ENAME(30) TYPE C,
   SALARY TYPE I,
END OF ITAB_TAB_EMP .

Reward points if it is usefull ..

Girish

Read only

Former Member
0 Likes
1,219

do u want to create a IT

DATA:

Begin of TAB_EMP occurs 0,

EMPID(4) TYPE N,

ENAME(30) TYPE C,

SALARY TYPE I,

END OF TAB_EMP .

Read only

Former Member
0 Likes
1,219

Hello Ram,

Try this and reward if helpfull,

Rakesh.


Types: Begin of typ_emp,
             EMPID(4) TYPE N
             ENAME(30) TYPE C
             SALARY TYPE I,
          end of typ_emp.

data: it_emp type table of typ_emp.

Read only

Former Member
0 Likes
1,219

Hi,

You are using ITAB TAB_EMP, it is wrong use only one name of table ITAB or TAB_EMP.

use as below :

DATA:

Begin of ITAB occurs 0.

EMPID(4) TYPE N,

ENAME(30) TYPE C,

SALARY TYPE I,

END OF ITAB.

Reward points, if helpful,

Sandeep Kaushik

Read only

Former Member
0 Likes
1,219

Hi,

You are trying to define a table in one step. First define a work area here. Then declare an internal table acoording to the first set structure.

*Creating a Table
DATA:
Begin of S_EMP,
  EMPID(4) TYPE N,
  ENAME(30) TYPE C,
  SALARY TYPE I,
END OF S_EMP.

DATA: TAB_EMP LIKE STANDARD TABLE OF S_EMP.

Regards,

Timo.

Read only

Former Member
0 Likes
1,220

Hi,

I want to create a Internal table. still it is showing error like this

"," expected after "ITAB".

*Creating a Table

DATA:

Begin of ITAB TAB_EMP occurs 0,

EMPID(4) TYPE N,

ENAME(30) TYPE C,

SALARY TYPE I,

END OF ITAB TAB_EMP.

Read only

0 Likes
1,219

Hi

DATA: Begin of ITAB_TAB_EMP occurs 0,

EMPID(4) TYPE N,

ENAME(30) TYPE C,

SALARY TYPE I,

END OF ITAB_TAB_EMP.

see now

Reward points for useful Answers

Regards

Anji

Read only

former_member404244
Active Contributor
0 Likes
1,219

Hi,

try like this

DATA: Begin of ITAB_EMP occurs 0,

EMPID(4) TYPE N,

ENAME(30) TYPE C,

SALARY TYPE I,

END OF ITAB_EMP.

Regards,

Nagaraj