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

problem

Former Member
0 Likes
642

(DATA: IT_EKKO TYPE STANDARD TABLE OF I_EKKO INITIAL SIZE 0,

WA_EKKO TYPE I_EKKO.):-what does it mean exactly

5 REPLIES 5
Read only

Former Member
0 Likes
618

the IT_EKKO TYPE STANDARD TABLE OF I_EKKO INITIAL SIZE 0,

This defines an internal table of the type i_ekko which would have been defined earlier.This is without header line.

WA_EKKO TYPE I_EKKO - defines a work area of the type

Read only

shishupalreddy
Active Contributor
0 Likes
618

HI,

DATA: IT_EKKO TYPE STANDARD TABLE OF I_EKKO INITIAL SIZE 0,

WA_EKKO TYPE I_EKKO.):-what does it mean exactly

fIRST LINE creates internal table with header line ...which u can use to populate the data from DB.

second line is a structure where u can have the latest record populated and in this u can have at the most only one record

regards

Read only

Former Member
0 Likes
618

hi,

IT_EKKO is an internal table with same structure as i_ekko ...

wa_ekko is of work area or is d same structure as i_ekko.

Rgds,

Ajith

Read only

Former Member
0 Likes
618

INITIAL SIZE specifies how many table lines are to be created initially. The number of table lines can then be increased as needed.

The value of INITIAL SIZE has no semantic significance except in the case of APPEND SORTED BY. If INITIAL SIZE is not declared, its value is set to 0.

Read only

Former Member
0 Likes
618

Hi

First statement is to create an internal table of type I_EKKO, and second statement is to create work area for further processing.

In internal table u can store any number of records and in work area you can store only one record.

You can fetch data from DB and store the records in the internal table by SELECT --- INTO TABLE ---. And then you can do further process however you want by reading each record into to the work area either by READ or LOOP.

Regards

Surya.