on 03-03-2015 11:23 AM
Hi!
I am creating input fields in my webdynpro application and I need to attach a DDIC domain name to the field. Can you help me how this can be done? I found the method SET__DDIC_BINDING but I do not know how to do use it.
Thank you!
Regards,
Royce
Hi Pinto,
Normally when you are creating the UI element, all the properties will be inherited from the binding context attribute type. And if you want to change the field properties apart from that, then we can go for using SET__DDIC_BINDING method. For instance if the bound value is Long and you want it to appear as short for the end user, then this method can be best made use of.
lr_input->SET__DDIC_BINDING( PROPERTY = 'LENGTH'
DDIC_element = 'Z*****'
).
Please check this link, which would explain in detail, associated with the usage of this method.
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What exactly are you trying to do?
Dynamically create the input field on the view? If so, you will find many examples on the web. You normally do not work with domains, but with the data element.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Royce,
Please have a look foe the below wiki.
Creating UI Elements Dynamically in Abap Webdynpro Application - Web Dynpro ABAP - SCN Wiki
You can use cl_wd_input_field=>new_input_field and pass your structure field in the bind_value parameter. It will automatically picks up the value from domain.
BR,
RAM.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.