cancel
Showing results for 
Search instead for 
Did you mean: 

BO CustomerQuote Extension

Former Member
0 Kudos

Hi experts,

I'm new to SAP Cloud Applications Studio development and I wondering to know the steps I've to follow to extend the C4C Standard Object "CutomerQuote" (Sales Quotes).

In particular I've to add an EmbeddedComponent that shows up when the user select/add a product into the table i've highlighted in the image pasted below:

I think i've to "bind" informations showed up into that box to the Product-selection (or something like that).

Thanks in advance.

If you need further information don't esitate to ask me.

Regards and thanks all,

M.

Accepted Solutions (0)

Answers (1)

Answers (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Marco,

You need to defiene an Embedded Component which takes as inport the ProductId (or any other identifier needed to find all the requeired data)

Search by the "cloudstudio_howto_ui" tag for some documents.

Bye,

   Horst

Former Member
0 Kudos

Hi Horst,

first of all, thanks for your reply.

I've tried to modify my "test solution" acording to your hint but the result don't match my needs.

Maybe i've made wrong something.

Below i'll show the steps i've done:

  • Step 1: Custom BO creation

         

          First, i've created a custom BusinessObject with this structure

         

          Inside this custom BusinessObject i've created an element testField that will be a           "characteristic", specific for each product selected inside the CustomerQuote standard BO.

  • Step 2: EmbeddedComponent creation

          Inside this EC i've added the two fields declared inside the CustomBO

         

          Then, i've setted up proper DataModel field inside the EC

         

          Finally, i've created an InPort to link the EC to the Item inside the CustomerQuote standard           BO:

         

         

          Inside InPort declaration i've assigned (bind?) the ProductUUID of the CutstomerItemPort to           the ProductUUID field of Custom BO.

  • Step 3: EC insertion within Standard screen (CustomerQuote)

          Next, i've added the embedded component to the CustomerQuote standard screen via UI           Designer (i didn't create a BusinessObject extension).

         

          NOTE: i did not set any kind of binding when i've inserted the EC.

  • Step 4: Test

          Last i've tested my work. But, when i try to add a new product/switch from one to another           infos (inside Custom EC) values remain the same (they are not associated with the           Product/QuoteItem selected).

         

Two additional things:

  1. why the content inside the EC does not change on product selection-change?
  2. the field Product ID sould not be empty (because was binded to property of CustomerQuote outport), right?

As said before, i'm really new of this kind of development and i can't understand how to fix this issues and achieve my goal.

Hope you (and/or, hopefully, also other persons of comunity) can help me.

Thanks in advance.

Regards,

M.

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Marco,

The important topic is: The EC needs to be notified that something has changed. That happens via the OutPort -> InPort binding.

The hosting UI fires the outport, the EC geht's notified about the changes (and event the initial value to something is a change) and then the EC can react.

You may test this with an own UI to get a better feeling.

Bye,

   Horst