Enhancing a standard WD Component - View

Hello Experts,
My requierment is to make some fields read only in a view (V_DODC_SHIPTO) of an standard SAP SRM 7.0 application(/SAPSRM/WDC_UI_DO_SHIPTO).
I created an enhancement for the view and was also able to hide a button using this enhancement but I am not getting the options of Pre-Exit, Post-Exit and Overwrite Exit for standard methods where I can modify the view using method WDDOMODIFYVIEW to make the fields read only.
How can I get these exits in my view?
With my limited knowledge on WDA I thought this is the best possible way of fulfilling my requierment...is there any other/ better way of doing this ?
Thnaks a lot,
Anubhav

HI Sarbjeet / Baskaran,
Hers what I did,
Open the view in SE80 in Display mode
CTRL + F4 to create an Enhancement Implementation
Right Click on the UI element Gives only option to REMOVE ELEMENT
The view is not editable, I can not uncheck the ENABLED checkbox for any Inputfield.
There is no Pre, Post or Overwrite exit in the  original view or in the view that we see under the Enhancement Implementation folder.
Am I missing something here?
Thanks a lot,
Anubhav

Similar Messages

  • Enhance the Standard WDA component method

    Hi All,
    Can we write the code in a method of the standard WDA component. I know that we can use post-exit but it will be triggered after the method. My requirement is lying in between the standard method.
    Please suggest if we can write the code mid of the standard method.
    Thanks
    Sanket sethi

    Done. Through overwrite method....

  • Enhancement of Standard Webdynpro Component ( Component Usages )

    Dear All,
    There is a standard WDC_MAIN.  It uses many sub components WDC_SUB1, WDC_SUB2, WDC_SUB3.
    The problem here is I need to access the context node information of all the sub components ( WDC_SUB1, WDC_SUB2, WDC_SUB3. ) in the main component WDC_MAIN.
    <<<Reason for the need to access context nodes in sub component:
        I need to collect some fields from various views of various subcomponents into one view of my Main Component.  I think this can be done by enhancement implementation where I can create a new view>>>
    I can access the nodes of sub components only if the context node in the component controllers are marked as Interface Node.  But I cant edit the sub component, because it is a standard SAP provided component.
    Solutions that I am trying:
    1. I tried to create enhancement implementation and tried to achieve this... but I dont know for some reason SAP doesnt allow to enhance the context node as Interface node.
    2. I tried to copy the standard component to Z component, but another risk here is that, this main component is referenced else where and it is difficult again to give reference to this new Z_ component.
    Kindly guide me on how to achieve this.
    Thanks in advance!!!
    Regards,
    Sur.
    Edited by: Gaurav Desai on Aug 7, 2008 9:14 AM

    Hello,
    Using enhancements, create a context node and a an interface method so you can pass the contexts that you need over this method.
    Or you can try to do an external mapping to you context like in the ALV component.
    Regards.

  • Enhancement to standard WD component are not reflecting in other systems.

    A few months back, an SAP consultant created a couple of enhancements to the web dynpro component DPR_DET_DATA_TASK_O for CPROJECT in ECC (the SAP consultant is no longer available).
    The first enhancement transported fine to our quality system
    The changes on the transport for a second enhancement did not reflect on our quality system.
    Transport did not show any errors.
    None of the objects are local objects.
    ¿Does anyone have any idea of the cause of this problem o what I should be looking for?
    Thanks in advance.

    Hi,
    I've had occasions where texts have not been correctly shown after a transport, and have had to manually regenerate (activate) the WD component in the test/prd systems - when I did that the texts then showed.
    Hope this helps,
    Chris

  • Enhancing a standard component - Table Cell Variant

    Hi Forum,
    I am trying to enhance the standard WD component /SAPSRM/WDC_UI_SC_DOTC_BD view V_SC_DOTC_BASIC in SRM 7.0 .
    The requierment that for certain condition the Quantity cell in a row should be read only.
    Carried out the following steps:
    1. Created an enhancement
    2. In the standard table column ITEMS_TABLE_QUANTITY  [Columns] , removed the standard inputfield.
    3. Added two cell variants ZITEMS_TABLE_QUANTITY_CV1  [CellVariants]  and ZITEMS_TABLE_QUANTITY_CV2  [CellVariants]  first one contans a text view and second contains inputfield. Variant key for first one is DISPLAY and for second one is EDITABLE.
    4. Enhanced the method WDDOMODIFYVIEW with below code:
    **Read the ITEMS table
      DATA lo_nd_items TYPE REF TO if_wd_context_node.
      DATA lt_items TYPE wd_this->elements_items.
      DATA ls_item LIKE LINE OF lt_items.
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_disable_quantity TYPE wd_this->element_context-enable_quantity.
      DATA lr_table_column TYPE REF TO cl_wd_table_column.
    ** navigate from <CONTEXT> to <ITEMS> via lead selection
      lo_nd_items = wd_context->path_get_node( path = `COMP_CONTEXT.ITEMS` ).
      lo_nd_items->get_static_attributes_table( IMPORTING table = lt_items ).
      lr_table_column ?= view->get_element( 'ITEMS_TABLE_QUANTITY' ).
      LOOP AT lt_items INTO ls_item .
        IF  ls_item-catalogid EQ 'VEP_Staples_D0'.
          lr_table_column->set_selected_cell_variant( value = 'DISPLAY' ).
        ELSE.
          lr_table_column->set_selected_cell_variant( value = 'EDITABLE' ).
        ENDIF.
      ENDLOOP.
    But even after the condition is true ALL cell i.e. the complete column is DISABLED or when the condition is false the COMPLETE column is enabled instead of enabling disabling ONLY THE SPECIFIC CELL.
    Is there a problem with the code in WDDOMODIFYVIEW or something else?
    Thanks,
    Anubhav

    Hi  Saravanan
    Under ITEMS node I added one more Node(cv_quantity) and one attribute(cell_variant_quantity) with in this node.
    And code in WDDOMODIFYVIEW :
    DATA lo_nd_items TYPE REF TO if_wd_context_node.
      DATA lt_items TYPE wd_this->elements_items.
      DATA ls_item LIKE LINE OF lt_items.
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lr_table_column TYPE REF TO cl_wd_table_column.
    ** navigate from <CONTEXT> to <ITEMS> via lead selection
      lo_nd_items = wd_context->path_get_node( path = `COMP_CONTEXT.ITEMS` ).
      lo_nd_items->get_static_attributes_table( IMPORTING table = lt_items ).
      lr_table_column ?= view->get_element( 'ITEMS_TABLE_QUANTITY' ).
      DATA lo_nd_cv_quantity TYPE REF TO if_wd_context_node.
      DATA lo_el_cv_quantity TYPE REF TO if_wd_context_element.
      DATA ls_cv_quantity TYPE wd_this->element_cv_quantity.
    IF first_time EQ abap_true.
      lr_table_column->set_selected_cell_variant( value = 'EDITABLE' ).<--Initially ALL cells shoud be editable
    ELSE.
      lr_table_column->bind_selected_cell_variant( path = 'COMP_CONTEXT.ITEMS.CV_QUANTITY.CELL_VARIANT_QUANTITY' )  .
    * navigate from <CONTEXT> to <CV_QUANTITY> via lead selection
      lo_nd_cv_quantity = wd_context->path_get_node( path = `COMP_CONTEXT.ITEMS.CV_QUANTITY` ).
      IF lo_nd_cv_quantity is BOUND.
      lo_el_cv_quantity = lo_nd_cv_quantity->get_element( ).
          LOOP AT lt_items INTO ls_item .
            IF  ls_item-catalogid EQ 'VEP_Staples_D0' AND ls_item-number_int IS NOT INITIAL AND ls_item-description IS NOT INITIAL.
              lo_el_cv_quantity->set_attribute(
                                                name =  `CELL_VARIANT_QUANTITY`
                                                value = 'DISPLAY' ).
            ELSEIF ls_item-catalogid NE 'VEP_Staples_D0' OR ( ls_item-number_int  IS INITIAL AND ls_item-description IS INITIAL ) ."If the condition is not satisfied OR no item is added to that line
              lo_el_cv_quantity->set_attribute(
                                                name =  `CELL_VARIANT_QUANTITY`
                                                value = 'EDITABLE' ).
            ENDIF.
          ENDLOOP.
    ENDIF.
    ENDIF.
    Now If I add an item that DO NOT satisfy the comdition to be read only, for that row the quantity is enabled but for all the rows below it quantity cells are DISABLED.
    Hope my issue is clear?
    Thanks a lot,
    Anubhav

  • Enhancement in standard webdynpro Screen

    Hi,
    We have a requirement to add a new field in the layout of the standard webdynpro component
    FPM_OIF_COMPONENT for the E Recruitment portal.
    Please let us know if this can be done by enhancing the standard WD component.
    Regards,
    Suvarnamathy

    Hi,
    Its possible using WDA Enhancement framework.
    However you need to identify
    1) The correct WDA component that you need to enhance  ( right click on view in browser and look for technical details )
    2) Look for the view that you need to enhance.
    3) Look for the node in which fields inside this node are bound
    4) Look for the DDIC structure/table to which this node is bound
    Once you identify all above four points , you need to start enhancing in this order
    1) Enhance DDIC Structure/table with new fields
    2) Enhance WDA Component by pressing CTRL+F4 and create an enhancement implementation of WDA Component
    3) in the view, enhance the node first
    4) add the needed UI element in the layout and bind it to the node attribute
    For more information refer :
    [ How to Create Enhancement Implementation in Web Dynpro ABAP |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8b81?QuickLink=index&overridelayout=true]
    regards,
    Ashish Shah

  • Enhancing Standard webdynpro component

    Hi friends,
    I have never worked on enhancing standard web dynpro components,
    Now i have got  requirement, In SRM webdynpro component  i have to place Custom Label and  Custom Hyper Link, when i click on that hyperlink, one pop up window shud be open, can any please guid how to enahnce this standard webdynpro component
    Thnx
    Kumar Srini

    Hi,
    To Enhance any standard compoenent, and specially a "VIEW" just follow the below steps:
    1. Go to SE80, Give the Component Name and press Enter
    2. Go to the Desired "View"
    3. Click enhance button (ICON Like spiral,6th from left to right of Application toolbar)
    4. A Pop up will appear asking your Coposite Enhancement name  and Enhancement Implementation name. Create "NEW" on both the occasion.
    Now for UI Enhancements:
    a) Click the "ROOT UI Element container" , right click add the custom UI elements and assign Property values as per your requirement( like binding,text,action etc.,). It is just like adding UI elements in Z-Compoent.
    b) Create actions wherevr required
    For Coding Level enhancements:
    Here, for all the methods which are in the standard compoenent will have "PRE" and "POST" Exits. The difference is "PRE" Exits will render before calling the actual code and "POST" Exit will render after rendering the actual code.
    Note: Till Enhancement Pack (EHP3) we had only PRE & POST Exits. And Now on from EHP 4 and More we do have an option "OVER WRITE" Exit.
    Apart from Exits, we can create our own Events/event Handlers. These Event Handlers will work only for the enhancements.
    We Can write our own logic in the newly created event/event handler.
    Regards,
    S.Meganadhan

  • Cannot find created Enhancement to customize a standard WD Component

    Hi All,
    I need to customize a standard WD ABAP component. For this purpose I had created an Enhancement. I saved it, but when I try to enhance my WD Component View, I do not see that enhancement name from the list of available enhancements.
    I went to SE19 and found that the enhancement that I created is in Inactive state. When I tried to activate it, it throws an error saying Webdynpro Component does not exist.
    Please advise where am I going wrong.
    Thanks and Regards,
    Sayan Ghosh

    I guess , you have to assign the enhancement to a client.
    1. SM30 ---> BSPWDV_EHSET_ASG
    2. Click on Maintain.
    Note : There might be other Enhancement sets already assigned to various clients.
               Just check with your team regarding that.
    3. Assign your Enh set to the client.
    Hope it helps.
    Regards,
    VR.

  • Enhancing standard ESS Component

    Hi Experts,
    I am going to make changes in standard ESS component in WD ABAP through enhancement button given on menu by creating an enhancement implementation. I want to know is it the right way to create enhancement and suppose any enhancement package is applied to the system, In that case changes done in current enhancement will remain same after the new enhancement is installed or not.
    Please provide answers to my queries.
    Thanks and Regards,
    Vaibhav Tiwari.

    thanks  vaibhav for reply....
    I have a requirement that i need to add some custom(Input ) fields in 'Create Travel Request' view of travel and Expense Page of standard ESS . now the  same field  was needed in back-end  in ECC in t-code  TRIP...this  i did  using append structure  in PTK99 and  and  modifying standard  program and screen SAPMP56T 9999 with the  guidelines given in SPRO.
       now the  same thing is to be done in in ESS which is ABAP  WD  application. WD component name is FITV_FPM, but  in this application   contains  viewContainerUIElements on LAYOUT_VIEW  which gets  populated  dynamically..I can create and  Enahancement of this application  and  put  the required  field on the  view  but   still after  doing this, how to store the these data  in back-end???  in back-end  this  data  is stored in PCL1 cluster..
    I feel SAP should have  given some facility for this in ESS like it has given in ECC...

  • How to submit standard component view

    Dear:
        I have write a report with webdynrpo table to lsit bp data.
       But user want to display standard bp data view (use standard bp conmpnent) when he review this report.
      example: I list bp data in webdynpro view. Usr click one item, the view must navate to standard bp view. This bp view is stanard conpoment with web.
      I use  crm7.0.

    Hi,
    Please check this, it might helps
    How to call a Particular View from a View of Current Component
    http://wiki.sdn.sap.com/wiki/display/WDABAP/Callinganinterfaceviewofanotherabapwebdynpro+application
    http://wiki.sdn.sap.com/wiki/display/WDABAP/WebdynproApplicationsIntegration
    Cheers,
    Kris.

  • WDA Component- View- Context - Default Enhancement

    Hi,
    Currently Web Dynpro Component HRRCF_C_RELEASE_PROF_UIu2019s profile status Radio Button defaults to u2018Lock Profileu2019. I need to enhance the same Web Dynpro Component HRRCF_C_RELEASE_PROF_UIu2019s profile status Radio Button defaults to u2018Release Profileu2019.
    Contextu2019s attribute u2018Profile Statusu2019 points to Domain u2018RCF_PROFILE_STATUSu2019 which has the value range u20180 u2013 Lockedu2019 and u20182 u2013 Releasedu2019. Since u20180u2019 is first entry, WDC defaults to u20180u2019. I need to set u2018Profile Statusu2019 radio button to u20182 u2013 Releasedu2019.
    It seems I canu2019t enhance the method u2018WDDOMODIFYVIEWu2019 of view u2018VW_RELEASE_PROFu2019.
    Please let me know, how to achieve my requirement with in SAP enhancement option. Do let me know, if you need more details.
    ...Naddy.

    Hi Naddy,
    You could possibly go thru the following [WDP ABAP documentation|http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm].
    Go to the Advanced Concepts section -> Modification free enhancements.
    Hope this helps
    Regards
    Wenonah

  • Standard Costing : CK11N (Inconsistent Cost Component Views)

    Hi,
    I have created the cost sheet with below information:
    A) Material
    B) + Labour
    C) +Indirect Labour (% of Labour)
    D) + Utilities
    E) + Production overhead (% of Material)
    F) Cost of Goods Manufactured (Total of A to E)
    G) Admin overhead (% of COGM)
    H) Sales overhead (% of COGM)
    I)  Cost of Goods Sold (F to H)
    Also Cost component structure is maintained accordingly with the cost elements applicable to above mentioned components.
    When I run the cost estimate for the FG/SFG, cost is calculated in the expected way consindering all the components mentione above and displayed in "Itemisation" View.
    But the problem has been in the Cost component view of costing run.
    I have activated only three views i.e. Cost of Goods Manufactured , Cost of Goods Sold and Sales and Admininstration Cost.
    1. Costs are not appearing under the respective components correctly.
    2. Sales and administration cost component is displaying Material cost instead of the overhead
    3. Utilities is having very high cost (not the sum of costs appearing in itemisation)
    4. Component Material is totally disappeared and not visible.
    I request experts to comment on this disparity and suggest the steps that need to be taken for getting the right cost compnent views.
    Thanks in advance.
    Regards,
    Viswanath

    Hi
    Check cost elements assigned to structure.  For this go to transaction code OKTZ and select your CCS and double click on Assignment Cost Component-Cost element interval.
    Srinivas

  • CO-PA Cost Component do not match with Standard Cost Component Values

    Dear Members,
    The CO-PA Cost Components (as mapped through KE4R), do not match with Standard Cost Component values for the Group Currency. In local currency the values match.
    System is correctly picking up VPRS value, both in local currency and Group Currency, which is equal to the total of Standard Cost Components however, it is the Value Fields linked to the Standard Cost Components in Group Currency that do not match.
    In KE40, the Indicator is 4:Released Standard Cost Estimate matching Goods issue Date.
    I have verified KEPH/CKMLPKEPH tables. The values are same as that of VPRS.
    Any help/clues?
    Regards
    Satya

    Hi,
    In case of billing documents the group valuation approach is managed in the data structures of the legal valuation in additional value fields. To control costs and revenues in the different views separately, you must create additional value fields and assign them to the data structures.
    The field contents must be filled via the CO-PA user exit, they cannot be entered by assigning conditions to value fields. The profit center valuation is updated in a separate ledger. No separate value fields are necessary.
    The exit to be used is function module 'EXIT_SAPLKEII_002' ( enhancement COPA0005 ). Within the exit you have the complete SD data avaialble in the tables 'T_ACCIT' and 'T_ACCCR'. The conditions can be found in T_ACCIT and the corresponding values ( linked via 'POSNR' ) in table T_ACCCR. The PA line item and the corresponding SD item in table ACCIT
    can be mapped via the line item field 'RPOSN' and the field 'POSNR_SD' in table ACCIT.
    regards
    Waman

  • No Data in Field Scrap quantity (AMGLG) after Append DataSource 2LIS_04_P_COMP (Component View from PP/PP-PI)

    Hi experts,
    we enhanced the BI Content standard DataSource 2LIS_04_P_COMP "Component View from PP/PP-PI" with the field AMGLG (Scrap quantity) per maintenance of the relevant extract structure MC04P_0COM via LBWE:
    The enhancement of the extract structure worked fine.
    Unfortunately the enhanced field is not filled after the Statistical Setup of the LIS Application 04 "Production" (t/code OLI4BW).
    RSA3 -> 2LIS_04_P_COMP:
    Any ideas or experiences?
    Many thanks in advance and regards,
    Michael

    Attached one example:
    BW DataSource 2LIS_04_P_COMP:
    ERP Summarized BOM Multilevel (t/code CS13) Component 456:
    ERP Summarized BOM Multilevel (t/code CS13) Component 301:
    Any ideas why there are no values for the field AMGLG extracted?
    Thanks and regards,
    Michael

  • Adding an Input field in Standard Webdynpro Component in SAP SRM

    Hi Friends,
    I want to add one input field in sap standard webdynpro component in SAP SRM MODULE
    the component name is /SAPSRM/WDC_DODC_RFQ_H_BD
    view name is   V_DODC_RFQ_H_BD
    Upon clicking on SAVE button , it shud save in database
    what is the name of database table and how to solve this problem
    Thnx
    Srini

    Hi Kumar,
    By using Enhancement Framework you can do this.
    How can we add a new field to the Standard Webdynpro application?
    Also check this..
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8b81
    Cheers,
    Kris.

Maybe you are looking for