Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Error while executing webservice after SAP support pack upgrade to SPS-13

$
0
0

Hi .

We have webservice created and hosted in Middleware (XI) calling the RFC of SAP HR system . We recently upgraded the SAP HR system to

two support pack levels. when we are calling exisitng RFC's thru webservice call which is hosted in XI system.. it is giving following error message--

We have multiple method calls like-  GetTransactions, Submit , Delete , Edit etc.

 

When we are calling one of the method of WS that is GetTransactions from WsNavigator , it is giving dump in SAP R3

st22 dump message is attached -

 

 

Null Object Reference pointing to Nothing .

 

OBJECTS_OBJREF_NOT_ASSIGNED    11 51FF6B0223B25FD7E10000000A481593

Error in ABAP Program --

 

Program CL_PT_REQ_MESSAGE_HANDLER=====CP   had tobe terminated .

 

   method if_pt_req_message_handler~get_messages.
*
* Get all messages and transform them as an option.
*

  data: l_message     type bapiret2,
        message_wa    type ptreq_message_struc,
        lcl_initiator type ref to if_pt_req_a_wf,
        lcl_pernr     type pernr_d,
        lcl_webmo     type webmo.

  data:
    exit_gen          type ref to pt_gen_req.

  ex_message_tab = message_tab.

*---Transform any messages?
  check im_transform_msg is not initial and ex_message_tab is not initial.

*---Determine pernr to transform messages
  if im_pernr is initial.

    call method application->get_initiator
      importing
        ex_initiator = lcl_initiator.

    lcl_pernr = lcl_initiator->pernr.
    if lcl_pernr is initial.
*---ERROR: PERNR not available --> f.e. Admin --> ok
      raise pernr_missing.
    endif.
  else.
    lcl_pernr = im_pernr.
  endif.

  call method cl_pt_req_customizing=>get_cust_messages
    exporting
      im_pernr            = lcl_pernr
      im_appid            = im_appid
    changing
      ch_message_tab      = ex_message_tab
    exceptions
      it0001_not_found    = 1
      it0008_not_found    = 2
      missing_customizing = 3
      others              = 4.
  if sy-subrc <> 0.
*   do nothing, wrong customizing
  endif.

* call exit and read customizing
  exit_gen = application->functional_exit_gen.

* <Customer Exit> Filter Next Processor Tab

  call badi exit_gen->modify_application_messages
    exporting
      im_appid       = im_appid
    changing
      ch_message_tab = ex_message_tab.



endmethod.

 

 

 

Above line mentioned in Red color is giving error.   What can be the reason ?  When we run the SProxy method in SAP R3 , there is no error,

it is only when calling webservice method.

 

Other webservices with only one method is working after upgrade. Issue is with multiple method webservice.

Pls. help .

 

 

 

 

-Tejashri


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>