Skip to Content

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

Extension Field Name

Hi All,

I am not able to fetch the name of an Extension Field which is in Company object. I am able to get the value with below code.

compRef = doc.getCompanyRef();

compHome = IBeanHomeLocator.lookup(session, compRef);

comp = compHome.find(compRef);

PriceIfc smallValuePrice=comp.getExtensionField("EXT_SMALL_VALUE").get();

but I need to get the name of the Extension Field. Can you please help me to get it.

Thanks,

Naresh.

Former Member
Former Member replied

Unfortunately you'll not be able to do that.

Only alternative is to show an exception message next to each field and a generic message at the header-level (this last part is done automatically btw):

ae = new ApplicationException(session);

ae.chainAtEnd(doc.createApplicationException("FIELD_1" ...

ae.chainAtEnd(doc.createApplicationException("FIELD_2" ...

ae.chainAtEnd(doc.createApplicationException("FIELD_3" ...

if (ae.getChain() != null)

    throw ae.getChain();

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question