cancel
Showing results for 
Search instead for 
Did you mean: 

Views of BT116H_SRVO are also available in BT116QH_SRVQ Component

Former Member
0 Kudos

HI Experts,

I find something wierd or i may not know. In the component BT116QH_SRVQ, i find the views of BT116H_SRVO. I could not understand why did these views of the other component exist in this component. Your reply would be more valuable, please suggest me why and where these views come from?

__BT116QHSRVQ___

BT116H_SRVO/ConfirmationsOV

BT116H_SRVO/Details

BT116H_SRVO/DetailsEF

BT116H_SRVO/DetailsEFViewSet

BT116H_SRVO/DetailsOV

BT116QH_SRVQ/ItemListOV

BT116QH_SRVQ/OVViewSet

BT116QH_SRVQ/SCItemListOV

*BT116H_SRVO_*_

BT116H_SRVO/ConfirmationsOV

BT116H_SRVO/Details

BT116H_SRVO/DetailsEF

BT116H_SRVO/DetailsEFViewSet

You can see the above views in bold which are coming from the component BT116H_SRVO in BT116QH_SRVQ. How is this possible. please kindly let me know.

Jagadish.G

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I came across the same situation where I need to add new value node in component BT116QH_SRVQ view (BT116H_SRVO/Details) which is from other component. If you just add new value node or Z-field on existing context node, you will not be able to add this UI configuration as it is not available in Available Fields. The reason is, the component controller is loaded from BT116H_SRVO and the context node you are enhancing is accessible via current controller which is not loaded (suppose it is a bug in standard).  You have to play a trick to solve this problem.

1. First you have to create a second entry for the enhancement in SM34 view cluster BSPWDVC_CMP_EXT.

One for BT116H_SRVO

One for BT116QH_SRVQ

2. Then Enhance the Details View in BT116QH_SRVQ and add value node or just add z-value attribute on any existing context node (e.g. BTBOSSET). Put all code to handle this attribute should be in the new enhanced class (e.g. Getter or Setter methods).

3. Now load the orignal component BT116H_SRVO and enhance Details view there.

4. Add value node or add new Z- value attribute as you did in BT116QH_SRVQ. Dont put any logic unless you want the same for this component.

5. Now add the new attribute to UI configuration and Save it.

The trick is that you did the enhancement in Original component BT116H_SRVO to make it available in UI configuration and rest of logic in the working component BT116QH_SRVQ. I hope you got my point. If still any confusion, let me know and I will explain with some example.

PS: reward points if helpful. thanks.

Regards,

Tauqir

Former Member
0 Kudos

Hello,

thank you for this question.

I asked me some days ago exactly the same question.

I think the idea behind it is that service quotation and service order are maybee similar from UI configuration site. So with this reuse of views the UI configuration must not be done twice.

But i have enhanced the view DETAILS in BT116H_SRVO.

This leads now to big issues with the Service Quotation because the enhancement does not work there.

Does anybody know how to solve this conflict?

Thank you

Best regards

Manfred

Former Member
0 Kudos

Hello,

issue with enhancement is solved.

You have to create a second entry for the enhancement in SM34 viewcluster BSPWDVC_CMP_EXT.

One for BT116H_SRVO

One for BT116Q_SRVQ

After this step the enhancement works also for both components.

Best regards

ManniF

Former Member
0 Kudos

Hi Manni,

Thanks so much for ur response, I am bit confused,

Firstly how do they make both the views clubbed in one Component?

Secondly, I have already enhanced the component and i have 2 enhancements available in BSPWDVC_CMP_EXT as below, but when in UI the method DO_PREPARE_OUTPUT is not called for BT116QH_SRVO-Quotation which is only called for Service order. Do i need to change in any table for these entries?

BT116H_SRVO	ZBT116H_SRVO	B BSP Application	ZBT116H_SRVO	Repository.xml
BT116QH_SRVQ	ZBT116QH_SRVQ	B BSP Application	ZBT116QH_SRVQ	Repository.xml

Regards,

Jagadish.G

Former Member
0 Kudos

same problem here...pls let me know how to resolve it.

i too have both the entries in SM34

sumit_mittal2
Active Contributor
0 Kudos

Hi,

Check the 2nd enhancement set to client mapping in sm30 (BSPWDV_EHSET_ASG). .Enhacement set should be mapped to client in which you are running the application..

Also you can check in component_loading default implement, there it should read z-controller instead of standard class.

Cheers,

Sumit Mittal

Former Member
0 Kudos

yup....every thing is there in place