cancel
Showing results for 
Search instead for 
Did you mean: 

Disable the some fields in account in webUI

former_member198132
Active Participant
0 Kudos
91

Hi all,

I need to disable the some fields in Accounts. After search the account  user select the account id , try to change the street /house Numnber,Postal code.

Now  we need  those fields Display mode if that account BP role is belong to some Z-BP ROLE.

here I am writing the logic below  in View Html Page.

    CL_BSP_DLC_CONFIG_UTIL=>ADV_CONF_META_TO_TABLE( exporting IR_VIEW_DESCR = lv_view_desc
  IV_ADV_CONF_META_XML = lv_xml_inp
  Importing ET_ADV_CONF = it_adv_conf ).

it_adv_conf This internal table  contains the field DISPALY_ONLY , I modfied the internal with that field and passing to below method .

    CL_BSP_DLC_CONFIG_UTIL=>ADV_CONF_TABLE_TO_META( exporting IT_ADV_CONF = it_adv_conf
  IR_VIEW_DESCR = lv_view_desc
  importing EV_ADV_CONF_META_XML = lv_xml ).

Even though those fields are not coming in Display mode. Do I need to add anything in XML  or not.

Regards.,

Ajayram

Accepted Solutions (0)

Answers (1)

Answers (1)

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Ajayram,

Did you pass the final XML to the CTMLB Tag as below?

<chtmlb:config xml  = "<%= lv_xml %>"

               mode = "RUNTIME" />

Also check this post by

As per him the XML is encoded and needs to be decoded. Check the block of code at the end.

http://scn.sap.com/docs/DOC-29342

Regards

Vinod