Skip to Content
author's profile photo
Former Member

Adding Custom Fields in Standard View - How to save data to Table

Dear Experts,

One View is having UI elements from a standard table /RPM/ITEM_D. Added 2 custom fields in this table using enhacement. Now enhanced that standard View and added these 2 custom fields. When I am saving the application, these 2 fields values aslo should be saved. In the context all fields are present from table /RPM/ITEM_D except the custom one. Can you please help me out how to acheive this.

Thanks and Regards

Sumesh

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Posted on May 04, 2011 at 12:29 PM

    Hi Sumesh,

    What you need to do is :

    1) add these two new fields in the same context node where the field from table /RPM/ITEM_D are added.

    2) in your UI , bind values to these new attributes.

    If current application is using and BAPI / Class method to update the table ,

    this new fields will also be passed to that bapi and will update table.

    Regards,

    Ashish Shah

    Add comment
    10|10000 characters needed characters exceeded

    • Did you locate the method which does the data update.

      If this method is being called from USED component , then you will have to enhance used component as well.

      To transfer data of your custom node to USED component you will have to use Singleton class.

      Check my blog for using singleton class : [ABAP Class using Singleton pattern - used in WDA Enhancements|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/20671] [original link is broken] [original link is broken] [original link is broken];

      Regards,

      Ashish Shah

  • Posted on May 04, 2011 at 12:34 PM

    Hi,

    Add new two fields to context, and bind it. In coding update these two fields also.

    Cheers,

    Kris.

    Add comment
    10|10000 characters needed characters exceeded