get_iterator->entity_list returns null
I came across with problem about request for change order. The following code is under a custom assignment block which is created by AET and it populates empty lines. The process is going to be happen like : Someone creates an order under a business role which doesnt have the Z custom assignment block and another person is going to open the order and need to fill the custom assignment block. But the following code doesnt work. In the debug mode I can see the lo_iterator's entity_list doesnt fill.
under Z CUSTOM ASSIGNMENT BLOCK - DO_PREPARE_OUTPUT
select * into table it_zzz
describe table it_zzz lines lv_lines.
if gv_first eq abap_true.
me->mv_min_empty_lines = lv_lines.
call method super->do_prepare_output
iv_first_time = iv_first_time.
lo_iterator ?= me->typed_context->ZCONTEXTNODE->collection_wrapper->get_iterator( ).
if lo_iterator is bound.
lo_current ?= lo_iterator->get_first( ).
IF lo_current is BOUND.
Any help would be appreciated.