Application Development 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: 

RFC Connection is OK but program function is not working

Former Member
0 Kudos

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

cyclingfisch_
Active Contributor
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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!

0 Kudos

Hi,

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

cheers

Jānis

0 Kudos

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

cyclingfisch_
Active Contributor
0 Kudos

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