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

RFC Connection is OK but program function is not working

Former Member
0 Likes
1,247

Hello SAP Gurus,

I am having a problem right now...we are connected to another SAP server, connection is. Testing is done through SM59 and I used RFC_PING also. Both sides can ping servers but function program is not working.

Any ideas what might be causing the problem?
Thank you very much!

1 ACCEPTED SOLUTION
Read only

cyclingfisch_
SAP Mentor
SAP Mentor
0 Likes
954

Hi,

you should also check if there are any shortdumps on the system you called (transaction ST22).

Remote debugging might also help. You can enable remote debugging within the debugger settings on your calling system. Precondition: you need a user and the debugging permissions on the called system.

Cheers,

Martin

Hello SAP Gurus,

I am having a problem right now...we are connected to another SAP server, connection is. Testing is done through SM59 and I used RFC_PING also. Both sides can ping servers but function program is not working.

Any ideas what might be causing the problem?
Thank you very much!

4 REPLIES 4
Read only

Former Member
0 Likes
954

correction on the sentence...we are connected to another SAP server, connection is ok as per SM59 testing. But function program is not working....


Any ideas what might be causing the problem?

Thank you very much!

Read only

0 Likes
954

Hi,

What exactly do you mean by "function program", in what way is it not working..?

cheers

Jānis

Read only

0 Likes
954

Hi,

I assume you mean you are calling a 'remote enabled function module'.

Check that it is exists on the remote system and is remote-enabled first!

When you call it, you can trap the error messages this way:

data: lv_msgtxt type BAPI_MSG.

CALL FUNCTION 'ZCA_CREATE_DISPUTE_CASE'

  DESTINATION lv_crm_dest

(..)

  EXCEPTIONS

    COMMUNICATION_FAILURE     = 1 MESSAGE lv_msgtxt

    SYSTEM_FAILURE                   = 2 MESSAGE lv_msgtxt

    CREATION_FAILED                   = 3

    SAVE_FAILED                          = 4

    OTHERS                                   = 5

          .

cheers

Paul

Read only

cyclingfisch_
SAP Mentor
SAP Mentor
0 Likes
955

Hi,

you should also check if there are any shortdumps on the system you called (transaction ST22).

Remote debugging might also help. You can enable remote debugging within the debugger settings on your calling system. Precondition: you need a user and the debugging permissions on the called system.

Cheers,

Martin