DATA: lo_services TYPE REF TO if_services_mm,
ls_item TYPE mereq_item,
lt_esll TYPE mmsrv_esll,
lt_esuh TYPE mmsrv_esuh,
lt_esuc TYPE mmsrv_esuc,
lt_eskl TYPE mmsrv_eskl.
* Get current item data
CALL METHOD im_item->get_data
RECEIVING
re_data = ls_item.
TRY.
* Casting
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
* im_limit = abap_true
IMPORTING
ex_esll = lt_esll
ex_esuh = lt_esuh
ex_esuc = lt_esuc
ex_eskl = lt_eskl
EXCEPTIONS
failure = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |