on 02-14-2015 6:35 AM
How to ascertain whether the a field labels uses OTR text or Data Elements text ?
Hi,
Launch the application in other language by adding URL parameter &sap-language=DE and check.
If it is showing label description, then it is bound to OTR text else not.
Ex : I have one label namely : welcome which is not bound to any OTR texts. When i launch my application in default language ( EN) , following is the output
But when i launch my application in other language ( DE) , following is the output i.e welcome text is blank
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The attribute VL_TEXT would be filled if it is from OTR or Manual entered value. As there is no provison to read this attribute, enhance the class CL_WD_LABEL and create a new public method say, GET_LABEL_BOUND_TYPE and check if VL_TEXT is inital or not and return the relevant type.
And use this below code,
DATA: lr_label TYPE REF TO cl_wd_label.
lr_label ?= view->get_element( id = 'LABEL_NAME' ).
lv_type = lr_label->get_label_bound_type( ).
hope this helps,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.