Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Mapping for root node is not possible

Former Member
0 Likes
925

I am new in webdynpro. I 'd tried to create a web dynpro component with bapi usage

bapi : BAPI_CUSTOMER_GETDETAIL2

import parameter CUSTOMERNO

On step defining the context mapping I get an error : Mapping for root node is not possible

on drag and drop import parameter CUSTOMERNO

What is my problem ?

Please ,help me .

Regards .Helena .

4 REPLIES 4
Read only

Former Member
0 Likes
633

Hi Helena,

You are trying to map an attribute.

Try copying the whole importing node. Then you will be able to map the context.

If you want to restrict the attributes in the importing node, you can do that in the service call.

Revert back if any queries.

Regards,

Lohitha

Read only

Former Member
0 Likes
633

Thanks a lot for your reply , but in step ADAPT NODE

the input parameter CUSTOMERNO was defined not as attribute but as node context

like the output table .

Please your help

Read only

0 Likes
633

Hi Helena,

Even if you declare some of the parameters as nodes they were taken as attributes depending on their

structure. So the importing parameter CUSTOMERNO is taken as attribute. The error message you are getting is because you are trying to map an attribute. If you have doubt whether it is attribute aor node, please check the symbol beside the parameter. Node and attribute have different symbols.So please try mapping the whole importing node to map the context to the view.

Regards,

Lohitha

Read only

0 Likes
633

Hi Helena,

In ADAPT NODE after you have selected importing parameters as a context node and finished. Finally it must have created a Node IMPORTING under the BAPI Node "BAPI_CUSTOMER_GETDET".

Inside IMPORTING node you will have CUSTOMERNO , COMPANYCODE as attributes. Now if you try to map CUSTOMERNO to the context of the view you will get the error saying "mapping for root node not possible". To remove it Map the entire IMPORTING node from COMPONENTCONTROLLER and it will be OK.

Thanks,

Abhishek