Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Hide portal custom field from a particular subtype

Hi

Requirement:

I need to hide a custom field on the portal side for specific subtypes but have it show for others on IT0006

What I have done:

I have tried using table V_T588MFPROPC but did not work

I have also tried to set the attribute value from BADI HRPAD00INFTYUI but did not work.

I cannot use the personalization option because the field will be hidden in all the subtypes

I have written webdynpro code as below which executes successfully with no exception or error but does not work.

IWDTransparentContainer container = (IWDTransparentContainer)view.getElement("RootUIElementContainer");

try{

IWDAttributeInfo attrInfo = (IWDAttributeInfo)wdContext.currentSelectedInfotypeElement().getAttributePointer

("Zzbuilding").getAttributeInfo();

container.getCustomExtensionField(attrInfo).setVisible(WDVisibility.NONE);

}catch(Exception ex){ex.printStackTrace();}

What could be the problem with my code? Your assistance will be highly appreciated.

Regards,

Michael Mayisana

Former Member
Not what you were looking for? View more on this topic or Ask a question