Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Standard changes check

Former Member
0 Likes
1,025

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

4 REPLIES 4
Read only

Former Member
0 Likes
936

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.

Read only

Former Member
0 Likes
936

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.

Read only

Former Member
0 Likes
936

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

Read only

0 Likes
936

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