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 function module

Former Member
0 Likes
854

hi,

I have createad a program where i am using RFC function module ,while calling this function module in debugging mode, the function module in the destinstion server is not getting called.

i think the RFC destination is not defined,how to check this?

i checked in SM59 transaction in the R/3 connection it is maintained,

please suggest regarding this

7 REPLIES 7
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
825

Hi,

You can check the RFC trace using the transaction ST05.

Do activate trace.

Execute the program

Do Deactivate trace.

Display trace.

Regards,

Sesh

Read only

Former Member
0 Likes
825

Have u used the statement

call FM destination "DESTINATION NAME IN SM59'.

While in debugging , press F6 when control reaches th eFM instaed of F5 and check sy-subrc , so that u will come to know if it is succesfully called or not..

revrt back,

regards,

Naveen

Read only

0 Likes
825

Hi Naveena.

I have debugged my program as u told ,after executing the FM (by F6),sy-subrc = 0,any idea?

Read only

0 Likes
825

Hi priya,

If sy-subrc = 0, then it should be calling RFC successfully. Is it not returning any values??Try to pass some other values and check if it is returning any values.

Thanks,

Keerthi.

Read only

0 Likes
825

Hi Priya,

For ur information Iam NAVEEN and not Naveena.

Is that RFC FM should return any value after execution?

As u said Sy-subrc = 0 , then it is called succesfully.

revrt back.

Regards,

Naveen .( NOT Naveena)

Read only

Former Member
0 Likes
825
CALL FUNCTION 'Z_TEST'
    DESTINATION cl_hrrcf_oix_util=>rfc_destination
    EXPORTING
    IMPORTING
    EXCEPTIONS
      system_failure = 1
      OTHERS         = 2.
  IF sy-subrc <> 0.
  ENDIF.

Check T77S0 table and give GSVAL value as destination system and check whether it has value or not.

If there is no value, ask the basis to create that value.

Regards

Kannaiah.

Read only

Former Member
0 Likes
825

Hi Priya,

pass the destination id( from SM59) while calling the RFC like:

CALL FUNCTION 'ZZ_RFC' DESTINATION DG__DEST.

Thanks,

Keerthi.