cancel
Showing results for 
Search instead for 
Did you mean: 

component usage - use view of std comp

Former Member
0 Kudos

hi friends,

is it possible to just use one single view( not the main window) of a standard component in another Z component using component usage?

if yes coul dyou tell me the steps... and how to bind the context nodes too, could you please tell ?

how to find which context nodes to be binded in the wd_initialze_usage method?

do i need to create all teh context nodes of the view of std component, which I am using as component usage in Z component controller??

how to get the fields/table etc in editable mode?

how can i enhance that std view in Z component so taht those changes to that view is specific to that Z component?

i m sorry too many questions but i needed some info on the component usage.. Please forgive me if its too many questions..

kindly let me know and your thoughts will be very helpful....

thankyou

RDSingh

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi RDSingh,

Yes it is possible to load a single view of a standard component to any zcomponent.To do that :

1:) First create a component interface of the view in the statndard component which you want to use.

2:)Regarding the context nodes ,the nodes which are used in the view have to be binded with the context nodes of the

Component Controller to select the context nodes you can go at web UI and press F2 to get all the details.

3)After the Component interface is completed it is available to be loaded into any Z component.

4)Go to the Z component and in the Component usage add the component inerface created earlier.

5)Next you need to delegate the outbound plugs of this component usage to the window.

6)Now the view can be used like a normal view of the component.

I am a newbie in this field myself so pardon if i cant explain u all the details but you can read book SAP CRM WEB-CLIENT Customizing and development to get full knowledge

Former Member
0 Kudos

hi ankit,

thanks for the reply

did u mean the component interface in the component usage in Z component? when i add this, i can only add the window here.

then i am adding the view of std component in the viewset of Z component, to a view area.

then i can see this view in the View list of Z component.. with stdcomponent/view name..

how to bind teh context, and view usage? i am not able to get the table of std view enable mode, its grayed out..

could u explain in detail about outbound plugs on what should i do?

thanks

RD

0 Kudos

Hi,

Sorry my words were a little confusing in the previous reply.

Ok once u have added interface view to the Zcomponentw.Then the job starts for Data exchenge through conetxt node binding

which is your question for that you have to do context node binding of the interface view and component controller or custom controller of the zcomponent to do so you need to set up context node binding between both you implement WD_USAGE_INITIALIZE method in the component controller of your zcomponent for example for context node BUILHEADER

YOU WILL WRITE IN THE method WD_USAGE_INITIALIZE

CASE iv_usage->usage_name.

when 'comp usage name'

iv_usage->bind_conetxt_node

exporting

iv_controller_type =

cl_bsp_wd_controller=>co_type_component

iv_target_node_name = 'BUILHEADER' *This is created in the Z Component

iv_node_2_bind = 'BUILHEADER'

ENDCASE

Former Member
0 Kudos

Hi ANkit,

  I need your help...

    i have gone through your reply but i did not understand that how to create a component interface of a view in the source component to use the same in target compoenent can you tell me clearly... pls.

  if you have any documentation or screen shots..

  send me at sandya198116@gmail.com

Sandya

kavindra_joshi
Active Contributor
0 Kudos

Check this tutorial http://sapcrmtutorial.blogspot.in/2012_06_01_archive.html

this has steps to create the component interface.

Regards,

Kavindra

Answers (0)