on 10-09-2012 6:28 AM
WD experts,
I want to create a warning message in the pop-up window screen .
I have used the below coding to get the warning message :
CALL METHOD lv_message_manager->report_warning
EXPORTING
message_text = 'Warning message'
RECEIVING
message_id = lv_mess.
This code written in the WDDOBEFOREACTION of the view present in the pop-up window.
When i hit the OK button in the pop-up screen , the values are validated and the warning message is displayed in the pop-up window itself.
I m closing the pop-up window in the WDDOBEFOREACTION when there are no messages.
IF lv_message_manager->is_empty( ) EQ abap_true.
lv_api = wd_this->wd_get_api( ).
lv_window_ctlr = lv_api->get_embedding_window_ctlr( ).
lv_popup = lv_window_ctlr->get_window( ).
lv_popup->close( 'lv_popup' ).
ENDIF.
Actually my requirement is user has to see the warning message in the screen once ok is pressed, when ok is button is pressed for the second time, it should suppress the warning message, close the pop-up window and display the next screen.
For the first time, ok button is pressed, i can see the warning message.
For the second time the same ok button is pressed i am getting a dump
Controller for View, Window, Interface, and Configuration Cannot Be Created . please suggest .
Hi,
My understanding from your question is that below code gets called in WDDOBEFOREACTION when user clicks on 'Ok' Button.
Probably next time when user clicks on Ok button system does not find any reference in variable lv_window_ctlr, lv_popup i.e. they are initial.
Try this:
IF lv_message_manager->is_empty( ) EQ abap_true.
lv_api = wd_this->wd_get_api( ).
lv_window_ctlr = lv_api->get_embedding_window_ctlr( ).
if lv_window_ctlr is not initial.
lv_popup = lv_window_ctlr->get_window( ).
if lv_popup is not initial.
lv_popup->close( 'lv_popup' ).
endif.
endif.
ENDIF.
Explain in detail, if this does not help.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
If it is RABAX error do this procedure.
Execute the application and go to ST22 t-code and click on today button it will show u the list of dumps.
check the error row and double click on source code and you'll come to know where your getting the error in your code.
And you'll come to exactly what's the error your getting
Regards
Madhukiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Could you debug the code on OK and share which statement exactly gives dump?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried to de-bug. But the debugger did not stop when the OK button is hit for the second time. throws standard uncaught exception CX_WDR_RT_EXCEPTION .
If its warning message, the warning mesage should be seen in the pop-up screen. When the user seees the warning message , he can ignore and can proceed by clicking the same ok button.
The same buttion is used for input validations
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.