Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

u201CIF_MAIN=>ELEMENTS_ABSQUOTAu201D is unknown.

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

replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question