<?xml version="1.0" encoding="utf-16"?>
<WDYN COMPONENT_NAME="ZMC_BC_PRIJEM" VERSION="A" TYPE="0" CMP_CONTROLLER="COMPONENTCONTROLLER" CMP_INTERFACE="COMPONENTINTERFACE" DISPLAY_NAME="ZMC_BC_PRIJEM" AUTHOR="CZMICYP" CREATEDON="20140311" CHANGEDBY="CZMICYP" CHANGEDON="20140507" GENDATE="20140822" GENTIME="134813" CONFIG_EXPL_PROP="0" CONFIG_IMPL_PROP="0" P13N_EXPL_PROP="0" P13N_IMPL_PROP="0" ASSISTANCE_CLASS="ZCL_ZMC_TERMINAL">
 <wdy_componentt COMPONENT_NAME="ZMC_BC_PRIJEM" LANGU="C" DESCRIPTION="Příjem materiálu k objednávkce"/>
 <wdy_compo_usage COMPONENT_NAME="ZMC_BC_PRIJEM" COMPO_USAGE_NAME="USAGE_SO01" VERSION="I" USED_COMPONENT="WDR_SELECT_OPTIONS" CARDINALITY="00" USAGE_TYPE="CL_WDY_MD_COMPONENT_USAGE"/>
 <wdy_compo_usage COMPONENT_NAME="ZMC_BC_PRIJEM" COMPO_USAGE_NAME="USAGE_SO02" VERSION="I" USED_COMPONENT="WDR_SELECT_OPTIONS" CARDINALITY="00" USAGE_TYPE="CL_WDY_MD_COMPONENT_USAGE"/>
 <view_definition COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" VERSION="A" TYPE="CL_WDY_MD_VIEW" VIEW_TYPE="00" LIFESPAN="0" VIEW_CONTROLLER="VIEW01" ROOT_UI_CONT="ROOTUIELEMENTCONTAINER" DISPLAY_NAME="VIEW01" AUTHOR="CZMICYP" CREATEDON="20140311" CHANGEDBY="CZMICYP" CHANGEDON="20140822" VISIBILITY="00">
  <wdy_viewt COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" LANGU="C" DESCRIPTION="Input view"/>
  <wdy_iobound_plug COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" PLUG_NAME="IN_PLUG01" VERSION="I" PLUG_TYPE="CL_WDY_MD_INBOUND_PLUG" IN_PLUG_TYPE="0" OUT_PLUG_TYPE="0" DISPLAY_NAME="IN_PLUG01"/>
  <wdy_iobound_plgt COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" PLUG_NAME="IN_PLUG01" LANGU="C" DESCRIPTION="back plug from view 02"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BACK" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_BUTTON" DISPLAY_NAME="BACK" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="BUTTON" PARENT_NAME="BUTTONS1" AGGREGATION_NAME="BUTTONS"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BUTTONS1" VERSION="I" ELEMENT_POSITION="3 " UI_ELEMENT_TYPE="CL_WDY_MD_BUTTON_ROW" DISPLAY_NAME="BUTTONS1" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="BUTTON_ROW" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="CHILDREN"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BUTTONS1_LAYOUT_DATA" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_GRID_DATA" DISPLAY_NAME="BUTTONS1_LAYOUT_DATA" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="GRID_DATA" PARENT_NAME="BUTTONS1" AGGREGATION_NAME="LAYOUT_DATA"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="NEXT" VERSION="I" ELEMENT_POSITION="2 " UI_ELEMENT_TYPE="CL_WDY_MD_BUTTON" DISPLAY_NAME="NEXT" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="BUTTON" PARENT_NAME="BUTTONS1" AGGREGATION_NAME="BUTTONS"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" ELEMENT_POSITION="0 " UI_ELEMENT_TYPE="CL_WDY_MD_TRANSP_CONTAINER" DISPLAY_NAME="ROOTUIELEMENTCONTAINER" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="TRANSPARENT_CONTAINER"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER_LAYOUT" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_GRID_LAYOUT" DISPLAY_NAME="ROOTUIELEMENTCONTAINER_LAYOUT" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="GRID_LAYOUT" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="LAYOUT"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="SELSCREEN1" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_VIEW_CNT_UI_ELEMENT" DISPLAY_NAME="SELSCREEN1" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="VIEW_CONTAINER_UIELEMENT" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="CHILDREN"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="SELSCREEN1_LAYOUT_DATA" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_GRID_DATA" DISPLAY_NAME="SELSCREEN1_LAYOUT_DATA" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="GRID_DATA" PARENT_NAME="SELSCREEN1" AGGREGATION_NAME="LAYOUT_DATA"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER" VERSION="I" ELEMENT_POSITION="2 " UI_ELEMENT_TYPE="CL_WDY_MD_TIMED_TRIGGER" DISPLAY_NAME="TM_TIMER" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="TIMED_TRIGGER" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="CHILDREN"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER_LAYOUT_DATA" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_GRID_DATA" DISPLAY_NAME="TM_TIMER_LAYOUT_DATA" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="GRID_DATA" PARENT_NAME="TM_TIMER" AGGREGATION_NAME="LAYOUT_DATA"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="HOTKEY" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="IMAGE_FIRST" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="TEXT" PROPERTY_VALUE="531AEF32268D36B5E10000000A2A012F" PropText="Menu"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="TEXT_DIRECTION" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BUTTONS1" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BUTTONS1" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BUTTONS1" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BUTTONS1_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="CELL_BACKGROUND_DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BUTTONS1_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="COL_SPAN" PROPERTY_VALUE="1"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BUTTONS1_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="H_ALIGN" PROPERTY_VALUE="08"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BUTTONS1_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="SEMANTIC_COLOR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BUTTONS1_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="V_ALIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BUTTONS1_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="WIDTH" PROPERTY_VALUE="80%"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="DESIGN" PROPERTY_VALUE="03"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="HOTKEY" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="IMAGE_FIRST" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="IMAGE_SOURCE" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="TEXT" PROPERTY_VALUE="49F639800DBE7040E10000000A2A012F" PropText="Další"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="TEXT_DIRECTION" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="HEIGHT" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="IS_LAYOUT_CONTAINER" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="SCROLLING_MODE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="WIDTH" PROPERTY_VALUE="100%"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER_LAYOUT" VERSION="I" PROPERTY_NAME="CELL_PADDING" PROPERTY_VALUE="0"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER_LAYOUT" VERSION="I" PROPERTY_NAME="CELL_SPACING" PROPERTY_VALUE="0"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER_LAYOUT" VERSION="I" PROPERTY_NAME="COL_COUNT" PROPERTY_VALUE="2"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER_LAYOUT" VERSION="I" PROPERTY_NAME="STRETCHED_HORIZONTALLY" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER_LAYOUT" VERSION="I" PROPERTY_NAME="STRETCHED_VERTICALLY" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="ROOTUIELEMENTCONTAINER_LAYOUT" VERSION="I" PROPERTY_NAME="WRAPPING" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="SELSCREEN1" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="SELSCREEN1" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="SELSCREEN1" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="SELSCREEN1_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="CELL_BACKGROUND_DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="SELSCREEN1_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="COL_SPAN" PROPERTY_VALUE="2"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="SELSCREEN1_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="H_ALIGN" PROPERTY_VALUE="08"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="SELSCREEN1_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="SEMANTIC_COLOR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="SELSCREEN1_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="V_ALIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="SELSCREEN1_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="WIDTH" PROPERTY_VALUE="100%"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER" VERSION="I" PROPERTY_NAME="DELAY" PROPERTY_VALUE="0"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="CELL_BACKGROUND_DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="COL_SPAN" PROPERTY_VALUE="1"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="H_ALIGN" PROPERTY_VALUE="08"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="SEMANTIC_COLOR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="V_ALIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="WIDTH" PROPERTY_VALUE="20%"/>
  <wdy_view_cntr COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" CONTAINER_NAME="SELSCREEN1" VERSION="I" UI_ELEMENT_NAME="SELSCREEN1" DISPLAY_NAME="SELSCREEN1"/>
  <wdy_ui_ctx_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER" BINDING_NAME="DELAY" VERSION="I" UI_ELEM_PROPERTY="DELAY" BOUND_CTX_NODE="TIMER_CONF" BOUND_CTX_ATTRIB="REFRESH_RATE"/>
  <wdy_ui_evt_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="BACK" BINDING_NAME="ON_ACTION" VERSION="I" UI_ELEM_EVENT="ON_ACTION" BOUND_ACTION="BT_MENU"/>
  <wdy_ui_evt_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="NEXT" BINDING_NAME="ON_ACTION" VERSION="I" UI_ELEM_EVENT="ON_ACTION" BOUND_ACTION="BUTTON_NEXT"/>
  <wdy_ui_evt_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW01" ELEMENT_NAME="TM_TIMER" BINDING_NAME="ON_ACTION" VERSION="I" UI_ELEM_EVENT="ON_ACTION" BOUND_ACTION="ON_TIMER"/>
  <controller_definition COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" VERSION="A" CONTROLLER_TYPE="01" CONTEXT="CONTEXT" DISPLAY_NAME="VIEW01" AUTHOR="CZMICYP" CREATEDON="20140311" CHANGEDBY="CZMICYP" CHANGEDON="20140822">
   <wdy_controllert COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" LANGU="C" DESCRIPTION="Input view"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="BT_MENU" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="BT_MENU" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="BUTTON_NEXT" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="BUTTON_NEXT" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="HANDLEIN_PLUG01" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_VIEW_NAME="VIEW01" REF_PLUG_NAME="IN_PLUG01" DISPLAY_NAME="HANDLEIN_PLUG01" CODE_BODY="method HANDLEIN_PLUG01 .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="ONACTIONBT_MENU" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW01" REF_CMPNAME="BT_MENU" DISPLAY_NAME="ONACTIONBT_MENU" CODE_BODY="method ONACTIONBT_MENU .



      DATA lo_w_main TYPE REF TO ig_ZMC_BC_PRIJEM .

      lo_w_main = wd_this-&gt;get_ZMC_BC_PRIJEM_ctr( ).

      lo_w_main-&gt;fire_TO_MENU_plg( ).



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="ONACTIONBUTTON_NEXT" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW01" REF_CMPNAME="BUTTON_NEXT" DISPLAY_NAME="ONACTIONBUTTON_NEXT" CODE_BODY="METHOD onactionbutton_next .



  wd_comp_controller-&gt;SO01_ON_NEXT( ).



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="ONACTIONON_TIMER" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW01" REF_CMPNAME="ON_TIMER" DISPLAY_NAME="ONACTIONON_TIMER" CODE_BODY="method ONACTIONON_TIMER .

  wd_this-&gt;refresh_page( ).

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="ON_TIMER" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="ON_TIMER" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="REFRESH_PAGE" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="REFRESH_PAGE" CODE_BODY="method REFRESH_PAGE .

  wd_comp_controller-&gt;refresh_page( ).

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOAFTERACTION" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOAFTERACTION" CODE_BODY="method WDDOAFTERACTION .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOBEFOREACTION" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOBEFOREACTION" CODE_BODY="method WDDOBEFOREACTION .

*  data lo_api_controller type ref to if_wd_view_controller.

*  data lo_action         type ref to if_wd_action.



*  lo_api_controller = wd_this-&gt;wd_get_api( ).

*  lo_action = lo_api_controller-&gt;get_current_action( ).



*  if lo_action is bound.

*    case lo_action-&gt;name.

*      when &apos;...&apos;.



*    endcase.

*  endif.

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOEXIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOEXIT" CODE_BODY="method WDDOEXIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOINIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOINIT" CODE_BODY="method WDDOINIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOMODIFYVIEW" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOMODIFYVIEW" CODE_BODY="method WDDOMODIFYVIEW .



    DATA so01 TYPE REF TO CL_WD_VIEW_CONTAINER_UIELEMENT.

    so01 ?= view-&gt;get_element( &apos;SELSCREEN1&apos; ).



    data str1 type string.

    data str2 type string.



    so01-&gt;focused(

      IMPORTING

        sub_focus = str1

        sub_cursor = str2 ).



*    so01-&gt;focus( ).



    so01-&gt;focused(

      IMPORTING

        sub_focus = str1

        sub_cursor = str2 ).



