on 01-31-2008 6:28 AM
Hi,
I want to do a mandatory check for all the required elements on the current view. I'm now using the following code. There is a problem, the WebDynpro does report an error message when the required fields are empty, but it doesn't stop when there is an error and the code in action "UPLOAD" are still excuted. Anyone knows how to solve such problems?
thanks.
======================================================
...
if lo_action is bound.
case lo_action->name.
when 'UPLOAD'.
CALL METHOD CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW
EXPORTING
VIEW_CONTROLLER = lo_api_controller
DISPLAY_MESSAGES = ABAP_TRUE
IMPORTING
MESSAGES = lt_messages
.
endcase.
endif.
...
======================================================
Edited by: Jaddy Zhang on Jan 31, 2008 2:28 PM
Hi Jaddy Zhang,
Futher code usually wont excecute when an error message is displayed. If iys still moving forward means, then put the code inside a condition that checks lt_messages.
Regards
Sarath.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
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.