cancel
Showing results for 
Search instead for 
Did you mean: 

Read only fields in cFolders

Former Member
0 Kudos

Hi experts,

I am currently implementing the SAP cFolders tool. As a requirement I need to set the fields, folder name and subscribe as read only, ie, no one with the role SAP_CFX_USER should be able to change these fields even if the user has u201CWriteu201D authorization in these folders.

Many thanks for your time.

Best Regards,

André Sousa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I had the same problem. I registred the following object CL_CFX_CNT_INPUTFIELD and changed method DO_REQUEST:

IF lp_view IS BOUND.

*{ INSERT NPIK900032 2

data: l_folder type STEXT,

l_area type stext.

SELECT SINGLE FOLDER FROM ZFOLDER_NAMES INTO l_folder WHERE FOLDER = p_inputfield-value.

IF sy-subrc = 0.

p_inputfield-readonly = cl_cfx_const_ui=>sc_true.

ENDIF.

*} INSERT

CALL METHOD lp_view->set_attribute

EXPORTING

name = cl_cfx_const_ui=>sc_view_att_inputfield

value = p_inputfield.

ENDIF.

As such, all folder names in table ZFOLDER_NAMES appear with readonly property.

Regards,

AS

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi André,

we had also the requirement to set some field read-only.

We also solved this by modifying fol_de.htm in the BSP-Application CFX_RFC_UI.

For example the disabling for abos:

<!-- Display folder Metadata ( and category data ) -->

...

clear: lp_screen_object.

call method CL_CFX_SO_CHECKBOX=>get_for_id

exporting

i_id = 'docsubscribe_id'

RECEIVING

rp_screen_object = lp_screen_object.

if lp_screen_object is not initial.

lp_so_checkbox ?= lp_screen_object.

lp_so_checkbox->DISABLE_AND_UNSET( 'Abonnieren auf dieser Ebene nicht möglich.' ).

endif.

Best Regards

Helmut Wenzler

Former Member
0 Kudos

Hi Helmut,

This is interesting.

But where do u code this?

U r in in SE80 if im nt wrong

Is it in Layout or on any event ?

Niranjan

Former Member
0 Kudos

This message was moderated.