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 in background

Former Member
0 Likes
622

hi

i have report when i operate it on online it woek well, but when i opeare it in background they program doesn't fall but i dont see that anything happen.

i use some function that could be the problem

TMP_GUI_DIRECTORY_LIST_FILES - to get fiels

METHOD CL_GUI_FRONTEND_SERVICES=>FILE_COPY

METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE

maybe you know what the problem could be and how to fix it?

thanks

4 REPLIES 4
Read only

Former Member
0 Likes
531

These FM's do not work. For this you need to do some settings to download the file to foreground while running the program in background. Search this forum there is one link for PDf given where we can actually configure RFC settings to do this.

Read only

0 Likes
531

Hi

thanks about the answer but there is no FM that can read fiels in BACKGROUND?

Read only

Former Member
0 Likes
531

Hi,

Check this...

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2">Accessing the Frontend/PC in Background</a>

Regards

vijay

Read only

Former Member
0 Likes
531

Hi !

Having any acces to files on the frontend-pc is a service of SAP-Gui.

Because in background-scenario there's no SAP-Gui, there is no "easy" method to have access to frontend-pc-files.

You max think about the following:

Bring the file from the frontend to a directory from that

SAP can have access even in background (i.e. a directory on application-server).

Then run your programm in background using the "OPEN DATASET" statements.

If your file is on the application-server, take care that your batch-job is running on the same server or that the directory is mounted to the other application-serves !

Regards

Rainer

Some points would be nice if that helped a bit.