Skip to Content
0
Former Member
Mar 26, 2007 at 05:52 AM

Move data into table

18 Views

Hi All,

Could anyone help how to Move data into certain column/position of the table. Hope my question are clarify. Please guide with some sample code.Thanks in advance!

tables:s_record.

DATA: BEGIN OF itab1 OCCURS 0,

name like s_record-name,

student like s_record-student,

result like s_record-result,

<b>Aaddress type c,

ACourse type c,</b>

END OF itab1.

Data: m_data1(30) type c value 'AUS',

m_data2(2) type c value 'CA.

<u><b>Output file: data should be insert/display as below sequence</b></u>

Name

Student

<b>Address</b>

<b>Course</b>

Result

<u>My code:</u>

Select name, student, result into (I_Name,

I_Student,

I_Result)

From S_Records

Where Reg_date in Join_date.

MOVE m_data1 TO itab1-Aaddress.

MOVE m_data2 TO itab1-ACourse.