Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3316

Re: Declare table type of integers

$
0
0

Hi,

 

 

When define a type

 

Declare a table type of integers. it will create a table having one column of type i.

 

 

A simple sample program for better clarification.

 

TYPES table_type_with_number TYPE TABLE OF i.

 

DATA odd_numbers TYPE table_type_with_number.

DATA even_numbers TYPE table_type_with_number.

 

START-OF-SELECTION.

 

 

 

APPEND: 1 TO odd_numbers,

3 TO odd_numbers,

5 TO odd_numbers,

7 TO odd_numbers,

9 TO odd_numbers.

 

 

 

APPEND: 2 TO even_numbers,

4 TO even_numbers,

6 TO even_numbers,

8 TO even_numbers,

10 TO even_numbers.

 

So finally you get 2 table with 3,5,7,9 and 4,6,8,10 in respective internal table


Viewing all articles
Browse latest Browse all 3316

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>