on 04-11-2012 4:25 PM
Hi, I have created a view v_form that is embedded in a window W_FORM of a component controller ZWDC_FORM. I wanted to rename the window according to the naming conventions since it had another name first and after doing so I had to do minor changes since I got syntax errors. But I still have one remaining error that I do not understand. I have created a reference to the window in the view in method wddoinit.
wd_this->go_w_form = wd_this->get_w_form_ctr( ).
I have declared the global attribute go_w_form in the view refering to ig_w_form and when I double click on the class it says that there is no class with this name.
But when I add an declaration inside a in the same method wddoinit i the view like this:
DATA go_w_form TYPE REF TO ig_w_form.
wd_this->go_w_form= wd_this->get_w_form_ctr( ).
and double click on the class ig_w_form I get into the class so it's really existing.
I do not understand how to correct the error. Is there anyone that can help me to solve this error?
Thank you very much, regards Lena
Hi
I think the problem lies with the class. Let me explain Ig_XXX is a generated class
in web dynpro . It is not part of the dictionary. When you declare a global attribute
it refers to a class already in the abap system. In WD classes are generated
behind the scene based on declarative approach. So if you try to access this
class from within your code, the project already generated this class and
therefore you are able to get reference to it.
Hope I made it clear enough 🙂
regards
yuval peery
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.