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: 

Call <Function> Destination in a background job

Former Member
0 Kudos
405

I am having a problem using:

CALL FUNCTION 'TABLE_ENTRIES_GET_VIA_RFC'

DESTINATION p_dest

in a background job.

I am working on a program that would compare the same table in 2 different systems and write the differences. It works when I run it in the foreground. However, I want to run this in a nightly background job. However, it is failing and I beleive that it is the result of the program needing a user to interactively logon to the remote system.

How can I bypass the logon screen or enter information into the logon screen using a background job?

Thanks.

Jon

3 REPLIES 3

jack_graus2
Active Contributor
0 Kudos
130

You call a RFC funtion in another system. The connection to that system is via remote destination p_dest that is defined using transaction SM59. Here you define how to connect to the remote system. You can preset the user and password for the remote system here. Then when calling a RFC in the remote system you will not be asked for a user / password.

regards Jack

0 Kudos
130

Thanks Jack.

That opened the door. I was relying on previously installed RFC connection instead of creating my own with a user ID that did not fail on login when I placed it in the background.

0 Kudos
130

Hi Jonathan,

Would you like to reward some points to the poster to thank them as a part of SDN Contributor Recognition Program?

You can click on the yellow star on the right of each post header to reward points.

For more information:

https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm

John.