Application Development 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: 

How to send data from work area to internal table

Former Member
0 Kudos
735

Hi can any body give me sample program on sending data from work area to an internal table.........( i need to send runtime data from workarea to internal table)

please give me a sample program with declarations

thanks in advance

kp

2 REPLIES 2

Former Member
0 Kudos
148

Hi,

Check this..

DATA: WA LIKE MARA.

DATA: ITAB LIKE TABLE OF MARA.

WA-MATNR = 'TEST'.

APPEND WA TO ITAB.

Please let me know if this is what you want..

Thanks,

Naren

Former Member
0 Kudos
148

Hi,

If you want to store data in internal table then you need to use APPEND satement.


*declaration of work area.
DATA: begin of x_itab,
             name(10) type c,
             phone(10) type c,
         end of x_itab.

*declaration of internal table
DATA: itab type table of x_itab.

x_itab-name = 'ABCDEFGH'.
x_itab-phone = '1234567890'.
APPEND x_itab to itab.

Ashvender