on 08-31-2012 10:02 AM
Hi Forum,
In a WD view we have a context node Header it has an attribute ZHDR_PGRP. I am trying to hide this field for some condition in WDDOMODIFYVIEW using the simple code below
DATA lr_zpgrp TYPE REF TO cl_wd_input_field.
DATA path TYPE string.
lr_zpgrp ?= view->get_element( 'ZHDR_PGRP_ATTR' ).
CHECK lr_zpgrp IS BOUND.
lr_zpgrp->set_visible( 01 ).
It dumps and the description says...
Could not find attribute ZHDR_PGRP:VISIBLE
When I check the path with
path = lr_zpgrp->bound_visible( ).
it gives path = HEADER.ZHDR_PGRP:VISIBLE which is correct.
Why is the set_visible method using the wrong path i.e. ZHDR_PGRP:VISIBLE instead of HEADER.ZHDR_PGRP:VISIBLE and goes to short dump?
Thank you,
Anubhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did that using meta data but still not sure why the issue occured in first place.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.