Skip to Content
0

ME_PROCESS_REQ_CUST~PROCESS_ITEM Activity Number (ESLL-SRVPOS)

Jul 27, 2017 at 05:18 AM

118

avatar image
Former Member

hi friends ,

I have problem to get Activity Number (ESLL-SRVPOS) in me_process_req_cust (me51n).

    DATA item TYPE mereq_item.
    CALL METHOD im_item->get_data
      RECEIVING
        re_data = item.

i use above code to get item level details but i cant to find activity number related field in item (structure).

Thanks and Regards,

B.Umayaraj

capture.jpg (37.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Raymond Giuseppi
Jul 27, 2017 at 05:46 AM
1

Did you call the method IF_SERVICES_MM~GET_SRV_DATA of CL_REQ_ITEM_PROXY_MM?

DATA: lo_services TYPE REF TO if_services_mm.
* Assign
  TRY.
      lo_services ?= im_item.
    CATCH cx_sy_move_cast_error.
      RETURN.
  ENDTRY.
* Get data from Services and Limits tabs
  CALL METHOD lo_services->get_srv_data
    EXPORTING
      im_packno = ls_item-packno
    IMPORTING
      ex_esll   = lt_esll
      ex_esuh   = lt_esuh
      ex_esuc   = lt_esuc
      ex_eskl   = lt_eskl
    EXCEPTIONS
      failure   = 1
      OTHERS    = 2.
Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

hi raymond ,

thanks for your quick reply ,i try with lo_services->get_srv_data this method .

your suggestion method is work well after creating pr (scenario).

i need to validate service number field while creating pr.


Thanks and Regards,

B.Umayaraj

0