*    wd_comp_controller-&gt;mr_so01-&gt;request_focus(

*      wd_comp_controller-&gt;act_focus ).



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOONCONTEXTMENU" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOONCONTEXTMENU" CODE_BODY="method WDDOONCONTEXTMENU .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="HANDLEIN_PLUG01" LANGU="C" DESCRIPTION="back plug from view 02"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="ONACTIONON_TIMER" LANGU="C" DESCRIPTION="akcia spustena vyprsanim casovaca"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="ON_TIMER" LANGU="C" DESCRIPTION="akcia spustena vyprsanim casovaca"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="REFRESH_PAGE" LANGU="C" DESCRIPTION="spracovanie casovaca na urovni okna"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOAFTERACTION" LANGU="C" DESCRIPTION="Method for non-action specific operations before navigation"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOBEFOREACTION" LANGU="C" DESCRIPTION="Method for Validation of User Input"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOEXIT" LANGU="C" DESCRIPTION="Controller Clean-Up Method"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOINIT" LANGU="C" DESCRIPTION="Controller Initialization Method"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOMODIFYVIEW" LANGU="C" DESCRIPTION="Method for Modifying the View Before Rendering"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOONCONTEXTMENU" LANGU="C" DESCRIPTION="Method for Modifying the Context Menu"/>
   <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOMODIFYVIEW" PARAMETER_NAME="FIRST_TIME" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="WDY_BOOLEAN" DISPLAY_NAME="FIRST_TIME"/>
   <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOMODIFYVIEW" PARAMETER_NAME="VIEW" VERSION="I" PARAM_POSITION="2 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_VIEW" DISPLAY_NAME="VIEW"/>
   <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOONCONTEXTMENU" PARAMETER_NAME="CONTEXT_MENU_EVENT" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_CONTEXT_MENU_EVENT" DISPLAY_NAME="CONTEXT_MENU_EVENT"/>
   <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOONCONTEXTMENU" PARAMETER_NAME="CONTEXT_MENU_MANAGER" VERSION="I" PARAM_POSITION="2 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_CONTEXT_MENU_MANAGER" DISPLAY_NAME="CONTEXT_MENU_MANAGER"/>
   <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOONCONTEXTMENU" PARAMETER_NAME="MENU" VERSION="I" PARAM_POSITION="3 " DECLARATION_TYPE="3" ABAP_TYPING="1" ABAP_TYPE="CL_WD_MENU" DISPLAY_NAME="MENU"/>
   <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CTLR_USAGE_NAME="4RGVDTXUG049Z9055KYOH154F" VERSION="I" USED_CONTROLLER="COMPONENTCONTROLLER"/>
   <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CTLR_USAGE_NAME="4X48R0RKVV3UUF4M16PNKJ57Z" VERSION="I" USED_CONTROLLER="ZMC_BC_PRIJEM"/>
   <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="CONTEXT" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" NODE_POSITION="0 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" SINGLETON="X" DISPLAY_NAME="CONTEXT" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
   <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="SO01_GUI" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="1 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" DISPLAY_NAME="SO01_GUI" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
   <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="TIMER_CONF" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="2 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" SINGLETON="X" DISPLAY_NAME="TIMER_CONF" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="SO01_GUI" ATTRIBUTE_NAME="CHARG_DISABLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="CHARG_DISABLE" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="SO01_GUI" ATTRIBUTE_NAME="INSMK_DISABLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="INSMK_DISABLE" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="SO01_GUI" ATTRIBUTE_NAME="MENU_BTN_VISIBLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " DEFAULT_VALUE="01" ABAP_TYPE="WDUI_VISIBILITY" ABAP_TYPING="0" DISPLAY_NAME="MENU_BTN_VISIBLE" VALUE_HELP_ID="AUTO:WDUI_VISIBILITY" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="MAX_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="MAX_SPEED" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="MEDIUM_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="MEDIUM_SPEED" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="REFRESH_RATE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="REFRESH_RATE" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="SLOW_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="4 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="SLOW_SPEED" VALUE_HELP_MODE="0"/>
   <wdy_ctx_mapping COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CTLR_USAGE_NAME="4RGVDTXUG049Z9055KYOH154F" CTX_MAPP_NAME="4TD2VCODZOLZR75QK66UZJIUN" VERSION="I" MAPPING_TYPE="02" OWN_NODE_NAME="SO01_GUI" MAP_NODE_NAME="SO01_GUI"/>
   <wdy_ctx_mapping COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CTLR_USAGE_NAME="4RGVDTXUG049Z9055KYOH154F" CTX_MAPP_NAME="4XS9LWY5B5A7YD1HS2I0LSC33" VERSION="I" MAPPING_TYPE="02" OWN_NODE_NAME="TIMER_CONF" MAP_NODE_NAME="TIMER_CONF"/>
  </controller_definition>
 </view_definition>
 <view_definition COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" VERSION="A" TYPE="CL_WDY_MD_VIEW" VIEW_TYPE="00" LIFESPAN="0" VIEW_CONTROLLER="VIEW02" ROOT_UI_CONT="ROOTUIELEMENTCONTAINER" DISPLAY_NAME="VIEW02" AUTHOR="CZMICYP" CREATEDON="20140311" CHANGEDBY="CZMICYP" CHANGEDON="20140822" VISIBILITY="00">
  <wdy_viewt COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" LANGU="C" DESCRIPTION="List view"/>
  <wdy_iobound_plug COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" PLUG_NAME="IN_PLUG01" VERSION="I" PLUG_TYPE="CL_WDY_MD_INBOUND_PLUG" IN_PLUG_TYPE="0" OUT_PLUG_TYPE="0" DISPLAY_NAME="IN_PLUG01"/>
  <wdy_iobound_plgt COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" PLUG_NAME="IN_PLUG01" LANGU="C" DESCRIPTION="plug from view 01"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK" VERSION="I" ELEMENT_POSITION="4 " UI_ELEMENT_TYPE="CL_WDY_MD_BUTTON" DISPLAY_NAME="BACK" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="BUTTON" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="CHILDREN"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK_LAYOUT_DATA" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_ROW_HEAD_DATA" DISPLAY_NAME="BACK_LAYOUT_DATA" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="ROW_HEAD_DATA" PARENT_NAME="BACK" AGGREGATION_NAME="LAYOUT_DATA"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="CONFIRM" VERSION="I" ELEMENT_POSITION="6 " UI_ELEMENT_TYPE="CL_WDY_MD_BUTTON" DISPLAY_NAME="CONFIRM" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="BUTTON" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="CHILDREN"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="CONFIRM_LD" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_ROW_DATA" DISPLAY_NAME="CONFIRM_LD" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="ROW_DATA" PARENT_NAME="CONFIRM" AGGREGATION_NAME="LAYOUT_DATA"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_LABEL" DISPLAY_NAME="LIST_LAB" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="LABEL" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="CHILDREN"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB_LD" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_ROW_HEAD_DATA" DISPLAY_NAME="LIST_LAB_LD" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="ROW_HEAD_DATA" PARENT_NAME="LIST_LAB" AGGREGATION_NAME="LAYOUT_DATA"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_STATE" VERSION="I" ELEMENT_POSITION="2 " UI_ELEMENT_TYPE="CL_WDY_MD_TEXT_VIEW" DISPLAY_NAME="LIST_STATE" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="TEXT_VIEW" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="CHILDREN"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_STATE_LAYOUT_DATA" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_ROW_DATA" DISPLAY_NAME="LIST_STATE_LAYOUT_DATA" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="ROW_DATA" PARENT_NAME="LIST_STATE" AGGREGATION_NAME="LAYOUT_DATA"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU" VERSION="I" ELEMENT_POSITION="8 " UI_ELEMENT_TYPE="CL_WDY_MD_BUTTON" DISPLAY_NAME="MENU" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="BUTTON" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="CHILDREN"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU_LD" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_ROW_HEAD_DATA" DISPLAY_NAME="MENU_LD" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="ROW_HEAD_DATA" PARENT_NAME="MENU" AGGREGATION_NAME="LAYOUT_DATA"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="NEXT" VERSION="I" ELEMENT_POSITION="7 " UI_ELEMENT_TYPE="CL_WDY_MD_BUTTON" DISPLAY_NAME="NEXT" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="BUTTON" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="CHILDREN"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="NEXT_LAYOUT_DATA" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_ROW_DATA" DISPLAY_NAME="NEXT_LAYOUT_DATA" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="ROW_DATA" PARENT_NAME="NEXT" AGGREGATION_NAME="LAYOUT_DATA"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" VERSION="I" ELEMENT_POSITION="5 " UI_ELEMENT_TYPE="CL_WDY_MD_BUTTON" DISPLAY_NAME="PREV" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="BUTTON" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="CHILDREN"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV_LAYOUT_DATA" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_ROW_DATA" DISPLAY_NAME="PREV_LAYOUT_DATA" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="ROW_DATA" PARENT_NAME="PREV" AGGREGATION_NAME="LAYOUT_DATA"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" ELEMENT_POSITION="0 " UI_ELEMENT_TYPE="CL_WDY_MD_TRANSP_CONTAINER" DISPLAY_NAME="ROOTUIELEMENTCONTAINER" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="TRANSPARENT_CONTAINER"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER_LAYOUT" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_ROW_LAYOUT" DISPLAY_NAME="ROOTUIELEMENTCONTAINER_LAYOUT" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="ROW_LAYOUT" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="LAYOUT"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="S2" VERSION="I" ELEMENT_POSITION="3 " UI_ELEMENT_TYPE="CL_WDY_MD_VIEW_CNT_UI_ELEMENT" DISPLAY_NAME="S2" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="VIEW_CONTAINER_UIELEMENT" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="CHILDREN"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="S2_LAYOUT_DATA" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_ROW_HEAD_DATA" DISPLAY_NAME="S2_LAYOUT_DATA" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="ROW_HEAD_DATA" PARENT_NAME="S2" AGGREGATION_NAME="LAYOUT_DATA"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="TM_TIMER" VERSION="I" ELEMENT_POSITION="9 " UI_ELEMENT_TYPE="CL_WDY_MD_TIMED_TRIGGER" DISPLAY_NAME="TM_TIMER" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="TIMED_TRIGGER" PARENT_NAME="ROOTUIELEMENTCONTAINER" AGGREGATION_NAME="CHILDREN"/>
  <wdy_ui_element COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="TM_TIMER_LAYOUT_DATA" VERSION="I" ELEMENT_POSITION="1 " UI_ELEMENT_TYPE="CL_WDY_MD_ROW_DATA" DISPLAY_NAME="TM_TIMER_LAYOUT_DATA" UI_ELEM_DEF_LIB="STANDARD" UI_ELEMENT_DEF="ROW_DATA" PARENT_NAME="TM_TIMER" AGGREGATION_NAME="LAYOUT_DATA"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="DESIGN" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="HOTKEY" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="IMAGE_FIRST" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="IMAGE_SOURCE" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="TEXT" PROPERTY_VALUE="C32B4AC1D641D41198110060B0672A3C" PropText="Zpět"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="TEXT_DIRECTION" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="TOOLTIP" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="H_ALIGN" PROPERTY_VALUE="08"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="ROW_BACKGROUND_DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="ROW_DESIGN" PROPERTY_VALUE="04"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="V_GUTTER" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="CONFIRM" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="CONFIRM" VERSION="I" PROPERTY_NAME="DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="CONFIRM" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="CONFIRM" VERSION="I" PROPERTY_NAME="HOTKEY" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="CONFIRM" VERSION="I" PROPERTY_NAME="IMAGE_FIRST" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="CONFIRM" VERSION="I" PROPERTY_NAME="IMAGE_SOURCE" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="CONFIRM" VERSION="I" PROPERTY_NAME="TEXT" PROPERTY_VALUE="50B431A2329332F2E10000000A2A012F" PropText="Uložit"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="CONFIRM" VERSION="I" PROPERTY_NAME="TEXT_DIRECTION" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="CONFIRM" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB" VERSION="I" PROPERTY_NAME="DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB" VERSION="I" PROPERTY_NAME="LABEL_FOR" PROPERTY_VALUE="LIST_STATE"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB" VERSION="I" PROPERTY_NAME="TEXT" PROPERTY_VALUE="508E182BBA8412A4E10000000A2A012F" PropText="Položka"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB" VERSION="I" PROPERTY_NAME="TEXT_DIRECTION" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB" VERSION="I" PROPERTY_NAME="WIDTH" PROPERTY_VALUE="70px"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB_LD" VERSION="I" PROPERTY_NAME="H_ALIGN" PROPERTY_VALUE="08"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB_LD" VERSION="I" PROPERTY_NAME="ROW_BACKGROUND_DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB_LD" VERSION="I" PROPERTY_NAME="ROW_DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_LAB_LD" VERSION="I" PROPERTY_NAME="V_GUTTER" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_STATE" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_STATE" VERSION="I" PROPERTY_NAME="DESIGN" PROPERTY_VALUE="05"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_STATE" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_STATE" VERSION="I" PROPERTY_NAME="H_ALIGN" PROPERTY_VALUE="03"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_STATE" VERSION="I" PROPERTY_NAME="LAYOUT" PROPERTY_VALUE="01"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_STATE" VERSION="I" PROPERTY_NAME="SEMANTIC_COLOR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_STATE" VERSION="I" PROPERTY_NAME="TEXT" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_STATE" VERSION="I" PROPERTY_NAME="TEXT_DIRECTION" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_STATE" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU" VERSION="I" PROPERTY_NAME="DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU" VERSION="I" PROPERTY_NAME="HOTKEY" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU" VERSION="I" PROPERTY_NAME="IMAGE_FIRST" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU" VERSION="I" PROPERTY_NAME="TEXT" PROPERTY_VALUE="6C86878EC141D41198110060B0672A3C" PropText="Menu"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU" VERSION="I" PROPERTY_NAME="TEXT_DIRECTION" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU_LD" VERSION="I" PROPERTY_NAME="H_ALIGN" PROPERTY_VALUE="08"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU_LD" VERSION="I" PROPERTY_NAME="ROW_BACKGROUND_DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU_LD" VERSION="I" PROPERTY_NAME="ROW_DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU_LD" VERSION="I" PROPERTY_NAME="V_GUTTER" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="HOTKEY" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="IMAGE_FIRST" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="IMAGE_SOURCE" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="TEXT" PROPERTY_VALUE="49F639800DBE7040E10000000A2A012F" PropText="Další"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="TEXT_DIRECTION" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="NEXT" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" VERSION="I" PROPERTY_NAME="DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" VERSION="I" PROPERTY_NAME="ENABLED" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" VERSION="I" PROPERTY_NAME="HOTKEY" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" VERSION="I" PROPERTY_NAME="IMAGE_FIRST" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" VERSION="I" PROPERTY_NAME="IMAGE_SOURCE" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" VERSION="I" PROPERTY_NAME="TEXT" PROPERTY_VALUE="50B4332D329332F2E10000000A2A012F" PropText="Předchozí"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" VERSION="I" PROPERTY_NAME="TEXT_DIRECTION" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" VERSION="I" PROPERTY_NAME="TOOLTIP" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="ARIA_LANDMARK" PROPERTY_VALUE="10"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="HEIGHT" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="IS_LAYOUT_CONTAINER" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="SCROLLING_MODE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="SCROLL_LEFT" PROPERTY_VALUE="0"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="SCROLL_TOP" PROPERTY_VALUE="0"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER" VERSION="I" PROPERTY_NAME="WIDTH" PropText=""/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="ROOTUIELEMENTCONTAINER_LAYOUT" VERSION="I" PROPERTY_NAME="WRAPPING" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="S2" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="S2" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="S2" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="S2_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="H_ALIGN" PROPERTY_VALUE="08"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="S2_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="ROW_BACKGROUND_DESIGN" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="S2_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="ROW_DESIGN" PROPERTY_VALUE="04"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="S2_LAYOUT_DATA" VERSION="I" PROPERTY_NAME="V_GUTTER" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="TM_TIMER" VERSION="I" PROPERTY_NAME="CONTEXT_MENU_BEHAVIOUR" PROPERTY_VALUE="00"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="TM_TIMER" VERSION="I" PROPERTY_NAME="DELAY" PROPERTY_VALUE="0"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="TM_TIMER" VERSION="I" PROPERTY_NAME="ENABLED" PROPERTY_VALUE="X"/>
  <wdy_ui_property COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="TM_TIMER" VERSION="I" PROPERTY_NAME="VISIBLE" PROPERTY_VALUE="02"/>
  <wdy_view_cntr COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" CONTAINER_NAME="S2" VERSION="I" UI_ELEMENT_NAME="S2" DISPLAY_NAME="S2"/>
  <wdy_ui_ctx_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="LIST_STATE" BINDING_NAME="TEXT" VERSION="I" UI_ELEM_PROPERTY="TEXT" BOUND_CTX_NODE="SO02_GUI" BOUND_CTX_ATTRIB="LIST_STATE"/>
  <wdy_ui_ctx_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" BINDING_NAME="ENABLED" VERSION="I" UI_ELEM_PROPERTY="ENABLED" BOUND_CTX_NODE="SO02_GUI" BOUND_CTX_ATTRIB="PREV_ENABLE"/>
  <wdy_ui_ctx_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="TM_TIMER" BINDING_NAME="DELAY" VERSION="I" UI_ELEM_PROPERTY="DELAY" BOUND_CTX_NODE="TIMER_CONF" BOUND_CTX_ATTRIB="REFRESH_RATE"/>
  <wdy_ui_ctx_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="TOGGLE_BUTTON" BINDING_NAME="CHECKED" VERSION="I" UI_ELEM_PROPERTY="CHECKED" BOUND_CTX_NODE="GUI" BOUND_CTX_ATTRIB="BUTTON"/>
  <wdy_ui_evt_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="BACK" BINDING_NAME="ON_ACTION" VERSION="I" UI_ELEM_EVENT="ON_ACTION" BOUND_ACTION="BT_BACK"/>
  <wdy_ui_evt_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="CONFIRM" BINDING_NAME="ON_ACTION" VERSION="I" UI_ELEM_EVENT="ON_ACTION" BOUND_ACTION="BT_SAVE"/>
  <wdy_ui_evt_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="MENU" BINDING_NAME="ON_ACTION" VERSION="I" UI_ELEM_EVENT="ON_ACTION" BOUND_ACTION="ON_MENU"/>
  <wdy_ui_evt_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="NEXT" BINDING_NAME="ON_ACTION" VERSION="I" UI_ELEM_EVENT="ON_ACTION" BOUND_ACTION="BT_NEXT"/>
  <wdy_ui_evt_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="PREV" BINDING_NAME="ON_ACTION" VERSION="I" UI_ELEM_EVENT="ON_ACTION" BOUND_ACTION="BT_PREV"/>
  <wdy_ui_evt_bind COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="VIEW02" ELEMENT_NAME="TM_TIMER" BINDING_NAME="ON_ACTION" VERSION="I" UI_ELEM_EVENT="ON_ACTION" BOUND_ACTION="ON_TIMER"/>
  <controller_definition COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" VERSION="A" CONTROLLER_TYPE="01" CONTEXT="CONTEXT" DISPLAY_NAME="VIEW02" AUTHOR="CZMICYP" CREATEDON="20140311" CHANGEDBY="CZMICYP" CHANGEDON="20140822">
   <wdy_controllert COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" LANGU="C" DESCRIPTION="List view"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_BACK" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="BT_BACK" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_NEXT" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="BT_NEXT" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_PREV" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="BT_PREV" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_SAVE" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="BT_SAVE" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="HANDLEIN_PLUG01" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_VIEW_NAME="VIEW02" REF_PLUG_NAME="IN_PLUG01" DISPLAY_NAME="HANDLEIN_PLUG01" CODE_BODY='method HANDLEIN_PLUG01 .



  wd_comp_controller-&gt;so02_load( ). &quot;load data

  wd_comp_controller-&gt;so02_update( ). &quot;update GUI



endmethod.

' ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_BACK" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW02" REF_CMPNAME="BT_BACK" DISPLAY_NAME="ONACTIONBT_BACK" CODE_BODY="method ONACTIONBT_BACK .



  DATA lo_w_main TYPE REF TO ig_ZMC_BC_PRIJEM.

  lo_w_main =   wd_this-&gt;get_ZMC_BC_PRIJEM_ctr( ).



  lo_w_main-&gt;fire_goto_so01_plg( ).



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_NEXT" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW02" REF_CMPNAME="BT_NEXT" DISPLAY_NAME="ONACTIONBT_NEXT" CODE_BODY="METHOD onactionbt_next .



IF wd_comp_controller-&gt;so02_is_initial( ) = &apos;X&apos;.

  IF wd_comp_controller-&gt;menge_index &gt;= wd_comp_controller-&gt;menge_count.

*   initail last component -&gt; do noting (check &amp; update)

    wd_comp_controller-&gt;so02_check( ). &quot;prints err - empty fields



  ELSE.

*   initial middle component -&gt; remove

    wd_comp_controller-&gt;so02_rem_item( ).

    &quot;leave index the same -&gt; components shift back



    &quot;perfrom check to reload selscr. values

    wd_comp_controller-&gt;so02_check( reload_only = &apos;X&apos; ).



  ENDIF.



ELSE. &quot;not empty

  wd_comp_controller-&gt;so02_check( ).

  IF wd_comp_controller-&gt;errflag IS INITIAL.



   IF wd_comp_controller-&gt;menge_index &gt; wd_comp_controller-&gt;menge_count.

*    last item -&gt; add new

     wd_comp_controller-&gt;so02_add_item( ).



   ELSE.

*    middle item -&gt; modify

     wd_comp_controller-&gt;so02_mod_item( ).



   ENDIF. &quot;last item



*   shift to next item

    ADD 1 TO wd_comp_controller-&gt;menge_index.



  ENDIF. &quot;input check error

ENDIF. &quot;initial screen





*reload screen

wd_comp_controller-&gt;so02_update( ).



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_PREV" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW02" REF_CMPNAME="BT_PREV" DISPLAY_NAME="ONACTIONBT_PREV" CODE_BODY="METHOD onactionbt_prev .



*  prev button is enabled from the 2nd item and up



IF wd_comp_controller-&gt;so02_is_initial( ) = &apos;X&apos;.



  &quot;perfrom check to reload selscr. values

  wd_comp_controller-&gt;so02_check( reload_only = &apos;X&apos; ).



  IF wd_comp_controller-&gt;menge_index &gt; wd_comp_controller-&gt;menge_count.

*   initail new component -&gt; do noting (shift back)

    SUBTRACT 1 FROM wd_comp_controller-&gt;menge_index.



  ELSE.

*   initial middle or last component -&gt; remove &amp; shift back

    wd_comp_controller-&gt;so02_rem_item( ).

    SUBTRACT 1 FROM wd_comp_controller-&gt;menge_index.

  ENDIF.



ELSE. &quot;not empty

  wd_comp_controller-&gt;so02_check( ).

  IF wd_comp_controller-&gt;errflag IS INITIAL.



   IF wd_comp_controller-&gt;menge_index &gt; wd_comp_controller-&gt;menge_count.

*    last item -&gt; add new

     wd_comp_controller-&gt;so02_add_item( ).



   ELSE.

*    middle item -&gt; modify

     wd_comp_controller-&gt;so02_mod_item( ).



   ENDIF. &quot;last item



*   shift to prev item

    SUBTRACT 1 FROM wd_comp_controller-&gt;menge_index.



  ENDIF. &quot;input check error

ENDIF. &quot;initial screen





*reload screen

wd_comp_controller-&gt;so02_update( ).



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_SAVE" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW02" REF_CMPNAME="BT_SAVE" DISPLAY_NAME="ONACTIONBT_SAVE" CODE_BODY="METHOD onactionbt_save .



  wd_comp_controller-&gt;so02_check( ). &quot;display errors



  IF wd_comp_controller-&gt;errflag = &apos;&apos;.



   if wd_comp_controller-&gt;menge_index &gt; wd_comp_controller-&gt;menge_count.

*     new item -&gt; add

      wd_comp_controller-&gt;so02_add_item( ).

   else.

*    middle item -&gt; modify

     wd_comp_controller-&gt;so02_mod_item( ).

   endif.



*    confirm if all fields were filled OK

     wd_comp_controller-&gt;so02_save( ).



     if wd_comp_controller-&gt;errflag is initial.

       &quot;return to first screen (initialized)

       wd_comp_controller-&gt;so01_clear( ).

       DATA lo_w_main TYPE REF TO IG_ZMC_BC_PRIJEM.

       lo_w_main = wd_this-&gt;get_ZMC_BC_PRIJEM_ctr( ).

       lo_w_main-&gt;fire_goto_so01_plg( ).

     else.

       clear wd_comp_controller-&gt;errflag. &quot;redraw stored

     endif.



  ENDIF.



  wd_comp_controller-&gt;so02_update( ). &quot;update gui



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONON_MENU" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW02" REF_CMPNAME="ON_MENU" DISPLAY_NAME="ONACTIONON_MENU" CODE_BODY="method ONACTIONON_MENU .



      DATA lo_w_main TYPE REF TO ig_ZMC_BC_PRIJEM .

      lo_w_main = wd_this-&gt;get_ZMC_BC_PRIJEM_ctr( ).

      lo_w_main-&gt;fire_TO_MENU_plg( ).



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONON_TIMER" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW02" REF_CMPNAME="ON_TIMER" DISPLAY_NAME="ONACTIONON_TIMER" CODE_BODY="method ONACTIONON_TIMER .

  wd_this-&gt;refresh_page( ).

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ON_MENU" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="ON_MENU" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ON_TIMER" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="ON_TIMER" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="REFRESH_PAGE" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="REFRESH_PAGE" CODE_BODY="method REFRESH_PAGE .

  wd_comp_controller-&gt;refresh_page( ).

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOAFTERACTION" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOAFTERACTION" CODE_BODY="method WDDOAFTERACTION .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOBEFOREACTION" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOBEFOREACTION" CODE_BODY="method WDDOBEFOREACTION .

*  data lo_api_controller type ref to if_wd_view_controller.

*  data lo_action         type ref to if_wd_action.



*  lo_api_controller = wd_this-&gt;wd_get_api( ).

*  lo_action = lo_api_controller-&gt;get_current_action( ).



*  if lo_action is bound.

*    case lo_action-&gt;name.

*      when &apos;...&apos;.



*    endcase.

*  endif.

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOEXIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOEXIT" CODE_BODY="method WDDOEXIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOINIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOINIT" CODE_BODY="method WDDOINIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOMODIFYVIEW" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOMODIFYVIEW" CODE_BODY="method WDDOMODIFYVIEW .



**  if first_time = abap_true.

*

*    data: MY_INPUT_FIELD type ref to CL_WD_INPUT_FIELD.

*

*    MY_INPUT_FIELD ?= view-&gt;get_element( &apos;OBJ2&apos; ).

*

*    MY_INPUT_FIELD-&gt;FOCUS( ).

*

