cancel
Showing results for 
Search instead for 
Did you mean: 

how to do rfc from Report Program?

Former Member
0 Kudos

how to do rfc from Report Program?

I only know how to make a function module to rfc.

PLease guide me . Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi !

Only function modules can be called by RFC.

What you can do is to capsule the Report in a function module.

That means: create a rfc callable function and do a

"SUBMIT" to your report within that function module.

Regards

Rainer

Some forum points would be fine if that helped you a bit...

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi,

Requesting you to close the post if answers have helped you in finding solution.

Regds,

Akshay

Former Member
0 Kudos

Hai follow the bellow 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

naimesh_patel
Active Contributor
0 Kudos

Sorry, ignore this message

naimesh_patel
Active Contributor
0 Kudos

Hello,

Create a FM in se37, and in <b>attributes select Remote Enabled module.</b>

Call function from Report with destination.

Regards,

Naimesh

Former Member
0 Kudos

Hi,

Here an example to call RFC Function from Report:

DATA: INFO LIKE RFCSI, "Importing parameter

MSG_TEXT(80) TYPE C. "Message text

...

  • Synchronous call to function module RFC_SYSTEM_INFO

CALL FUNCTION 'RFC_SYSTEM_INFO'

DESTINATION 'NONE'

IMPORTING

RFCSI_EXPORT = INFO

EXCEPTIONS

COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT

SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT.

IF SY-SUBRC NE 0.

WRITE: MSG_TEXT.

ELSE.

WRITE: 'O.K.'.

ENDIF.

...

Regards,

JR

Former Member
0 Kudos

Hi,

Hope you want a syntax to call this RFC funciton module.

It is -

Call Funciton 'FUNC' Destination l_dest.

Where 'l_dest' is destination where you want to call tis RFC function module.

Regds,

Akshay

Former Member
0 Kudos

Do you want to call RFC from report program or make report program as RFC?

You cannot create report program as RFC callable. You need to convert report program into FM.