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

Insert line to database

Former Member
0 Likes
469

Hi all

i using a textedit control. i able to read line by line in texteditcontrol. Now i gt problem in inserting each line to database. Any code for this situation.

below is my code to read each line.

CALL METHOD g_editor->set_text_as_r3table

EXPORTING table = g_mytable.

Thks

3 REPLIES 3
Read only

Former Member
0 Likes
445

Hi,

Use the INSERT statement to insert the values to the database

LOOP AT g_mytable.

  • Move the values to the work area..of the structure of database table.

INSERT ZTABLE FROM WA.

ENDLOOP.

Thanks

naren

Read only

0 Likes
445

However my g_mytable declaration in in this format

CONSTANTS: line_length TYPE i VALUE 256.

g_mytable(line_length) TYPE c OCCURS 0

how can i resolve it

Read only

Former Member
0 Likes
445

Hi,

Not able to understand your requirement..Please explain in detail..

Thanks

Naren