cancel
Showing results for 
Search instead for 
Did you mean: 

Remote function call (RFC) for WS_DELIVERY_UPDATE fails w/o error message

0 Kudos

Dear Experts,

Iu2019m using WS_DELIVERY_UPDATE to post goods issue against outgoing delivery. SE37 works fine.

RFC call from external program with the same parameters fails without returning any message.

It aborts during call and after that it becomes invalid.

Also calling BAPI_TRANSACTION_COMMIT does not help.

Any idea why SE37 works fine but RFC fails?

Anything I am missing?

Many thanks

Regards

JW

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member190578
Participant

Why user are answering to questions which are older than 7 years?

Former Member
0 Kudos

We had the exact same issue.  SE37 worked.  Remote call from mobile app failed.  We got it to work via following FM instead:

ls_header-deliv_numb   = p_delivery.

  ls_control-deliv_numb  = p_delivery.

  ls_control-post_gi_flg = 'X'.



  LOOP AT pt_serno INTO ls_serno.

    MOVE: p_delivery      TO ls_serial-deliv_numb,

          ls_serno-rfpos  TO ls_serial-itm_number,

          ls_serno-sernr  TO ls_serial-serialno.

    APPEND ls_serial TO lt_serial.

  ENDLOOP.



  CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'

    EXPORTING

      header_data    = ls_header

      header_control = ls_control

      delivery       = p_delivery

    TABLES

      return         = lt_return

      item_serial_no = lt_serial.



  LOOP AT lt_return INTO ls_return

       WHERE id = 'E'.

    EXIT.

  ENDLOOP.



  IF sy-subrc NE 0.

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

      EXPORTING

        wait = 'X'.

Former Member
0 Kudos

I regret to inform this had unintended consequences.  This FM updates LIKP-VLSTK, it means its from a decentralized system, so it won’t let you reverse PGI (VL09) in ECC.  We are checking other options.

Jelena
Active Contributor
0 Kudos

There could be many reasons, I'd suggest to get your Basis admin involved. Take a look at the ABAP dump (ST22), update termination (SM13) or RFC errors (SM58). Although I doubt you'll find something inside SAP, since it seems that RFC call itself fails.

This function is not a BAPI, so BAPI_TRANSACTION_COMMIT won't do any good. All it does is COMMIT WORK actually.