cancel
Showing results for 
Search instead for 
Did you mean: 

How to change Layout data of Transparent Container?

Former Member
0 Kudos

Hi Guys

I am trying to enhance the following :

Comp : HAP_MAIN_DOCUMENT

View : VW_CONTENT

Contains : TRNS_CONTAINER_PROCESS (MatrixHeadData)

and TRNS_CONTAINER_DOCUMENT(MatrixData).

I am trying to change the layout data of TRNS_CONTAINER_DOCUMENT to MatrixHeadData through enhancement. however the properties are not editable even in Enhancement mode.

Can this be changed thru programming? If so can you please help.

Highly appreciate your help.

Thanks & regards

Pramod

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Although you can't change properties via Enhancement, you can disable the existing UI elements and then add new ones that bind to the same context nodes/attributes and raise the same events. As long as the component doesn't have any UI ID specific logic in the WDDOMODIFYVIEW this approach will work. However it might lead to greater effort to make adjustments after upgrades since you would have to manually incorporate any changes SAP made to the delivered UI elements into your new copies of the UI elements.

Answers (2)

Answers (2)

Former Member
0 Kudos

Many thanks for both of you.

I have modified the STD and marked TRNS_CONTAINER_DOCUMENT as MatrixHeadData.

Thanks and Regards

Pramod

Former Member
0 Kudos

Hi,

U can not change the properties of UI elements through enhancements.

Check in this class cl_fitv_wd_util, if some method is there to do it through coding.

Even if u will be able to achieve this as i think u will face a new problem because if u change the layout property of container then what about its inside elements.

Edited by: pankaj aggarwal on Feb 26, 2010 5:25 PM