Skip to Content
0
Former Member
May 28, 2007 at 07:39 AM

RFC Data not sending to Destination ( com.sap.aii.af.rfc.afcommunication.Rf

40 Views

Hi Experts,

i have created a TCP/IP connection in sm59 as ID4 with R/3 details. now i am calling a function module like this.

  call function 'Z_CBT_RFC_SALESPERSON'
       exporting
            p_sdate       = p_sdate
            p_edate       = p_edate
       tables
            isalesperson  = i_salesperson
       exceptions
            no_data_found = 1
            others        = 2.

  if sy-subrc <> 0.
    message e111(zi) with text-101.
  endif.
  if not i_salesperson[] is initial.

    call function 'Z_CBT_RFC_SALESPERSON' in background task destination
                                             'ID4'
         exporting
              p_sdate      = p_sdate
              p_edate      = p_edate
         tables
              isalesperson = i_salesperson.

    write: text-103.

  else.

    message e111(zi) with text-101.

    exit.

  endif.

  commit work .

i am getting a problem that some times the data is exported to XI system but some times not.

and in sm58 i am getting an error message for this execution as

KOMMP2       Z_CBT_RFC_SALESPERSON         ID4           05/28/2007 02:30:10 <b>Commit fault: com.sap.aii.af.rfc.afcommunication.R</b> 95B7F6ADB04C465A8502002E brcpfd04 SE38 ZSIOPSP                                 105  0000

Commit fault:

com.sap.aii.af.rfc.afcommunication.RfcChannelMismatchExcept

For all execution iam getting this error. Anyone call tell me how to resolve this issue.

Please suggest me, do i need any modification in the program and in connection settings.please do the needful as soon as possible.points will be awarded for all answers.

Thanks in advance.

Thanks & Regards,

Poorna