cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in writing the message from the return table

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

try to concatenate all the message into a string.. and finally call the method. Also, search in WEB DYNPRO forum on this..
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.
Former Member
0 Kudos

forgot to clear the variable