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

Upload the data into Ztable

Former Member
0 Likes
754

Hi guys this is very very urgent. plz help me.

How to upload the data into ZTABLE(database table) using online or batch input method. the data will be from either presentation server or application server.

regards

venkat

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
728

Hello Venkat,

You can use FM GUI_UPLOAD(.TXT) or ALSM_EXCEL_TO_INTERNAL_TABLE ( XLS File) to get data from file to internal table..

and use insert command or modify command.

here no need to use BDC..

Thanks

Seshu

Hello Venkat,

You can use FM GUI_UPLOAD(.TXT) or ALSM_EXCEL_TO_INTERNAL_TABLE ( XLS File) to get data from file to internal table..

and use insert command or modify command.

here no need to use BDC..

Thanks

Seshu

3 REPLIES 3
Read only

Former Member
0 Likes
729

Hello Venkat,

You can use FM GUI_UPLOAD(.TXT) or ALSM_EXCEL_TO_INTERNAL_TABLE ( XLS File) to get data from file to internal table..

and use insert command or modify command.

here no need to use BDC..

Thanks

Seshu

Read only

0 Likes
728

Hi seshu,

Thank you for your response.

But my question is, I should use Online as well as Batch method to upload the data into that Ztable. those two are radio buttons and whichever has been selected it has to work.

Read only

Former Member
0 Likes
728

Read the data into a internal table eg: itab1( similar in structure to you z table)

data: itab1 type table of <ztable>.

data: wa type <ztable>.

For reading:

Presentation server: use GUI_UPLOAD

Application server: Open Dataset, read dataset and close dataset.

For uploading:

Loop at itab1 into wa

insert into <ztable> values wa.

endloop.