**  endif.



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOONCONTEXTMENU" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOONCONTEXTMENU" CODE_BODY="method WDDOONCONTEXTMENU .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_BACK" LANGU="C" DESCRIPTION="goto screen 01"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_NEXT" LANGU="C" DESCRIPTION="next item"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_PREV" LANGU="C" DESCRIPTION="previous item"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_SAVE" LANGU="C" DESCRIPTION="button save"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="HANDLEIN_PLUG01" LANGU="C" DESCRIPTION="plug from view 01"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_BACK" LANGU="C" DESCRIPTION="goto screen 01"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_NEXT" LANGU="C" DESCRIPTION="next item"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_PREV" LANGU="C" DESCRIPTION="previous item"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_SAVE" LANGU="C" DESCRIPTION="button save"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="REFRESH_PAGE" LANGU="C" DESCRIPTION="spracovanie casovaca na urovni okna"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOAFTERACTION" LANGU="C" DESCRIPTION="Method for non-action specific operations before navigation"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOBEFOREACTION" LANGU="C" DESCRIPTION="Method for Validation of User Input"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOEXIT" LANGU="C" DESCRIPTION="Controller Clean-Up Method"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOINIT" LANGU="C" DESCRIPTION="Controller Initialization Method"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOMODIFYVIEW" LANGU="C" DESCRIPTION="Method for Modifying the View Before Rendering"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOONCONTEXTMENU" LANGU="C" DESCRIPTION="Method for Modifying the Context Menu"/>
   <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOMODIFYVIEW" PARAMETER_NAME="FIRST_TIME" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="WDY_BOOLEAN" DISPLAY_NAME="FIRST_TIME"/>
   <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOMODIFYVIEW" PARAMETER_NAME="VIEW" VERSION="I" PARAM_POSITION="2 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_VIEW" DISPLAY_NAME="VIEW"/>
   <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOONCONTEXTMENU" PARAMETER_NAME="CONTEXT_MENU_EVENT" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_CONTEXT_MENU_EVENT" DISPLAY_NAME="CONTEXT_MENU_EVENT"/>
   <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOONCONTEXTMENU" PARAMETER_NAME="CONTEXT_MENU_MANAGER" VERSION="I" PARAM_POSITION="2 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_CONTEXT_MENU_MANAGER" DISPLAY_NAME="CONTEXT_MENU_MANAGER"/>
   <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOONCONTEXTMENU" PARAMETER_NAME="MENU" VERSION="I" PARAM_POSITION="3 " DECLARATION_TYPE="3" ABAP_TYPING="1" ABAP_TYPE="CL_WD_MENU" DISPLAY_NAME="MENU"/>
   <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CTLR_USAGE_NAME="4R5GMCSGZ5X72URNROILJAI3Z" VERSION="I" USED_CONTROLLER="COMPONENTCONTROLLER"/>
   <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CTLR_USAGE_NAME="4X48R4LUD5YM5OUOY7VSLII3Z" VERSION="I" USED_CONTROLLER="ZMC_BC_PRIJEM"/>
   <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="CONTEXT" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" NODE_POSITION="0 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" SINGLETON="X" DISPLAY_NAME="CONTEXT" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
   <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="SO02_GUI" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="1 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" DISPLAY_NAME="SO02_GUI" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
   <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="TIMER_CONF" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="2 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" SINGLETON="X" DISPLAY_NAME="TIMER_CONF" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="INSMK_DISABLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="INSMK_DISABLE" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="LIST_STATE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " ABAP_TYPE="STRING" ABAP_TYPING="0" DISPLAY_NAME="LIST_STATE" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="PREV_ENABLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="4 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="PREV_ENABLE" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="SKLM_SHOW" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="SKLM_SHOW" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="MAX_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="MAX_SPEED" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="MEDIUM_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="MEDIUM_SPEED" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="REFRESH_RATE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="REFRESH_RATE" VALUE_HELP_MODE="0"/>
   <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="SLOW_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="4 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="SLOW_SPEED" VALUE_HELP_MODE="0"/>
   <wdy_ctx_mapping COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CTLR_USAGE_NAME="4R5GMCSGZ5X72URNROILJAI3Z" CTX_MAPP_NAME="4RZT1FRGP4WY17NMGGK8LOH0V" VERSION="I" MAPPING_TYPE="02" OWN_NODE_NAME="SO02_GUI" MAP_NODE_NAME="SO02_GUI"/>
   <wdy_ctx_mapping COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CTLR_USAGE_NAME="4R5GMCSGZ5X72URNROILJAI3Z" CTX_MAPP_NAME="4XROSZ1MQVY21234YY1ILF19R" VERSION="I" MAPPING_TYPE="02" OWN_NODE_NAME="TIMER_CONF" MAP_NODE_NAME="TIMER_CONF"/>
  </controller_definition>
 </view_definition>
 <view_definition COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="ZMC_BC_PRIJEM" VERSION="A" TYPE="CL_WDY_MD_WINDOW" VIEW_TYPE="00" LIFESPAN="0" VIEW_CONTROLLER="ZMC_BC_PRIJEM" DISPLAY_NAME="ZMC_BC_PRIJEM" AUTHOR="CZMICYP" CREATEDON="20140311" CHANGEDBY="CZMICYP" CHANGEDON="20140729" DEF_ROOT_NODE="VIEW01_USAGE_1" VISIBILITY="00">
  <view_window title=""/>
  <wdy_iobound_plug COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="ZMC_BC_PRIJEM" PLUG_NAME="DEFAULT" VERSION="I" PLUG_TYPE="CL_WDY_MD_INBOUND_PLUG" IN_PLUG_TYPE="1" OUT_PLUG_TYPE="0" DISPLAY_NAME="DEFAULT" IS_INTF_ITEM="X"/>
  <wdy_iobound_plug COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="ZMC_BC_PRIJEM" PLUG_NAME="GOTO_SO01" VERSION="I" PLUG_TYPE="CL_WDY_MD_OUTBOUND_PLUG" IN_PLUG_TYPE="0" OUT_PLUG_TYPE="0" DISPLAY_NAME="GOTO_SO01"/>
  <wdy_iobound_plug COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="ZMC_BC_PRIJEM" PLUG_NAME="GOTO_SO02" VERSION="I" PLUG_TYPE="CL_WDY_MD_OUTBOUND_PLUG" IN_PLUG_TYPE="0" OUT_PLUG_TYPE="0" DISPLAY_NAME="GOTO_SO02"/>
  <wdy_iobound_plug COMPONENT_NAME="ZMC_BC_PRIJEM" VIEW_NAME="ZMC_BC_PRIJEM" PLUG_NAME="TO_MENU" VERSION="I" PLUG_TYPE="CL_WDY_MD_OUTBOUND_PLUG" IN_PLUG_TYPE="0" OUT_PLUG_TYPE="0" DISPLAY_NAME="TO_MENU" IS_INTF_ITEM="X"/>
  <wdy_nav_link COMPONENT_NAME="ZMC_BC_PRIJEM" WINDOW_NAME="ZMC_BC_PRIJEM" NAV_LINK_NAME="GOTO_SO01_NLINK_1" VERSION="I" SOURCE_PLUG_VIEW="ZMC_BC_PRIJEM" SOURCE_PLUG_NAME="GOTO_SO01"/>
  <wdy_nav_link COMPONENT_NAME="ZMC_BC_PRIJEM" WINDOW_NAME="ZMC_BC_PRIJEM" NAV_LINK_NAME="GOTO_SO02_NLINK_1" VERSION="I" SOURCE_PLUG_VIEW="ZMC_BC_PRIJEM" SOURCE_PLUG_NAME="GOTO_SO02"/>
  <wdy_nav_targref COMPONENT_NAME="ZMC_BC_PRIJEM" WINDOW_NAME="ZMC_BC_PRIJEM" NAV_LINK_NAME="GOTO_SO01_NLINK_1" NAV_TARGREF_NAME="GOTO_SO01_TREF_2" VERSION="I" TARGET_PLUG_VIEW="VIEW01" TARGET_PLUG_NAME="IN_PLUG01" TARGET_VUSE_NAME="VIEW01_USAGE_1"/>
  <wdy_nav_targref COMPONENT_NAME="ZMC_BC_PRIJEM" WINDOW_NAME="ZMC_BC_PRIJEM" NAV_LINK_NAME="GOTO_SO02_NLINK_1" NAV_TARGREF_NAME="GOTO_SO02_TREF_2" VERSION="I" TARGET_PLUG_VIEW="VIEW02" TARGET_PLUG_NAME="IN_PLUG01" TARGET_VUSE_NAME="VIEW02_USAGE_2"/>
  <wdy_vsh_node COMPONENT_NAME="ZMC_BC_PRIJEM" WINDOW_NAME="ZMC_BC_PRIJEM" VSH_NODE_NAME="VIEW01_USAGE_1" VERSION="I" VSH_NODE_TYPE="CL_WDY_MD_VIEW_USAGE" USED_VIEW="VIEW01" DISPLAY_NAME="VIEW01_USAGE_1"/>
  <wdy_vsh_node COMPONENT_NAME="ZMC_BC_PRIJEM" WINDOW_NAME="ZMC_BC_PRIJEM" VSH_NODE_NAME="VIEW02_USAGE_2" VERSION="I" VSH_NODE_TYPE="CL_WDY_MD_VIEW_USAGE" USED_VIEW="VIEW02" DISPLAY_NAME="VIEW02_USAGE_2"/>
  <wdy_vsh_node COMPONENT_NAME="ZMC_BC_PRIJEM" WINDOW_NAME="ZMC_BC_PRIJEM" VSH_NODE_NAME="WND_SELECTION_SCREEN_USAGE_1" VERSION="I" VSH_NODE_TYPE="CL_WDY_MD_VIEW_USAGE" PHOLDER_OWNER="VIEW02_USAGE_2" PHOLDER_NAME="S2_VCA_1" USED_COMPONENT="WDR_SELECT_OPTIONS" USED_VIEW="WND_SELECTION_SCREEN" DISPLAY_NAME="WND_SELECTION_SCREEN_USAGE_1" COMPONENT_USAGE="USAGE_SO02"/>
  <wdy_vsh_node COMPONENT_NAME="ZMC_BC_PRIJEM" WINDOW_NAME="ZMC_BC_PRIJEM" VSH_NODE_NAME="WND_SELECTION_SCREEN_USAGE_3" VERSION="I" VSH_NODE_TYPE="CL_WDY_MD_VIEW_USAGE" PHOLDER_OWNER="VIEW01_USAGE_1" PHOLDER_NAME="SELSCREEN1_VCA_1" USED_COMPONENT="WDR_SELECT_OPTIONS" USED_VIEW="WND_SELECTION_SCREEN" DISPLAY_NAME="WND_SELECTION_SCREEN_USAGE_3" COMPONENT_USAGE="USAGE_SO01"/>
  <wdy_vsh_pholder COMPONENT_NAME="ZMC_BC_PRIJEM" WINDOW_NAME="ZMC_BC_PRIJEM" VSH_NODE_NAME="VIEW01_USAGE_1" VSH_PHOLDER_NAME="SELSCREEN1_VCA_1" VERSION="I" VSH_PHOLDER_TYPE="CL_WDY_MD_VIEW_CNT_ASSIGNMENT" DISPLAY_NAME="SELSCREEN1_VCA_1" ASSIGNED_CNTR="SELSCREEN1" DEFAULT_NODE="WND_SELECTION_SCREEN_USAGE_3" X="0 " Y="0 " Z="0 "/>
  <wdy_vsh_pholder COMPONENT_NAME="ZMC_BC_PRIJEM" WINDOW_NAME="ZMC_BC_PRIJEM" VSH_NODE_NAME="VIEW02_USAGE_2" VSH_PHOLDER_NAME="S2_VCA_1" VERSION="I" VSH_PHOLDER_TYPE="CL_WDY_MD_VIEW_CNT_ASSIGNMENT" DISPLAY_NAME="S2_VCA_1" ASSIGNED_CNTR="S2" DEFAULT_NODE="WND_SELECTION_SCREEN_USAGE_1" X="0 " Y="0 " Z="0 "/>
  <controller_definition COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" VERSION="A" CONTROLLER_TYPE="06" CONTEXT="CONTEXT" DISPLAY_NAME="ZMC_BC_PRIJEM" AUTHOR="CZMICYP" CREATEDON="20140311" CHANGEDBY="CZMICYP" CHANGEDON="20140729">
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="HANDLEDEFAULT" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_VIEW_NAME="ZMC_BC_PRIJEM" REF_PLUG_NAME="DEFAULT" DISPLAY_NAME="HANDLEDEFAULT" CODE_BODY="method HANDLEDEFAULT .

endmethod." ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOEXIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOEXIT" CODE_BODY="method WDDOEXIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOINIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOINIT" CODE_BODY="method WDDOINIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOONCLOSE" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOONCLOSE" CODE_BODY="method WDDOONCLOSE .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOONOPEN" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOONOPEN" CODE_BODY="method WDDOONOPEN .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOEXIT" LANGU="C" DESCRIPTION="Controller Clean-Up Method"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOINIT" LANGU="C" DESCRIPTION="Controller Initialization Method"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOONCLOSE" LANGU="C" DESCRIPTION="Handling For Closing of Window"/>
   <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOONOPEN" LANGU="C" DESCRIPTION="Handling For Opening of Window"/>
   <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOONOPEN" PARAMETER_NAME="WINDOW_DESCR" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_WINDOW_DESCRIPTION" DISPLAY_NAME="WINDOW_DESCR"/>
   <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CTLR_USAGE_NAME="4R5GMCKSG7BHK887LUG998JE7" VERSION="I" USED_CONTROLLER="COMPONENTCONTROLLER"/>
   <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" NODE_NAME="CONTEXT" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" NODE_POSITION="0 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" SINGLETON="X" DISPLAY_NAME="CONTEXT" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
  </controller_definition>
 </view_definition>
 <controller_definition COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" VERSION="A" CONTROLLER_TYPE="02" CONTEXT="CONTEXT" DISPLAY_NAME="COMPONENTCONTROLLER" RUNTIME_OBJECT="ZIWCI_MC_BC_PRIJEM" AUTHOR="CZMICYP" CREATEDON="20140311" CHANGEDBY="CZMICYP" CHANGEDON="20140820">
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="ACT_FOCUS" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="ACT_FOCUS" ACTION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="STRING" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="AUTH" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="AUTH" CODE_BODY="method AUTH .



  CALL FUNCTION &apos;ZMC_CHECK_PARAM&apos;

    EXPORTING

      ID    = PARID

      VALUE = PARVA

    EXCEPTIONS not_assigned = 1 .



 IF sy-subrc NE 0.

  wd_this-&gt;message( ).

  wd_this-&gt;set_timer_fast( ).

   IF SET_BACK eq &apos;X&apos;.

    wd_this-&gt;mv_auth_err = &apos;X&apos;.

   ENDIF.

   IF SET_ERROR eq &apos;X&apos;.

    wd_this-&gt;errflag = &apos;X&apos;.

   ENDIF.

 ELSE.

   IF SET_BACK eq &apos;X&apos;.

    wd_this-&gt;mv_auth_err = &apos;&apos;.

   ENDIF.

 ENDIF.



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="AUTH_LGORT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="AUTH_LGORT" CODE_BODY="method AUTH_LGORT .





  wd_this-&gt;auth(

    PARID     = &apos;ZRF_LGORT&apos;

    PARVA     = lv_xuvalue

    SET_BACK  = &apos;&apos;

    SET_ERROR = &apos;X&apos;

  ).





endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="AUTH_WERKS" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="AUTH_WERKS" CODE_BODY="method AUTH_WERKS .



   wd_this-&gt;auth(

    PARID     = &apos;ZRF_WERKS&apos;

    PARVA     = lv_xuvalue

    SET_BACK  = &apos;&apos;

    SET_ERROR = &apos;X&apos;

  ).





endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="ENABLE_MENU" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="ENABLE_MENU" CODE_BODY="method ENABLE_MENU .



  wd_this-&gt;mr_so01_gui-&gt;set_attribute(

    name = &apos;MENU_BTN_VISIBLE&apos;

    value = 2 &quot;visible

  ).



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0" IS_INTF_ITEM="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="ERRFLAG" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="ERRFLAG" ACTION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="CHAR1" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="FOCUS" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="FOCUS" CODE_BODY="method FOCUS.



  wd_this-&gt;prev_focus = wd_this-&gt;act_focus.

  wd_this-&gt;act_focus  = field.



  if screen = &apos;SO01&apos;.

    wd_this-&gt;mr_so01-&gt;request_focus( field ).

  else.

    wd_this-&gt;mr_so02-&gt;request_focus( field ).

  endif.



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MENGE_COUNT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="MENGE_COUNT" ACTION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="INT4" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MENGE_INDEX" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="MENGE_INDEX" ACTION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="INT4" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MESSAGE" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="MESSAGE" CODE_BODY="method MESSAGE .



  if sy-msgty = &apos;E&apos;.

     wd_this-&gt;errflag = &apos;X&apos;.

  endif.



  wd_this-&gt;mr_msg_man-&gt;CLEAR_MESSAGES( ).



  wd_this-&gt;mr_msg_man-&gt;report_t100_message(

    msgid = sy-msgid

    msgty = sy-msgty

    msgno = sy-msgno

    p1    = sy-msgv1

    p2    = sy-msgv2

    p3    = sy-msgv3

    p4    = sy-msgv4

*    show_as_popup = &apos;X&apos;

*    is_permanent

*    cancel_navigation

*    enable_message_navigation

  ).



  IF wd_this-&gt;errflag eq &apos;X&apos;.

    wd_this-&gt;set_timer_fast( ).

  ENDIF.





endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MR_GLOBAL_DATA" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="MR_GLOBAL_DATA" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_CONTEXT_NODE" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MR_MENGE_LIST" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="MR_MENGE_LIST" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_CONTEXT_NODE" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MR_MSG_MAN" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="MR_MSG_MAN" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_MESSAGE_MANAGER"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MR_SO01" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="MR_SO01" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_SELECT_OPTIONS" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MR_SO01_GUI" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="MR_SO01_GUI" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_CONTEXT_NODE" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MR_SO02" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="MR_SO02" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_SELECT_OPTIONS" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MR_SO02_GUI" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="MR_SO02_GUI" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_CONTEXT_NODE" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MV_AUTH_ERR" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="MV_AUTH_ERR" ACTION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="BOOL" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="OKFLAG" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="OKFLAG" ACTION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="CHAR1" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P2_CHARG" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P2_CHARG" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="CHARG_D"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P2_INSMK" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P2_INSMK" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="INSMK"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P2_MAKTX" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P2_MAKTX" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="MAKTX"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P2_MATNR" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P2_MATNR" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="MATNR"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P2_MEINS" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P2_MEINS" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="MEINS"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P2_MENGE1" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P2_MENGE1" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="CHAR14"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P2_MENGE2" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P2_MENGE2" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="CHAR14"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P2_SKLM" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P2_SKLM" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="CHAR14"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="PREFILL_TIMER_CONTEXT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="PREFILL_TIMER_CONTEXT" CODE_BODY="method PREFILL_TIMER_CONTEXT .



  DATA lo_nd_timer_conf TYPE REF TO if_wd_context_node.

  DATA lo_el_timer_conf TYPE REF TO if_wd_context_element.

  DATA ls_timer_conf TYPE wd_this-&gt;Element_timer_conf.



  lo_nd_timer_conf = wd_context-&gt;get_child_node( name =

wd_this-&gt;wdctx_timer_conf ).



  lo_el_timer_conf = lo_nd_timer_conf-&gt;get_element( ).



  ls_timer_conf-refresh_rate = WD_ASSIST-&gt;TIMER_SLOW.

  ls_timer_conf-max_speed    = WD_ASSIST-&gt;TIMER_FAST.

  ls_timer_conf-medium_speed = WD_ASSIST-&gt;TIMER_MEDIUM.

  ls_timer_conf-slow_speed   = WD_ASSIST-&gt;TIMER_SLOW.



* set all declared attributes

  lo_el_timer_conf-&gt;set_static_attributes(

  static_attributes = ls_timer_conf ).



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="PREFILL_USER_PARAMS" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="PREFILL_USER_PARAMS" CODE_BODY="method PREFILL_USER_PARAMS .



DATA lv_werks TYPE werks.

DATA lv_lgort TYPE lgort_d.

DATA lv_lgnum TYPE lgnum.





CALL FUNCTION &apos;ZMC_PREFILL_V2&apos;

 IMPORTING

   werks = lv_werks

   lgort = lv_lgort

   lgnum = lv_lgnum

 EXCEPTIONS

   WERKS_MISSING = 1

   LGORT_MISSING = 2

   LGNUM_MISSING = 3

   OTHER         = 4.



 IF sy-subrc NE 0 and

    sy-subrc NE 3.

   wd_this-&gt;MV_AUTH_ERR = &apos;X&apos;.

   wd_this-&gt;message( ).

   wd_this-&gt;set_timer_fast( ).

 ELSE.



   &quot;nastavenie aplikacnych dat z uzivatelskych

    move:

*      lv_lgnum to   wd_this-&gt;P_UMLGO-&gt;* ,

      lv_lgort to   wd_this-&gt;P_LGORT-&gt;*,

      lv_werks to   wd_this-&gt;P_WERKS-&gt;*.

ENDIF.



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="PREV_FOCUS" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="PREV_FOCUS" ACTION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="STRING" READ_ONLY="X"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P_CHARG" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P_CHARG" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="CHARG_D"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P_INSMK" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P_INSMK" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="INSMK"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P_LGORT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P_LGORT" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="LGORT_D"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P_MATNR" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P_MATNR" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="MATNR"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P_SONUM" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P_SONUM" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="CHAR25"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P_UMLGO" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P_UMLGO" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="UMLGO"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P_WERKS" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_PROPERTY" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="P_WERKS" ACTION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="WERKS_D"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="REFRESH_PAGE" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="REFRESH_PAGE" CODE_BODY="method REFRESH_PAGE .

  wd_this-&gt;set_timer_slow( ).



  IF wd_this-&gt;mv_auth_err EQ &apos;X&apos;.

    wd_this-&gt;to_menu( ).

  ENDIF.

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SET_TIMER_FAST" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SET_TIMER_FAST" CODE_BODY="method SET_TIMER_FAST .

*--------------------- CW READ/SET(TIMER_CONF)

*------------------------------------

   DATA lo_nd_timer_conf TYPE REF TO if_wd_context_node.

   DATA lo_el_timer_conf TYPE REF TO if_wd_context_element.

   DATA ls_timer_conf TYPE wd_this-&gt;Element_timer_conf.

   lo_nd_timer_conf = wd_context-&gt;get_child_node( name =

wd_this-&gt;wdctx_timer_conf ).

   lo_el_timer_conf = lo_nd_timer_conf-&gt;get_element( ).

   lo_el_timer_conf-&gt;get_static_attributes(

     IMPORTING

       static_attributes = ls_timer_conf ).

*--------------------- CW READ/SET(TIMER_CONF)

