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.

Similar Messages

  • 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

  • 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.

  • 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

  • Adding a new field to a standard webdynpro component's layout

    Hi all,
      I need to add a new field to a standard webdynpro component's( in my case the component is ''/SAPSRM/WDC_UI_SC_DOTC_BD')  layout.How do i go about adding a new field to the standard component's lay out?
    can anyone help me with the necessary details?
    Regards,
    Abhinay.

    Check if this is useful to you (Login required)
    https://websmp105.sap-ag.de/~sapidb/011000358700001969972008E.pdf
    Rgds/Kiran

  • Custom Button in Sap Standard webdynpro Component

    Hi Friends,
    i have one requirement
    1. want to added one custom Button in SAP SRM standard webdynpro component - This is done using component configurator
    2. but when i click this button, one   Z webdynpro component should run,
    Can any one please give me  idea on this
    Thanks and Regards
    Kumar Srini

    Hi,
    copy below given code and paste inside of your on action method,
    Note: just change the url address
    data: l_window type ref to if_wd_window_manager.
    data: l_cmp_api type ref to if_wd_component.
    data: str             type stinrg.
    data: result        type if_wd_window.
    CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
    application_name = 'ZWEBDYNPRO COMPONENT NAME'
    IMPORTING
    out_obsolute_url = str.
    l_cmp_api = wd_comp_controller->wd_get_api( ).
    l_window = l_cmp_api->get_window_manager ( ).
    result = l_window->create_external_window(
    url = str ).
    result->open( ).

  • Changing the attributes of Standard Webdynpro component

    Hi Friends,
    There is one table ui element in standard webdynpro component, right now we can select only one  row, now i want to select multiple rows, can any one help me how to change this property
    Thnx and Regards
    Kumar Srini

    Hello Kumar,
    if this node is statically created in the standard component then you can't change the selection cardinality. By statically created means, if you can see the context node in the Context Tab of the controller.
    If its dynamically created, then in the Post-exit method, you can delete this context node and create it again (via coding). while creating you can set the Selection Cardinality to multiple.
    Hope this helps.
    BR, Saravanan

  • 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 standard webdynpro components

    Hi Experts,
    I need to change the layout of the standard web dynpro components. I started enhancing the relevant methods in the component controller with pre, post and overwrite methods but when it comesto the UI, after enhancing the componenet if i go to the enhancement to change the UI it is changing the standard UI. In my case the requirement is grouping the UI elements on the SAP standard Webdynpro components and change the format of the data on the screen.Can you please provide suggestions on how to enhance the web dynpro layout without modifying the layout? Please feel freeto askme for further info on the same.
    Thanks alot inadvance,
    Regards,
    Ravi.

    heyitsmeravi wrote:
    but when it comesto the UI, after enhancing the componenet if i go to the enhancement to change the UI it is changing the standard UI. In my case the requirement is grouping the UI elements on the SAP standard Webdynpro components and change the format of the data on the screen..
    hallo Ravi,
    You can delete the layout and create a new layout with the changes you needed. for example the standard UI consists a group with layout as flowlayout.
    You have to delete this group and create the group with same name and  change the layout to Matrix layout.

  • Webdynpro Development Component Callable Object Escalation

    Hi,
    In gp sequential block workflow  using webdynpro development component callable objects  When the initiator intiates a workflow ,it is assigned to the first approver.Now if the approver does not take any action within 2 days i want to escalate the task to the second approver.How can i do this escalation?
    There is a standard parameter call <b>due date</b>...in action.How can I set this value dynamically from my application..
    During escalation , the next approver has to be taken by executing an rfc in the background
    Please help....
    Thanks,
    Shamila

    Hi,
    You can define a CAF Core application service (implemented in the CAF Core layer) or a background CO (implemented by a J2EE class interface) which can call a RFC to get the next approver and return the next approver's user id as an output parameter. You can use dynamic user assignment in the next action (approval), by selecting the processor as "Filled From Context Parameter" (at the Roles tab in block level) and select the user id output parameter of the background CO/CAF app service CO.
    You can get more details on different types of CO at the CAF Tutorial Center @SDN
    Thanks,
    Dipankar

  • Importing Java Bean Model in Webdynpro Development Component

    Hi All,
    Is there any simple tutorial, example  to import java bean model in webdynpro development component.
    I am using NWDS 7.0 SP14 and WAS 7.0.
    it really helps if you can  provide simple EJB as a development component with details how to create a public part and using this bean as java bean model in Webdynpro development component.
    what are the steps to be followed with precautions
    Thanks in Advance,
    Murali

    Hi,
    [Using the Java Bean Model in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4072c0d0-c21e-2b10-ab84-e2c183d355de]
    [Using EJBs in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
    you will get more if you search in the forum.
    more help on EJB's
    Re: Help needed in EJB
    http://help.sap.com/saphelp_nw70/helpdata/EN/19/f9bc3d8af79633e10000000a11405a/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
    PradeeP

  • Calling a webdynpro ABAP component from a BSP...

    We have a BSP application. On which we have a tab strip control. Upon clicking on one of the tabstrips, is there a way I can launch and display an output from a webdynpro ABAP component?
    Any ideas will be appreciated.
    Thanks
    - Sekhar

    Raja,
    I tried get the iframe tag
    <IFRAME NAME="Frame1" SRC="your_web_dynpro_link.htm" >
    </IFRAME>
    with the SRC = "<the URL from the web dynpro application>"
    Did not work. I am sure I am doing something wrong. In fact it did not work even for a BSP application.
    Any ideas anyone?
    Thanks
    - Sekhar

  • Access Portal groups in webdynpro ABAP component

    Hi Experts,
    I have a requirement to access portal group in web dynpro ABAP application and based on whether user is assigned to particular group or not further processing for application will be done.
    Are there any UME API or some other API's available to access portal groups in Webdynpro ABAP component?
    Thanks in Advance..!!
    Regards,
    Shruti Shah

    This might be a question better suited to the portal forum. The WDA Portal APIs do not have such functionality.  You might be able to take the Java Portal APIs and wrap them in a web service so that they are callable from ABAP.

  • Has anybody created Iview from "Webdynpro Java" component in CE7.1 ?

    Hi All,
           Has anyone created Iview from Webdynpro Java component in CE7.1.
    Because the wizard that appears for creation of Iview has only "Webdynpro ABAP"
    component.There is no option to create iview from "Webdynpro Java" component.
               Althought in portal content--->Template folder i can see there is also
    another template for "SAP Webdynpro iview" which i think is for the Java scenario.
    But issue is, its not coming in the wizard.Can anyone tell me how to make it appear in the wizard ? It will be of great help to me.
    Thanks and Regards
    Ashis

    Hi Ashis,
    your deployed webdynpros are published under "web dynpro applications". just copy the webdynpro from there and paste it into the portal content section.
    http://help.sap.com/saphelp_nwce10/helpdata/en/ce/e0d6f54ae641fc9566501cffaa8c6c/frameset.htm
    Hope that helps you.
    Best wishes, Jens

Maybe you are looking for

  • IPhone 4

    I got my 1st iPhone4 in November of 2011  - by the 1st week in December it quit working.  The home button would not work, when you turned it off, it would power down and right back on.  The voice control kept coming on all by itself, in the middle of

  • Problem with Icloud doesn't load???

    september 11 2012 ICloud doesn't work why?????????????

  • Documenting Queries and structures

    Hi, I have a large quantity of queries with structures and would like to document them: Structures and selection criteria of each query. Example: <b>Query 1</b> <b>Structure1</b> : Sales for 23                   <b>Selection :</b> Company code : 600

  • Why multiplex redo log group ?

    Hello, Why should we multiplex redo log groups if we have only file system which is already mirrored. Is there any one who had an incident when he has only one redo log member per group placed on a mirrored file system but still got corrupted and he

  • Want to Create one PO for multiple Items ..........?

    HI Guy's, I am creating PO thorough  Bapi. It is also successfully ...... But here I am not  able to create multiple ITEMS as in transaction ME22 for creating PO. For that what can I do .......... Greeting's of he Day. Ankit Singh Rathore