Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the field as mandatory in module pool program.

Former Member
0 Kudos

Hi Experts,

Could you please advice me in making a screen field as mandatory input field in module pool programming.

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member

double click screen element to open its propertes

select input required in its properties in program tab

done!!!

Edited by: Amit Gupta on Oct 7, 2008 3:47 PM

5 REPLIES 5

Former Member

double click screen element to open its propertes

select input required in its properties in program tab

done!!!

Edited by: Amit Gupta on Oct 7, 2008 3:47 PM

Former Member
0 Kudos

Hi,

Goto the screen element attributes by double clicking on the screen field.

and select the Input required check box.

With Regards,

Dwaraka.S

former_member188685
Active Contributor
0 Kudos

in the screen attributes of the field you can see the option to make it mandatory .

in the popup go to Program Tab , in the Input Drop down list choose Required

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Or you could add a check in a PAI module to check if there is some value, if not give error message.

module check_value.

  if lv_value is initial.
    message e001(00) with 'Enter a value'.
  endif.

endmodule

In the PAI screen flow logic...


Process after input.

field lv_value module check_value.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi,

You can check Input field check box from Element list of your scrren.

and define the field like this in your screen

FIELD: ztest_mat_no,

call this logic in forms include.

IF zarc_detl_str-ztest_mat_no = 'M'.

wa_output_detl-job_type = text-101.

ENDIF.

text-101 is the message.

Thanks,

Sree.