
<Record Type="UI.DataFieldForAction">
<PropertyValue Property="Action" String="ZJBE_DEMO_SMART_SO_SRV.ZJBE_DEMO_SMART_SO_SRV_Entities/CopySO"/>
<PropertyValue Property="Label" String="{@i18n>COPY_SALE}"/>
<PropertyValue Property="Inline" Bool="true"/>
</Record>
METHOD /iwbep/if_mgw_appl_srv_runtime~execute_action.
DATA(lo_msg_container) = me->mo_context->get_message_container( ).
DATA ls_response TYPE zcl_jbe_demo_smart_so_mpc=>ts_soheader.
CASE iv_action_name.
WHEN 'CopySO'.
lo_msg_container->add_message_text_only(
EXPORTING
iv_msg_type = /iwbep/cl_cos_logger=>success " Message Type - defined by GCS_MESSAGE_TYPE
iv_msg_text = 'The copy is a success' " Message Text
iv_entity_type = 'SOHeader' " Entity type/name
iv_message_target = '/#TRANSIENT#' " Target (reference) (e.g. Property ID) of a message
).
RAISE EXCEPTION TYPE /iwbep/cx_mgw_busi_exception
EXPORTING
message_container = lo_msg_container.
WHEN OTHERS.
ENDCASE.
ENDMETHOD.
METHOD /iwbep/if_mgw_appl_srv_runtime~execute_action.
DATA(lo_msg_container) = me->mo_context->get_message_container( ).
DATA ls_response TYPE zcl_jbe_demo_smart_so_mpc=>ts_soheader.
CASE iv_action_name.
WHEN 'CopySO'.
lo_msg_container->add_message_text_only(
EXPORTING
iv_msg_type = /iwbep/cl_cos_logger=>warning " Message Type - defined by GCS_MESSAGE_TYPE
iv_msg_text = 'The copy is a success' " Message Text
iv_entity_type = 'SOHeader' " Entity type/name
iv_message_target = '/#TRANSIENT#' " Target (reference) (e.g. Property ID) of a message
).
RAISE EXCEPTION TYPE /iwbep/cx_mgw_busi_exception
EXPORTING
message_container = lo_msg_container.
WHEN OTHERS.
ENDCASE.
ENDMETHOD.
METHOD /iwbep/if_mgw_appl_srv_runtime~execute_action.
DATA(lo_msg_container) = me->mo_context->get_message_container( ).
DATA ls_response TYPE zcl_jbe_demo_smart_so_mpc=>ts_soheader.
CASE iv_action_name.
WHEN 'CopySO'.
lo_msg_container->add_message_text_only(
EXPORTING
iv_msg_type = /iwbep/cl_cos_logger=>info " Message Type - defined by GCS_MESSAGE_TYPE
iv_msg_text = 'The copy is a success' " Message Text
iv_entity_type = 'SOHeader' " Entity type/name
iv_message_target = '/#TRANSIENT#' " Target (reference) (e.g. Property ID) of a message
).
RAISE EXCEPTION TYPE /iwbep/cx_mgw_busi_exception
EXPORTING
message_container = lo_msg_container.
WHEN OTHERS.
ENDCASE.
ENDMETHOD.
METHOD /iwbep/if_mgw_appl_srv_runtime~execute_action.
DATA(lo_msg_container) = me->mo_context->get_message_container( ).
DATA ls_response TYPE zcl_jbe_demo_smart_so_mpc=>ts_soheader.
CASE iv_action_name.
WHEN 'CopySO'.
lo_msg_container->add_message_text_only(
EXPORTING
iv_msg_type = /iwbep/cl_cos_logger=>error " Message Type - defined by GCS_MESSAGE_TYPE
iv_msg_text = 'The copyhas failed.' " Message Text
iv_entity_type = 'SOHeader' " Entity type/name
iv_message_target = '/#TRANSIENT#' " Target (reference) (e.g. Property ID) of a message
).
RAISE EXCEPTION TYPE /iwbep/cx_mgw_busi_exception
EXPORTING
message_container = lo_msg_container.
WHEN OTHERS.
ENDCASE.
ENDMETHOD.
METHOD /iwbep/if_mgw_appl_srv_runtime~execute_action.
DATA ls_response TYPE zcl_jbe_demo_smart_so_mpc=>ts_soheader.
CASE iv_action_name.
WHEN 'CopySO'.
" We assume that 34 is a newly created object
ls_response-vbeln = '34'.
me->copy_data_to_ref(
EXPORTING
is_data = ls_response
CHANGING
cr_data = er_data
).
WHEN OTHERS.
ENDCASE.
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 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 | |
4 | |
4 |