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

Error in job.

Former Member
0 Likes
781

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
732

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.

4 REPLIES 4
Read only

Former Member
0 Likes
733

Hi

GUI_DOWNLOAD can't be used for scheduling the JOBS in BACKGROUND

it won't work.

Regards

Anji

Read only

0 Likes
732

Hi Anji!

Ok...and what can i use to save a file in the local machine¿?

Thanks in advance,

Mon

Read only

Former Member
0 Likes
732

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

Read only

Former Member
0 Likes
732

Solved