Application Development and Automation 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: 
Read only

Short dump while calling RFC

former_member434229
Active Participant
0 Likes
2,002

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,444

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,444

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

Read only

0 Likes
1,444

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.

Read only

Former Member
0 Likes
1,444

have you maintained the RFC destination in BW syatem in SM59??

Read only

Former Member
0 Likes
1,445

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

Read only

former_member150733
Contributor
0 Likes
1,444

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

Read only

former_member194669
Active Contributor
0 Likes
1,444

Hi,

Check in SAP r/3 SE37--> attributes tab enable the RFC enabled check box and activate.

aRs