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

Error while execution report in background

Former Member
0 Likes
5,076

Hi,

I am uploading the data from excel file using ALSM_EXCEL_TO_INTERNAL_TABLE function module in one of the report. If I execute the report in background its giving a error message 'Error during import of clipboard contents'.

Please help me out what should be the problem.

<REMOVED BY MODERATOR>

Thanks,

Vinay.

Edited by: Alvaro Tejada Galindo on Feb 21, 2008 11:20 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,325

When a program is executed in background, the programs runs in the application server and so connection exists with the PC.

And the FM ALSM_EXCEL_TO_INTERNAL_TABLE reads the file from PC. Since the connection is already lost when the program is run in background, the program will not work and might give a short dump.

So you might have to upload the file into application server and then use OPEN DATASET, READ DATASET commands to read data from the application server file.

<REMOVED BY MODERATOR>

Thanks,

Balaji

Edited by: Alvaro Tejada Galindo on Feb 21, 2008 11:21 AM

4 REPLIES 4
Read only

Former Member
0 Likes
2,325

while executing the report in backgroung you dont have connection to the frontend. Hence that FM will not work when you are executing the report in backgroung mode.

try uploading the file on application server and the run the report.

Read only

Former Member
0 Likes
2,325

Hi

I dont think so you can upload excel sheet from desktop in background processing

Convert the excel sheet to DAT file

you need to upload the file into application server then give the path and run in background

Regards

Shiva

Read only

Former Member
0 Likes
2,325

Hi Vinay,

Straight answer to your question is that the function module can not be used for background processing. you have to use some other fm or use the DATASET to read from application server.

Now the reason of why it can not be used. Inside the function module there are calls to fm intern like CLPB_IMPORT, WS_QUERY which can only be designed for foreground processing.

Hope this helps..

Thanks in advance,

Harikrishna.

Read only

Former Member
0 Likes
2,326

When a program is executed in background, the programs runs in the application server and so connection exists with the PC.

And the FM ALSM_EXCEL_TO_INTERNAL_TABLE reads the file from PC. Since the connection is already lost when the program is run in background, the program will not work and might give a short dump.

So you might have to upload the file into application server and then use OPEN DATASET, READ DATASET commands to read data from the application server file.

<REMOVED BY MODERATOR>

Thanks,

Balaji

Edited by: Alvaro Tejada Galindo on Feb 21, 2008 11:21 AM