11-11-2005 9:58 AM
Hi,
I'm using editable ALV + F4 for fields. And there is a problem - When field was changed standard data check checks entered value (by f4 or manually) and returns an error - the entry was not found in check table (foreign key table for entered tab_ref and field_ref in the fieldcatalog). When I looked for value in this table - it was there!
In handler of event data_changed this error was already on the entrance in the er_data_changed protocol.
So what am I doing wrong? Or how can I avoid standard data check for columns that have some DDIC reference fields?
Thanks in advance
11-11-2005 10:04 AM
Hi Vitali,
You can standard check, for that when you are populating fieldcatalog dont give ref table and ref field. Just pass the parameters as mentioned below.
ls_fieldcat-fieldname = 'YHPFUNC'.
ls_fieldcat-TABNAME = '1'.
ls_fieldcat-datatype = 'CHAR'.
ls_fieldcat-REPTEXT = 'Functionally complete'.
ls_fieldcat-outputlen = '1'.
ls_fieldcat-SCRTEXT_l = 'Functionally complete'.
ls_fieldcat-edit = 'X'.
Hope this will help you.
Thanks & Regards,
Siri.
11-11-2005 10:11 AM
Hi,
check this it may help you....
http://help.sap.com/saphelp_erp2005/helpdata/en/ff/4649aef17411d2b486006094192fe3/frameset.htm
reward points for helpfull answers.
regards,
venu.
11-11-2005 10:50 AM
Hi Siri
Thanks.
Yes I know that when I don't define these fields the standard check would not be wexecuted. But the problem in my case - that I purposely defined ref_table and ref_field to do not process F4 call. I don't want to call it manualy. And at all this check should be there. But I don't understand why it doesn't find the entered value despite they are in the check tables. So I want to supress standard check and check it in handler of data_changed.
Hi Vanu,
Thank you, I have already learnt it by heart
11-11-2005 11:01 AM
Vitali,
You are in catch 22 situation. If you give ref_table the checks happend automatically and F4 works and you remove both of them does not happen.
I don't think there is a work around apart from what removing the ref table and providing F4 manually.
Regards,
Ravi