‎2007 Jul 06 1:29 PM
Hi people,
I have developed a function module in R/3 system and wants to access it in BW system. While checking syntax, it do not give any error. But when I try to execute the function module in BW, I get short dump saying please check the name of the Function Module in SE37.
The call of RFC is like :
CALL FUNCTION 'ZFM_POUSR' DESTINATION dest
IMPORTING
table = itab
EXCEPTIONS
system_failure = 1
communication_failure = 2
cx_sy_dyn_call_illegal_type = 3
OTHERS = 4.
IF sy-subrc <> 0.
EXIT.
ENDIF.
Please suggest solution.
Thanks in Advance.
Nitin
‎2007 Jul 06 1:39 PM
Hi,
http://help.sap.com/saphelp_nw04/helpdata/en/13/90a594a1ab0841bbb731bdec1a7fd7/content.htm - check this link for handling exception when calling RFCs
call the function like below
data: list like UINFO occurs 0 with header line .
CALL FUNCTION 'TH_USER_LIST' destination <dest>
TABLES
list = list
exceptions
communication_failure = 1
system_failure = 2 .
if sy-subrc ne 0 .
handle error here
endif .
<b>Reward points</b>
Regards
‎2007 Jul 06 1:37 PM
Hi Nitin,
There are two things which you may not done.
1. forgot to Activate the RFC. or
2. Does not maintained RFC destination properly like giving wrong logical system name etc....
3. might have define the RFC as normal FM instead of Remote FM.
first check these....
-Satish
Message was edited by:
Satish Panakala
‎2007 Jul 06 1:52 PM
Hi Satish,
Thanks for reply.
Here are answers to your suggestions.
1. RFC is Activated and running proerly in R/3 System.
2. RFC destination has been maintained in SM59.
3. Can't use normal function module as I have pass data from R/3 to BW system.
‎2007 Jul 06 1:39 PM
have you maintained the RFC destination in BW syatem in SM59??
‎2007 Jul 06 1:39 PM
Hi,
http://help.sap.com/saphelp_nw04/helpdata/en/13/90a594a1ab0841bbb731bdec1a7fd7/content.htm - check this link for handling exception when calling RFCs
call the function like below
data: list like UINFO occurs 0 with header line .
CALL FUNCTION 'TH_USER_LIST' destination <dest>
TABLES
list = list
exceptions
communication_failure = 1
system_failure = 2 .
if sy-subrc ne 0 .
handle error here
endif .
<b>Reward points</b>
Regards
‎2007 Jul 06 1:40 PM
Make sure you have given the correct destination 'dest' and the correct Remote FM name. Also verify the FM is remote enabled.
You may also want to test the 'dest' destination from BW (T.Code SE59) and check if the connection/authorizations is ok.
Regards,
Anish Thomas
‎2007 Jul 06 2:24 PM
Hi,
Check in SAP r/3 SE37--> attributes tab enable the RFC enabled check box and activate.
aRs