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: 

RFC connection

Former Member
0 Kudos

HI EXPERTS,

I have to run the program "ZXX_0002" in remote server by using FM RFC_ABAP_INSTALL_AND_RUN.

{code]

call function 'RFC_ABAP_INSTALL_AND_RUN'

DESTINATION 'XYZ'

tables

program = source

writes = output

[/code]

Here i have already mentioned destination name as

‘XYZ’. Eventhough do I need to setup RFC connection? If yes means clarify the following.

1. In sm59, Under techinal settings tab

what I to give in Gateway Host & Gateway service?

2. Under logon/security tab

what I have to give in Authorization, client & user?

3. How the third party will get the result ? how they will access this FM?

Is it they(3rd party) will call FM RFC_INSTALL_ABAP_AND_RUN to get the result?

Thanks,

Silviya T

14 REPLIES 14

Former Member
0 Kudos

Yes..

U need to define RFC in SM59. After entrering the destination system and connection type/desciption..just say enter.

now u will find the entrie Target host (here just pass host which is available under

system menu>status>host). And then say enter

then logon/security tab-->here give the logon credentials of destination system i.e reciever system.

Thanks

Eswar

0 Kudos

Hi ,

call function 'RFC_ABAP_INSTALL_AND_RUN'

DESTINATION 'xyz'.

1.DESTINATION 'xyz' name sholud be match with RFC destination?

2.Our Target system is not SAP, It is EDI subsystem which is an JAVA application. so what i have to give in Technical settings for Gateway host & gateway service.

3. Also what i have to give in logon& security for client,user & password.

4. I asked my java guy to give system IP address. he is telling that IP and system num are already configured.

Please clear this doubts.

Thanks

0 Kudos

Hi silviya,

1. If your target system is non-sap (java edi)

then how can u install an abap program

there and run it on that system ?

regards,

amit m.

0 Kudos

Hi Amit,

ABAP program will be in file format in JAVA.we have to execute it using RFC_ABAP_INSTALL_AND_RUN and get the results back in its TABLES parameter WRITES.

How can we proceed? Explain me.

0 Kudos

Hi again,

1. RFC_ABAP_INSTALL_AND_RUN

This FM is for installing programs

in the r/3 system

and running them.

2. It does not have any connection to the outside world.

viz java edi etc.

regards,

amit m.

Former Member
0 Kudos

Hi,

1) Yes. You will have to create RFC destination 'XYZ'.

2) If you target system is R3 then, no need to enter anything in gateway host & services. But if it is an external third party system, then you will have to register the program. Gateway host will be the IP address of the server.

3) Under logon security tab, give the logon credentials for the target system.

4) The target system has its own logic to answer the RFC calls and we dont have to bother.

Hope this helps..

regards,

Shashank

0 Kudos

HiShashank,

I have to run the program "ZXX_0002" in remote server

which is non-SAP (JAVA) by using FM RFC_ABAP_INSTALL_AND_RUN. ABAP program will go in file format in JAVA.we have to execute it using RFC_ABAP_INSTALL_AND_RUN and get the results back in its TABLES parameter WRITES

1.For doing this which type of RFC connection i have to choose eg,TCP/IP connections or connections via ABAP driver & etc.

2.what are neccesary things i have to fill it in SM59?

Give me the entire Details.

3.Remote server (JAVA) MUST be "open" while setting up RFC connection in SAP? Please give more details.

Thanks.

0 Kudos

Hi Silviya,

Do you want to run ABAP code in Java program?

This is not possible. Create your ABAP code in your R/3 system and create a Remote function in SE37 with Remote Enabled.

Then you can call this from your external program.

3.Remote server (JAVA) MUST be "open" while setting up RFC connection in SAP?

The connection must be evoked from the Java program which calls up the ABAP remote function module.

Regards,

Wenceslaus.

0 Kudos

Hi Wenceslaus,

No. I am passing ABAP code "XXX" as file foramt to FM RFC_ABAP_INSTALL_AND_RUN's tables parameter 'PROGRAM'. JAVA side will get the result of abap code "XXX" in tables parameter WRITES of FM RFC_ABAP_INSTALL_AND_RUN.

This is the concept.

0 Kudos

Hi Silviya,

Then you can use JCo to execute RFC calls from Java.

See http://www.persistentsys.com/presentation/Java_SAP_Integration.pdf for documetation and a sample program to pass and retrieve tables.

0 Kudos

For doing this do i need to set up RFC Connection in SM59?

1..For doing this which type of RFC connection i have to choose eg,TCP/IP connections or connections via ABAP driver & etc.

2.what are neccesary things i have to fill it in SM59?

Give me the entire Details.

3.Remote server (JAVA) MUST be "open" while setting up RFC connection in SAP? Please give more details.

0 Kudos

1.U NEED CONNECTION TYPE 'G'.

2. U NEED TO FILL TARGET HOST, PATH AND SERVICE NUMBER

3. NO NEED FOR JAVA TO BE OPEN

0 Kudos

For doing this do i need to set up RFC Connection in SM59?

Yes. You have to setup RFC connection in SM59.

what are neccesary things i have to fill it in SM59?

Give me the entire Details.

Create a new RFC desination.

Enter in RFC destination : Your application server name or IP.

Connection Type : G

3.Remote server (JAVA) MUST be "open" while setting up RFC connection in SAP? Please give more details.

If you are connecting ABAP from SAP i.e. Inbound connection remote server (JAVA) need not be "open".

If it is outbound connecting JAVA from SAP it needs to be open.

In your case it is inbound hence it is not needed to be open.

regards,

Wenceslaus.

Former Member
0 Kudos

Hi,

Yes. You will have to create RFC destination 'XYZ'.

If your target system is R3 then, no need to enter anything in gateway host & services. But if it is an external third party system, then you will have to register the program. Gateway host will be the IP address of the server or give the remote system name or IP Address.

Under logon security tab, give the logon credentials for the target system.

Hope this will help you...

regards,

satish