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

Problem with job

Former Member
0 Likes
932

Hi, I have created a new program ZRHPAR025 to download to a txt file employees' data. When i run the program "online" it works perfectly. I have also created a job to run the program and in the Developpement machine works perfectly too. The problem is in production machine.. the job is executed and the log is the following:

- Job started

- Step 001 started (program ZRHPAR025, variant DAPER, user ID SERVICES)

- Object ZRHPAR025 of class RE and language EN does not exist.

- Job finished.

As the user told me, the txt file is not generated.

The function i'm using to download is WS_DOWNLOAD, because with GUI_DOWNLOAD i had somw troubles..

does anyone know what can be the problem with the job ???

thanks in advance !!

Hi, I have created a new program ZRHPAR025 to download to a txt file employees' data. When i run the program "online" it works perfectly. I have also created a job to run the program and in the Developpement machine works perfectly too. The problem is in production machine.. the job is executed and the log is the following:

- Job started

- Step 001 started (program ZRHPAR025, variant DAPER, user ID SERVICES)

- Object ZRHPAR025 of class RE and language EN does not exist.

- Job finished.

As the user told me, the txt file is not generated.

The function i'm using to download is WS_DOWNLOAD, because with GUI_DOWNLOAD i had somw troubles..

does anyone know what can be the problem with the job ???

thanks in advance !!

8 REPLIES 8
Read only

Former Member
0 Likes
911

Hi maria,

You cannot use either WS_DOWNLOAD or GUI_DOWNLOAD when you want to run your program in background mode.

YOu have to download the file to Application Server instead in order to run your program in background.

YOu can later use the transaction CG3Y to move the file from appl server to presentation server.

Regards,

Ravi

Read only

Former Member
0 Likes
911

hi Ravi, thanks for the answer, but i still have a doubt.. why when i run the job in the developpement machine it works and why not in production machine ??

as i can't use ws_download and gui_download, do i have to use the "open dataset", "close dataset" statements ??

thanks in advance !

Read only

Former Member
0 Likes
911

Hi,

Check the following link:

http://www.sapbrain.com

Regards,

Bhaskar

Read only

Former Member
0 Likes
911

You cannot use WS_DOWNLOAD or GUI_DOWNLOAD in the background as these two download a file to the PC and a background job gets executed in the application server.

If you are running in the background, you have to download it to the application server using OPEN DATASET, TRANSFER DATASET and CLOSE DATASET statements. Read help on them.

Read only

0 Likes
911

I had a similar problem, and thanks for the posts. They were very helpful.

But, answer his though, how come the program runs fine in the Development server in the background but not in the production server

Read only

Former Member
0 Likes
911

Thanks for the answer, i've asked the consultant and she told me that in foreground (running the transaction associated to the program) they will leave the file in the local pc, but in background they'll leave the file in the server. Maybe i should control this in the program ?? -> in case the transaction has been executed, i can use gui_download/ws_download and in case it's the job i use open dataset... ??

thanksss !!

Read only

0 Likes
911

In this case you can check for the system variable sy-batch, if it has a value 'X' then it is a background job where you can use the DATASET, if it empty then it is processed online and then you can use WS_DOWNLOAD or GUI_DOWNLOAD

Read only

Former Member
0 Likes
911

ok !!!! thanks for all the answers !!!!!