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 Event

Former Member
0 Kudos

Hello,

I need to start a SAP event from RFC destination. Any ideas, please ?

Points are guaranteed:)

Svetlin

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Svetlin

If this is SAP to SAP rfc connection .

then create RFC destinate in the source system for the target system using Tcode SM59 .

use this destibnation while calling RFC object .

Example:

suppose You have created destination XYZ in sm59

call function 'ABC'

Exporting

A =

Importing

b =

Tables

Tab =

Excemptions.

Replace the above FM calling statement from following

call function 'ABC' destination XYZ

Exporting

A =

Importing

b =

Tables

Tab =

Excemptions.

The RFC enabled function should be available in both system Source as well as target .

Hope it will help you

regards

Siddharth

Message was edited by: siddharth neekhra

8 REPLIES 8

hymavathi_oruganti
Active Contributor
0 Kudos

can u be a bit clear about ur question, u want to trigger a event in a program in a remote system?

Former Member
0 Kudos

Hi Svetlin

If this is SAP to SAP rfc connection .

then create RFC destinate in the source system for the target system using Tcode SM59 .

use this destibnation while calling RFC object .

Example:

suppose You have created destination XYZ in sm59

call function 'ABC'

Exporting

A =

Importing

b =

Tables

Tab =

Excemptions.

Replace the above FM calling statement from following

call function 'ABC' destination XYZ

Exporting

A =

Importing

b =

Tables

Tab =

Excemptions.

The RFC enabled function should be available in both system Source as well as target .

Hope it will help you

regards

Siddharth

Message was edited by: siddharth neekhra

Former Member
0 Kudos

Hi,

Is ur current/remote system R/3 or R/2 or Java application..

Regards,

Tanveer.

0 Kudos

Hi,

I want to trigger a SAP event, maintainted in SAP via tr.code SM62, from external system (non-SAP application). Is there any executable program, as this one starting inbound file Idocs, to trigger a SAP event.

Svetlin

Former Member
0 Kudos

HI

GOOD

GO THROUGH THIS LINK I HOPE THIS WILL GIVE YOU SOME IDEA TO SOLVE YOUR PROBLEM.

http://www.oracle.com/technology/products/integration/adapters/pdf/adapter-Tutorial4-ReceivingSAPIDO...

THANKS

MRUTYUN

0 Kudos

you can trigger the event using FM BP_EVENT_RAISE but this is not RFC enabled so you cannot call it from other system.

what you could do is wrap this Function with RFC and call the custom RFC

Regards

Raja

0 Kudos

Hi Raja,

This was one of my suggestions:)

Is there another way ?

Svetlin

Former Member
0 Kudos

Hai Svetlin

Go through the following Steps

Sending system side(SEND--800)

-


Create function module by using Tcode SE37 or SE80

goto attributes select remote function

activate

Receiving system side(RECE--000)

-


goto Tcode SM59

here select the R/3 Connections-->click on Create Button

give RFC Desstination : TESTRFC

Connection Type : 3 for Connecting two systems

Description : Some meaningful Description

Press enter

give Target system Name : SEND

Language : EN

Client : 800

user Name : sapuser

Password : xxxxxx

save this connections & click on test connections(f8)

& Remote logon(f7)---> it will open a session

with client 800 that is your sending system

then only your RFC is correct

create a report in SE38 Tcode

data : c1 type i.

data : itab like mara occurs 0 with header line.

call function 'ZRFCFM' destination 'TESTRFC' --->Function Module 'ZRFCFM' your just create at Sending system

exporting

importing

exceptions.

Thanks & Regards

Sreenivasulu P