‎2007 Jan 30 4:38 PM
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
‎2007 Jan 30 4:40 PM
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
‎2007 Jan 30 4:48 PM
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
‎2007 Jan 30 8:05 PM
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
‎2007 Jan 31 8:37 PM
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
‎2007 Jan 31 10:01 PM
I am working on that as I arrive at the solution I shall definitely award the points.
Thanks folks for your leads
Vinu
‎2007 Feb 01 4:07 AM
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
‎2007 Feb 01 9:28 PM
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
‎2007 Feb 01 9:31 PM
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