12-09-2008 8:27 AM
Hi,
We customize a Z table. We input the data via SM30.Some field input data is no in the field drop down list. The system give us a Error message like the following. We want to change the message type form Error to waring. Could you pls let me know how to change it?.Thanks.
==========================
Enter a valid value
Message no. 00 002
Procedure
Display the allowed values with F4 and correct your entry.
============================
Best Regards
Park
12-09-2008 8:37 AM
Hi,
change the message type from e to A.in SE91 you have a message class in which the messages are there.
Please also go through the following link:
http://www.sap-img.com/production/changing-warning-msgs-to-error-msg-n-vice-versa.htm.
Hope it helps.
Regards,
Rahul
Edited by: Rahul Kumar Sinha on Dec 9, 2008 9:37 AM
Edited by: Rahul Kumar Sinha on Dec 9, 2008 9:40 AM
12-09-2008 9:21 AM
Hi, Rahul,
I access SE91, I can't find where can change the message type. Could you pls let me know the detail step? Thanks.
Best Regards
Park Han
12-09-2008 9:29 AM
Hi,
To the best of my knowledge when you give FIXED values at DOMAIN level the control is with the run time of SAP you can not interfere with that. try using another domain where fixed ( you can copy the same domain) values are not maintained. in go to the source code and give your own F4 help and possibly you can validate the field entries using FIELD statement in the PAI part of the coding.
Best Regards
Ramchander Rao.K
12-09-2008 11:11 AM
Hi, Ramchander,
Could you let me know how to implement the F4 function? Thanks.
Best Regards
Park
12-09-2008 11:15 AM
Hi
You can go to the Flow logic of the screen and change it to the editable mode and create a module in PROCESS ON VALUE-REQUEST
this is as usual
F4IF_INT_TABLE_VALUE_REQUEST use this Fm
Best Regards
Ramchander Rao.K
12-10-2008 1:04 AM
Hi, Ramchander,
Could you pls give me a sample code for the F4 function? I have never use the function.Thanks.
Best Regards
Park Han
12-10-2008 4:28 AM
Hi Han,
Please ignore the post which i have posted.Actually we cannot change the message type in SE91.
incovenience regretted.
Regards,
Rahul
12-10-2008 5:12 AM
Hi Hank,
I am unable to connect to SAP at the moment.
Just press the PATTERN button in the ABAP editor (SE38 or SE80)
and enter the FM name and press enter. the FM along with the signature is available to you( IMPORT, EXPORT, TABLE) .
just doble click on the FM name you can go to SE37 where you can find the documentatin of the FM
Best Regards
Ramchander Rao.K
12-09-2008 8:39 AM
Hi,
It seems you have have assigned a check table to the fields for which you are getting an error message. This is a good way to validate the data. But giving a warning message will allow the users to enter invalid values and therefore the system issues a error messages because it doesn't find a corresponding entry in the check table.
If you want the users to enter values that are not present in the check table, then remove the check table settings from the Z table itself and you will not get any message then.
regards,
Advait
12-09-2008 9:15 AM
Dear Advait,
I have no use the check table. I use the Single Vals in field domain. We want to allow the user enter other vale except the single vals. Could you let me know how to change the message type from Error to warning? Thanks.
Best Regards
Park
12-09-2008 9:29 AM
I dont think that is possible. Even then it will give an error message, this is a standard SAP behavior.
I would suggest you assign another domain to the field in the Z table or remove the values maintained in the Domain, because you anyways want the user to allow values other than those stored in the domain.
regards,
Advait
12-09-2008 9:44 AM
hi Han Park,
Although your table is z table, but the messages that you will see on entering wrong value is generated from SAP n can niot be customised. So you will not be able to change it to warning message.
cheers,
nikita
12-09-2008 9:57 AM
Han,
2 Points for ur problem:
1) U r geting error for the new entry--> U have attached the check table for that field.
2) If not first one, its the domain of the field, that is validating the entries from its check table.
If your requirement is such that you want to enter any value without any validation, change the data element(means either create new one or change it to gemeric data type as in say Ur data element is MATNR, use char18)
If u really want the check table to be as it is and want to change the error message to warning, u have to go to Function Group of the Z-table( U remember u give a function group in the Table Maintenance setting).
If your requirement is as per second option, let me know, I will explain you how to do it.
regards,
Ashish
12-09-2008 11:02 AM
Hi, Ashish,
Could you let me know how to implement second option? Thanks.
Best Regards
Park Han
12-09-2008 11:14 AM
Sure Han,
You would achieve that functionality with table events.
If you open the Table maintenance Genrotor of ur Z-table, and in the menu bar, goto
Environment->Modification->Events.
Now select new entries and Take F4 on first column.
Select ur appropiate event(in ur case it can be 05 or 01 as 05 is at the new entry creation and 01 is before saving the entry).
Give any Zmodule name in form routine and save the entry.
Now u can see one more column named Editor with sign of CodePad.
Click it and select appropiate include name and it will take u through to ABAp editor.
Put ur code the way u want to carry ur validation and activate it.
Just for ur understanding, while generating the Table Maintenace, this Form Include is inserted in the Function Group of the Table
Word of Caution: When ever u regenerate the table maintenance, table events might be deleted......
Please revert in case of any issues.
Regards,
Ashish