2007 Oct 03 9:14 AM
Hi experts,
I am trying to set a job every day. When i run the report of the job everything is ok but when the job runs itself it doesnt work...
When i check the log next day i obtain this error with the next description:
+
Could not ascertain code page
Message no. FES025+
So i dont know what happen, i use in the report the function: GUI_DOWNLOAD and also i open a dataset to store a log in the system..
Any idea or suggestion to solve this issue¿?
Thanks in advance and regards,
Mon.
2007 Oct 03 9:16 AM
Hi
GUI_DOWNLOAD can't be used for scheduling the JOBS in BACKGROUND
it won't work.
Regards
Anji
Hi experts,
I am trying to set a job every day. When i run the report of the job everything is ok but when the job runs itself it doesnt work...
When i check the log next day i obtain this error with the next description:
+
Could not ascertain code page
Message no. FES025+
So i dont know what happen, i use in the report the function: GUI_DOWNLOAD and also i open a dataset to store a log in the system..
Any idea or suggestion to solve this issue¿?
Thanks in advance and regards,
Mon.
2007 Oct 03 9:16 AM
Hi
GUI_DOWNLOAD can't be used for scheduling the JOBS in BACKGROUND
it won't work.
Regards
Anji
2007 Oct 03 9:17 AM
Hi Anji!
Ok...and what can i use to save a file in the local machine¿?
Thanks in advance,
Mon
2007 Oct 03 9:39 AM
Hi,
Please use OPEN DATASET to download the file in background.
DATA: file TYPE string VALUE `flights.dat`,
hex_container TYPE x LENGTH 1000,
len TYPE i.
FIELD-SYMBOLS <spfli> TYPE spfli.
DESCRIBE FIELD <spfli> LENGTH len IN BYTE MODE.
OPEN DATASET file FOR INPUT IN BINARY MODE.
ASSIGN hex_container TO <spfli> CASTING.
DO.
READ DATASET file INTO hex_container MAXIMUM LENGTH len.
IF sy-subrc = 0.
WRITE: / <spfli>-carrid,
<spfli>-connid,
<spfli>-countryfr,
<spfli>-cityfrom,
<spfli>-cityto,
<spfli>-fltime,
<spfli>-distance.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET file.
Best regards,
Prashant
2007 Dec 27 8:45 AM