Application Development and Automation 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: 
Read only

mandatory field on the screen

Former Member
0 Likes
2,941

hi folks,

I had an issue related to making a screen field mandatory. I tried by checking the property (Req field) in se51 for that field. it did not work, there are other fields in the screen which are made mandatory and their fields for ' reqd' option are not checked and do work as mandatory fields.

Is there another way to do it? I believe it has been done in a differetn way. I am trying to figure it out and had no success yet.

Also, the text of the such fields appears in red - I checked the display attributes, and did not find anything. Infact this screen is called through ITS as an web app.

Any leads or thoughts would be really helpful...

Thanks,

Vinu

8 REPLIES 8
Read only

Former Member
0 Likes
2,569

HI,

check this if it is dialog programming..

Double click on screen number.

go to <b>Element list Tab</b>.

go to <b>Special Attributes TAB</b>.

In that Input Column for ur field provide it as <b>Recommended</b>. then it will be Mandatory.

Please close the thread if problem is solved and reward to all helpful answers.

Regards

SAB

Read only

Former Member
0 Likes
2,569

Hi,

The screen field should be a 'Input' field and the property set as Required.

Did you activate the Screen after making the changes? Its working for me when I made a field required.

If it is appearing in RED means the validation for that field is failed. Check the validations.

Regards

Subramanian

Read only

0 Likes
2,569

Thanks a lot for your reply, I tried it but yet to figure out the validations part.

I shall get back on this....working on that.

shall award the points accordingly.

vinu

Read only

0 Likes
2,569

Hi Vinu,

When you say that other fields on the screen are mandatory, how did you check that they are mandatory? Fields can be made mandatory using code that checks for the intial value and throws an error message.

So, please check if there are validation for initial fields than you can simply add this field also in the validations.

Hope this helps.

Thanks

Sanjeev

Read only

0 Likes
2,569

I am working on that as I arrive at the solution I shall definitely award the points.

Thanks folks for your leads

Vinu

Read only

Former Member
0 Likes
2,569

screen flow logic:

PROCESS BEFORE OUTPUT.

module attri.

in abap.

module attri output.

loop at screen.

if screen-name = '<your screen field name in caps>'.

screen-required = '1'.

modify screen.

endif.

endloop.

endmodule.

regards

shiba dutta

Read only

0 Likes
2,569

Hi folks,

I figured it out. I had to modify the code using the PBO and PAI evnets in the screen. I was able to do that after researchbut thanks a lot for your input.

Really appreciate it. I shall award the points accordingly.

Thanks,

Vinu

Read only

0 Likes
2,569

Also, coming to the mandatory fields marked 'Red' it comes from the htmo templates that are used to display the web apps using ITS. I got that using SE80 which lists the 'Internet Service' and various web templates used to display the SAP data.

I hope this info helps on ITS.

Vinu