Skip to Content
0
Jul 05, 2011 at 07:22 PM

Problem in writing the message from the return table

15 Views

Hi All,

I have place the following piece of code to write what I have in a table to the screen:

LOOP AT t_return INTO wa_return WHERE type = 'E'.
     lo_api_controller ?= wd_this->wd_get_api( ).
        CALL METHOD lo_api_controller->get_message_manager
          RECEIVING
            message_manager = lo_message_manager.
        lv_message_string = wa_return-message.
*     report message
        CALL METHOD lo_message_manager->report_error_message
          EXPORTING
            message_text = lv_message_string.
*        EXIT.
    ENDLOOP.

now the problem is on the output screen it's only showing me the first line of the table and it's not going to the second line of the table t_return...

Can you please see what I am doing wrong here.

Thanks,

Rajat