on 05-19-2008 4:39 AM
Hi,
I am using assign class with method (Inside Method I have used Function Module to Cretae Equipment) to create equipment in sap from webdynpro.after creation I am getting return messages in RETURN Table. How to show to users the entire information of RETURN Table data if error or any .
Kindly help.
Thanks in advance.
Dav
Hi Dav,
I understood your problem. to achieve this
1. Create a context node( ex : node_return_table) with the type of return internal table.
2. use bind_table method to pass the data from your internal table (it_return_table) to your context node (node_return_table), now you have the data in your context node.
3. In the layout insert one table and bind that table with your context data. if run your application you 'l be get your return table data in this table.
Hope this will solve your requirement, if not please do reply me.
Phalani M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Friend,
This code might help you to achieve your requirement.
*Get message manager
DATA: L_CURRENT_CONTROLLER TYPE REF TO IF_WD_CONTROLLER,
L_MESSAGE_MANAGER TYPE REF TO IF_WD_MESSAGE_MANAGER.
L_CURRENT_CONTROLLER ?= WD_THIS->WD_GET_API( ).
CALL METHOD L_CURRENT_CONTROLLER->GET_MESSAGE_MANAGER
RECEIVING
MESSAGE_MANAGER = L_MESSAGE_MANAGER.
DATA: V_MESSAGE_TEXT TYPE STRING.
*When Sales Order is created commit the data
IF NOT V_SALES_DOC IS INITIAL.
CONCATENATE 'Sales Document' V_SALES_DOC 'has been created.' INTO V_MESSAGE_TEXT SEPARATED BY SPACE.
Report Success message
CALL METHOD L_MESSAGE_MANAGER->REPORT_SUCCESS
EXPORTING
MESSAGE_TEXT = V_MESSAGE_TEXT.
ELSE.
V_MESSAGE_TEXT = 'Error Creating Sales Order'.
*Report Error message
CALL METHOD L_MESSAGE_MANAGER->REPORT_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT = V_MESSAGE_TEXT.
Reward points if helpful.
Thanks,
Kranthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use the below code to display error in webdynpro
data: l_current_controller type ref to if_wd_controller,
l_message_manager type ref to if_wd_message_manager.
l_current_controller ?= wd_this->wd_get_api( ).
l_message_manager = l_current_controller->get_message_manager( ).
l_message_manager->report_t100_message(
exporting
msgid = return-msgid
msgno = return-msgno
msgty = return-msgty
).
Regards,
Shruthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.