on 07-13-2011 7:49 AM
Hi Experts,
I want to display msg if mandatory field is not filled , for that i called
CALL METHOD L_MESSAGE_MANAGER->REPORT_ATTRIBUTE_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT = ' PLEASE FILL ALL MANDATORY FIELD '
ELEMENT = ELEM_GENRAL
ATTRIBUTE_NAME = F_NAME
But i am getting error that F_NAME is not an attribute name but it is attribute name only
What i should do , Please Help
Hi Neeraj,
Meera is correct but means the quote marks are missing on your attribute name.
You have:
CALL METHOD L_MESSAGE_MANAGER->REPORT_ATTRIBUTE_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT = ' PLEASE FILL ALL MANDATORY FIELD '
ELEMENT = ELEM_GENRAL
ATTRIBUTE_NAME = F_NAME
Should be:
CALL METHOD L_MESSAGE_MANAGER->REPORT_ATTRIBUTE_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT = ' PLEASE FILL ALL MANDATORY FIELD '
ELEMENT = ELEM_GENRAL
ATTRIBUTE_NAME = 'F_NAME'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I think you are talking about attribute in the context not attribute of a class. If this is the case, You can not pass it directly to a method. Use code wizard to generate the code automatically for this attribute(with READ option). Then use the data object declared by this code as ur F_NAME. Leme know if u have any concerns in this.
Cheers
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neeraj,
Remove Required property of that inputfield make it NORMAL.
For example your input field is INPUT...
if input is initial.
* report message
CALL METHOD lo_message_manager->REPORT_ATTRIBUTE_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT = 'Pick Quantity Should not be 0... '
ELEMENT = wa_temp // element
ATTRIBUTE_NAME = 'PICK_QTY'. // Attribute name( name used in context )
endif.
If you not fill input it will raise error message by hilighting the input field.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi..
You can just validate like normal field.
If attribute value is initial,
then raise an error message ( report_error_message) , it stops processing the further statements.
I dnt have knowledge on report_Attribute_error_message, but just analyze like
ELEMENT = ELEM_GENRAL
ATTRIBUTE_NAME = 'F_NAME'
here elem_general is element of "n_name"? (n_name is node name under which F_NAME attribute is there)
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.