cancel
Showing results for 
Search instead for 
Did you mean: 

u201CIF_MAIN=>ELEMENTS_ABSQUOTAu201D is unknown.

Former Member
0 Kudos

Dear Expert,

I am looping a work area and trying to pass the data to a structure. I have define a node name ABSQUOTA with 3 attributes (ZZKTEXT, ZENTITLEMENT, ZDEDUCTED)

I used the code wizard to read the context and it generate me the following code

DATA lo_nd_absquota TYPE REF TO if_wd_context_node.

DATA lo_el_absquota TYPE REF TO if_wd_context_element.

DATA ls_absquota TYPE wd_this->element_absquota.

However I guess what I need is something like

DATA lo_nd_absquota TYPE REF TO if_wd_context_node.

DATA lo_el_absquota TYPE REF TO if_wd_context_element.

DATA ls_absquota TYPE if_main=>elements_absquota.

DATA itab_absquota LIKE LINE OF ls_absquota.

Where I can use ls_absquota as a structure. However, when i modify from the auto generate code as above the system is giving me this error.

u201CIF_MAIN=>ELEMENTS_ABSQUOTAu201D is unknown.

Anyone have idea?

Thanks

Regards,

Bryan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Brain,

DATA ls_absquota TYPE if_main=>elements_absquota.

What is your view name is it MAIN or some thing else.

you can also write like this way.

data: it_absquota type wd_this->elements_absquota. " this is to declare for internal table.

ls-absquota like line of it_absquota. " this is for work area

Edited by: suman kumar chinnam on Oct 10, 2008 10:49 AM

Former Member
0 Kudos

Dear Suman,

Thanks..it solve my problem, but i have a question. Why cant't i declare like below as i have been always doing it in my pevious client.

DATA lo_nd_absquota TYPE REF TO if_wd_context_node.

DATA lo_el_absquota TYPE REF TO if_wd_context_element.

DATA ls_absquota TYPE if_main=>elements_absquota.

DATA itab_absquota LIKE LINE OF ls_absquota.

Thanks.

Regards,

Bryan

Answers (0)