how to set mandatory fields in abap webdynpro
how to set mandatory fields in abap webdynpro.
I have set of 5 fields in my view. Changed the property of input field. State-> Required . to all fields.
If value is not entered in any of the field, output is as per the expectations.
If value is entered in any one field and click on save, then it is saving without asking to enter value in other required fields..
Sreekanth N replied
lo_nd_xxx TYPE REF TO if_wd_context_node,
ls_xxx TYPE wd_this->element_<node name>,
lo_nd_xxx = wd_context->get_child_node( name = wd_this->wdctx_<view name>).
lo_nd_xxx->get_static_attributes( IMPORTING static_attributes = ls_xxx).
the above structure ls_xxx has captured whether data is being entered by user.