cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to make rows in List Guibb table(IF_FPM_GUIBB_LIST) editable

Former Member
0 Kudos

Hi Team,

Could someone please throw light on how to make a read-only row in a column editable. I am using a List Guibb table(screenshot provided below) that consumes the interface IF_FPM_GUIBB_LIST within its own feeder class. The 3rd and 4th row in my second column(Business Partner) show up as read-only by the system. To make them editable i have used the 2 below approaches as mention in previous forum discussions but the rows just don't  get editable :

Approach 1: IF_FPM_GUIBB_LIST~GET_DATA

LOOP AT ct_field_usage ASSIGNING <ls_field_usage>  WHERE name = 'PARTY_ID'.

<ls_field_usage>
-READ_ONLY = abap_false.

<ls_field_usage>
-ENABLED   = abap_true.

endloop.

ev_field_usage_changed
= abap_true.

Approach 2:  IF_FPM_GUIBB_LIST~GET_DEFINITION

FIELD-SYMBOLS <ls_field_descr> TYPE FPMGB_S_LISTFIELD_DESCR.

loop at et_field_description ASSIGNING <ls_field_descr> WHERE name = 'PARTY_ID'.

if sy-subrc eq 0.

<ls_field_descr>
-read_only = abap_false.

<ls_field_descr>
-read_only_ref = <ls_field_descr>-name.

ENDIF.
endloop.

Thanks in advance,

Vijay

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vijay,

You are changing the values in the fields but you are not modifying the CT_Fieldusage  as shown below in the code. DO that and it will work as you are expecting.

  LOOP AT ct_field_usage INTO ls_field_usage.

       ls_field_usage-read_only  = abap_false.

       ls_field_usage-enabled    = abap_true.

     MODIFY ct_field_usage FROM ls_field_usage TRANSPORTING read_only enabled.

     CLEAR ls_field_usage.

  ENDLOOP.

Thanks

Phani

Former Member
0 Kudos

thanks phani for the reply but using a work area makes no difference at all. however i have used your tip but it still is not editable.

I have used similar code for form_guibb input fields and it works but somehow the same approach does not work in case of a table that is part of a list_guibb.

could someone please throw light on this.

Thanks in advance,

Vijay

Former Member
0 Kudos

Hi Vijay,

I think you are missing

ev_field_usage_changed = abap_true. in your second approach..

Thanks & Regards

Praveen Gupta

Former Member
0 Kudos

Hi Praveen,

Appreciate your response, but the field 'ev_field_usage_changed' is not part of method signature of IF_FPM_GUIBB_LIST~GET_DEFINITION and hence cannot be used.

Thanks & Regards,

Vijay Chaitanya

Former Member
0 Kudos

Hi Vijay,

I am talking about the GET_DATA method of your feeder. In that after assigning the read only refrence to the ct_field_usage table, you have to set EV_FIELD_USAGE_CHANGE = abap_true.

Thanks & Regards

Praveen Gupta

Former Member
0 Kudos

Hi Praveen,

Thanks again for the quick reply , but i have been setting EV_FIELD_USAGE_CHANGE as abap_true since before as well . Some it just does not make the required change.

Regards,

Vijay Chaitanya Raju P.