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

Dump while running report in background

Former Member
0 Likes
1,041

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

1 ACCEPTED SOLUTION
Read only

agnihotro_sinha2
Active Contributor
0 Likes
754

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

3 REPLIES 3
Read only

GauthamV
Active Contributor
0 Likes
754

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.

Read only

Former Member
0 Likes
754

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.

Read only

agnihotro_sinha2
Active Contributor
0 Likes
755

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