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

Reading Excel 2003 at Background Job

0 Kudos
339

Dear:

I try to search the answer for old post but cannot find a solution for reading Excel 2003 at background job.

Actually, I am making a RFC BAPI call by XI to read an excel file.

The BAPI is working when running at front-end but fail if I call in run at background program.

I already try function module ALSM_EXCEL_TO_INTERNAL_TABLE and KCD_EXCEL_OLE_TO_INT_CONVERT but both are not working.

Since Excel 2003 is not XML, is anyway I can read the excel at background?

Thank you.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Kudos
259

hi,

try the function module

TEXT_CONVERT_XLS_TO_SAP

it will help to resolve the issue

thanks

sarvesh

4 REPLIES 4
Read only

Former Member
0 Kudos
260

hi,

try the function module

TEXT_CONVERT_XLS_TO_SAP

it will help to resolve the issue

thanks

sarvesh

Read only

0 Kudos
259

Thanks for the reply.

I already tried that function and force the program to run even in background mode,

however, the job will be cancel due to

"Control Framework: Fatal error - GUI cannot be reached".

Read only

0 Kudos
259

Hi,

why can't you convert xls file into csv file and then read is as normal text file? All those FM like TEXT_CONVERT_XLS_TO_SAP use OLE for integration with Excel. Hence it will not work without GUI.

By the way Office 2003 supports XML as an output format for Excel.

Cheers

Read only

Former Member
0 Kudos
259

Hi,

Create varient with correct path and select varient while sheduling background. If working program in foreground correct then if should be work. Check properly.

Regards

Md.MahaboobKhan