Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

get_iterator->entity_list returns null

Hello All,

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

                   from zzztable.

     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

         exporting

           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.

Merve

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question