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: 

upload EXCEL from Application server

Former Member
0 Kudos

hi,

can anyone advice how to upload EXCEL file in Application Server(SAP UNIX server) into a program internal table? can any please provide the source code as well. thanks

9 REPLIES 9

Mohamed_Mukhtar
Active Contributor
0 Kudos

hi ,

[Go through this link|]

Regards,.

Former Member

Former Member
0 Kudos

try this function module :

TEXT_CONVERT_XLS_TO_SAP.

there is one more,but this uploads values cell by cell and not row by row-

ALSM_EXCEL_TO_INTERNAL_TABLE'

0 Kudos

hi,

i try use ALSM_EXCEL_TO_INTERNAL_TABLE'. but seems it does not take up from the application server. can you please advice how am i going to do it?

thanks

kesavadas_thekkillath
Active Contributor
0 Kudos

Use dataset concepts.

Former Member
0 Kudos

Hi Ben,

Check this one for sample code:

Regards,

Chandra Sekhar

Former Member
0 Kudos

Hi,

Use DATA SET

OPEN DATASET

READ DATASET

CLOSE DATASET

Example:

open dataset p_file for input in text mode encoding default.

if sy-subrc = 0.

do.

read dataset p_file into ls_input-wa_string.

if sy-subrc eq 0.

append ls_input to lt_input.

else.

exit.

endif.

enddo.

endif.

close dataset p_file.

former_member181995
Active Contributor
0 Kudos

Use Transaction code CG3Z

Former Member
0 Kudos

hi..

You need to use open dataset and close dataset concepts to load your file on application server.the path where you want to store the file on application server has to be given in the program.