‎2009 May 12 6:41 AM
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 .
‎2009 May 12 7:46 AM
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
‎2009 May 12 8:50 AM
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
‎2009 May 12 10:20 AM
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
‎2009 May 12 5:37 PM
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