*------------------------------------



  ls_timer_conf-refresh_rate = ls_timer_conf-max_speed.

  lo_el_timer_conf-&gt;set_static_attributes( ls_timer_conf ).

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SET_TIMER_MEDIUM" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SET_TIMER_MEDIUM" CODE_BODY="method SET_TIMER_MEDIUM .

*--------------------- CW READ/SET(TIMER_CONF)

*------------------------------------

   DATA lo_nd_timer_conf TYPE REF TO if_wd_context_node.

   DATA lo_el_timer_conf TYPE REF TO if_wd_context_element.

   DATA ls_timer_conf TYPE wd_this-&gt;Element_timer_conf.

   lo_nd_timer_conf = wd_context-&gt;get_child_node( name =

wd_this-&gt;wdctx_timer_conf ).

   lo_el_timer_conf = lo_nd_timer_conf-&gt;get_element( ).

   lo_el_timer_conf-&gt;get_static_attributes(

     IMPORTING

       static_attributes = ls_timer_conf ).

*--------------------- CW READ/SET(TIMER_CONF)

*------------------------------------



  ls_timer_conf-refresh_rate = ls_timer_conf-medium_speed.

  lo_el_timer_conf-&gt;set_static_attributes( ls_timer_conf ).

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SET_TIMER_SLOW" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SET_TIMER_SLOW" CODE_BODY="method SET_TIMER_SLOW .

*--------------------- CW READ/SET(TIMER_CONF)

*------------------------------------

   DATA lo_nd_timer_conf TYPE REF TO if_wd_context_node.

   DATA lo_el_timer_conf TYPE REF TO if_wd_context_element.

   DATA ls_timer_conf TYPE wd_this-&gt;Element_timer_conf.

   lo_nd_timer_conf = wd_context-&gt;get_child_node( name =

wd_this-&gt;wdctx_timer_conf ).

   lo_el_timer_conf = lo_nd_timer_conf-&gt;get_element( ).

   lo_el_timer_conf-&gt;get_static_attributes(

     IMPORTING

       static_attributes = ls_timer_conf ).

*--------------------- CW READ/SET(TIMER_CONF)

*------------------------------------



  ls_timer_conf-refresh_rate = ls_timer_conf-slow_speed.

  lo_el_timer_conf-&gt;set_static_attributes( ls_timer_conf ).

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO01_CHECK" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO01_CHECK" CODE_BODY="METHOD so01_check.



  DATA gd TYPE wd_this-&gt;element_global_data.

  DATA l_insmk_disable.



  CLEAR: wd_this-&gt;errflag, wd_this-&gt;okflag.





  DATA lv_werks  TYPE werks_d.

  DATA lv_matnr  TYPE matnr.

  DATA lv_lgnum  TYPE lgnum.

  DATA lv_umlgo  TYPE lgort_d.

  DATA lv_lgort  TYPE lgort_d.

  DATA tmp_subrc TYPE int4.





******** init data *******************************************



* clear GUI data

  wd_this-&gt;mr_so01_gui-&gt;set_attribute(

    name  = &apos;CHARG_DISABLE&apos;

    value = abap_false ).



* load data from selscreen 01 (null parameters)

  wd_this-&gt;p_matnr ?=

    wd_this-&gt;mr_so01-&gt;get_value_of_parameter_field( &apos;MATNR&apos; ).

  wd_this-&gt;p_charg ?=

    wd_this-&gt;mr_so01-&gt;get_value_of_parameter_field( &apos;CHARG&apos; ).

  wd_this-&gt;p_sonum ?=

    wd_this-&gt;mr_so01-&gt;get_value_of_parameter_field( &apos;SONUM&apos; ).

  wd_this-&gt;p_lgort ?=

    wd_this-&gt;mr_so01-&gt;get_value_of_parameter_field( &apos;LGORT&apos; ).

  wd_this-&gt;p_umlgo ?=

    wd_this-&gt;mr_so01-&gt;get_value_of_parameter_field( &apos;UMLGO&apos; ).

  wd_this-&gt;p_werks ?=

    wd_this-&gt;mr_so01-&gt;get_value_of_parameter_field( &apos;WERKS&apos; ).

  wd_this-&gt;p_insmk ?=

    wd_this-&gt;mr_so01-&gt;get_value_of_parameter_field( &apos;INSMK&apos; ).



* handle NULL values

  IF wd_this-&gt;p_matnr IS INITIAL. CREATE DATA wd_this-&gt;p_matnr. ENDIF.

  IF wd_this-&gt;p_charg IS INITIAL. CREATE DATA wd_this-&gt;p_charg. ENDIF.

  IF wd_this-&gt;p_sonum IS INITIAL. CREATE DATA wd_this-&gt;p_sonum. ENDIF.

  IF wd_this-&gt;p_lgort IS INITIAL. CREATE DATA wd_this-&gt;p_lgort. ENDIF.

  IF wd_this-&gt;p_umlgo IS INITIAL. CREATE DATA wd_this-&gt;p_umlgo. ENDIF.

  IF wd_this-&gt;p_werks IS INITIAL. CREATE DATA wd_this-&gt;p_werks. ENDIF.

  IF wd_this-&gt;p_insmk IS INITIAL. CREATE DATA wd_this-&gt;p_insmk. ENDIF.



******** check data *******************************************



  IF reload_only IS INITIAL.



  CLEAR gd.



  DATA lv_xuvalue TYPE xuvalue.



  MOVE:

     wd_this-&gt;p_werks-&gt;* to lv_werks,

     wd_this-&gt;p_matnr-&gt;* to lv_matnr,

*     wd_this-&gt;p_lgnum-&gt;* to lv_lgnum,



     wd_this-&gt;p_lgort-&gt;* to lv_lgort,

     wd_this-&gt;p_umlgo-&gt;* to lv_umlgo.



clear lv_lgnum.



  IF lv_werks IS NOT INITIAL.

    move lv_werks to lv_xuvalue.

    wd_this-&gt;AUTH_WERKS( lv_xuvalue ).

  ENDIF.



  IF wd_this-&gt;errflag = &apos;X&apos;.

    wd_this-&gt;focus( field = &apos;WERKS&apos; screen = &apos;SO01&apos; ).

    EXIT.

  ENDIF.



  IF lv_lgort  IS NOT INITIAL .

    move lv_lgort to lv_xuvalue.

    wd_this-&gt;AUTH_LGORT( lv_xuvalue ).

  ENDIF.



  IF wd_this-&gt;errflag = &apos;X&apos;.

     wd_this-&gt;focus( field = &apos;LGORT&apos; screen = &apos;SO01&apos; ).

     EXIT.

  ENDIF.



* check authority

  CALL FUNCTION &apos;ZMC_CHECK_LGORT&apos;

    EXPORTING

        werks       = lv_werks

        lgort       = lv_umlgo&quot; IM1182014

    IMPORTING

        lgnum       = lv_lgnum

      EXCEPTIONS

        empty_werks = 1

        empty_lgort = 2

        wrong_werks = 3

        wrong_lgort = 4

        OTHERS      = 5.

**



 tmp_subrc = sy-subrc.



CASE tmp_subrc.



  &quot; werks OK, lgort OK

  WHEN 0.

      gd-werks = lv_werks.

      gd-lgort = lv_lgort.

      gd-lgnum = lv_lgnum.



  WHEN 1 or 3.

    wd_this-&gt;focus( field = &apos;WERKS&apos; screen = &apos;SO01&apos; ).

  WHEN 2 or 4.

    wd_this-&gt;focus( field = &apos;LGORT&apos; screen = &apos;SO01&apos; ).

  ENDCASE.



  IF tmp_subrc &lt;&gt; 0.

     wd_this-&gt;message( silent ).

     IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

  ENDIF.





 IF lv_umlgo IS NOT INITIAL.

   move lv_umlgo to lv_xuvalue.

   wd_this-&gt;AUTH_LGORT( lv_xuvalue ).

 ENDIF.



  IF wd_this-&gt;errflag = &apos;X&apos;.

     wd_this-&gt;focus( field = &apos;UMLGO&apos; screen = &apos;SO01&apos; ).

     EXIT.

  ENDIF.



* check werks, umlgo (sklad do), load lgnum

  CALL FUNCTION &apos;ZMC_CHECK_LGORT&apos;

  EXPORTING

        werks       = lv_werks

        lgort       = lv_umlgo

    IMPORTING

        lgnum       = lv_lgnum

   EXCEPTIONS

     empty_werks       = 1

     empty_lgort       = 2

     wrong_werks       = 3

     wrong_lgort       = 4

     OTHERS            = 5.

  IF sy-subrc &lt;&gt; 0.

     wd_this-&gt;focus( field = &apos;UMLGO&apos; screen = &apos;SO01&apos; ).

     wd_this-&gt;message( silent ).

     &quot;check only one error

     IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

  ENDIF.

  gd-umlgo = wd_this-&gt;p_umlgo-&gt;*.





* check matnr/EAN; load mat/EAN data (muze pouzivat tab YRF_EAN)

* + kontroluje iba matnr

  CALL FUNCTION &apos;ZMC_CHECK_MATNR&apos;

       EXPORTING

            kod      = lv_matnr

            i_werks  = lv_werks

*            i_lgort

*            i_matnr

       IMPORTING

            matnr    = gd-matnr

            maktx    = gd-maktx &quot;text

            sernp    = gd-sernp &quot;serial - requires i_werks



            &quot;jen pro matnr

            meins    = gd-meins &quot;ZMJ

            xchpf    = gd-xchpf &quot;sarzovany mat.



            &quot;jen pro EAN

            ean11    = gd-ean11 &quot;Evropske cislo artiklu

            umrez    = gd-umrez &quot;cit.  pro prep. na ZMJ

            umren    = gd-umren &quot;jmen. pro prep. na ZMJ

            altme    = gd-altme &quot;alternativni MJ

       EXCEPTIONS

            no_matnr = 1

            conv_err = 2

            no_found = 3

            non_unique_ean = 4

            OTHERS   = 5.

  IF sy-subrc &lt;&gt; 0.

     wd_this-&gt;focus( field = &apos;MATNR&apos; screen = &apos;SO01&apos; ).

     wd_this-&gt;message( silent ).

     &quot;check only one error

     IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

  ENDIF.

  IF gd-xchpf IS INITIAL. &quot;nesarzovany mat

     CLEAR wd_this-&gt;p_charg-&gt;*.

     wd_this-&gt;mr_so01_gui-&gt;set_attribute(

       name  = &apos;CHARG_DISABLE&apos;

       value = abap_true ).

  ENDIF.

  wd_this-&gt;p_matnr-&gt;* = gd-matnr. &quot;redraw formated



* load xchpf, check charg (clear charg for XCHPF = &apos;&apos;)

  CALL FUNCTION &apos;ZMC_CHECK_CHARG&apos;

    EXPORTING

      werks             = wd_this-&gt;p_werks-&gt;*

      matnr             = wd_this-&gt;p_matnr-&gt;*

*   IMPORTING

*      xchpf             = gd-xchpf

    CHANGING

      charg           = wd_this-&gt;p_charg-&gt;*

   EXCEPTIONS

     empty_charg       = 1

     wrong_matnr       = 2

     OTHERS            = 3.

  IF sy-subrc &lt;&gt; 0.

     wd_this-&gt;focus( field = &apos;CHARG&apos; screen = &apos;SO01&apos; ).

     wd_this-&gt;message( silent ).

     &quot;check only one error

     IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

  ENDIF.

  gd-charg = wd_this-&gt;p_charg-&gt;*.



* check stock

  CALL FUNCTION &apos;ZMC_CHECK_STOCK&apos;

    EXPORTING

         werks         = wd_this-&gt;p_werks-&gt;* &quot;zavod

         lgort         = wd_this-&gt;p_lgort-&gt;*  &quot;sklad z

         matnr         = wd_this-&gt;p_matnr-&gt;* &quot;material

         charg         = wd_this-&gt;p_charg-&gt;* &quot;sarze

         sonum17       = wd_this-&gt;p_sonum-&gt;* &quot;zvl. zásoba

*         MENGE         = &quot;mnozstvi

*         INSMK         = &quot;typ zasoby

    IMPORTING

         labst         = gd-labst &quot;ocenena, volna zasoba

         insme         = gd-insme &quot;zasoba - kontrola jakosti

         speme         = gd-speme &quot;zablokovaná zásoba



         sobkz         = gd-sobkz &quot;znak zvl. zásoby

         sonum         = gd-sonum &quot;c. zvl. zasoby



         &quot;E - zakazkova zasoba

         kdauf         = gd-kdauf &quot;hlav. zakazky

         kdpos         = gd-kdpos &quot;pol.  zakazky



         &quot;K - zlv. zas. od odberatele

         lifnr         = gd-lifnr &quot;c. dodavatele



         &quot;P,Q - projektova zasoba

         ps_psp_pnr    = gd-ps_psp_pnr &quot;projekt (SPP)



    EXCEPTIONS

         no_sonum17    = 1

         unknown_sobkz = 2

         no_mske       = 3

         no_menge      = 4

         no_proj       = 5

         no_mspr       = 6

         no_mard       = 7

         no_mchb       = 8

         no_mkol       = 9

         OTHERS        = 10.

  IF sy-subrc &lt;&gt; 0.

     wd_this-&gt;focus( field = &apos;MATNR&apos; screen = &apos;SO01&apos; ).

     wd_this-&gt;message( silent ).

     &quot;check only one error

     IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

  ENDIF.



* check any menge

  IF gd-labst = 0 AND gd-insme = 0.

*    sy-msgid  = &apos;YRFABB&apos;.

*    sy-msgty  = &apos;E&apos;.

*    sy-msgno  = &apos;014&apos;.

*    sy-msgv1  = wd_this-&gt;p_matnr-&gt;*.

*    sy-msgv2  = wd_this-&gt;p_werks-&gt;*.

*    sy-msgv3  = wd_this-&gt;p_lgort-&gt;*.

*    sy-msgv4  = wd_this-&gt;p_sonum-&gt;*.

    CALL FUNCTION &apos;ZMC_SET_MSG&apos;

    EXPORTING

      ID  = &apos;ZRF2&apos;

      NUM = 014

     	VAL1 = wd_this-&gt;p_matnr-&gt;*

     	VAL2 = wd_this-&gt;p_werks-&gt;*

     	VAL3 = wd_this-&gt;p_lgort-&gt;*

     	VAL4 = wd_this-&gt;p_sonum-&gt;*

      .



    wd_this-&gt;focus( field = &apos;MATNR&apos; screen = &apos;SO01&apos; ).

    wd_this-&gt;message( silent ).

     &quot;check only one error

     IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

  ENDIF.



  &quot;druh zasoby

  IF gd-labst &gt; 0 AND gd-insme &gt; 0.

*    wd_this-&gt;p_insmk-&gt;* = &apos;&apos;.

    l_insmk_disable = &apos;&apos;.

  ELSEIF gd-labst = 0 AND gd-insme &gt; 0.

    wd_this-&gt;p_insmk-&gt;* = &apos;X&apos;.

    l_insmk_disable = &apos;X&apos;.

  ELSE. &quot;gd-labst &gt; 0 and gd-insme = 0.

    wd_this-&gt;p_insmk-&gt;* = &apos;&apos;.

    l_insmk_disable = &apos;X&apos;.

  ENDIF.

  wd_this-&gt;mr_so01_gui-&gt;set_attribute(

    name  = &apos;INSMK_DISABLE&apos;

    value = l_insmk_disable

  ).



* check stock type

  IF wd_this-&gt;p_insmk-&gt;* = &apos;s&apos; OR wd_this-&gt;p_insmk-&gt;* = &apos;S&apos;.

*     sy-msgid = &apos;ZVE_BC&apos;.

*     sy-msgty = &apos;E&apos;.

*     sy-msgno = 3.

    CALL FUNCTION &apos;ZMC_SET_MSG&apos;

      EXPORTING

        ID  = &apos;ZRF2&apos;

        NUM = 003.





     wd_this-&gt;focus( field = &apos;INSMK&apos; screen = &apos;SO01&apos; ).

     wd_this-&gt;message( silent ).

*     &quot;check only one error

     IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

  ENDIF.

  &quot;other values are checked by SAP (list of enabled values)

  gd-insmk = wd_this-&gt;p_insmk-&gt;*.



* everything OK - Focus

  IF wd_this-&gt;act_focus = &apos;SONUM&apos; OR wd_this-&gt;act_focus = &apos;INSMK&apos;.

    wd_this-&gt;focus( field = &apos;INSMK&apos; screen = &apos;SO01&apos; ).

  ELSE.

    wd_this-&gt;focus( field = &apos;SONUM&apos; screen = &apos;SO01&apos; ).

  ENDIF.



* OK flag - go to next screen

  IF l_insmk_disable = &apos;X&apos;.

    IF wd_this-&gt;prev_focus = &apos;SONUM&apos;.

       wd_this-&gt;okflag = &apos;X&apos;.

    ENDIF.

  ELSE.

    IF wd_this-&gt;prev_focus = &apos;INSMK&apos;.

       wd_this-&gt;okflag = &apos;X&apos;.

    ENDIF.

  ENDIF.





******** store data *******************************************



  wd_this-&gt;mr_global_data-&gt;set_static_attributes( gd ).



  ENDIF. &quot;reload only



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO01_CLEAR" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO01_CLEAR" CODE_BODY="method SO01_CLEAR .



*  wd_this-&gt;so01_check( reload_only = &apos;X&apos; ).



* clear data

*  clear wd_this-&gt;p_werks-&gt;*.

*  clear wd_this-&gt;p_lgort-&gt;*.

*  clear wd_this-&gt;p_umlgo-&gt;*.

  clear wd_this-&gt;p_matnr-&gt;*.

  clear wd_this-&gt;p_charg-&gt;*.

  clear wd_this-&gt;p_sonum-&gt;*.



** prefill data

*  SELECT SINGLE parva FROM usr05 &quot;zavod

*    INTO wd_this-&gt;p_werks-&gt;*

*    WHERE bname EQ sy-uname

*      AND parid EQ &apos;WRK&apos;.

*

*  SELECT SINGLE parva FROM usr05 &quot;sklad z

*    INTO wd_this-&gt;p_lgort-&gt;*

*    WHERE bname EQ sy-uname

*      AND parid EQ &apos;ZLAG_FROM&apos;.

*

*  SELECT SINGLE parva FROM usr05 &quot;sklad do

*    INTO wd_this-&gt;p_umlgo-&gt;*

*    WHERE bname EQ sy-uname

*      AND parid EQ &apos;ZLAG_TO&apos;.



  wd_this-&gt;so01_update( ).



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO01_ON_ENTER" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_COMPONENT="WDR_SELECT_OPTIONS" REF_CTLR_NAME="COMPONENTCONTROLLER" REF_CMPNAME="ON_ENTER" DISPLAY_NAME="SO01_ON_ENTER" CODE_BODY="method SO01_ON_ENTER .





   wd_this-&gt;SO01_CHECK( silent = &apos;X&apos; ). &quot;do not display errors

   wd_this-&gt;SO01_update( ). &quot;updated gui (charg enable/disable)



*  confirm if all field were filled OK

   if wd_this-&gt;okflag = &apos;X&apos;.



      DATA lo_w_main TYPE REF TO ig_ZMC_BC_PRIJEM .

      lo_w_main =   wd_this-&gt;get_ZMC_BC_PRIJEM_ctr( ).

      lo_w_main-&gt;fire_goto_so02_plg( ).



   endif.



endmethod.

" ACTION_TYPE="0" EVENT_SOURCE="4RGTGCN9K1RE4T1NA1QA7MXBJ" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO01_ON_NEXT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO01_ON_NEXT" CODE_BODY="method SO01_ON_NEXT .





   wd_this-&gt;so01_check( ). &quot;with errors

   wd_this-&gt;so01_update( ). &quot;updated gui (charg)



*  confirm if all field were filled OK

   IF wd_this-&gt;errflag = &apos;&apos;.



      DATA lo_w_main TYPE REF TO ig_ZMC_BC_PRIJEM .

      lo_w_main = wd_this-&gt;get_ZMC_BC_PRIJEM_ctr( ).

      lo_w_main-&gt;fire_goto_so02_plg( ).



   ENDIF.





endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO01_UPDATE" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO01_UPDATE" CODE_BODY="METHOD so01_update .



  DATA tmp_bool.



**** Init Selscreen **********************************************



  IF first_time = &apos;X&apos;.



* instantiate used component

  DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.

  lo_cmp_usage =  wd_this-&gt;wd_cpuse_usage_so01( ).



  IF lo_cmp_usage-&gt;has_active_component( ) IS INITIAL.

    lo_cmp_usage-&gt;create_component( ).

  ENDIF.



* get Selscreen Reference from SO If Controller

  DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .

  lo_interfacecontroller =   wd_this-&gt;wd_cpifc_usage_so01( ).



  wd_this-&gt;mr_so01 = lo_interfacecontroller-&gt;init_selection_screen( ).



