cancel
Showing results for 
Search instead for 
Did you mean: 

Changing a column from a Input Box to Link to Action at runtime

Former Member
0 Kudos

Hello Experts,

I am using OVP component. In my application i have a List GUIBB. In this list GUIBB i have column that is input box.

Now new requirement came that is column should be Input Box when i am in change or Edit mode. Once i click save button my GUIBB becomes Read Only. At this time my column should become Link To Action field in the List. And on click of this some action should be fired.

Is this possible. If so How?

Please Reply.

Regards,

Ajeet Pratap Singh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ajeet,

This is possible to change.

In List UIBB we know method GET_DATA for this method we have some Attributes for your Scenario

you need to use the parameter IT_SELECTED_FIELDS type FPMGB_T_SELECTED_FIELDS.

As you'll have many fields in LIST uibb.

try to read the particular field from IT_SELECTED_FIELDS based on field example 'KUNNR' using READ statement in abap.

write this code on SAVE action.

METHOD if_fpm_guibb_tree~get_data.

data ls_SELECTED_FIELD type FPMGB_S_SELECTED_FIELDS.

ls_SELECTED_FIELD-NAME = 'KUNNR'.

ls_SELECTED_FIELD-DISPLAY_TYPE = 'LA'. " Before save it was IN i.e, inputfield.

append ls_SELECTED_FIELD  to IT_SELECTED_FIELDS.

EV_FIELD_USAGE_CHANGED = abap_true.

CT_FIELD_USAGE = abap_true.

Endmethod.

This will help you.

Regards

Madhukiran.

Former Member
0 Kudos

Hi Madhu,

IT_SELECTED_FIELDS is an importing parameter. That we can not change. Even if i were able to change, this change will not reflect on UI as it is importing not the exporting nor changing parameter.

Regards,

Ajeet Pratap Singh

Former Member
0 Kudos

Hi Ajeet,

I have not checked that its an importing parameter.

But according to me we cant change a UI column from button to input field or any either in WDA or in FPM.

There is one way to achieve this.

Create a two columns one is INPUTFIELD and LINKTOACTION.

When your in change or edit mode make INPUTFIELD column as visible and LINKTOACTION column as invisible.

when you click on SAVE  make INPUTFIELD column as invisible and LINKTOACTION column as visible.

This will help you.

Regards

Madhukiran.