on 03-15-2012 8:09 AM
I have a context attribute that has a domain type of string.
Since I am trying to develop a dynamic application, depending on other factors I would like the users to enter either dates or strings in this field.
Is there a way to change the input help mode of an attribute in code (so that when I need a date, the helper button that shows the calendar will be displayed to assist entry)?
I tried to even harcode it in my context (as a test), but I can't even find the input help for date fields (F4_DATE in SHLC), as per the documentation.
Can someone please help?
Thank you,
Harry
Just give the datatype as BEGDA in attribute properties
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, we can do it dynamically using coding.
DATA: lo_tabnode TYPE REF TO IF_WD_CONTEXT_NODE.
DATA: lo_tabnode_info TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
lo_tabnode = wd_context->GET_CHILD_NODE( name = 'THCUS' ). "the custom table node
lo_tabnode_info = lo_tabnode->get_node_info( ).
CALL METHOD lo_tabnode_info->set_attribute_value_help
EXPORTING
name = 'ZZ_PROLE_R3' '' atribute name
value_help_mode = 121 "dicitonary search help
value_help = 'BEGDA'
.
FYI
am sure about 131 is for ovs help and remaining i dont remember exactly
131 for OVS help
121 dictionary search help
111
101
Regards
Srinivas
Thank you so much.
I think it works! (I am saying that because I'm currently on a AS ABAP trial system, and I get a message saying 'value help not available'. I am assuming this is because BEGDA is only available on "normal" systems.
Anyway thanks a lot, this is exactly what I needed.
Thanks,
Harry
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.