Application Development 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: 

ALV, domain and F4 value ranges.

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Chk out this link:

Hope it helps you.

Regards,

Anjali

7 REPLIES 7

Former Member
0 Kudos

Hi,

Chk out this link:

Hope it helps you.

Regards,

Anjali

former_member188685
Active Contributor
0 Kudos

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

Former Member
0 Kudos
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

Former Member
0 Kudos

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.

0 Kudos

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

0 Kudos

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.

naimesh_patel
Active Contributor
0 Kudos

Hello,

The values of the domains are stored in the DB table DD07D.

Regards,

Naimesh