forked from nzamani/gatewaycodepatterns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRedefine_get_entityset
45 lines (40 loc) · 1.65 KB
/
Redefine_get_entityset
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
METHOD /iwbep/if_mgw_appl_srv_runtime~get_entityset.
DATA: lv_entityset TYPE /iwbep/mgw_tech_name,
lt_entityset TYPE zcl_pr_ap_extension_mpc=>tt_openorder.
"Get Entityset Name
lv_entityset = io_tech_request_context->get_entity_set_name( ).
CASE lv_entityset.
WHEN 'OpenOrders'.
"Get Open Orders
CALL METHOD me->get_entityset_open_orders
EXPORTING
io_tech_request_context = io_tech_request_context
IMPORTING
es_response_context = es_response_context
et_entityset = lt_entityset.
* Send specific entity data to the caller interface
copy_data_to_ref(
EXPORTING
is_data = lt_entityset
CHANGING
cr_data = er_entityset
).
WHEN OTHERS.
CALL METHOD super->/iwbep/if_mgw_appl_srv_runtime~get_entityset
EXPORTING
iv_entity_name = iv_entity_name
iv_entity_set_name = iv_entity_set_name
iv_source_name = iv_source_name
it_filter_select_options = it_filter_select_options
it_order = it_order
is_paging = is_paging
it_navigation_path = it_navigation_path
it_key_tab = it_key_tab
iv_filter_string = iv_filter_string
iv_search_string = iv_search_string
io_tech_request_context = io_tech_request_context
IMPORTING
er_entityset = er_entityset
es_response_context = es_response_context.
ENDCASE.
ENDMETHOD.