Quantcast
Channel: SCN : Popular Discussions - Floorplan Manager for Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 1726

Make some fields Editable in LIST GUIBB at FPM_START and on custom event only for particlar row / all rows

$
0
0

Hello All.

 

 

I have a requirement where I need to some fields editable/read only for a particular row on lead select/particular input action event, based on a condition in LIST GUIBB. As of I am able to show all the fields editable only. Please help me out on how to make certain fields read only on initial load(FPM_START event ) and make certain fields editable( for custom event in the cell ).

 

 

For making some fields read only at the start I used this code, I used this code in IF_FPM_GUIBB_LIST~GET_DATA, but still the fields are at editable mode only, please check and correct where I was wrong.

 

 

data ls_list_desc TYPE FPMGB_S_LISTFIELD_DESCR.

 

   LOOP AT CT_FIELD_USAGE into ls_field_usage where name = 'ZZHTR_OBJ'.

 

*     ls_field_usage-name = 'ZZHTR_OBJ'.

     ls_field_usage-READ_ONLY = 'X'.

     ls_field_usage-FIXED_VALUES_CHANGED = 'X'.

     LS_FIELD_USAGE-ENABLED = 'X'.

     MODIFY ct_field_usage FROM ls_field_usage TRANSPORTING READ_ONLY FIXED_VALUES_CHANGED ENABLED.

     clear ls_field_usage .

     EV_FIELD_USAGE_CHANGED = ABAP_TRUE.

     ENDLOOP.

 

Highly appreciable if any sample code is shared for the below two requirements.

1. Change all columns as read only start.

2. Make a field editable for the particular row based on LEAD_SELECTION event/a custom event.

 

 

 

 

Regards,

Madhav


Viewing all articles
Browse latest Browse all 1726

Trending Articles