cancel
Showing results for 
Search instead for 
Did you mean: 

Assign one Componet to another Componet

Former Member
0 Kudos

Hi

we have "payment form" view in sales order item details page. But if we open "Credit Memo" item details page, this "Payment Form" is not available. So our Requirement we need "Payment Form" view in "Credit Memo item Details Page" same like "Sales order Item Detail page".

In the analysis "payment form " view is separate componet. So i need to use this componet into another componet

Payment Form Compont : ICCMP_PAYMENT

View : simplePayment

Kindly suggest how to assign one componet to another componet and how we can bind both componet attibutes.

Thank you,

Cha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

you can do this with component usage. search on sdn you will find blogs, article and forum threads on component usage.

check the following articles and threads.

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50f7c4b9-fffd-2c10-6d99-c5aacbc0bbb5

http://wiki.sdn.sap.com/wiki/display/CRM/DynamicComponentUsagesinCRMWebClientUI

Thanks

Raman

Former Member
0 Kudos

Hi Raman,

Based on your Link, I have Created the Component Usage. Now i have to bind the contaxt node, For that i have to add code into "WD_USAGE_INITIALIZE" Method fo COmponent COntroller Class. It's not allow me to add code in that method through it's Standard Method asking access key. How to Add our Custom Code in that Method "WD_USAGE_INITIALIZE".

Thank you,

Cha

Former Member
0 Kudos

Hey you need to enhance that component controller first. Right click on the component controller and enhance it. Once you will enhance it, then its Z controller class will be generated, there you can redefine the "WD_USAGE_INITIALIZE" method of that Z controller class.

Thanks

Raman

Former Member
0 Kudos

Hi Raman,

Thank you, i have added code to bind the context node in "WD_USAGE_INITIALIZE" method. Later what changes has to be done to display our view into UI.

Thank you,

Cha

Edited by: Chabalan on Oct 13, 2011 2:35 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hey, as you said that "our Requirement we need "Payment Form" view in "Credit Memo item Details Page" ", check in wheather your "Credit Memo item Details Page" is in any viewset or directly assigned to window. Ideally it should be in some viewset.(you can check that in the runtime repository)

After you find out the viewset, then you need to create 1 more viewarea in that viewset for your "Payment Form" view. After you create 1 more viewarea.

In the runtime repository, go to windows, right click on the main window, click on the add view and add component usage window there.

After this step, go to viewset and assign the component usage window to new view area.

Also check in the htm code of the viewset that your viewarea has been added.

Thanks

Raman

Former Member
0 Kudos

Hi Raman,

I have added component usage view in to the existing viewset "HeaderExtviewset", whereas "HeaderExtviewset" already has four view as a assignment block, along with i have added "Payment Form" view in Run time Repository.

After, i went into the viewset Configuration tab in "Browser COmponet Structure", here i am not able to see all assignment block of the view set. Here i can see only View Area with Title(HeaderExtMain) screen . Kindly Suggest how to configure the and make avail "payment Form" view in UI.

Note : here only one Standard configuration available.

Thank you,

Cha

Former Member
0 Kudos

Hey, let me know the name of the component in which you are trying to add payment view, i wil try to tell you stepwise approach.

Thanks

Raman

Former Member
0 Kudos

Hi Rama,

Source View:

Componet : ICCMP_PAYMENT

View : Payment Small

Target Componet

Componet : ICCMP_BT_COM

Viewset : Headerextviewset

I have to add payment view in "Headerviewset" as a assignment block.

Upto now

1. Created componet usage

2 . Created bind paymeny form with Context node in "WD_USAGE_Intialize" method.

3. Assigned Componet Usage (Payform) view into the viewset (Headerextviewset) in run time repository.

4. Added payform view Navigation tab code in HEaderextviewset.

Now in front end able to see payform tab. But if i click that tab spinning wheel rotate and view is not displaing.

Please Suggest.

Thank you,

Cha

Former Member
0 Kudos

Hi,

sorry for replying late.

I checked that component "ICCMP_BT_COM". After you added a tab for payment view, you need to create the navigation also corresponding to that tab.

Put a break point in the do_handle_event method of the HeaderExtViewSet, and click on the standard tabs present, you will see how navigation is getting happened. Then you can create outbound plug and navigation link based on your new payment view tab.

let me know if you face any issue.

Thanks

Raman

Former Member
0 Kudos

HI Raman,

Thank you for your information.

I have missed to create the Outbound flag & Event Handler method. So now i try to create the Outbound plug But it's not allowing and raising an error message "View not copied with wizard; processing not possible" as popup.

Kindly let me know how resolve this issue.

Thank you,

ChaBalan

Former Member
0 Kudos

Hi Raman,

I have done the changes, now can able to see the view in the UI layer when i click the navigation Tab.

Just want to confirm, This view added from other component whatever functionallity ( i.e edit,save,validation ) available to this view will be retain here as well right without any code modification?

Thank you,

Cha

Edited by: Chabalan on Oct 17, 2011 12:16 PM

Former Member
0 Kudos

Good Job.

It should work fine, but as some navigation has been included in that, i am not sure if it gives any problem. just test it out and see if everything is working fine or not.

update the thread if you face any issue

Thanks

Raman

Former Member
0 Kudos

Hi Raman,

Thank you. This development testing is going on, still now there is no issue and object is working fine.

One more Development and one question,

This one also same kind of work such that we need to make use of one comonent view into another component. Here required view belongs componet has so many views as well it's one of the main component and view has five fields which has from different context nodes.

Kindly suggest For this development can we do same kind of configuration like previouse work of "payment Form"?

if we use large componet view in another component Will it not be any performence issue or not?

Else we need to go for any other approch. Please sugest.

Source

Component : ICCMP_BT_SLO

View : Slo1Istatus

Target

Componet : ICCMP_BT_COM

View : ItemExtViewSet

Thank you,

Cha