‎2008 Nov 26 12:15 PM
Hi Experts,
I have created one report to create the conditions record by using BDC. The program is uploading the data from file which is located at local server and at selection screen, path of file is defined.
When i run the report in foreground it works fine, first it uploaded that data and then created BDC and record saved successfully. But if i run the program in background and check the job status through SM37 , job get canceled due to the dump. The dump message is "Exception condition "NO_BATCH" raised."
The FM which i am using currently in my code to upload the data is "GUI_UPLOAD", i tried the same thing with FM "ALSM_EXCEL_TO_INTERNAL_TABLE" as well, but same dump is coming.
Please advice if anyone have some solution.
Thanks & Regards,
Swati
‎2008 Nov 26 12:21 PM
hi,
The only possible solution is to upload the file from the presentation server to the application server.
And from there you can read the file in the background using :
OPEN DATASET
READ DATASET
CLOSE DATASET...
regards,
ags
‎2008 Nov 26 12:17 PM
hi,
you can find the same answer many number of times in SCN,
cannot run gui function modules in background.
you can upload data to application server and then use background mode.
‎2008 Nov 26 12:17 PM
Hi,
The FM GUI_UPLOAD, wont work in the background jobs. This is the reason for the dump.
As the backround job runs at the application server, the program cannot identidy the presentation server (local system) file path.
To avoid this store and read file from application server.
Thanks & Regards,
Navneeth K.
‎2008 Nov 26 12:21 PM
hi,
The only possible solution is to upload the file from the presentation server to the application server.
And from there you can read the file in the background using :
OPEN DATASET
READ DATASET
CLOSE DATASET...
regards,
ags