Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to set mandatory fields in abap webdynpro

Hi Experts.

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..

Please suggest.

replied

Thnks all

handled programatically.

        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.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question