cancel
Showing results for 
Search instead for 
Did you mean: 

how to add custom fields in sales order creation form in SAP C4C Product?

Former Member
0 Kudos

Hi Professionals,

I am beginner for c4c technical development, I want to add some extra custom  fields to sales order creation form in header & item level and fetch data from back end into that field.

I explored about that but still confused that how to add fields inside sales order -> New form.

I am totally confused that where i will find views and finding extension points for sales order.

If can anybody help me to get start with that. That would be great .



Thank you in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Santosh,

Basically, to add a new field to sales order you have two options:

1) Create it via UI (master page adaptation)

2) Create it via Studio (better if you want to add custom logic)

via UI:

1) Access the screen;

2) Click in Adaptation > Edit master page;

3) Create the field.

In studio:

1) Create a CustomerQuote.xbo;

2) Add your extension field;

3) Enhance the QC (quick create) screen;

4) Inside de screen, add the extension to the header section.

About C4C development, it's better to use this forum:

There you can find some posts and articles, ex.

Regards,

Alexandre.

Former Member
0 Kudos

Hi Alexandre,

I am very happy by seeing your positive  response.

I appreciate that.

I followed the steps as you suggested above reply.

after creation of CustomerQuoteExt.xbo  after selecting namespace:http://sap.com/xi/AP/CRM/Global   and business obj: CustomerQuote

I found below code:

import AP.Common.GDT;

import AP.CRM.Global;

[Extension] businessobject AP.CRM.Global:CustomerQuote {

        // You must activate this business object before you can access the extension fields

        // or messages in script files, forms, and screens.

   

    node Item {

      

    

      node ItemParty {

         }

        }

   

    node Party {

  

       }

   

    node ItemProposal {

       }

    

 

}

I am confused  here that in which node i should exactly add custom fields in for sales order header and sales order item level screen.

Former Member
0 Kudos

Hi Santosh,

You could try the following:

[Extension] businessobject AP.CRM.Global:CustomerQuote {

 

     [Label("Test header")]

     element HeaderField: Indicator;

    node Item {

          [Label("Test item")]

          element ItemField: Indicator;

           node ItemParty {

         }

    }

  

    node Party {

       }

  

    node ItemProposal {

       }

}

But keep in mind that not all BOs can be extanded this way (check this: )

Have a look in the complete studio documentation: http://help.sap.com/saphelpiis_studio_1608/studio_od_1608.pdf

Do the parking exercice to understand better how C4C dev works 😃

Best regards,

Alexandre.

Former Member
0 Kudos

Hi Alexander, Thanks for the giving source links for explore.It is very helpful.

But I am facing issue with

1)  creating new column in sales order item level screen.

2) I have created 2 custom fields in sales order header level but i cannot create as ObjectValueSlector box and dropdown box instead i m able to create only display type as inputBox.

3) and can u tell me where should I write 'call to odata service' for fetching data from ECC to my customized data.

Best regards,

Santosh

Former Member
0 Kudos

Hi Santosh,

1) If you want to add the column to the product list: click on the list component; access the extensibility tab; click on the "add field to list" button. If you want to add a field to the product popup (when you click on the new bottom): Access the designer tab; click on the ItemProductListModificationForm (small boxes in the bottom part of the screen).

2) The fields added to standard screens are generated based on their respective type. To add an OVS field, your extension field must be an Identifier. In the extensibility form, click on the "Change ID-Config button" and select the correct OVS. To add an dropdown field, your field must be a codelist.

3) It may be done in an action or some event (beforeSave, afeterModify). Read about external integration in the documentation or search for posts in the studio scn forum.

By the way, create a new thread in the studio forum for this questions. More people can help you there 😃

Best regards,

Alexandre.

Former Member
0 Kudos

Hi alexandre ,

I am facing challenge in 2) solution .which u replied in previous query.

Best regards,

santosh K

Answers (0)