* global settings

  wd_this-&gt;mr_so01-&gt;set_global_options(

    i_display_btn_cancel  = abap_false

    i_display_btn_check   = abap_false

    i_display_btn_reset   = abap_false

    i_display_btn_execute = abap_false

  ).



* create selscreen data

  CREATE DATA wd_this-&gt;p_werks.

  CREATE DATA wd_this-&gt;p_lgort.

  CREATE DATA wd_this-&gt;p_umlgo.

  CREATE DATA wd_this-&gt;p_matnr.

  CREATE DATA wd_this-&gt;p_charg.

  CREATE DATA wd_this-&gt;p_sonum.

  CREATE DATA wd_this-&gt;p_insmk.



* prefill data

  wd_this-&gt;prefill_user_params( ).





**** Clear Selscreen **********************************************



  ELSE.

    wd_this-&gt;mr_so01-&gt;remove_all_sel_screen_items( ).

  ENDIF.





**** set-up Selscreen **********************************************



   DATA tmp_text TYPE string.



*  wd_this-&gt;mr_selscreen-&gt;add_parameter_field(

*    i_id          = &apos;PERNR&apos;

*    i_value       = wd_this-&gt;p_pernr

*    i_description = tmp_text

**    i_read_only   = abap_true

*    i_value_help_type = if_wd_value_help_handler=&gt;co_prefix_searchhelp

*    i_value_help_id = &apos;ZPREMN&apos;

*    ).





*  CREATE DATA wd_this-&gt;p_werks. &quot;zavod

  wd_this-&gt;mr_so01-&gt;add_parameter_field(

    i_id              = &apos;WERKS&apos;

    i_value           = wd_this-&gt;p_werks

    i_value_help_mode = 1 &quot;deactivated

*    i_value_help_id   = &apos;&apos;

*    i_obligatory  = abap_true &quot;vypada to blbě

*    i_read_only   = abap_true

  ).



*  CREATE DATA wd_this-&gt;p_lgort. &quot;sklad z (nerizeny)

  IF sy-langu = &apos;C&apos;.

     tmp_text = &apos;Sklad z&apos;.

  ELSE.

     tmp_text = &apos;StorFrom&apos;.

  ENDIF.

  wd_this-&gt;mr_so01-&gt;add_parameter_field(

    i_id          = &apos;LGORT&apos;

    i_value       = wd_this-&gt;p_lgort

    i_description = tmp_text

  ).



*  CREATE DATA wd_this-&gt;p_umlgo. &quot;sklad na (rizeny)

  IF sy-langu = &apos;C&apos;.

     tmp_text = &apos;Sklad do&apos;.

  ELSE.

     tmp_text = &apos;Storage to&apos;.

  ENDIF.

  wd_this-&gt;mr_so01-&gt;add_parameter_field(

    i_id          = &apos;UMLGO&apos;

    i_value       = wd_this-&gt;p_umlgo

    i_description = tmp_text

*    i_obligatory  = abap_true

  ).



*  CREATE DATA wd_this-&gt;p_matnr. &quot;for type recognition

  wd_this-&gt;mr_so01-&gt;add_parameter_field(

    i_id          = &apos;MATNR&apos;

    i_value       = wd_this-&gt;p_matnr

*    i_obligatory  = abap_true

  ).



*  CREATE DATA wd_this-&gt;p_charg. &quot;sarze

  wd_this-&gt;mr_so01_gui-&gt;get_attribute(

    EXPORTING name  = &apos;CHARG_DISABLE&apos;

    IMPORTING value = tmp_bool ).

  wd_this-&gt;mr_so01-&gt;add_parameter_field(

    i_id          = &apos;CHARG&apos;

    i_value       = wd_this-&gt;p_charg

    i_read_only   = tmp_bool

*    i_obligatory  = abap_true

  ).



*  CREATE DATA wd_this-&gt;p_sonum. &quot;zvl. zasoba

  IF sy-langu = &apos;C&apos;.

     tmp_text = &apos;ZvlZás&apos;.

  ELSE.

     tmp_text = &apos;SpecStock&apos;.

  ENDIF.

  wd_this-&gt;mr_so01-&gt;add_parameter_field(

    i_id          = &apos;SONUM&apos;

    i_value       = wd_this-&gt;p_sonum

    i_description = tmp_text

  ).



*  CREATE DATA wd_this-&gt;p2_insmk.

  wd_this-&gt;mr_so01_gui-&gt;get_attribute(

    EXPORTING name  = &apos;INSMK_DISABLE&apos;

    IMPORTING value = tmp_bool ).

*  tmp_text = &apos;

  wd_this-&gt;mr_so01-&gt;add_parameter_field(

    i_id          = &apos;INSMK&apos;

    i_value       = wd_this-&gt;p_insmk

    i_read_only   = tmp_bool

*    i_description = tmp_text

    ).





ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_ADD_ITEM" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO02_ADD_ITEM" CODE_BODY="METHOD so02_add_item.



  DATA wa_mng TYPE wd_this-&gt;element_menge_list.

  DATA tmp_lgnum TYPE lgnum.



* executed after screen check - all fields are ok



* get warehouse id

  wd_this-&gt;mr_global_data-&gt;get_attribute(

    EXPORTING name  = &apos;LGNUM&apos;

    IMPORTING value = tmp_lgnum

  ).



* set data

  wa_mng-insmk = wd_this-&gt;p2_insmk-&gt;*.

  wa_mng-menge = wd_this-&gt;p2_menge2-&gt;*.

  wa_mng-charg = wd_this-&gt;p2_charg-&gt;*.

  CALL FUNCTION &apos;ZMC_CONV_LGPLA_12&apos;

    EXPORTING

      lgnum      = tmp_lgnum &quot;č. říz. skladu

      misto      = wd_this-&gt;p2_sklm-&gt;*

      u_v        = &apos;U&apos;  &quot;uskladnit

    IMPORTING

      lgtyp      = wa_mng-lgtyp &quot;typ skladu

      lgpla      = wa_mng-lgpla &quot;skl. místo

      lenvw      = wa_mng-lenvw &quot;skl. s řízením skl. jednotek

    EXCEPTIONS

      empty      = 1

      blok_uskl  = 2

      blok_vyskl = 3

      neexistuje = 4

      OTHERS     = 5.

  wd_this-&gt;mr_menge_list-&gt;bind_element(

    new_item = wa_mng

    set_initial_elements = abap_false

  ).



  wd_this-&gt;menge_count = wd_this-&gt;mr_menge_list-&gt;get_element_count( ).



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_AUTH" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO02_AUTH" CODE_BODY="method SO02_AUTH .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_CHECK" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO02_CHECK" CODE_BODY="METHOD so02_check .



* global data

  DATA gd TYPE wd_this-&gt;element_global_data.



* data for total menge &amp; storage bin check

  DATA lt_mng TYPE wd_this-&gt;elements_menge_list.

  DATA wa_mng TYPE wd_this-&gt;element_menge_list.

  DATA tmp_tot LIKE wa_mng-menge. &quot;total menge





******** init data *******************************************



  CLEAR wd_this-&gt;errflag.



* get menge list

  wd_this-&gt;mr_menge_list-&gt;get_static_attributes_table(

    IMPORTING table = lt_mng

  ).



* get global data

  wd_this-&gt;mr_global_data-&gt;get_static_attributes(

    IMPORTING static_attributes = gd

  ).



* load data from selscreen 02 (null parameters)

  wd_this-&gt;p2_insmk ?=

    wd_this-&gt;mr_so02-&gt;get_value_of_parameter_field( &apos;INSMK&apos; ).

  wd_this-&gt;p2_menge2 ?=

    wd_this-&gt;mr_so02-&gt;get_value_of_parameter_field( &apos;MENGE2&apos; ).

  IF gd-lgnum IS NOT INITIAL.

     wd_this-&gt;p2_sklm ?=

       wd_this-&gt;mr_so02-&gt;get_value_of_parameter_field( &apos;SKLM&apos; ).

  ELSE.

     CLEAR wd_this-&gt;p2_sklm.

  ENDIF.

  IF gd-xchpf IS NOT INITIAL.

     wd_this-&gt;p2_charg ?=

       wd_this-&gt;mr_so02-&gt;get_value_of_parameter_field( &apos;CHARG&apos; ).

  ELSE.

     CLEAR wd_this-&gt;p2_charg.

  ENDIF.



* handle NULL values

  IF wd_this-&gt;p2_insmk  IS INITIAL.CREATE DATA wd_this-&gt;p2_insmk.ENDIF.

  IF wd_this-&gt;p2_menge2 IS INITIAL.CREATE DATA wd_this-&gt;p2_menge2.ENDIF.

  IF wd_this-&gt;p2_sklm   IS INITIAL.CREATE DATA wd_this-&gt;p2_sklm. ENDIF.

  IF wd_this-&gt;p2_charg  IS INITIAL.CREATE DATA wd_this-&gt;p2_charg. ENDIF.



* reload available menge

  CLEAR wd_this-&gt;p2_menge1-&gt;*.

  IF wd_this-&gt;p2_insmk-&gt;* = &apos;X&apos;.

     wd_this-&gt;p2_menge1-&gt;* = gd-insme. &quot;quan to int

  ELSEIF wd_this-&gt;p2_insmk-&gt;* = &apos;&apos;.

    wd_this-&gt;p2_menge1-&gt;* = gd-labst.

  ENDIF.

  CALL FUNCTION &apos;ZMC_FORMAT_NUMBER&apos;

    EXPORTING

      i_number      = wd_this-&gt;p2_menge1-&gt;*

   IMPORTING

     e_number       = wd_this-&gt;p2_menge1-&gt;*

   EXCEPTIONS

     nan            = 1

     OTHERS         = 2.

*IF sy-subrc &lt;&gt; 0.

*   &quot;should be a positive number

*ENDIF.



******** check data *******************************************



IF reload_only IS INITIAL.



* check stock type

  IF wd_this-&gt;p2_insmk-&gt;* = &apos;s&apos; OR wd_this-&gt;p2_insmk-&gt;* = &apos;S&apos;.

*     sy-msgid = &apos;ZVE_BC&apos;.

*     sy-msgty = &apos;E&apos;.

*     sy-msgno = 3.

    CALL FUNCTION &apos;ZMC_SET_MSG&apos;

    EXPORTING

      ID  = &apos;ZRF2&apos;

      NUM = 003.



     wd_this-&gt;focus( field = &apos;INSMK&apos; screen = &apos;SO02&apos; ).

     wd_this-&gt;message( silent ).



     &quot;check only one error

     IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

  ENDIF.

  &quot;other values are checked by SAP (list of enabled values)



* check menge filled

  IF wd_this-&gt;p2_menge2-&gt;* IS INITIAL.

*     sy-msgid = &apos;YRFABB&apos;.

*     sy-msgty = &apos;E&apos;.

*     sy-msgno = 1.

*     IF sy-langu = &apos;C&apos;.

*       sy-msgv1 = &apos;Množství&apos;.

*     ELSE.

*       sy-msgv1 = &apos;Quantity&apos;.

*     ENDIF.

    CALL FUNCTION &apos;ZMC_SET_MSG&apos;

    EXPORTING

      ID  = &apos;ZRF2&apos;

      NUM = 001

      VAL1 = &apos;Množství&apos;.





     wd_this-&gt;focus( field = &apos;MENGE2&apos; screen = &apos;SO02&apos; ).

     wd_this-&gt;message( silent ).

     &quot;check only one error

     IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

  ENDIF.



* check menge is a positive number

  CALL FUNCTION &apos;ZMC_FORMAT_NUMBER&apos;

    EXPORTING

      i_number      = wd_this-&gt;p2_menge2-&gt;*

   IMPORTING

     e_number       = wd_this-&gt;p2_menge2-&gt;*

   EXCEPTIONS

     nan            = 1

     OTHERS         = 2.

  IF sy-subrc &lt;&gt; 0 OR wd_this-&gt;p2_menge2-&gt;* = 0.

*     sy-msgid = &apos;ZVE_BC&apos;.

*     sy-msgty = &apos;E&apos;.

*     sy-msgno = 1.

    CALL FUNCTION &apos;ZMC_SET_MSG&apos;

    EXPORTING

      ID  = &apos;ZRF2&apos;

      NUM = 008.



     wd_this-&gt;focus( field = &apos;MENGE2&apos; screen = &apos;SO02&apos; ).

     wd_this-&gt;message( silent ).

     &quot;check only one error

     IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

  ENDIF.



* check total menge(s) for given INSMK (all quans in base unit)

  CLEAR tmp_tot.

  &quot;total menge from menge list

  LOOP AT lt_mng INTO wa_mng WHERE insmk = wd_this-&gt;p2_insmk-&gt;*.

    ADD wa_mng-menge TO tmp_tot.

  ENDLOOP.

  &quot;subtract old value (if any and of same type)

  READ TABLE lt_mng INDEX wd_this-&gt;menge_index INTO wa_mng.

  IF sy-subrc = 0 AND wa_mng-insmk EQ wd_this-&gt;p2_insmk-&gt;*.

    SUBTRACT wa_mng-menge FROM tmp_tot.

  ENDIF.

  &quot;add new value

  ADD wd_this-&gt;p2_menge2-&gt;* TO tmp_tot.

  &quot;check

  IF tmp_tot &gt; wd_this-&gt;p2_menge1-&gt;*.

*     sy-msgid = &apos;ZVE_BC&apos;.

*     sy-msgty = &apos;E&apos;.

*     sy-msgno = 2.

    CALL FUNCTION &apos;ZMC_SET_MSG&apos;

    EXPORTING

      ID  = &apos;ZRF2&apos;

      NUM = 002.



     wd_this-&gt;focus( field = &apos;MENGE2&apos; screen = &apos;SO02&apos; ).

     wd_this-&gt;message( silent ).

     &quot;check only one error

     IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

  ENDIF.



* chech charg (xchpf materials)

  IF gd-xchpf IS NOT INITIAL.



*   load xchpf, check charg (clear charg for XCHPF = &apos;&apos;)

    CALL FUNCTION &apos;ZMC_CHECK_CHARG&apos;

      EXPORTING

        werks             = gd-werks

        matnr             = gd-matnr

*     IMPORTING

*        xchpf             = gd-xchpf

      CHANGING

        charg           = wd_this-&gt;p2_charg-&gt;*

     EXCEPTIONS

       empty_charg       = 1

       wrong_matnr       = 2

       OTHERS            = 3.

    IF sy-subrc &lt;&gt; 0.

       wd_this-&gt;focus( field = &apos;CHARG&apos; screen = &apos;SO02&apos; ).

       wd_this-&gt;message( silent ).

       &quot;check only one error

       IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

    ELSE.

      &quot;select charg field in anyway

      IF wd_this-&gt;act_focus &lt;&gt; &apos;CHARG&apos; AND silent IS NOT INITIAL.

         wd_this-&gt;focus( field = &apos;CHARG&apos; screen = &apos;SO02&apos; ).

         wd_this-&gt;errflag = &apos;X&apos;. &quot;dont add the item

         EXIT.

      ENDIF.

    ENDIF.



  ENDIF.





* chech storage bin (for controlled warehouse)

  IF gd-lgnum IS NOT INITIAL.



*   check not empty

    IF wd_this-&gt;p2_sklm-&gt;* IS INITIAL.

*      sy-msgid = &apos;YRFABB&apos;.

*      sy-msgty = &apos;E&apos;.

*      sy-msgno = 1.

*      IF sy-langu = &apos;C&apos;.

*        sy-msgv1 = &apos;Skl. místo&apos;.

*      ELSE.

*        sy-msgv1 = &apos;Storage Bin&apos;.

*      ENDIF.

      CALL FUNCTION &apos;ZMC_SET_MSG&apos;

        EXPORTING

          ID   =  &apos;ZRF2&apos;

          NUM  = 008

          VAL1 = &apos;Skl. místo&apos;.





      wd_this-&gt;focus( field = &apos;SKLM&apos; screen = &apos;SO02&apos; ).

      wd_this-&gt;message( silent ).

      &quot;check only one error

      IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

    ENDIF.



*   check StorBin exists &amp; is available for stock placement

    CALL FUNCTION &apos;ZMC_CONV_LGPLA_12&apos;

      EXPORTING

           lgnum      = gd-lgnum &quot;č. říz. skladu

           misto      = wd_this-&gt;p2_sklm-&gt;*

           u_v        = &apos;U&apos;  &quot;uskladnit

      IMPORTING

           lgtyp      = wa_mng-lgtyp &quot;typ skladu

           lgpla      = wa_mng-lgpla &quot;skl. místo

           lenvw      = wa_mng-lenvw &quot;skl. s řízením skl. jednotek

      EXCEPTIONS

           empty      = 1

           blok_uskl  = 2

           blok_vyskl = 3

           neexistuje = 4

           OTHERS     = 5.

    IF sy-subrc = 0.

      &quot;reformat Storage Bin ID

      CONCATENATE wa_mng-lgtyp &apos;.&apos; wa_mng-lgpla

        INTO wd_this-&gt;p2_sklm-&gt;*.

    ELSE.

      wd_this-&gt;focus( field = &apos;SKLM&apos; screen = &apos;SO02&apos; ).

      wd_this-&gt;message( silent ).

      &quot;check only one error

      IF wd_this-&gt;errflag = &apos;X&apos;. EXIT. ENDIF.

    ENDIF.



  ENDIF. &quot;rizeny sklad



* focus if OK



ENDIF. &quot;reload only



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_IS_INITIAL" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO02_IS_INITIAL" CODE_BODY="METHOD so02_is_initial .



  CLEAR ret.



* get warehouse id

  DATA tmp_lgnum TYPE lgnum.

  wd_this-&gt;mr_global_data-&gt;get_attribute(

    EXPORTING name  = &apos;LGNUM&apos;

    IMPORTING value = tmp_lgnum

  ).



* load data from selscreen 02 (null parameters)



  wd_this-&gt;p2_menge2 ?=

    wd_this-&gt;mr_so02-&gt;get_value_of_parameter_field( &apos;MENGE2&apos; ).

  CHECK wd_this-&gt;p2_menge2 IS INITIAL.



  IF tmp_lgnum IS NOT INITIAL.

     wd_this-&gt;p2_sklm ?=

       wd_this-&gt;mr_so02-&gt;get_value_of_parameter_field( &apos;SKLM&apos; ).

     CHECK wd_this-&gt;p2_sklm IS INITIAL.

  ENDIF.



  ret = &apos;X&apos;.



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_LOAD" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO02_LOAD" CODE_BODY="METHOD so02_load .



  DATA l_insmk_disable.



* get global data

  DATA gd TYPE wd_this-&gt;element_global_data.

  wd_this-&gt;mr_global_data-&gt;get_static_attributes(

    IMPORTING static_attributes = gd

  ).



* fill selscreen fields

  wd_this-&gt;p2_matnr-&gt;* = gd-matnr.

  wd_this-&gt;p2_maktx-&gt;* = gd-maktx.

  wd_this-&gt;p2_meins-&gt;* = gd-meins.



 &quot;druh zasoby

  wd_this-&gt;p2_insmk-&gt;* = gd-insmk.

  l_insmk_disable = &apos;X&apos;.

*  IF gd-labst &gt; 0 AND gd-insme &gt; 0.

*    wd_this-&gt;p2_insmk-&gt;* = &apos;&apos;.

*    l_insmk_disable = &apos;&apos;.

*

*  ELSEIF gd-labst = 0 AND gd-insme &gt; 0.

*    wd_this-&gt;p2_insmk-&gt;* = &apos;X&apos;.

*    l_insmk_disable = &apos;X&apos;.

*

*  ELSE. &quot;gd-labst &gt; 0 and gd-insme = 0.

*    wd_this-&gt;p2_insmk-&gt;* = &apos;&apos;.

*    l_insmk_disable = &apos;X&apos;.

*

*  ENDIF.

  wd_this-&gt;mr_so02_gui-&gt;set_attribute(

    name  = &apos;INSMK_DISABLE&apos;

    value = l_insmk_disable

  ).



  &quot;dostupne mnozstvi

  CLEAR wd_this-&gt;p2_menge1-&gt;*.

  IF wd_this-&gt;p2_insmk-&gt;* = &apos;X&apos;.

     wd_this-&gt;p2_menge1-&gt;* = gd-insme. &quot;quan to int

  ELSEIF wd_this-&gt;p2_insmk-&gt;* = &apos;&apos;.

    wd_this-&gt;p2_menge1-&gt;* = gd-labst.

  ENDIF.

  CALL FUNCTION &apos;ZVE_FORMAT_NUMBER&apos;

    EXPORTING

      i_number      = wd_this-&gt;p2_menge1-&gt;*

   IMPORTING

     e_number       = wd_this-&gt;p2_menge1-&gt;*

   EXCEPTIONS

     nan            = 1

     OTHERS         = 2.

