Skip to Content

Adding custom fields to SRM UI Add-on

Dear SAP Experts,


We enabled SRM UI and followed the SAP provided configuration guide to complete all the required setup's. we are able to create shopping cart using the new UI without any issues.

Now we are trying to enable custom fields on new SRM UI which are currently available on Web dynpro SC UI. we followed the configuration steps (2.1 Extending screens via SPRO configurations) provided in the Extensibility-Customer_CookBook_SP04_1.pdf.



After the configuration is completed, we are able to see the new custom fields on the new UI screen, but we are not seeing the description as expected - the description is shown as VIEWKEY_FieldName_L eventhough we maintained the label text.

And also any data that is entered in the new custom fields are not saved to database and therefore not available in BBP_PD transaction.

Please see the attached screenshot for more details.Please provide your guidance in resolving the issue.


SRM UI Add-on Extensibility cook book is available as an attachment to the note: 1830075 - Extensibility Cookbook (Customer Fields)


Thank you and appreciate your quick response.

Regards

Venkat

SRM_UI_SC.jpg (54.8 kB)
SPRO_add-on_1.jpg (87.7 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 20, 2015 at 07:35 AM

    Hi Venkat,

    I am starting with SAPSRM UI5 last Week and find the Cookbook little bit confusing.

    For adding a text label instead a technical name you have to add a new OTR-Text in transaction SOTR_EDIT.

    Type the alias you created in the field "Label text for field" and it will apear.

    Regards

    Rico

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 23, 2015 at 05:18 PM

    Venkat, We are trying to enhance the UI5 Shopping Cart using Extensibility-Customer_CookBook_SP04_1.pdf but I don't see the fields showing up in UI5 shopping cart and below are the steps that I followed.

    I am trying to add Location field in SRMShoppingCartItem (2nd row in below screen shot)

    I enhanced the Staging Structure (/SRMNXP/S_CUST_ITEM_LIST) , Customer Include (​INCL_EEW_PD_ITEM_CSF_SC) & Cust-MD Structure (/SRMNXP/S_ITEM_UI_MET_CUST) and went to SPRO and did this config for adding fields to UI screen.

    SAP Supplier Relationship Management---->SAP SRM User Interface Add-on---->Extension and Field Controls---->Configuration for Extension of Fields

    I didn't add column to database and Odata Service Model. My Goal is to show Location Field first on the SRMShoppingCartItem and then want to enhance Database & OdataModel.

    Below are the Steps I followed.

    1) Enhanced Staging Structure : /SRMNXP/S_CUST_ITEM_LIST

    Appended the Component Type : ZCUSTITEMLIST with Field ZLOCATION of Type Char20

    2) Enhanced Customer Include ​INCL_EEW_PD_ITEM_CSF_SC

    Appended the Component Type : ZAINCL_EEW_PD_ITEM_CSF_SC with Field ZLOCATION of Type Char20

    3) Enhanced Cust-MD Structure /SRMNXP/S_ITEM_UI_MET_CUST

    Appended the Component Type : ZITEMUIMETCUST with Field ​ZLOCATION_V, ZLOCATION_E, ZLOCATION_R of Type XFELD

    4) SPRO

    SAP Supplier Relationship Management---->SAP SRM User Interface Add-on---->Extension and Field Controls---->Configuration for Extension of Fields

    Added this new entry:

    But I don't see this Location field showing up in the UI5 Shopping Cart. Please let me know if I am missing any thing in Configuration.

    If possible can you provide the steps that you followed.

    Thanks,

    Venu.


    Spro.png (66.3 kB)
    Structures.png (87.2 kB)
    Main.png (56.4 kB)
    Add a comment
    10|10000 characters needed characters exceeded

    • Venu,

      For the label,

      1. you have to create the label in SOTR_EDIT by entering "Text" field & "Alias".

      2. Copy the same value from "Alias" field from SOTR_EDIT into the "Label Text for field" in SPRO.

      Then you will see the field label is displayed with the text maintained in "Text" field in SOTR_EDIT.

      Let me know if this helps.

      Regards

      Venkat

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2015 at 09:33 AM

    Dear all,

    I have also tried modifying the SAP SRM UI5 add-on solution using the examples from the cookbook (Extensibility-Customer_CookBook_SP04_1.pdf) and it is working well.

    One example is regarding adding a new navigation item, using the following code snippit:

    Desired output


    When using the above code snippit, I get a different result however. When I load the page the first time, the new menu item is not showing, if I then click on another menu item, like “My Favorites”, the new menu item are added multiple times, instead of just one time.

    Please let me know your suggestions on how to solve this.

    Looking forward to your reply.

    Best Regards, Emilie


    Capture1.PNG (12.0 kB)
    Capture2.PNG (12.7 kB)
    Capture3.PNG (11.6 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 10, 2015 at 01:58 PM

    hi venkat

    pls can you point me from where i can access "Extensibility-Customer_CookBook_SP04_1.pdf."?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.