on 06-07-2007 4:51 PM
Dear folks,
I have been following tutorial 6 in WD4A given in the link,
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c8780... [original link is broken]
.In that TECHED_05S_CUSTOMER_DATA component is not in my system.So i wrote component myself which gives this functionality. i write a method to extract customer data in Component controller ,and i created a view in that component,but still i cant get output when i select line item...means system does not shom me customer data when i click on flight data.Can anyone help me .This is my code of method.
method CUSTOMER_DATA .
data:
Node_Customer_Data type ref to If_Wd_Context_Node,
Elem_Customer_Data type ref to If_Wd_Context_Element,
Stru_Customer_Data type If_Componentcontroller=>Element_Customer_Data .
* navigate from <CONTEXT> to <CUSTOMER_DATA> via lead selection
Node_Customer_Data = wd_Context->get_Child_Node( Name = IF_COMPONENTCONTROLLER=>wdctx_Customer_Data ).
* get element via lead selection
Elem_Customer_Data = Node_Customer_Data->get_Element( ).
select id name street POSTBOX POSTCODE into (Stru_Customer_Data-id, Stru_Customer_Data-name,
Stru_Customer_Data-street, Stru_Customer_Data-POSTBOX, Stru_Customer_Data-POSTCODE)
from SCUSTOM where ID = CUSTOMID.
endselect.
* set all declared attributes
Elem_Customer_Data->set_Static_Attributes(
exporting
Static_Attributes = Stru_Customer_Data ).
endmethod.
Nirad
Hi all,
I have written a tutorial that shows how to create the reusable component necessary for tutorial 6.
Please refer to my blog post:
All the best,
Bruno Esperança
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in my condition is same above.
can u give me some information how to solve doubt.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i have solved this at my own .thanx though
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.