Application Development 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: 

background job problem

p244500
Active Contributor
0 Kudos

hai all

i create the program its data upload program..... the thing is when i upload the data program time out and generate the short dump... so what should i do , schedules the background job. but when i run the background job my program is not running.... can anybody tel me the resent y is not run background? without background.... program running correcly .....plz help me

regard

nawa

4 REPLIES 4

kiran_k8
Active Contributor
0 Kudos

Singhe,

If the program is designed in such a way that it uploads a file from presentation server then you can't schedule it as a background job.In background, file from presentation server cannot be uploaded, so its not possible to use the program in background.

K.Kiran.

Former Member
0 Kudos

Hi,

DOWNLOAD FM / UPLOAD FM'S i.e, WS_DOWNLOAD, WS_UPLOAD, GUI_UPLOAD AND GUI_DOWNLOAD will not work in background USE OPEN DATASET, CLOSE DATASET statements

Regards,

Sathiya

0 Kudos

hai

<b>i use the function GUI_UPLOAD....Sathiya how should i change in to OPEN DATASET, CLOSE DATASET?</b>

form get_data_from_as400_file .

v_filename = dataset.

call function 'GUI_UPLOAD'

exporting

filename = v_filename

filetype = 'ASC'

has_field_separator = 'X'

tables

data_tab = it_as400

exceptions "+

file_open_error = 1 "+

file_read_error = 2 "+

no_batch = 3 "+

gui_refuse_filetransfer = 4 "+

invalid_type = 5 "+

no_authority = 6 "+

unknown_error = 7 "+

bad_data_format = 8 "+

header_not_allowed = 9 "+

separator_not_allowed = 10 "+

header_too_long = 11 "+

unknown_dp_error = 12 "+

access_denied = 13 "+

dp_out_of_memory = 14 "+

disk_full = 15 "+

dp_timeout = 16 "+

others = 17. "+

case sy-subrc.

when '1'. "+

write: /'ERROR WHILE OPENING THE FILE'.

when '2'. "+

write: /'ERROR WHILE READING THE FILE'.

when '3'. "+

write: /'NO BATCH'.

when '4'. "+

write: /'ERROR IN FILE TRANSFERING'.

when '5'. "+

write: /'INVALID TYPE'.

when '6'. "+

write: /'NO AUTHORITY TO RUN THIS PROGRAM'.

when '7'. "+

write: /'UNKNOWN ERROR'.

when '8'. "+

write: /'BAD DATA FORMAT'.

when '9'. "+

write: /'HEADER NOT ALLOWED'.

when '10'. "+

write: /'SEPERATOR NOT ALLOWED'.

when '11'. "+

write: /'TOO LONG HEADER'.

when '12'. "+

write: /'UNKNOWN DP ERROR'.

when '13'. "+

write: /'ACCESS DENIED'.

when '14'. "+

write: /'DP OUT OF MEMORY'.

when '15'. "+

write: /'DISK IS FULL'.

when '16'. "+

write: /'DP TIME OUT'.

when '17'. "+

write: /'OTHERS'.

endcase.

if sy-subrc <> 0.

stop.

endif.

endform. " get_data_from_as400_file

regard

nawa

Former Member
0 Kudos

Hi

if u are running in background then there will be no control on presenatation server the beterthing is first upload the file to application server and then retirve the data using open dataset and read then it will works.....

reward points to all helpful answers

kiran.M