cancel
Showing results for 
Search instead for 
Did you mean: 

asychronous proxy does not work?

Former Member
0 Kudos

Hi,

I created asychronous abap proxy in ecc 6.0 system (with sproxy transaction).

It generated and i used in an abap program like below.

It runs with no error message, but does not send anything to XI 3.0 system.

I check smq1 , but there is nothing in it.

must it need some parameter setting on ecc system?

Thanks.

Not: There is no problem with sychronous proxy.

Abap code (calling asychronous proxy)

REPORT  Z_XI_FORD_MSG_ASYNC.
data:
lo_clientproxy type ref to ZYCO_MI_MSG,
ls_request type ZYMT_MSG,

ls_line type zydt_msg-konssevk with header line,

syst_ex type ref to cx_ai_system_fault,
appl_ex type ref to cx_ai_application_fault.

data: tbl like zxi_t_frdkons occurs 0 with header line.

create object lo_clientproxy.

CALL FUNCTION 'ZXI_GET_FORDKONS'
  TABLES
    TKSEV = tbl.

loop at tbl.
  clear ls_line.
  ls_line-irsnum = tbl-vbeln.
  ls_line-irstar = tbl-wadat_ist.
  ls_line-tahtar = tbl-valor.
  ls_line-stokkod = tbl-matnr.
  ls_line-sipno = tbl-vbelv.
  ls_line-stmiktar = tbl-lfimg.
  ls_line-birimfiyat = tbl-sbrmf.
  ls_line-dovizturu = tbl-waers.
  ls_line-bobinno = tbl-charg.
  ls_line-sevkno = tbl-vbelt.
  Append ls_line to ls_request-mt_msg-konssevk[].
endloop.

try.

  call method lo_clientproxy->execute_asynchronous
  exporting
      output = ls_request.

  catch cx_ai_system_fault into syst_ex.
      if syst_ex->ERRORTEXT ne space.
        write : syst_ex->ERRORTEXT.
      endif.
endtry.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

add "commit work" at end of program.

Former Member
0 Kudos

I added commit work and wait.

I called abap proxy that time it generated message below

Error while sending by HTTP (error code: 112, error text: HTTPIO_PLG_ICM_CONNECT_FAILED-Fehlermeldung beim Senden der Daten.)

There is flag in R/3 sxmb_moni as "Automatic restart"

Thanks.

abhay_rajhans2
Contributor
0 Kudos

Hi cml,

You might have used RFC for ABAP proxy connection.

Check the RFC connection in SM59 transaction.

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

check SXMB_MONI of R3 - do you see a successful message ?

Former Member
0 Kudos

Hi,

It has a flag "message recorded (commit missing)" in R/3 sxmb_moni.

Thanks.

former_member208856
Active Contributor
0 Kudos

write

COMMIT WORK.

after ENDTRY.