on 04-21-2006 7:02 AM
how to do rfc from Report Program?
I only know how to make a function module to rfc.
PLease guide me . Thanks!
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Requesting you to close the post if answers have helped you in finding solution.
Regds,
Akshay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, ignore this message
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Create a FM in se37, and in <b>attributes select Remote Enabled module.</b>
Call function from Report with destination.
Regards,
Naimesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.