cancel
Showing results for 
Search instead for 
Did you mean: 

C4C: How to add a new column to a OWL (e.g. COD_Quote_OWL)

siwei_yang
Participant

Hi there,

I have now a problem with extenstion in C4C world.

My task is to add a new column to the list in COD_Quote_OWL. The new column is the product description of the quote . If there are more than one products in this quote then just take the first one.

Actually I was able to define the new extension field by creaing Bussines Object Extension, and to add the new field as new column into the COD_Quote_OWL.OWL.xuicomponent as well. This new column called "Produkt" can then be displayed in Frontend (s. Screenshot).

I tried to fill this field using event like AfterModify or BeforeSave. But it didn't work. This new column is totally empty.

I also tried to use debug and breakpoints to analyse this issue. But it turned out, that the programm was stopped at NONE of those breakpoints .

Could anyone give me a hint or suggestion?

How can I gerenaly add new column to the list in OWL? How can I fill the value to this new column.

Thanks in advance

Siwei

Accepted Solutions (0)

Answers (2)

Answers (2)

andy_blankley
Participant

Dear Siwei,

Hope you are doing well.

In terms of your issue, you can extend (with PDI) SAP Solution UI Component screens by using the extensibility explorer functionality in the UI Designer.

The usual process flow would be something similar to the following:

  1. Create your extension business object in the SDK.
  2. Add a PDI field to any node of your choice.
  3. Right-Click on the extension BO and choose enhance screens.
  4. Pick the screen you wish. You will get a xuicomponent file in the SDK now.
  5. When the UI designer opens for the screen you wish to change, you then check the pane / list pane etc where you wish to extend.
  6. Note: There must be an anchor to extend onto the SAP Standard Screens. If not, you will need to log a request to be evaluated by the application development.
  7. If you have selected an anchor for the mentioned place, then use the extensibility explorer to "Add extension field" to the screen.

.

I can see you mention that no scripts worked in this process. I can only image that no scripts worked in the process because the field is located on a node that has not been extended with ABSL scripts.

What I mean is this scenario:

  1. Extension field on the Item node of BO.
  2. You have AfterModify script on the Root node of the BO.
  3. If you modify the field or any fields on the Item node, your ABSL script will NOT be called.
  4. If you then change a field on the Root node, your ABSL script WILL be called.

.

This is the only reason I can see (without looking) that the script did not get triggered. I would also recommend checking the debugging settings in the Admin settings in the SDK too!

If this solve your issue, mark the response as answered!

Thank you.

Andy Blankley

Simon
Participant
0 Kudos

Hi Andrew,

i have a similar requirement to add a custom field to a standard OWL.

In my case there is no anchor to add my field.

Where do i have to "log the request" for the dev Team ?

Thanks in advance.

Regards.

Simon

andy_blankley
Participant

Hi Simon,

Hope you are well.

If there are no anchors, then my suggestion is to utilize the influence portal or create an incident via the built-in support in C4C. This is done in the help center or administrator work center. Your user might require access for this, so maybe a key user could create this request. The C4C support team will take this further.

Thank you,

Andy Blankley

siwei_yang
Participant
0 Kudos

Hi Andrew,

thank you for your answer. I will try it out.

Best wishes

Siwei