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

Problem while uploading excel file to server

Former Member
0 Likes
853


Hello,

I have created an excel file using OLE and saved it to local desktop. Then I use GUI_UPLOAD to upload the excel into SAP and attach it to mail. but while using Function GUI_UPLOAD I am getting dump for CNTL_ERROR.

If I skip the process of excel creation by OLE and passes the excel file created earlier then it gives no dump and is executed successfully.

Kindly help on this.

5 REPLIES 5
Read only

narendar_naidu
Active Participant
0 Likes
787

hi dagar,

Try using TEXT_CONVERT_XLS_TO_SAP  instead of GUI_UPLOAD.

regards,

Read only

0 Likes
787

Hello Naren,

I have tried that and it is giving same error.

Read only

Former Member
0 Likes
787

Hi Suchender,

Can you show us your code logic?

Regards,

Sudeesh Soni

Read only

Former Member
0 Likes
787

Hi Suchendar,

Try using the FM -  F4_FILENAME to get the valid file name and use TEXT_CONVERT_XLS_TO_SAP FM to upload into SAP based on the required format.

Regards,

Suresh

Read only

0 Likes
787

I think there is some problem with OLE as when I skip the OLE part it is working fine. But excel is well created too.