METHOD multiinputset_get_entityset.
*** --- Data Declarations
DATA:lr_serial TYPE RANGE OF z_si.
**-- Read the filter values filled from URL based on the user search
LOOP AT it_filter_select_options INTO DATA(ls_filter).
CASE ls_filter-property .
*** - -Serial Number
WHEN 'SerialNumber'.
LOOP AT ls_filter-select_options INTO DATA(ls_fil).
APPEND INITIAL LINE TO lr_serial
ASSIGNING FIELD-SYMBOL(<fs_serial>).
** -- Serial Number to upper case
<fs_serial>-low = to_upper( ls_fil-low ).
<fs_serial>-option = ls_fil-option.
<fs_serial>-sign = ls_fil-sign.
ENDLOOP.
ENDCASE.
ENDLOOP.
*** --- Get Details
SELECT ebeln ebelp ham_id
txz01 serial asset_tag
status mfctr_name model_name
deplymt_type asset_type
FROM zham_details
INTO TABLE et_entityset
WHERE serial IN lr_serial.
IF sy-subrc EQ 0.
** -- Inline Count
es_response_context-inlinecount = lines( et_entityset ).
** -- Paging
CALL METHOD /iwbep/cl_mgw_data_util=>paging
EXPORTING
is_paging = is_paging
CHANGING
ct_data = et_entityset.
ELSE.
*** --- Error Message
RAISE EXCEPTION TYPE /iwbep/cx_mgw_busi_exception
EXPORTING
textid = /iwbep/cx_mgw_busi_exception=>business_error
message = lc_serial.
ENDIF.
ENDMETHOD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
7 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |