cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory fields

Former Member
0 Kudos

Hi All.

Again one small question for all you experts.

In the View, I can assign an input field as required. But that just displays a "*" after the label. It does not make the field mandatory and I have check it myself.

Is there any automatic way to ensure mandatory fields?

Thanks in adv.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Aishi,

Use this Piece of code for checking Mandatory check on Action.

 data l_view_controller            type ref to if_wd_view_controller.
  l_view_controller = wd_this->wd_get_api( ).
  cl_wd_dynamic_tool=>check_mandatory_attr_on_view( view_controller = l_view_controller ).

~Bhawanidutt.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

if you don't have the possibility to use the suggested method (not present in the class)

you should implement note

Note 948753 - WD ABAP:Check for mandatory fields

grtz

Koen