Skip to Content
0

Value Help annotations

Feb 20, 2017 at 11:22 AM

183

avatar image

I have been following the Smart Field with Value Help tutorial. It describes that on the Gateway side the metadata needs to be enriched with annotations "ValueList". I have managed to do that by reverse engineering one of the SAPUI5 WEB IDE reference apps and its gateway class _MPC_EXT. So I have redefined the DEFINE method of my class, copied the code and it works fine. I would like to learn more about how it works and other possibilities. So my questions are:

a)Where can I find a SAP documentation describing the above with examples.
b)Is there a SAP provided training course describing it? I was expecting GW100 but couldn't find any information regarding it.
c)Is there a way to use a Smart Filter Bar in SAPUI5 and map the value helps to filter fields without using metadata annotations?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sascha Weidlich Feb 21, 2017 at 08:27 AM
0

Hi Radek,

can you tell me which gateway class you reverse engineered? :)

Im also looking for some examples about Annotations.

Thanks for your information!

Sascha

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Gateway project EPM_REF_APPS_PROD_MAN in SEGW, class CL_EPM_REF_APPS_PROD_M_MPC_EXT, method DEFINE. In there they use ADD_VALUE_HELP method which you can reuse. But I think this is only available in S/4 HANA systems. If you don't have access to it give me a shout and I will send you the code. I may as well write a blog about it. Either the documentation/training is very well hidden or there is no documentation - typical SAP. UI5 is fairly well documented, they show you an example how to do on the front end but not how to do it in the backend...

1

Thanks a lot!

I found the class, think it's available on every Netweaver 7.5/7.51 System. Yep you're right, sometimes its very frustrating to search for some documentation.

Looking forward to read your Blog! ;-)

Regards!

0

I have also noticed you can make use of this class and method: CL_FIS_SHLP_ANNOTATION=>create, it is used by some of the FIORI apps.

0