单例供应函数中的ABAP Webdynpro错误
我已经创建了两个控制器 Componentcontroller已绑定到flightinfo表。此表已填充。但是,如果_componentcontroller=>element _flightinfo不获取任何数据。为什么? Customcontroller2已绑定到bookingtab表单例供应函数中的ABAP Webdynpro错误,abap,webdynpro,Abap,Webdynpro,我已经创建了两个控制器 Componentcontroller已绑定到flightinfo表。此表已填充。但是,如果_componentcontroller=>element _flightinfo不获取任何数据。为什么? Customcontroller2已绑定到bookingtab表 The following error text was processed in system EH5 : Invalid operand type for the MOVE-CORRESPONDING st
The following error text was processed in system EH5 : Invalid operand type for the MOVE-CORRESPONDING statement.
◾ The error occurred on the application server CRMEHP2_EH5_24 and in the work process 8 .
◾ The termination type was: RABAX_STATE
◾ The ABAP call stack was:
Method: IF_WD_CONTEXT_ELEMENT~GET_STATIC_ATTRIBUTES of program CL_WDR_CONTEXT_ELEMENT========CP
Method: BOOKINGS_READ of program /1BCWDY/0AA4D2ZOSMXD1LD8M8M2==CP
Method: BOOKINGS_READ of program /1BCWDY/0AA4D2ZOSMXD1LD8M8M2==CP
Method: SUPPLY_ELEMENTS of program CL_WDR_CONTEXT_NODE_VAL=======CP
Method: IF_WD_CONTEXT_NODE~GET_LEAD_SELECTION of program CL_WDR_CONTEXT_NODE_VAL=======CP
Method: IF_WD_CONTEXT_NODE~GET_LEAD_SELECTION of program CL_WDR_CONTEXT_NODE_MAP=======CP
Method: GET_LEAD_SELECTION of program CL_WDR_TABLE_DATA_PROVIDER====CP
Method: UPDATE_RANGE_SELECT_START of program CL_WDR_TABLE_DATA_PROVIDER====CP
Method: GET_TABLE_DATA of program CL_WDR_TABLE_DATA_PROVIDER====CP
Method: GET_VISIBLE_TABLE_DATA of program CL_WDR_TABLE_DATA_PROVIDER====CP
父元素和结构的定义
Method:
**METHOD bookings_read.**
DATA:
stru_flight TYPE if_componentcontroller=>element_flightinfo,
itab_booking TYPE if_customcontroller2=>elements_bookingtab.
* Get Parent Element.
* Error is here: All attributes of stru_flight are either blank or zero.
* The error disappears once CALL METHOD is commented.
CALL METHOD parent_element->get_static_attributes
IMPORTING
static_attributes = stru_flight.
* read bookings
*Rest of the satatements work fine.
SELECT * FROM sbook
INTO CORRESPONDING FIELDS OF TABLE itab_booking
WHERE carrid = stru_flight-carrid
AND connid = stru_flight-connid
AND fldate = stru_flight-fldate.
* bind all the elements
node->bind_table(
new_items = itab_booking
set_initial_elements = abap_true ).
**ENDMETHOD.**
- 上下文节点bookingtab类型的隐式常量定义: 元素\u bookingtab类型SBOOK, Elements\u bookingtab类型带有默认键的Element\u bookingtab的标准表
的类型声明是什么?如何声明“父元素”上下文节点?如果您希望人们帮助您,请提供更多相关信息。if\u customcontroller2=>elements\u bookingtab
的类型声明是什么?如何声明“parent element”上下文节点?如果您希望人们帮助您,请提供更多相关信息。
NODE Importing IF_WD_CONTEXT_NODE
PARENT_ELEMENT Importing IF_WD_CONTEXT_ELEMENT
stru_flight TYPE if_componentcontroller=>element_flightinfo,
**CALL METHOD parent_element->get_static_attributes
IMPORTING
static_attributes = stru_flight.**