‎2008 Feb 21 12:46 PM
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
‎2008 Feb 21 12:57 PM
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
‎2008 Feb 21 12:50 PM
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.
‎2008 Feb 21 12:51 PM
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
‎2008 Feb 21 12:53 PM
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.
‎2008 Feb 21 12:57 PM
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