*IF sy-subrc &lt;&gt; 0.

*   &quot;should be a positive number

*ENDIF.





  &quot;input fields

  CLEAR wd_this-&gt;p2_menge2-&gt;*.

  CLEAR wd_this-&gt;p2_sklm-&gt;*.



  IF gd-lgnum IS INITIAL. &quot;nerizeny sklad

    wd_this-&gt;mr_so02_gui-&gt;set_attribute(

      name  = &apos;SKLM_SHOW&apos;

      value = abap_false

    ).

  ELSE. &quot;rizeny sklad

    wd_this-&gt;mr_so02_gui-&gt;set_attribute(

      name  = &apos;SKLM_SHOW&apos;

      value = abap_true

    ).

  ENDIF.



  IF gd-xchpf IS INITIAL. &quot;nesarzovany mat

    wd_this-&gt;mr_so02_gui-&gt;set_attribute(

      name  = &apos;CHARG_SHOW&apos;

      value = abap_false

    ).

    clear wd_this-&gt;p2_charg-&gt;*.

  ELSE. &quot;sarzovany mat

    wd_this-&gt;mr_so02_gui-&gt;set_attribute(

      name  = &apos;CHARG_SHOW&apos;

      value = abap_true

    ).

    wd_this-&gt;p2_charg-&gt;* = gd-charg.

  ENDIF.



* clear menge list

  wd_this-&gt;menge_index = 1.

  wd_this-&gt;menge_count = 0.

  wd_this-&gt;mr_menge_list-&gt;invalidate( ).





ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_MOD_ITEM" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO02_MOD_ITEM" CODE_BODY="METHOD so02_mod_item.



  DATA wa_mng TYPE wd_this-&gt;element_menge_list.

  DATA tmp_lgnum TYPE lgnum.



* executed after screen check - all fields are ok



* get warehouse id

  wd_this-&gt;mr_global_data-&gt;get_attribute(

    EXPORTING name  = &apos;LGNUM&apos;

    IMPORTING value = tmp_lgnum

  ).



* set data

  wa_mng-insmk = wd_this-&gt;p2_insmk-&gt;*.

  wa_mng-menge = wd_this-&gt;p2_menge2-&gt;*.

  wa_mng-charg = wd_this-&gt;p2_charg-&gt;*.

  CALL FUNCTION &apos;ZMC_CONV_LGPLA_12&apos;

    EXPORTING

      lgnum      = tmp_lgnum &quot;č. říz. skladu

      misto      = wd_this-&gt;p2_sklm-&gt;*

      u_v        = &apos;U&apos;  &quot;uskladnit

    IMPORTING

      lgtyp      = wa_mng-lgtyp &quot;typ skladu

      lgpla      = wa_mng-lgpla &quot;skl. místo

      lenvw      = wa_mng-lenvw &quot;skl. s řízením skl. jednotek

    EXCEPTIONS

      empty      = 1

      blok_uskl  = 2

      blok_vyskl = 3

      neexistuje = 4

      OTHERS     = 5.



  wd_this-&gt;mr_menge_list-&gt;set_static_attributes(

    index = wd_this-&gt;menge_index

    static_attributes = wa_mng

  ).



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_ON_ENTER" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_COMPONENT="WDR_SELECT_OPTIONS" REF_CTLR_NAME="COMPONENTCONTROLLER" REF_CMPNAME="ON_ENTER" DISPLAY_NAME="SO02_ON_ENTER" CODE_BODY="method SO02_ON_ENTER .



  wd_this-&gt;so02_check( silent = &apos;X&apos; ). &quot;do not display errors



  if wd_this-&gt;errflag = &apos;&apos;.



   IF wd_this-&gt;menge_index &gt; wd_this-&gt;menge_count.

*    last item -&gt; add new

     wd_this-&gt;so02_add_item( ).

   ELSE.

*    middle item -&gt; modify

     wd_this-&gt;so02_mod_item( ).

   ENDIF. &quot;last item



   endif.

   wd_this-&gt;so02_update( ).



endmethod.

" ACTION_TYPE="0" EVENT_SOURCE="4RJ0S1EQ9ZY7EENDAHCGES0TR" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_REM_ITEM" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO02_REM_ITEM" CODE_BODY="METHOD so02_rem_item .



  DATA elem TYPE REF TO if_wd_context_element.



* remove item at Index - menge field is empty



  elem = wd_this-&gt;mr_menge_list-&gt;move_to( wd_this-&gt;menge_index ).

  wd_this-&gt;mr_menge_list-&gt;remove_element( elem ).



  wd_this-&gt;menge_count = wd_this-&gt;mr_menge_list-&gt;get_element_count( ).



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_SAVE" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO02_SAVE" CODE_BODY="METHOD so02_save .



* ZVE_BC data

  DATA gd TYPE wd_this-&gt;element_global_data.

  DATA lt_mng TYPE wd_this-&gt;elements_menge_list.

  DATA wa_mng TYPE wd_this-&gt;element_menge_list.



* YRF data

  DATA l_navrh  TYPE char29. &quot;sugested storage bin



  DATA lt_lgtyp TYPE zmc_rng_t_lgtyp. &quot;some criterion

  DATA wa_lgtyp TYPE zmc_rng_s_lgtyp.



  DATA lt_lqua TYPE zmc_t_lqua. &quot;list of storege bins

  DATA wa_lqua TYPE zmc_s_lqua.



  DATA lt_ltap TYPE zmc_t_ltap. &quot;data tables

  DATA wa_ltap TYPE zmc_s_ltap.

  DATA lt_mseg TYPE table of zmc_bc_s_mseg.

  DATA wa_mseg TYPE zmc_bc_s_mseg.



  DATA xnapr TYPE xnapr.





* - - - - - - - - - - - - - - - *



  CLEAR wd_this-&gt;errflag.



* get global data

  wd_this-&gt;mr_global_data-&gt;get_static_attributes(

    IMPORTING static_attributes = gd

  ).



* get menge list

  wd_this-&gt;mr_menge_list-&gt;get_static_attributes_table(

    IMPORTING table = lt_mng

  ).







***** YRF Code ********

  IF gd-lgnum IS NOT INITIAL. &quot;rizeny sklad



      CLEAR: wa_lgtyp, lt_lgtyp.

      wa_lgtyp-sign   = &apos;E&apos;.

      wa_lgtyp-option = &apos;CP&apos;.

      wa_lgtyp-low    = &apos;9*&apos;.

      APPEND wa_lgtyp TO lt_lgtyp.



      CALL FUNCTION &apos;ZMC_GET_LQUA&apos; &quot;get list

        EXPORTING

             matnr    = gd-matnr

             werks    = gd-werks

             lgort    = gd-umlgo

             lgnum    = gd-lgnum

        TABLES

             it_lgtyp = lt_lgtyp

             et_lqua  = lt_lqua.



      CALL FUNCTION &apos;ZMC_PROP_LGPLA&apos; &quot;suggestion

        IMPORTING

             navrh = l_navrh

        TABLES

             lqua  = lt_lqua

             ltap  = lt_ltap.



      CLEAR wa_ltap.

      wa_ltap-matnr = gd-matnr. &quot;ltap header

      wa_ltap-werks = gd-werks.

      wa_ltap-lgort = gd-umlgo.

*      wa_ltap-charg = gd-charg. &quot;sarze - stara

      wa_ltap-sobkz = gd-sobkz.

      wa_ltap-sonum = gd-sonum.

      wa_ltap-meins = gd-meins.

      wa_ltap-vltyp = &apos;921&apos;.

      wa_ltap-vlpla = &apos;UML-ZONE&apos;.



      CLEAR lt_ltap.

      LOOP AT lt_mng INTO wa_mng. &quot;ltap items

        wa_ltap-nltyp = wa_mng-lgtyp.

        wa_ltap-nlpla = wa_mng-lgpla.

        wa_ltap-nsolm = wa_mng-menge.

        wa_ltap-charg = wa_mng-charg. &quot;sarze - nova

        APPEND wa_ltap TO lt_ltap.

      ENDLOOP.



    ENDIF. &quot;rizeny sklad



    CLEAR wa_mseg.

    wa_mseg-matnr = gd-matnr. &quot;mseg header

    wa_mseg-werks = gd-werks.

    wa_mseg-lgort = gd-lgort.

    wa_mseg-umlgo = gd-umlgo.

    wa_mseg-charg = gd-charg. &quot;sarze - stara

    wa_mseg-sobkz = gd-sobkz.

    wa_mseg-kdauf = gd-kdauf.

    wa_mseg-kdpos = gd-kdpos.

    wa_mseg-lifnr = gd-lifnr.

    wa_mseg-meins = gd-meins.

    wa_mseg-ps_psp_pnr = gd-ps_psp_pnr.



    CLEAR lt_mseg.

    LOOP AT lt_mng INTO wa_mng. &quot;mseg items

       wa_mseg-insmk = wa_mng-insmk.

       wa_mseg-menge = wa_mng-menge.

       wa_mseg-charg_new = wa_mng-charg. &quot;sarze - nova

       IF wa_mseg-insmk IS INITIAL.

         wa_mseg-bwart = &apos;311&apos;.

       ELSEIF wa_mseg-insmk EQ &apos;X&apos;.

         wa_mseg-bwart = &apos;321&apos;.

       ELSE.

         CLEAR wa_mseg-bwart.

       ENDIF.

*       APPEND wa_mseg TO lt_mseg.

        collect wa_mseg into lt_mseg.

     ENDLOOP.



     &quot;tisk rizenych zprav

     SELECT SINGLE parva FROM usr05 INTO xnapr

      WHERE bname EQ sy-uname

        AND parid EQ &apos;NDR&apos;.



     CALL FUNCTION &apos;ZMC_SAVE_MSEG&apos;

      EXPORTING

           uname       = sy-uname

           gm_code     = &apos;04&apos;  &quot;prirazeni kodu k tran

           bwart       = &apos;   &apos; &quot;druh pohybu (vedeni zasob)

           kzbew       = &apos; &apos;   &quot;znak pohybu

           lgnum       = gd-lgnum &quot;rizeny sklad

           bwlvs       = &apos;312&apos; &quot;druh pohybu (rizeni skladu)

           squit       = &apos;X&apos;

           nidru       = &apos;X&apos;

           betyp       = &apos; &apos;

           benum       = &apos;          &apos;

           drukz       = &apos;02&apos;

           xnapr       = xnapr &quot;tisk pom. rizenych zprav

      TABLES

           it_mseg     = lt_mseg

           it_ltap     = lt_ltap

      EXCEPTIONS

           mat_doc_err = 1

           wm_doc_err  = 2

           OTHERS      = 3.



    &quot;resul evaluation

    wd_this-&gt;message( ).



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_UPDATE" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="SO02_UPDATE" CODE_BODY="METHOD so02_update .



  DATA tmp_bool.

  DATA tmp_text TYPE string.

  DATA tmp_num TYPE string.

  DATA wa_mng TYPE wd_this-&gt;element_menge_list.



  DATA gd TYPE wd_this-&gt;element_global_data.



**** Init Selscreen **********************************************



IF first_time = &apos;X&apos;.



* instantiate used component

  DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.

  lo_cmp_usage =  wd_this-&gt;wd_cpuse_usage_so02( ).



  IF lo_cmp_usage-&gt;has_active_component( ) IS INITIAL.

    lo_cmp_usage-&gt;create_component( ).

  ENDIF.



* get Selscreen Reference from SO If Controller

  DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .

  lo_interfacecontroller =   wd_this-&gt;wd_cpifc_usage_so02( ).



  wd_this-&gt;mr_so02 = lo_interfacecontroller-&gt;init_selection_screen( ).



* create data

  CREATE DATA wd_this-&gt;p2_matnr.

  CREATE DATA wd_this-&gt;p2_maktx.

  CREATE DATA wd_this-&gt;p2_meins.

  CREATE DATA wd_this-&gt;p2_insmk.

  CREATE DATA wd_this-&gt;p2_menge1.

  CREATE DATA wd_this-&gt;p2_menge2.

  CREATE DATA wd_this-&gt;p2_charg.

  CREATE DATA wd_this-&gt;p2_sklm.



* global settings

  wd_this-&gt;mr_so02-&gt;set_global_options(

    i_display_btn_cancel  = abap_false

    i_display_btn_check   = abap_false

    i_display_btn_reset   = abap_false

    i_display_btn_execute = abap_false

  ).



**** Clear Selscreen **********************************************



ELSE.



  wd_this-&gt;mr_so02-&gt;remove_all_sel_screen_items( ).



ENDIF.





****** Get screen values *****************************************



* get global data

  wd_this-&gt;mr_global_data-&gt;get_static_attributes(

    IMPORTING static_attributes = gd

  ).



* enable/disable prev button

  IF wd_this-&gt;menge_index = 1.

     wd_this-&gt;mr_so02_gui-&gt;set_attribute(

       name = &apos;PREV_ENABLE&apos;

       value = abap_false

     ).

  ELSE.

     wd_this-&gt;mr_so02_gui-&gt;set_attribute(

       name = &apos;PREV_ENABLE&apos;

       value = abap_true

     ).

  ENDIF.





* compile list state, reload fields

* (if error occurs leave fields unchanged)

  IF wd_this-&gt;menge_index &gt; wd_this-&gt;menge_count.

    &quot;new item

    tmp_num = wd_this-&gt;menge_index.

    CONCATENATE &apos;(&apos; tmp_num &apos;/&apos; tmp_num &apos;)&apos; INTO tmp_text.

    &quot;clear fields

    IF wd_this-&gt;errflag IS INITIAL.

      CLEAR wd_this-&gt;p2_menge2-&gt;*.

      CLEAR wd_this-&gt;p2_sklm-&gt;*.

      IF gd-xchpf IS NOT INITIAL.

        wd_this-&gt;p2_charg-&gt;* = gd-charg. &quot;reset charg

      ENDIF.

      &quot;leave INSMK unchanged

    ENDIF.

  ELSE.

    &quot;existing item

    tmp_num = wd_this-&gt;menge_index.

    CONCATENATE &apos;(&apos; tmp_num &apos;/&apos; INTO tmp_text.

    tmp_num = wd_this-&gt;menge_count.

    CONCATENATE tmp_text tmp_num &apos;)&apos; INTO tmp_text.

    &quot;load fields from menge list

    IF wd_this-&gt;errflag IS INITIAL.

      wd_this-&gt;mr_menge_list-&gt;get_static_attributes(

        EXPORTING index = wd_this-&gt;menge_index

        IMPORTING static_attributes = wa_mng ).

      wd_this-&gt;p2_insmk-&gt;*  = wa_mng-insmk.

      CALL FUNCTION &apos;ZMC_FORMAT_NUMBER&apos;

        EXPORTING

          i_number       = wa_mng-menge

        IMPORTING

          e_number       = wd_this-&gt;p2_menge2-&gt;*

        EXCEPTIONS

          nan            = 1

          OTHERS         = 2.

      IF gd-lgnum IS NOT INITIAL.

        CONCATENATE wa_mng-lgtyp &apos;.&apos; wa_mng-lgpla

          INTO wd_this-&gt;p2_sklm-&gt;*.

      ENDIF.

      IF gd-xchpf IS NOT INITIAL.

        wd_this-&gt;p2_charg-&gt;* = wa_mng-charg.

      ENDIF.

    ENDIF.

  ENDIF.

  CONDENSE tmp_text NO-GAPS.

  wd_this-&gt;mr_so02_gui-&gt;set_attribute(

    name  = &apos;LIST_STATE&apos;

    value = tmp_text

  ).







* reload available menge (for reloaded INSMK!)

  CLEAR wd_this-&gt;p2_menge1-&gt;*.

  IF wd_this-&gt;p2_insmk-&gt;* = &apos;X&apos;.

     wd_this-&gt;mr_global_data-&gt;get_attribute(

       EXPORTING name  = &apos;INSME&apos;

       IMPORTING value = wd_this-&gt;p2_menge1-&gt;*

     ).

  ELSEIF wd_this-&gt;p2_insmk-&gt;* = &apos;&apos;.

    wd_this-&gt;mr_global_data-&gt;get_attribute(

       EXPORTING name  = &apos;LABST&apos;

       IMPORTING value = wd_this-&gt;p2_menge1-&gt;*

     ).

  ENDIF.

  CALL FUNCTION &apos;ZMC_FORMAT_NUMBER&apos;

    EXPORTING

      i_number      = wd_this-&gt;p2_menge1-&gt;*

   IMPORTING

     e_number       = wd_this-&gt;p2_menge1-&gt;*

   EXCEPTIONS

     nan            = 1

     OTHERS         = 2.

*IF sy-subrc &lt;&gt; 0.

*   &quot;should be a positive number

*ENDIF.



**** set-up Selscreen **********************************************







*  wd_this-&gt;mr_selscreen-&gt;add_parameter_field(

*    i_id          = &apos;PERNR&apos;

*    i_value       = wd_this-&gt;p_pernr

*    i_description = tmp_text

**    i_read_only   = abap_true

*    i_value_help_type = if_wd_value_help_handler=&gt;co_prefix_searchhelp

*    i_value_help_id = &apos;ZPREMN&apos;

*    ).





*  CREATE DATA wd_this-&gt;p2_matnr. &quot;for type recognition

  wd_this-&gt;mr_so02-&gt;add_parameter_field(

    i_id          = &apos;MATNR&apos;

    i_value       = wd_this-&gt;p2_matnr

    i_read_only   = abap_true

  ).



*  CREATE DATA wd_this-&gt;p2_maktx. &quot;for type recognition

  IF sy-langu = &apos;C&apos;.

     tmp_text = &apos;TextMat&apos;.

  ELSE.

     tmp_text = &apos;MatDescr&apos;.

  ENDIF.

  wd_this-&gt;mr_so02-&gt;add_parameter_field(

    i_id          = &apos;MAKTX&apos;

    i_value       = wd_this-&gt;p2_maktx

    i_description = tmp_text

    i_read_only   = abap_true

  ).



*  CREATE DATA wd_this-&gt;p2_menge1. &quot;for type recognition

  IF sy-langu = &apos;C&apos;.

     tmp_text = &apos;DostMnož&apos;.

  ELSE.

     tmp_text = &apos;AvailQuan&apos;.

  ENDIF.

  wd_this-&gt;mr_so02-&gt;add_parameter_field(

    i_id          = &apos;MENGE1&apos;

    i_value       = wd_this-&gt;p2_menge1

    i_description = tmp_text

    i_read_only  = abap_true

  ).



*  CREATE DATA wd_this-&gt;p2_meins. &quot;for type recognition

  IF sy-langu = &apos;C&apos;.

     tmp_text = &apos;Zákl. MJ&apos;.

  ELSE.

     tmp_text = &apos;BaseUnit&apos;.

  ENDIF.

  wd_this-&gt;mr_so02-&gt;add_parameter_field(

    i_id          = &apos;MEINS&apos;

    i_description = tmp_text

    i_value       = wd_this-&gt;p2_meins

    i_read_only  = abap_true

  ).



*  CREATE DATA wd_this-&gt;p2_insmk.

  wd_this-&gt;mr_so02_gui-&gt;get_attribute(

    EXPORTING name  = &apos;INSMK_DISABLE&apos;

    IMPORTING value = tmp_bool ).

*  tmp_text = &apos;

  wd_this-&gt;mr_so02-&gt;add_parameter_field(

    i_id          = &apos;INSMK&apos;

    i_value       = wd_this-&gt;p2_insmk

    i_read_only   = tmp_bool

*    i_description = tmp_text

    ).



*  CREATE DATA wd_this-&gt;p2_menge1. &quot;for type recognition

  IF sy-langu = &apos;C&apos;.

     tmp_text = &apos;Množství&apos;.

  ELSE.

     tmp_text = &apos;Quantity&apos;.

  ENDIF.

  wd_this-&gt;mr_so02-&gt;add_parameter_field(

    i_id          = &apos;MENGE2&apos;

    i_value       = wd_this-&gt;p2_menge2

    i_description = tmp_text

*    i_obligatory  = abap_true

  ).



  wd_this-&gt;mr_so02_gui-&gt;get_attribute(

    EXPORTING name  = &apos;CHARG_SHOW&apos;

    IMPORTING value = tmp_bool ).

  IF tmp_bool = &apos;X&apos;.

    wd_this-&gt;mr_so02-&gt;add_parameter_field(

      i_id    = &apos;CHARG&apos;

      i_value = wd_this-&gt;p2_charg

    ).

   ENDIF.



