‎2009 Jan 20 8:24 AM
Hi ,
First when i enter into the screen some fields are mandatory.So when i click the button in the application tool bar i want to disable the input.
My pbm is the error message showed as 'Enter all the fields'. coz the fields are mandatory.
i doesnot allow the button to click....help me please......
Thank u,
Manjula Devi.D
Read the Rules of engagement
Edited by: Vijay Babu Dudla on Jan 20, 2009 3:58 AM
‎2009 Jan 20 8:30 AM
‎2009 Jan 20 8:30 AM
Hi,
Instead of making the fields as mandatory you could write a code logic to check whether any input has been made or not.
This way you could avoid the check on any particular Function code.
‎2009 Jan 20 8:34 AM
Hi,
Remove the fields as Mandatory and write a code for that to show error message.
Eg:
if gv_kunnr is initial.
Message 'Make entry in all required fields' TYPE 'E'.
endif.
Hope it helps!!
Regards,
Pavan
‎2009 Jan 20 8:37 AM
turn off the required option from the fields...and put the code check for mandatory inside PAI
‎2009 Jan 20 9:20 AM
Hi,
Change the Input Field Program Attributes from 'Required'.
Change some of the Logic written in the Flow Logic of the Screen., Inside the PAI with Stmt FIELD <Screen Field> MODULE <module1>. In this Module1 check the Field is initial and give the Error/Warnings as required.
See the Concept of CHAIN-ENDCHAIN & FIELD < > MODULE < > .
Regards,
GP.
‎2009 Jan 20 9:39 AM
Remove the mandatory option. Write a code to check if the field is initial or not. If its initial then give an error message. now also set an flag = X.
if flag = x.
clear flag.
else.
if field is initial.
flag = x.
give error message.
endif.
endif.