on 01-17-2008 3:26 PM
Hi,
Why do I get this error message when I load my WD application? I tried binding context noted few time (as it was suggested) but it did not help.
Any ideas?
Thank you.
Hi,
are u mapping the external node at runtime..? if so then before calling the get_model method u have to do the mapping of node first even though there is no data in it.then only u can set properties of the alv .
Regards
Yash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yash,
The story as follows. One window, one view. The view calls componentcontroller's method that has the following code:
lo_cmp_usage = wd_this->wd_cpuse_profile_hist_alv( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
get ALV configuration model
lo_salv_wd_table = wd_this->wd_cpifc_profile_hist_alv( ).
lo_alv_conf = lo_salv_wd_table->get_model( ).
right after last call I get a dump. I used the same code for other ALVs and it works fine. I think something is missing in mapping.
Context of a view is mapped to context of a componentcontroller.
Thank you,
Georgy
You have to make sure that your Context node in your Component controller has a binding with the "Data"-node in your InterfaceControllerUsage (you can find it under "Component Usages" but of course you already knew that).
If that binding does not exist, than no data will be shown.
Also check that the cardinality of your node (that contains the data) is at least 0-N or 1-N (else it isn't a table).
Regards,
Jos
Today I solved this problem. If your table that you will display in ALV consists a field whose name begins with a number, when you try to display ALV you get the same error. Just rename the field in your table structure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
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.