on 07-24-2008 9:04 PM
I am making a new ESS screen for Race Codes. The codes (you can have more than one) are a series of text fields (R1, R2, etc.). I want to convert these text fields to checkboxes on my ESS screen. That is, if the employee record contains R1, I want a check to appear in the corresponding checkbox on the ESS screen. I have the text fields in my view context and the CheckBoxGroup is defined in my view layout. I assume I need to modify my view WDDOINIT with logic to read the text fields and SET_SELECTED the corresponding CheckBoxGroup boxes. Does anyone have some example code to do this? Thanks.
hi mike,
u can use tihs code block in wddoinit.
zdev is context node
data:
node_node_ztalep type ref to if_wd_context_node.
node_node_ztalep = wd_context->get_child_node( name = 'ZDEV' ).
node_node_ztalep->SET_SELECTED( flag = abap_true index = 1 ).
node_node_ztalep->SET_SELECTED( flag = abap_true index = 2 ).
have a nice day,
Serkan Çivici
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.