04-12-2006 1:08 PM
Hi all
I'm having trouble with getting F4 value range help up and running on a cell in my ALV. The main reason for my problems is because I'm not using a DDIC structure, but one I defined locally. The structure's field is associated with a domain type defined in the DDIC and as such I'd like to pull the value range from there.
Here's what more-or-less what I'm doing:
- Create a local structure type corresponding to fields of a DDIC table.
- Select from the table into the structure.
- Load ALV with structure.
Is there anyway to get the F4 help on a cell?
Ps. ref-table and ref-field doesn't work.
04-12-2006 1:12 PM
04-12-2006 1:12 PM
04-12-2006 1:15 PM
Hi,
Show how you are populating fieldcatalog.
why ref_field and ref_tab is it not working? it is working for me.
and more over do you have any F4 help for those fields in DDIC which you want to show F4 help.
Regards
vijay
04-12-2006 1:20 PM
have u registered ur F4 help in fieldcatalog , chk this
if gs_fieldcat-fieldname = 'FIELD'.
* gs_fieldcat-edit = 'X'.
gs_fieldcat-F4AVAILABL = 'X'.
modify gt_fieldcat from gs_fieldcat index sy-tabix.
endif.
where FIELD is ur field where u want F4 help
04-12-2006 2:31 PM
As I'm not at the office at the moment I can't test anything, so I'll give you a progress update tomorrow, but in the mean time:
Anjali - I'll have a look at that link. I'm still fairly new to ABAP so I can't tell off hand if that's what I'm looking for, but I'll know for sure when I have a look at the demo applications.
Vijay - I do have value ranges for the domain of the type used by my structure. I believe ref-table and ref-field isn't working because my internal table is of type local structure rather than DDIC table type.
Sekhar - I did try setting F4AVAILABL to 'X', but all that does is display the 'value range button' (which you can click to get the same effect as pressing F4), without actualling doing anything else.
Thanks for the help thus far.
04-12-2006 2:38 PM
Hi ,
I'm not sure you tired or not.
but for me it is working.
ok your internal table is local structure ,so ...?
what stops you to use ref_field and ref_table .
when you use ref_field and ref_tab you will automatically get all the relevant info attributes like F4help , F1help etc.
Regards
vijay
04-13-2006 7:48 AM
K, thanks for all the advice, I managed to get ref_table working. There was a problem with the tables.
Thanks Vijay, I'll award some points.
04-12-2006 2:39 PM
Hello,
The values of the domains are stored in the DB table DD07D.
Regards,
Naimesh