*  CREATE DATA wd_this-&gt;p2_sklm.

  wd_this-&gt;mr_so02_gui-&gt;get_attribute(

    EXPORTING name  = &apos;SKLM_SHOW&apos;

    IMPORTING value = tmp_bool ).

  IF tmp_bool = &apos;X&apos;.

    IF sy-langu = &apos;C&apos;.

       tmp_text = &apos;Skl. místo&apos;.

    ELSE.

       tmp_text = &apos;StorageBin&apos;.

    ENDIF.

    wd_this-&gt;mr_so02-&gt;add_parameter_field(

      i_id          = &apos;SKLM&apos;

      i_value       = wd_this-&gt;p2_sklm

      i_description = tmp_text

*      i_read_only   = abap_true

      ).

  ENDIF.





ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="TO_MENU" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="TO_MENU" CODE_BODY="method TO_MENU .



DATA lr_ref TYPE REF TO ig_ZMC_BC_PRIJEM.

     lr_ref = wd_this-&gt;get_ZMC_BC_PRIJEM_ctr( ).

     lr_ref-&gt;fire_to_menu_plg( ).

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOAPPLICATIONSTATECHANGE" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOAPPLICATIONSTATECHANGE" CODE_BODY="method WDDOAPPLICATIONSTATECHANGE .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOBEFORENAVIGATION" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOBEFORENAVIGATION" CODE_BODY="method WDDOBEFORENAVIGATION .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOEXIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOEXIT" CODE_BODY="method WDDOEXIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOINIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOINIT" CODE_BODY="METHOD wddoinit .



  wd_this-&gt;prefill_timer_context( ).



**** init msg man ref *****



  DATA lo_api_controller TYPE REF TO if_wd_controller.

  lo_api_controller ?= wd_this-&gt;wd_get_api( ).



   wd_this-&gt;mr_msg_man = lo_api_controller-&gt;get_message_manager( ).





**** init node references *****



  wd_this-&gt;mr_global_data = wd_context-&gt;get_child_node( &apos;GLOBAL_DATA&apos; ).



  wd_this-&gt;mr_menge_list = wd_context-&gt;get_child_node( &apos;MENGE_LIST&apos; ).



  wd_this-&gt;mr_so01_gui = wd_context-&gt;get_child_node( &apos;SO01_GUI&apos; ).



  wd_this-&gt;mr_so02_gui = wd_context-&gt;get_child_node( &apos;SO02_GUI&apos; ).





**** init selection screens *****



  wd_this-&gt;menge_index = 1.

  wd_this-&gt;menge_count = 0.



  wd_this-&gt;so01_update( first_time = &apos;X&apos; ).



  wd_this-&gt;so02_update( first_time = &apos;X&apos; ).



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOPOSTPROCESSING" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOPOSTPROCESSING" CODE_BODY="method WDDOPOSTPROCESSING .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="AUTH" LANGU="C" DESCRIPTION="genericka autentizacia"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MV_AUTH_ERR" LANGU="C" DESCRIPTION="chyba autentizacie uzivatela na zakl. uziv parametrov"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P2_CHARG" LANGU="C" DESCRIPTION="nova sarze"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="PREFILL_TIMER_CONTEXT" LANGU="C" DESCRIPTION="natiahnutie hodnot casovacov z asisst triedy"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="PREFILL_USER_PARAMS" LANGU="C" DESCRIPTION="natiahnutie hodnot uziv. parametrov"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P_CHARG" LANGU="C" DESCRIPTION="sarze"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P_LGORT" LANGU="C" DESCRIPTION="sklad z (nerizeny)"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P_SONUM" LANGU="C" DESCRIPTION="zvlastni zasoba"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="P_UMLGO" LANGU="C" DESCRIPTION="sklad na (rizeny)"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="REFRESH_PAGE" LANGU="C" DESCRIPTION="globalne spracovanie casovaca"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SET_TIMER_FAST" LANGU="C" DESCRIPTION="nastavenie timeru na najkratsie trvanie"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SET_TIMER_MEDIUM" LANGU="C" DESCRIPTION="nastavenie timeru na stredne trvanie"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SET_TIMER_SLOW" LANGU="C" DESCRIPTION="nastavenie timeru na najdlhsie trvanie"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO01_CHECK" LANGU="C" DESCRIPTION="check and load data"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO01_CLEAR" LANGU="C" DESCRIPTION="clear screen"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO01_ON_ENTER" LANGU="C" DESCRIPTION="enter key handler"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO01_UPDATE" LANGU="C" DESCRIPTION="gui update"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_ADD_ITEM" LANGU="C" DESCRIPTION="add menge list item"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_CHECK" LANGU="C" DESCRIPTION="check and store data"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_IS_INITIAL" LANGU="C" DESCRIPTION="check initial fields"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_LOAD" LANGU="C" DESCRIPTION="load in data"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_MOD_ITEM" LANGU="C" DESCRIPTION="modify menge list item"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_REM_ITEM" LANGU="C" DESCRIPTION="remove menge list item"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_SAVE" LANGU="C" DESCRIPTION="save changes"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_UPDATE" LANGU="C" DESCRIPTION="gui update"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="TO_MENU" LANGU="C" DESCRIPTION="navrat do menu aplikacie"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOAPPLICATIONSTATECHANGE" LANGU="C" DESCRIPTION="Handling for Suspending and Resuming an Application"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOBEFORENAVIGATION" LANGU="C" DESCRIPTION="Error Handling Before Navigation Through Application"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOEXIT" LANGU="C" DESCRIPTION="Controller Clean-Up Method"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOINIT" LANGU="C" DESCRIPTION="Controller Initialization Method"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOPOSTPROCESSING" LANGU="C" DESCRIPTION="Prepare Output"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="AUTH" PARAMETER_NAME="PARID" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="MEMORYID" DISPLAY_NAME="PARID"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="AUTH" PARAMETER_NAME="PARVA" VERSION="I" PARAM_POSITION="2 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="XUVALUE" DISPLAY_NAME="PARVA"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="AUTH" PARAMETER_NAME="SET_BACK" VERSION="I" PARAM_POSITION="3 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="BOOL" DISPLAY_NAME="SET_BACK" OPTIONAL="X"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="AUTH" PARAMETER_NAME="SET_ERROR" VERSION="I" PARAM_POSITION="4 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="BOOL" DISPLAY_NAME="SET_ERROR" OPTIONAL="X"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="AUTH_LGORT" PARAMETER_NAME="LV_XUVALUE" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="XUVALUE" DISPLAY_NAME="LV_XUVALUE"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="AUTH_WERKS" PARAMETER_NAME="LV_XUVALUE" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="XUVALUE" DISPLAY_NAME="LV_XUVALUE"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="FOCUS" PARAMETER_NAME="FIELD" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="STRING" DISPLAY_NAME="FIELD"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="FOCUS" PARAMETER_NAME="SCREEN" VERSION="I" PARAM_POSITION="2 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="STRING" DISPLAY_NAME="SCREEN"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="MESSAGE" PARAMETER_NAME="SILENT" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="CHAR1" DISPLAY_NAME="SILENT" OPTIONAL="X"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO01_CHECK" PARAMETER_NAME="RELOAD_ONLY" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="CHAR1" DISPLAY_NAME="RELOAD_ONLY" OPTIONAL="X"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO01_CHECK" PARAMETER_NAME="SILENT" VERSION="I" PARAM_POSITION="2 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="CHAR1" DISPLAY_NAME="SILENT" OPTIONAL="X"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO01_UPDATE" PARAMETER_NAME="FIRST_TIME" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="CHAR1" DISPLAY_NAME="FIRST_TIME" OPTIONAL="X"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_CHECK" PARAMETER_NAME="RELOAD_ONLY" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="CHAR1" DISPLAY_NAME="RELOAD_ONLY" OPTIONAL="X"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_CHECK" PARAMETER_NAME="SILENT" VERSION="I" PARAM_POSITION="2 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="CHAR1" DISPLAY_NAME="SILENT" OPTIONAL="X"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_IS_INITIAL" PARAMETER_NAME="RET" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="3" ABAP_TYPING="0" ABAP_TYPE="CHAR1" DISPLAY_NAME="RET"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="SO02_UPDATE" PARAMETER_NAME="FIRST_TIME" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="CHAR1" DISPLAY_NAME="FIRST_TIME" OPTIONAL="X"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOAPPLICATIONSTATECHANGE" PARAMETER_NAME="STATE_CHANGE" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_APPLICATION_STATE_CHANGE" DISPLAY_NAME="STATE_CHANGE"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOBEFORENAVIGATION" PARAMETER_NAME="IS_CURRENT_ROOT" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="WDY_BOOLEAN" DISPLAY_NAME="IS_CURRENT_ROOT"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOEXIT" PARAMETER_NAME="REASON" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="WDR_APPL_EXIT_REASON" DISPLAY_NAME="REASON"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CMPNAME="WDDOPOSTPROCESSING" PARAMETER_NAME="IS_CURRENT_ROOT" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="WDY_BOOLEAN" DISPLAY_NAME="IS_CURRENT_ROOT"/>
  <wdy_ctlr_paramt COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" LANGU="C" CMPNAME="AUTH" PARAMETER_NAME="SET_BACK" DESCRIPTION="Vratenie o view v pripade chybajuceho parametru"/>
  <wdy_ctlr_paramt COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" LANGU="C" CMPNAME="AUTH" PARAMETER_NAME="SET_ERROR" DESCRIPTION="Nastavenie globalnej chyby v aplikacii"/>
  <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CTLR_USAGE_NAME="4RGTGCN9K1RE4T1NA1QA7MXBJ" VERSION="I" COMPONENT_USAGE="USAGE_SO01" USED_CONTROLLER="COMPONENTCONTROLLER"/>
  <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CTLR_USAGE_NAME="4RGTGCUY30D3NFL3FVSMHOW1B" VERSION="I" COMPONENT_USAGE="USAGE_SO01"/>
  <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CTLR_USAGE_NAME="4RJ0S1EQ9ZY7EENDAHCGES0TR" VERSION="I" COMPONENT_USAGE="USAGE_SO02" USED_CONTROLLER="COMPONENTCONTROLLER"/>
  <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CTLR_USAGE_NAME="4RJ0S1MESYJWX16TGBESOTZJJ" VERSION="I" COMPONENT_USAGE="USAGE_SO02"/>
  <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" CTLR_USAGE_NAME="4X4CZ2R9EDXIHEXY4CSQHTD7Z" VERSION="I" USED_CONTROLLER="ZMC_BC_PRIJEM"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="CONTEXT" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" NODE_POSITION="0 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" SINGLETON="X" DISPLAY_NAME="CONTEXT" ABAP_TYPING="0" INIT_LEAD_SELECT="X" IS_INTF_ITEM="X"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="1 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" DISPLAY_NAME="GLOBAL_DATA" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="MENGE_LIST" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="2 " COLLECTION_TYPE="03" CARDINALITY="02" SELECTION="00" DISPLAY_NAME="MENGE_LIST" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="SO01_GUI" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="3 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" DISPLAY_NAME="SO01_GUI" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="SO02_GUI" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="4 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" DISPLAY_NAME="SO02_GUI" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="TIMER_CONF" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="5 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" SINGLETON="X" DISPLAY_NAME="TIMER_CONF" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="DATA" ATTRIBUTE_NAME="OBJ" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="STRING" ABAP_TYPING="0" DISPLAY_NAME="OBJ" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="DATA" ATTRIBUTE_NAME="OBJ2" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " DEFAULT_VALUE="def." ABAP_TYPE="STRING" ABAP_TYPING="0" DISPLAY_NAME="OBJ2" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="ALTME" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="9 " ABAP_TYPE="LRMEI" ABAP_TYPING="0" DISPLAY_NAME="ALTME" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="CHARG" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="23 " ABAP_TYPE="CHARG_D" ABAP_TYPING="0" DISPLAY_NAME="CHARG" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="EAN11" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="6 " ABAP_TYPE="EAN11" ABAP_TYPING="0" DISPLAY_NAME="EAN11" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="INSME" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="19 " ABAP_TYPE="INSME" ABAP_TYPING="0" DISPLAY_NAME="INSME" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="INSMK" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="24 " ABAP_TYPE="INSMK" ABAP_TYPING="0" DISPLAY_NAME="INSMK" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="KDAUF" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="14 " ABAP_TYPE="KDAUF" ABAP_TYPING="0" DISPLAY_NAME="KDAUF" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="KDPOS" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="15 " ABAP_TYPE="KDPOS" ABAP_TYPING="0" DISPLAY_NAME="KDPOS" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="LABST" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="18 " ABAP_TYPE="LABST" ABAP_TYPING="0" DISPLAY_NAME="LABST" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="LGNUM" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="5 " ABAP_TYPE="LGNUM" ABAP_TYPING="0" DISPLAY_NAME="LGNUM" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="LGORT" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="22 " ABAP_TYPE="LGORT_D" ABAP_TYPING="0" DISPLAY_NAME="LGORT" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="LIFNR" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="17 " ABAP_TYPE="LIFNR" ABAP_TYPING="0" DISPLAY_NAME="LIFNR" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="MAKTX" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " ABAP_TYPE="MAKTX" ABAP_TYPING="0" DISPLAY_NAME="MAKTX" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="MATNR" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="MATNR" ABAP_TYPING="0" DISPLAY_NAME="MATNR" VALUE_HELP_ID="AUTO:S_MAT1" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="MEINS" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="10 " ABAP_TYPE="MEINS" ABAP_TYPING="0" DISPLAY_NAME="MEINS" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="PS_PSP_PNR" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="16 " ABAP_TYPE="PS_PSP_PNR" ABAP_TYPING="0" DISPLAY_NAME="PS_PSP_PNR" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="SERNP" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="11 " ABAP_TYPE="SERAIL" ABAP_TYPING="0" DISPLAY_NAME="SERNP" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="SOBKZ" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="12 " ABAP_TYPE="SOBKZ" ABAP_TYPING="0" DISPLAY_NAME="SOBKZ" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="SONUM" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="13 " ABAP_TYPE="LVS_SONUM" ABAP_TYPING="0" DISPLAY_NAME="SONUM" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="SPEME" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="20 " ABAP_TYPE="SPEME" ABAP_TYPING="0" DISPLAY_NAME="SPEME" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="UMLGO" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="21 " ABAP_TYPE="UMLGO" ABAP_TYPING="0" DISPLAY_NAME="UMLGO" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="UMREN" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="8 " ABAP_TYPE="UMREN" ABAP_TYPING="0" DISPLAY_NAME="UMREN" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="UMREZ" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="7 " ABAP_TYPE="UMREZ" ABAP_TYPING="0" DISPLAY_NAME="UMREZ" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="WERKS" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="4 " ABAP_TYPE="WERKS_D" ABAP_TYPING="0" DISPLAY_NAME="WERKS" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="GLOBAL_DATA" ATTRIBUTE_NAME="XCHPF" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " ABAP_TYPE="XCHPF" ABAP_TYPING="0" DISPLAY_NAME="XCHPF" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="MENGE_LIST" ATTRIBUTE_NAME="CHARG" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="6 " ABAP_TYPE="CHARG_D" ABAP_TYPING="0" DISPLAY_NAME="CHARG" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="MENGE_LIST" ATTRIBUTE_NAME="INSMK" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="INSMK" ABAP_TYPING="0" DISPLAY_NAME="INSMK" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="MENGE_LIST" ATTRIBUTE_NAME="LENVW" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="5 " ABAP_TYPE="T331_LENVW" ABAP_TYPING="0" DISPLAY_NAME="LENVW" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="MENGE_LIST" ATTRIBUTE_NAME="LGPLA" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="4 " ABAP_TYPE="LGPLA" ABAP_TYPING="0" DISPLAY_NAME="LGPLA" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="MENGE_LIST" ATTRIBUTE_NAME="LGTYP" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " ABAP_TYPE="LGTYP" ABAP_TYPING="0" DISPLAY_NAME="LGTYP" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="MENGE_LIST" ATTRIBUTE_NAME="MENGE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " ABAP_TYPE="CO_MENGE" ABAP_TYPING="0" DISPLAY_NAME="MENGE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="SO01_GUI" ATTRIBUTE_NAME="CHARG_DISABLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="CHARG_DISABLE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="SO01_GUI" ATTRIBUTE_NAME="INSMK_DISABLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="INSMK_DISABLE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="SO01_GUI" ATTRIBUTE_NAME="MENU_BTN_VISIBLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " DEFAULT_VALUE="01" ABAP_TYPE="WDUI_VISIBILITY" ABAP_TYPING="0" DISPLAY_NAME="MENU_BTN_VISIBLE" VALUE_HELP_ID="AUTO:WDUI_VISIBILITY" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="CHARG_SHOW" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="5 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="CHARG_SHOW" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="INSMK_DISABLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="INSMK_DISABLE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="LIST_STATE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " ABAP_TYPE="STRING" ABAP_TYPING="0" DISPLAY_NAME="LIST_STATE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="PREV_ENABLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="4 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="PREV_ENABLE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="SKLM_SHOW" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="SKLM_SHOW" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="MAX_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="MAX_SPEED" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="MEDIUM_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="MEDIUM_SPEED" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="REFRESH_RATE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="REFRESH_RATE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="COMPONENTCONTROLLER" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="SLOW_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="4 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="SLOW_SPEED" VALUE_HELP_MODE="0"/>
 </controller_definition>
 <controller_definition COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="EMPTYVIEW" VERSION="A" CONTROLLER_TYPE="01" DISPLAY_NAME="EMPTYVIEW" AUTHOR="CZMICYP" CREATEDON="20140311" CHANGEDON="00000000"/>
 <controller_definition COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" VERSION="A" CONTROLLER_TYPE="01" CONTEXT="CONTEXT" DISPLAY_NAME="VIEW01" AUTHOR="CZMICYP" CREATEDON="20140311" CHANGEDBY="CZMICYP" CHANGEDON="20140822">
  <wdy_controllert COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" LANGU="C" DESCRIPTION="Input view"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="BT_MENU" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="BT_MENU" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="BUTTON_NEXT" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="BUTTON_NEXT" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="HANDLEIN_PLUG01" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_VIEW_NAME="VIEW01" REF_PLUG_NAME="IN_PLUG01" DISPLAY_NAME="HANDLEIN_PLUG01" CODE_BODY="method HANDLEIN_PLUG01 .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="ONACTIONBT_MENU" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW01" REF_CMPNAME="BT_MENU" DISPLAY_NAME="ONACTIONBT_MENU" CODE_BODY="method ONACTIONBT_MENU .



      DATA lo_w_main TYPE REF TO ig_ZMC_BC_PRIJEM .

      lo_w_main = wd_this-&gt;get_ZMC_BC_PRIJEM_ctr( ).

      lo_w_main-&gt;fire_TO_MENU_plg( ).



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="ONACTIONBUTTON_NEXT" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW01" REF_CMPNAME="BUTTON_NEXT" DISPLAY_NAME="ONACTIONBUTTON_NEXT" CODE_BODY="METHOD onactionbutton_next .



  wd_comp_controller-&gt;SO01_ON_NEXT( ).



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="ONACTIONON_TIMER" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW01" REF_CMPNAME="ON_TIMER" DISPLAY_NAME="ONACTIONON_TIMER" CODE_BODY="method ONACTIONON_TIMER .

  wd_this-&gt;refresh_page( ).

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="ON_TIMER" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="ON_TIMER" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="REFRESH_PAGE" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="REFRESH_PAGE" CODE_BODY="method REFRESH_PAGE .

  wd_comp_controller-&gt;refresh_page( ).

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOAFTERACTION" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOAFTERACTION" CODE_BODY="method WDDOAFTERACTION .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOBEFOREACTION" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOBEFOREACTION" CODE_BODY="method WDDOBEFOREACTION .

*  data lo_api_controller type ref to if_wd_view_controller.

*  data lo_action         type ref to if_wd_action.



*  lo_api_controller = wd_this-&gt;wd_get_api( ).

*  lo_action = lo_api_controller-&gt;get_current_action( ).



*  if lo_action is bound.

*    case lo_action-&gt;name.

*      when &apos;...&apos;.



*    endcase.

*  endif.

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOEXIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOEXIT" CODE_BODY="method WDDOEXIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOINIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOINIT" CODE_BODY="method WDDOINIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOMODIFYVIEW" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOMODIFYVIEW" CODE_BODY="method WDDOMODIFYVIEW .



    DATA so01 TYPE REF TO CL_WD_VIEW_CONTAINER_UIELEMENT.

    so01 ?= view-&gt;get_element( &apos;SELSCREEN1&apos; ).



    data str1 type string.

    data str2 type string.



    so01-&gt;focused(

      IMPORTING

        sub_focus = str1

        sub_cursor = str2 ).



*    so01-&gt;focus( ).



    so01-&gt;focused(

      IMPORTING

        sub_focus = str1

        sub_cursor = str2 ).



