2005 Nov 10 5:15 PM
Hi,
I am checking if user has entered value in a required field !! If he has not, I want to hold the transaction, display an error message until he enters a value in that field.
How to achieve this ??
can i have the steps and statements , please ??
thanks
2005 Nov 10 5:18 PM
2005 Nov 10 5:20 PM
2005 Nov 10 5:21 PM
Hi,
A little more:
You can also use this so that the cursor stays on p_field field on the scree.
at selection-screen on p_field.
if p_field is initial.
message e001(00) with 'Hey, fill in this field'.
endif.
Cheers,
Bhanu
2005 Nov 10 5:49 PM
Hi Rad,
If it is already a required field, then why do we need to handle this separately. Required fields have this property already embedded in SAP.
If the user doesn't enter a value, then SAP throws an error.
However, whatver fellow sdn members suggested is equally valid for all the fields(mandatory or otherwise).
Regards,
Ravi