Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9212

Re: Create Deep entity - No data found for child node

$
0
0

Here is the code I am writing..

 

** Type Declaration

   TYPES: tt_emp_time TYPE STANDARD TABLE OF zcl_zpa_timesheet_mpc=>ts_emp_time WITH DEFAULT KEY.

*

   TYPES: BEGIN OF ty_time_sheet.

           INCLUDE TYPE zcl_zpa_timesheet_mpc=>ts_emp_header.

   TYPESemp_items TYPE tt_emp_time,

   END OF ty_time_sheet

           .

* Data Declaration

   DATA: lv_compare_result TYPE /iwbep/if_mgw_odata_expand=>ty_e_compare_result,

         ls_time_sheet TYPE ty_time_sheet,

         lc_emp_time TYPE string

         .

 

* Constant

*  CONSTANTS: lc_emp_time TYPE string VALUE 'Emp_Time'.

 

   lc_emp_time 'Emp_Times'.

* Validate whether the current request including the inline Time Sheet data matches

   lv_compare_result = io_expand->compare_to( lc_emp_time ).

 

* Upon match, access data from IO_DATA_PROVIDER

   IF lv_compare_result EQ /iwbep/if_mgw_odata_expand=>gcs_compare_result-match_equals.

     io_data_provider->read_entry_data( IMPORTING es_data = ls_time_sheet ).

   ENDIF.


Only Header data is available..


Viewing all articles
Browse latest Browse all 9212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>