cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the type of the field (From F4 help to free text field)

Former Member
0 Kudos

Hi

I have a requirement where in i have to change the type of a standard field. It is a field with F4 help. My requirement is to change that field to a free text (input field). I have tried commenting the code in the get_p and get_v methods of the attribute. Doing this changes the field to a dropdown field with values in the F4 help now in the dropdown. i have also tried changing the code in Get_P method of the attribute. It is still not working. Can anyone help and guide me in doing that.

Thanks and Regards,

Radhika Chuttani

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Hi,

This issue has been solved. The rv_valuehelp descriptor for that attribute was being retreived from the code written in the method get_v_s_struct of that context node. It had to be restricted there.

Thanks and Regards,

Radhika Chuttani

mohamed_buhari3
Discoverer
0 Kudos

Can you please tel me which method is that P_method or V_method?

Former Member
0 Kudos

Hi,

The propertt comes as input only if i specify in get_P the attribute as 'field_type_text', but in this case, it does not display the box for the field.

Thanks and Regards,

Radhiika Chuttani

Former Member
0 Kudos

Do an F2 on the screen and find for which particular role or config key key you are making changes in the UI Config tool. Both should be same.

This is a simple thing, it should not be that complex.

Former Member
0 Kudos

Hi

I guess we cannot change the type in UI configuration of that field. If we can, how do we do that, beacuse i find that property diabled for the field.

Thanks and Regards,

Radhika Chuttani

Former Member
0 Kudos

You will have an edit button right...You can do it.You can change any field property in UI Config.

It should be Input Field in UI Config. If this is not done, it will not work.

Former Member
0 Kudos

Hi,

This still brings am F4 help for that field.

Thanks and Regards,

Radhika Chuttani

Former Member
0 Kudos

Is the F4 help working ?

See, we give the outbound plug to the Value Help Descriptor in V method. If we are not writing any code there, the F4 will not work and F4 should not come either.

Now, in the P method we make it as Input field and UI Config too.

If this is done, it should work. I am not sure from where else is it picking the field property.

Former Member
0 Kudos

Hi

The type of the field is picklist if i chk in the ui config. if i change it in the get_p method to 'field_type_text' , the the type changes to input field but the ui does not display anything for the corresponding field , just the label.

Thanks and Regards,

Radhika Chuttani

Former Member
0 Kudos

Hi,

It should be cl_bsp_dlc_view_descriptor=>field_type_input in P method and 'Input Field' in UI Config.

No code in V method.

Then only you will get it as editable input field.

Regards,

Masood Imrani S.

Former Member
0 Kudos

Hi,

I tried that even. Doing this changes the field to a dropdown field.

Thanks and Regards,

Radhika Chuttani

Former Member
0 Kudos

I am surprised by this...!

Check in UI Configuration. Field Type should be 'Input Field'.

Dont call super class methods in either P or V methods.

Regards,

Masood Imrani S.

Former Member
0 Kudos

Hi Masood,

Thanks for the reply. The code which u have written was there initially in the get_P method.

I tried using 'field_type_text' also. This also does not work.

Thanks and Regards,

Radhika Chuttani

Former Member
0 Kudos

Yes, mentioned that there is no difference in P methods.

Remove the code in V method and dont write anything there.

Former Member
0 Kudos

Hi,

Redefine the Get_V method and write nothing there !

Redefine the Get_P method and paste this code.

CASE iv_property.

WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.

ENDCASE.

The Property for F4 and normal field will be same cl_bsp_dlc_view_descriptor=>field_type_input.

The only difference is for F4 help, GET_V method has some code to call the Outbound Plug.

If you want a DDLB.

CASE iv_property.

WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.

ENDCASE.

Cheers,

Masood Imrani S.