Skip to Content
avatar image
Former Member

ME_PROCESS_REQ_CUST~PROCESS_ITEM Activity Number (ESLL-SRVPOS)

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 27, 2017 at 05:46 AM

    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.
    Add comment
    10|10000 characters needed 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