on 07-05-2011 8:22 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
forgot to clear the variable
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.