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

uploading excel from application server

Former Member
0 Likes
702

Is there any way to upload excel file from application server to database tables? Also, is there any way to rename an excel file in the application server to xls file?

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
514

Hello,

You need to use OPEN DATASET to read the data.

and for renaming:

1. read data into your program

2. put data back into new file

3. delete old file with DELETE DATASET.

regards,

Naimesh

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
515

Hello,

You need to use OPEN DATASET to read the data.

and for renaming:

1. read data into your program

2. put data back into new file

3. delete old file with DELETE DATASET.

regards,

Naimesh

Read only

Former Member
0 Likes
514

You can use ALSM_EXCEL_TO_INT_TABLE function to upload a excel to internal tablt from your app server. Then you can save it to the database table.

Regards,

Ravi

Note : Please mark all the helpful answers

Read only

Former Member
0 Likes
514

Rename the file like this.

Slight midifications required.

CONCATENATE w_saptempdir

'/'

it_matfile

INTO w_saptempdir.

CONCATENATE w_sapfldir

'/'

it_matfile

INTO w_sapfldir.

TRANSLATE: w_saptempdir TO LOWER CASE,

w_sapfldir TO LOWER CASE.

CONCATENATE 'mv' w_saptempdir w_sapfldir INTO var-parcom SEPARATED BY

space.

CALL 'SYSTEM'

ID 'COMMAND' FIELD var-parcom

ID 'TAB' FIELD tabl-sys.