*    wd_comp_controller-&gt;mr_so01-&gt;request_focus(

*      wd_comp_controller-&gt;act_focus ).



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOONCONTEXTMENU" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOONCONTEXTMENU" CODE_BODY="method WDDOONCONTEXTMENU .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="HANDLEIN_PLUG01" LANGU="C" DESCRIPTION="back plug from view 02"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="ONACTIONON_TIMER" LANGU="C" DESCRIPTION="akcia spustena vyprsanim casovaca"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="ON_TIMER" LANGU="C" DESCRIPTION="akcia spustena vyprsanim casovaca"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="REFRESH_PAGE" LANGU="C" DESCRIPTION="spracovanie casovaca na urovni okna"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOAFTERACTION" LANGU="C" DESCRIPTION="Method for non-action specific operations before navigation"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOBEFOREACTION" LANGU="C" DESCRIPTION="Method for Validation of User Input"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOEXIT" LANGU="C" DESCRIPTION="Controller Clean-Up Method"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOINIT" LANGU="C" DESCRIPTION="Controller Initialization Method"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOMODIFYVIEW" LANGU="C" DESCRIPTION="Method for Modifying the View Before Rendering"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOONCONTEXTMENU" LANGU="C" DESCRIPTION="Method for Modifying the Context Menu"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOMODIFYVIEW" PARAMETER_NAME="FIRST_TIME" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="WDY_BOOLEAN" DISPLAY_NAME="FIRST_TIME"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOMODIFYVIEW" PARAMETER_NAME="VIEW" VERSION="I" PARAM_POSITION="2 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_VIEW" DISPLAY_NAME="VIEW"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOONCONTEXTMENU" PARAMETER_NAME="CONTEXT_MENU_EVENT" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_CONTEXT_MENU_EVENT" DISPLAY_NAME="CONTEXT_MENU_EVENT"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOONCONTEXTMENU" PARAMETER_NAME="CONTEXT_MENU_MANAGER" VERSION="I" PARAM_POSITION="2 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_CONTEXT_MENU_MANAGER" DISPLAY_NAME="CONTEXT_MENU_MANAGER"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CMPNAME="WDDOONCONTEXTMENU" PARAMETER_NAME="MENU" VERSION="I" PARAM_POSITION="3 " DECLARATION_TYPE="3" ABAP_TYPING="1" ABAP_TYPE="CL_WD_MENU" DISPLAY_NAME="MENU"/>
  <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CTLR_USAGE_NAME="4RGVDTXUG049Z9055KYOH154F" VERSION="I" USED_CONTROLLER="COMPONENTCONTROLLER"/>
  <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CTLR_USAGE_NAME="4X48R0RKVV3UUF4M16PNKJ57Z" VERSION="I" USED_CONTROLLER="ZMC_BC_PRIJEM"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="CONTEXT" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" NODE_POSITION="0 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" SINGLETON="X" DISPLAY_NAME="CONTEXT" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="SO01_GUI" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="1 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" DISPLAY_NAME="SO01_GUI" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="TIMER_CONF" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="2 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" SINGLETON="X" DISPLAY_NAME="TIMER_CONF" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="SO01_GUI" ATTRIBUTE_NAME="CHARG_DISABLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="CHARG_DISABLE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="SO01_GUI" ATTRIBUTE_NAME="INSMK_DISABLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="INSMK_DISABLE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="SO01_GUI" ATTRIBUTE_NAME="MENU_BTN_VISIBLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " DEFAULT_VALUE="01" ABAP_TYPE="WDUI_VISIBILITY" ABAP_TYPING="0" DISPLAY_NAME="MENU_BTN_VISIBLE" VALUE_HELP_ID="AUTO:WDUI_VISIBILITY" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="MAX_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="MAX_SPEED" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="MEDIUM_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="MEDIUM_SPEED" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="REFRESH_RATE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="REFRESH_RATE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="SLOW_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="4 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="SLOW_SPEED" VALUE_HELP_MODE="0"/>
  <wdy_ctx_mapping COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CTLR_USAGE_NAME="4RGVDTXUG049Z9055KYOH154F" CTX_MAPP_NAME="4TD2VCODZOLZR75QK66UZJIUN" VERSION="I" MAPPING_TYPE="02" OWN_NODE_NAME="SO01_GUI" MAP_NODE_NAME="SO01_GUI"/>
  <wdy_ctx_mapping COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW01" CTLR_USAGE_NAME="4RGVDTXUG049Z9055KYOH154F" CTX_MAPP_NAME="4XS9LWY5B5A7YD1HS2I0LSC33" VERSION="I" MAPPING_TYPE="02" OWN_NODE_NAME="TIMER_CONF" MAP_NODE_NAME="TIMER_CONF"/>
 </controller_definition>
 <controller_definition COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" VERSION="A" CONTROLLER_TYPE="01" CONTEXT="CONTEXT" DISPLAY_NAME="VIEW02" AUTHOR="CZMICYP" CREATEDON="20140311" CHANGEDBY="CZMICYP" CHANGEDON="20140822">
  <wdy_controllert COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" LANGU="C" DESCRIPTION="List view"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_BACK" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="BT_BACK" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_NEXT" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="BT_NEXT" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_PREV" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="BT_PREV" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_SAVE" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="BT_SAVE" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="HANDLEIN_PLUG01" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_VIEW_NAME="VIEW02" REF_PLUG_NAME="IN_PLUG01" DISPLAY_NAME="HANDLEIN_PLUG01" CODE_BODY='method HANDLEIN_PLUG01 .



  wd_comp_controller-&gt;so02_load( ). &quot;load data

  wd_comp_controller-&gt;so02_update( ). &quot;update GUI



endmethod.

' ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_BACK" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW02" REF_CMPNAME="BT_BACK" DISPLAY_NAME="ONACTIONBT_BACK" CODE_BODY="method ONACTIONBT_BACK .



  DATA lo_w_main TYPE REF TO ig_ZMC_BC_PRIJEM.

  lo_w_main =   wd_this-&gt;get_ZMC_BC_PRIJEM_ctr( ).



  lo_w_main-&gt;fire_goto_so01_plg( ).



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_NEXT" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW02" REF_CMPNAME="BT_NEXT" DISPLAY_NAME="ONACTIONBT_NEXT" CODE_BODY="METHOD onactionbt_next .



IF wd_comp_controller-&gt;so02_is_initial( ) = &apos;X&apos;.

  IF wd_comp_controller-&gt;menge_index &gt;= wd_comp_controller-&gt;menge_count.

*   initail last component -&gt; do noting (check &amp; update)

    wd_comp_controller-&gt;so02_check( ). &quot;prints err - empty fields



  ELSE.

*   initial middle component -&gt; remove

    wd_comp_controller-&gt;so02_rem_item( ).

    &quot;leave index the same -&gt; components shift back



    &quot;perfrom check to reload selscr. values

    wd_comp_controller-&gt;so02_check( reload_only = &apos;X&apos; ).



  ENDIF.



ELSE. &quot;not empty

  wd_comp_controller-&gt;so02_check( ).

  IF wd_comp_controller-&gt;errflag IS INITIAL.



   IF wd_comp_controller-&gt;menge_index &gt; wd_comp_controller-&gt;menge_count.

*    last item -&gt; add new

     wd_comp_controller-&gt;so02_add_item( ).



   ELSE.

*    middle item -&gt; modify

     wd_comp_controller-&gt;so02_mod_item( ).



   ENDIF. &quot;last item



*   shift to next item

    ADD 1 TO wd_comp_controller-&gt;menge_index.



  ENDIF. &quot;input check error

ENDIF. &quot;initial screen





*reload screen

wd_comp_controller-&gt;so02_update( ).



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_PREV" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW02" REF_CMPNAME="BT_PREV" DISPLAY_NAME="ONACTIONBT_PREV" CODE_BODY="METHOD onactionbt_prev .



*  prev button is enabled from the 2nd item and up



IF wd_comp_controller-&gt;so02_is_initial( ) = &apos;X&apos;.



  &quot;perfrom check to reload selscr. values

  wd_comp_controller-&gt;so02_check( reload_only = &apos;X&apos; ).



  IF wd_comp_controller-&gt;menge_index &gt; wd_comp_controller-&gt;menge_count.

*   initail new component -&gt; do noting (shift back)

    SUBTRACT 1 FROM wd_comp_controller-&gt;menge_index.



  ELSE.

*   initial middle or last component -&gt; remove &amp; shift back

    wd_comp_controller-&gt;so02_rem_item( ).

    SUBTRACT 1 FROM wd_comp_controller-&gt;menge_index.

  ENDIF.



ELSE. &quot;not empty

  wd_comp_controller-&gt;so02_check( ).

  IF wd_comp_controller-&gt;errflag IS INITIAL.



   IF wd_comp_controller-&gt;menge_index &gt; wd_comp_controller-&gt;menge_count.

*    last item -&gt; add new

     wd_comp_controller-&gt;so02_add_item( ).



   ELSE.

*    middle item -&gt; modify

     wd_comp_controller-&gt;so02_mod_item( ).



   ENDIF. &quot;last item



*   shift to prev item

    SUBTRACT 1 FROM wd_comp_controller-&gt;menge_index.



  ENDIF. &quot;input check error

ENDIF. &quot;initial screen





*reload screen

wd_comp_controller-&gt;so02_update( ).



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_SAVE" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW02" REF_CMPNAME="BT_SAVE" DISPLAY_NAME="ONACTIONBT_SAVE" CODE_BODY="METHOD onactionbt_save .



  wd_comp_controller-&gt;so02_check( ). &quot;display errors



  IF wd_comp_controller-&gt;errflag = &apos;&apos;.



   if wd_comp_controller-&gt;menge_index &gt; wd_comp_controller-&gt;menge_count.

*     new item -&gt; add

      wd_comp_controller-&gt;so02_add_item( ).

   else.

*    middle item -&gt; modify

     wd_comp_controller-&gt;so02_mod_item( ).

   endif.



*    confirm if all fields were filled OK

     wd_comp_controller-&gt;so02_save( ).



     if wd_comp_controller-&gt;errflag is initial.

       &quot;return to first screen (initialized)

       wd_comp_controller-&gt;so01_clear( ).

       DATA lo_w_main TYPE REF TO IG_ZMC_BC_PRIJEM.

       lo_w_main = wd_this-&gt;get_ZMC_BC_PRIJEM_ctr( ).

       lo_w_main-&gt;fire_goto_so01_plg( ).

     else.

       clear wd_comp_controller-&gt;errflag. &quot;redraw stored

     endif.



  ENDIF.



  wd_comp_controller-&gt;so02_update( ). &quot;update gui



ENDMETHOD.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONON_MENU" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW02" REF_CMPNAME="ON_MENU" DISPLAY_NAME="ONACTIONON_MENU" CODE_BODY="method ONACTIONON_MENU .



      DATA lo_w_main TYPE REF TO ig_ZMC_BC_PRIJEM .

      lo_w_main = wd_this-&gt;get_ZMC_BC_PRIJEM_ctr( ).

      lo_w_main-&gt;fire_TO_MENU_plg( ).



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONON_TIMER" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_CTLR_NAME="VIEW02" REF_CMPNAME="ON_TIMER" DISPLAY_NAME="ONACTIONON_TIMER" CODE_BODY="method ONACTIONON_TIMER .

  wd_this-&gt;refresh_page( ).

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ON_MENU" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="ON_MENU" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ON_TIMER" VERSION="I" CMPTYPE="CL_WDY_MD_ACTION" CMP_POSITION="0 " VISIBILITY="0" DISPLAY_NAME="ON_TIMER" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="REFRESH_PAGE" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="REFRESH_PAGE" CODE_BODY="method REFRESH_PAGE .

  wd_comp_controller-&gt;refresh_page( ).

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOAFTERACTION" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOAFTERACTION" CODE_BODY="method WDDOAFTERACTION .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOBEFOREACTION" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOBEFOREACTION" CODE_BODY="method WDDOBEFOREACTION .

*  data lo_api_controller type ref to if_wd_view_controller.

*  data lo_action         type ref to if_wd_action.



*  lo_api_controller = wd_this-&gt;wd_get_api( ).

*  lo_action = lo_api_controller-&gt;get_current_action( ).



*  if lo_action is bound.

*    case lo_action-&gt;name.

*      when &apos;...&apos;.



*    endcase.

*  endif.

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOEXIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOEXIT" CODE_BODY="method WDDOEXIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOINIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOINIT" CODE_BODY="method WDDOINIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOMODIFYVIEW" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOMODIFYVIEW" CODE_BODY="method WDDOMODIFYVIEW .



**  if first_time = abap_true.

*

*    data: MY_INPUT_FIELD type ref to CL_WD_INPUT_FIELD.

*

*    MY_INPUT_FIELD ?= view-&gt;get_element( &apos;OBJ2&apos; ).

*

*    MY_INPUT_FIELD-&gt;FOCUS( ).

*

**  endif.



endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOONCONTEXTMENU" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOONCONTEXTMENU" CODE_BODY="method WDDOONCONTEXTMENU .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_BACK" LANGU="C" DESCRIPTION="goto screen 01"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_NEXT" LANGU="C" DESCRIPTION="next item"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_PREV" LANGU="C" DESCRIPTION="previous item"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="BT_SAVE" LANGU="C" DESCRIPTION="button save"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="HANDLEIN_PLUG01" LANGU="C" DESCRIPTION="plug from view 01"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_BACK" LANGU="C" DESCRIPTION="goto screen 01"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_NEXT" LANGU="C" DESCRIPTION="next item"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_PREV" LANGU="C" DESCRIPTION="previous item"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="ONACTIONBT_SAVE" LANGU="C" DESCRIPTION="button save"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="REFRESH_PAGE" LANGU="C" DESCRIPTION="spracovanie casovaca na urovni okna"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOAFTERACTION" LANGU="C" DESCRIPTION="Method for non-action specific operations before navigation"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOBEFOREACTION" LANGU="C" DESCRIPTION="Method for Validation of User Input"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOEXIT" LANGU="C" DESCRIPTION="Controller Clean-Up Method"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOINIT" LANGU="C" DESCRIPTION="Controller Initialization Method"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOMODIFYVIEW" LANGU="C" DESCRIPTION="Method for Modifying the View Before Rendering"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOONCONTEXTMENU" LANGU="C" DESCRIPTION="Method for Modifying the Context Menu"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOMODIFYVIEW" PARAMETER_NAME="FIRST_TIME" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="0" ABAP_TYPE="WDY_BOOLEAN" DISPLAY_NAME="FIRST_TIME"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOMODIFYVIEW" PARAMETER_NAME="VIEW" VERSION="I" PARAM_POSITION="2 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_VIEW" DISPLAY_NAME="VIEW"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOONCONTEXTMENU" PARAMETER_NAME="CONTEXT_MENU_EVENT" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_CONTEXT_MENU_EVENT" DISPLAY_NAME="CONTEXT_MENU_EVENT"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOONCONTEXTMENU" PARAMETER_NAME="CONTEXT_MENU_MANAGER" VERSION="I" PARAM_POSITION="2 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_CONTEXT_MENU_MANAGER" DISPLAY_NAME="CONTEXT_MENU_MANAGER"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CMPNAME="WDDOONCONTEXTMENU" PARAMETER_NAME="MENU" VERSION="I" PARAM_POSITION="3 " DECLARATION_TYPE="3" ABAP_TYPING="1" ABAP_TYPE="CL_WD_MENU" DISPLAY_NAME="MENU"/>
  <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CTLR_USAGE_NAME="4R5GMCSGZ5X72URNROILJAI3Z" VERSION="I" USED_CONTROLLER="COMPONENTCONTROLLER"/>
  <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CTLR_USAGE_NAME="4X48R4LUD5YM5OUOY7VSLII3Z" VERSION="I" USED_CONTROLLER="ZMC_BC_PRIJEM"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="CONTEXT" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" NODE_POSITION="0 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" SINGLETON="X" DISPLAY_NAME="CONTEXT" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="SO02_GUI" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="1 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" DISPLAY_NAME="SO02_GUI" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="TIMER_CONF" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" PARENT_NODE_NAME="CONTEXT" NODE_POSITION="2 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" SINGLETON="X" DISPLAY_NAME="TIMER_CONF" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="INSMK_DISABLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="INSMK_DISABLE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="LIST_STATE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " ABAP_TYPE="STRING" ABAP_TYPING="0" DISPLAY_NAME="LIST_STATE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="PREV_ENABLE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="4 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="PREV_ENABLE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="SO02_GUI" ATTRIBUTE_NAME="SKLM_SHOW" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " ABAP_TYPE="ABAP_BOOL" ABAP_TYPING="0" DISPLAY_NAME="SKLM_SHOW" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="MAX_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="2 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="MAX_SPEED" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="MEDIUM_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="3 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="MEDIUM_SPEED" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="REFRESH_RATE" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="1 " ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="REFRESH_RATE" VALUE_HELP_MODE="0"/>
  <wdy_ctx_attrib COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" NODE_NAME="TIMER_CONF" ATTRIBUTE_NAME="SLOW_SPEED" VERSION="I" ATTRIBUTE_TYPE="CL_WDY_MD_CTX_VALUE_ATTRIBUTE" ATTRIB_POSITION="4 " READ_ONLY="X" ABAP_TYPE="I" ABAP_TYPING="0" DISPLAY_NAME="SLOW_SPEED" VALUE_HELP_MODE="0"/>
  <wdy_ctx_mapping COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CTLR_USAGE_NAME="4R5GMCSGZ5X72URNROILJAI3Z" CTX_MAPP_NAME="4RZT1FRGP4WY17NMGGK8LOH0V" VERSION="I" MAPPING_TYPE="02" OWN_NODE_NAME="SO02_GUI" MAP_NODE_NAME="SO02_GUI"/>
  <wdy_ctx_mapping COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="VIEW02" CTLR_USAGE_NAME="4R5GMCSGZ5X72URNROILJAI3Z" CTX_MAPP_NAME="4XROSZ1MQVY21234YY1ILF19R" VERSION="I" MAPPING_TYPE="02" OWN_NODE_NAME="TIMER_CONF" MAP_NODE_NAME="TIMER_CONF"/>
 </controller_definition>
 <controller_definition COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" VERSION="A" CONTROLLER_TYPE="06" CONTEXT="CONTEXT" DISPLAY_NAME="ZMC_BC_PRIJEM" AUTHOR="CZMICYP" CREATEDON="20140311" CHANGEDBY="CZMICYP" CHANGEDON="20140729">
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="HANDLEDEFAULT" VERSION="I" CMPTYPE="CL_WDY_MD_CTLR_EVENT_HANDLER" CMP_POSITION="0 " VISIBILITY="2" REF_VIEW_NAME="ZMC_BC_PRIJEM" REF_PLUG_NAME="DEFAULT" DISPLAY_NAME="HANDLEDEFAULT" CODE_BODY="method HANDLEDEFAULT .

endmethod." ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOEXIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOEXIT" CODE_BODY="method WDDOEXIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOINIT" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOINIT" CODE_BODY="method WDDOINIT .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOONCLOSE" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOONCLOSE" CODE_BODY="method WDDOONCLOSE .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compo COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOONOPEN" VERSION="I" CMPTYPE="CL_WDY_MD_CONTROLLER_METHOD" CMP_POSITION="0 " VISIBILITY="2" DISPLAY_NAME="WDDOONOPEN" CODE_BODY="method WDDOONOPEN .

endmethod.

" ACTION_TYPE="0" ABAP_TYPING="0"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOEXIT" LANGU="C" DESCRIPTION="Controller Clean-Up Method"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOINIT" LANGU="C" DESCRIPTION="Controller Initialization Method"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOONCLOSE" LANGU="C" DESCRIPTION="Handling For Closing of Window"/>
  <wdy_ctlr_compot COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOONOPEN" LANGU="C" DESCRIPTION="Handling For Opening of Window"/>
  <wdy_ctlr_param COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CMPNAME="WDDOONOPEN" PARAMETER_NAME="WINDOW_DESCR" VERSION="I" PARAM_POSITION="1 " DECLARATION_TYPE="0" ABAP_TYPING="1" ABAP_TYPE="IF_WD_WINDOW_DESCRIPTION" DISPLAY_NAME="WINDOW_DESCR"/>
  <wdy_ctlr_usage COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" CTLR_USAGE_NAME="4R5GMCKSG7BHK887LUG998JE7" VERSION="I" USED_CONTROLLER="COMPONENTCONTROLLER"/>
  <wdy_ctx_node COMPONENT_NAME="ZMC_BC_PRIJEM" CONTROLLER_NAME="ZMC_BC_PRIJEM" NODE_NAME="CONTEXT" VERSION="I" NODE_TYPE="CL_WDY_MD_CONTEXT_VALUE_NODE" NODE_POSITION="0 " COLLECTION_TYPE="03" CARDINALITY="01" SELECTION="01" SINGLETON="X" DISPLAY_NAME="CONTEXT" ABAP_TYPING="0" INIT_LEAD_SELECT="X"/>
 </controller_definition>
</WDYN>
