Enhancing standard WD ABAP Component!!!

Hi Experts,
I am enhancing some WD ABAP components by creating enhancement implementation. But in the enhancement implementation I am able to create new UI Elements, Views, Methods etc. But it do not allows me to change the Properties of preexisting standard UI elements and Methods like wdinit, wdmodifyview etc. But if I open the WD ABAP component and start working on the application in change mode out of the enhancement implementation it only warns me to make changes in the standard component if necessary and after that I can modify the standard UI Elements and methods. It only asks me for a transport request when I activate it.
Now what I want to know is:
Suppose I make changes out of the enhancement component as explained the way above would these changes remain intact even when we apply any enhancement pack to the system or not. If not then what is the way to make enhancements (not changes) in the Existing UI elements and methods like wdinit, wdexit etc. Please suggest.
Thanks and Regards,
Vaibhav Tiwari.

>you can enhance by getting in the enhancement mode ,in the method tab you will find two new columns called preexit and postexit for the method in that u can write ur own code.
Actually there is a third option as well called Overwrite Exit.  This completely replaces the implementation of the standard with with your custom one.  This can allow you greater control.  Although it surrvives an upgrade as well, be careful as you will be bypassing any of the logic that SAP places into the method you are overriding.
In enhancement mode you can't change the property of UI elements, but you can remove them.  Just right mouse click on the UI element in the UI element tree and choose Remove Element. It won't actually be deleted completely - just marked with a red X.  You can then easily undo the deletion at any later point.

Similar Messages

  • Standard WD ABAP component FPM_OIF_COMPONENT View CNR_VIEW

    Hello Experts,
    I have one application using the standard component FPM_OIF_COMPONENT View CNR_VIEW. Having two buttons Save  and Close.
    I need to add a pop up message to close button.
    But when I look into the view of the component I am not able to see any button UI element over there. Insted i a seeing one transparent container but no buttons.
    Please suggest

    Hi Pradeep,
    I would strongly recommend you to go through the [FPM cooKbook |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452cc50]to read about how FPM works and how it is configured.
    Once you navigate to Component Configuration of OIF component then you can add Save button as a toolbar element.
    Do you know your WD component name which is being called from the application. if yes then you can navigate to Process_Event method of component Controller. This method comes when your component implements the interface IF_FPM_UI_BUILDING_BLOCK.
    In Process_Event method you can write code for Save and Close event handling, code would be something like this -
    CASE io_event->mv_event_id.
       WHEN if_fpm_constants=>gc_event-save. "Save button is clicked
    * you coding for pop up
       When   if_fpm_constants=>gc_event-close. "close button is clicked
    * you coding for pop up
      Endcase.

  • Suspend WD ABAP Component

    Hi All,
    I have a standard WD ABAP component, from which i have to call a BSP application for validating file uploads. The user selects the upload file from fileUpload UI element in WD ABAP, and i pass the file path to BSP application.
    The WD ABAP component being standard, i cannot use the suspend and resume plugs.
    Any help, on how i can get the WD Component to hold its state tll the BSP application returns the validation result of the uploaded file?
    Regards,
    Runal.

    I have tried to enhance the component, but we cannot add suspend or resume plugs in standard component.
    I have created a Iframe, and called the BSP application within that, but now the problem is how do i pass the data back to WD Component.
    Regards,
    Runal

  • Best Practice for enhancing the SAP delivered standard WD ABAP application

    Hi,
    I am new to WebDypro ABAP.
    To enhance the SAP delivered Standard WebDynpro Component (complex component with Business objects & powl).
    Kindly let me know the best practice for enhancing the Standard WD ABAP from the below 1 or 2.
    1) To copy & create a "Z" of the component & make changes in that (or)
    2) to enhance directly on the same standard component without making "Z".
    Regards,
    NS

    Hi NS,
    If it is a standard component its better we go for enhancing the component rather than copying it into Z component.
    If there is any issue with in the standard component , SAP supports it through notes and OSS messages. If it is a Z component, SAP doesn't support it.
    If there is any up gradation of business packages, changes will be done to standard , but not the Z components, wherein we could miss it.
    Further, since it is a standard component it might have been used at many places, changes that has to done to reflect all changes might be difficult in this case if it is a z component.
    Regards,
    Harsha

  • Enhancing standard component with new component usage

    Hi!
    I try to enhance standard component /SAPSRM/WDC_AOFC_BEV with new component usage (say, SALV_WD_TABLE). It allows me to add new usage, but the usage does not appear in the "Component Usages" tree node.
    Is it a bug? Is it possible to enhance a standard component with new component usage?

    Hi Thomas!
    We've been communicating with SAP on this issue for a while and last response we obtained is next:
    Dear customer,
    the possibility to create external controller usages (as required for
    the ALV-usage) is not supported by the Web Dynpro ABAP development
    tools. However, you could try a programmatic apporach by adding the
    ALV-usage dynamically (e.g. in methods or method exits created within
    your enhancement implementation).
    See test component WDR_TEST_DYN_ALV_USAGE for details.
    What's your opinion on this? Is it really not a bug?

  • 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

  • Modification in standard webdynpro abap application

    Hi
    In my portal for some of my ESS applications are used in webdynpro abap for example travel expense and travel request now i have a requirement like i have to make the create travel expense button disable based on the condition llike i only he has to click create travel expense after creating travel request .So can anybody let us know how to do modofications in the standard webdynpro abap application.
    Thanks in advance.

    Hi
    For making changes in the standard web dynpro compoenent, you need to create and implement enhancement.
    For this you can find many links in SDN  on how to create enhancement.
    Now coming to your specific requirement.
    Here what you can do is open the standard component.
    1. press ctrl +F4, It will open a popup there give some name to your enhancement.and desicrption . then press Enter.
         Assign it to teh package you want.
    2. Go to the view where you want to disable the button, There go to the layout and find the ID of the button. say it is 'BTN'.
    3. Now go to methods tab, scroll right and selct post exit method of wddomodifyview emthod.
    4. there write the code with the condition you want.
    if  flag  eq 'yes'.
    data  lv_btn type ref to cl_wd_button.
    lv_btn ?= view->get_element( 'BTN' ).
    lv_btn->set_enabled( abap_false ).
    endif.
    5. one last thing is you can create a attribute named flag of type string and set its value to 'yes' when you want the button to enable.
    Thanks
    Sarbjeet Singh

  • How to enter Enhancement Mode of ABAP OO Classes: Add Methods, Pre-Methods.

    Hello,
    do you know how to enter the enhancement mode of the class builder?
    I want to enhance a standard global ABAP OO class by implicit enhancements for inserting methods, attributes or pre- and post-methods - as described in  <a href="http://help.sap.com/saphelp_nw70/helpdata/en/58/4fb541d3d52d31e10000000a155106/content.htm">Online help</a>.
    I start the SE24 on my NW 7.0, but there is no menu <i>Edit-> Enhancement Operations-> Enhance Class/Interface </i> as written in <a href="http://help.sap.com/saphelp_nw70/helpdata/en/86/b83142680d5c33e10000000a155106/content.htm">Online Help</a>.
    When I press the <i>Display</i> button, there is no enhancement button (the spiral), and the sub entries of menu <i>Edit-> Enhancement Operations</i>, like <i>Insert Pre-Method</i> are inactive (gray).
    In SE80 I don't find them too. The only implicit enhancements I found are on the beginning and end of methods implementation code.
    Do you have experience enhancing classes?
    Best regards
    Michael Umlauff

    Hallo Michael,
    You first have to go in se80 or se24
    Then menu Class-> Enhance
    Then you will be able to use Edit-> Enhancement Operations-> Insert Pre-Post Methodes
    Regards,
    Walter

  • Add a custom event wihtout modifying the standard in a component controller

    Hello,
    We are currently working on an enhancement in the DPR_SEARCH component. We added through an enhancement a custom button, with a specific action. Then we would like to fire an event to other components (cross-controllers interface), but we are not able to add the event definition in the DPR_SEARCH component controller, wihout modifying the standard.
    Does anyone know if it's possible?
    Thank you.
    Matthias

    Seems not possible...

  • Consuming EJB Web Service in WD ABAP component

    Hi,
    I have a scenario where I have Portal KM access methods exposed as EJB Web Service. This web service is deployed on J2EE engine.
    And I have to consume this web service from my WD ABAP component controller.
    Any idea how this can be achieved?
    Thanks and regards,
    Amey

    This doesn't really have anything to do with Web Dynpro.  Normal ABAP functionality is used for the consumption of a web service.  In ABAP we create a proxy class based off the WSDL of the web service.  This proxy class can then be called from within Web Dynpro like any other ABAP class.  You can read about consuming a web service in the online help:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/9e/c7a3591dc74a679bbc9716354e42af/frameset.htm

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

  • WD ABAP component configurations

    We are using WD ABAP component configurations. We understand how to create and change them, but one question remains unsolved:
    Can we load WD component configurations dynamically at runtime from ABAP, so in case we have scenario 1 we load configuration 1.
    Any idea?

    Hi Frank,
    Yes, you can!
    First of all you can create different application configurations. You start it from SE80 from the application using the context menu "create/change configuration".
    There you can enter the ids of the component configurations for each component usage. You can create more than one application configuration, which means: for each scenario you should create one.
    If this does not fit for your application, you can load the component configuration dynamically.
    Variant 1: When you instantiate the component, you can pass the configuration key as an optional parameter.
    Variant 2: In each component you can load the configuration with a method of the personalization interface. You can do so using the code wizard.
    The configuration key is structured as follows: Create a data of type WDY_CONFIG_KEY, set the CONFIG_ID to the id you entered in the configuration editor, and keep the rest initial.
    Ciao, Regina

  • OBJECTDATAPROVIDER  WD ABAP Component

    Did anyone use OBJECTDATAPROVIDER WD ABAP component in their WD component and tried calling  "INIT_DATA_FROM_DATAVIEW" method of the interface controller to create data from Dataview directly. I am facing problem with this method because there is no sap provided method in the interfacecontroller of OBJECTDATAPROVIDER through which I can pass the Objects details required for getting the dataview.
    I checked the code and after calling INIT_DATA_FROM_DATAVIEW , it raises an event "FILL_APPL_OBJECTS"  ie wd_this->fire_fill_appl_objects_evt( instance_id = wd_this->instance_id ). which application should implement and in the implementation, application should supply the objects details in form of structure "HRWPC_S_KEYOBJEC" . Problem is there is no method to pass the Objects to OBJECTDATAPROVIDER and only method available is Get_Objects in the interface controller of OBJECTDATAPROVIDER.
    Any help related to this would be highly appreciated.
    Regards
    Saurabh

    try the right forum maybe?

  • SAP Netweaver Application Server ABAP Component

    Dear all,
    In my Company we are implementing GRC Risk Management and have read in SAP Installation guides
    that we have to install the SAP_ABA 7.01 (SP05) "SAP Netweaver Application Server ABAP Component"
    and were wondering if it is mandatory to make this upgrade or if there is another way to make
    the installation without this component.
    Thanks very much

    Hello Enzo,
      I hope that you are installing RM 3.0. For RM 3.0 you need the following:
    SAP_BASIS      701      SAPKB70103
    SAP_BW              701      SAPKW70103
    The Requirements for ABAP + Java is SAP NetWeaver 7.01 Support Package 3 or higher. This is Mandatory.
    You can find out more from the following guides available on SAP Service Market Place.
    Logon to SAP SMP -> Downloads -> Release and Upgrade Info -> Installation & Upgrade Guides ->  SAP BusinessObjects Governance, Risk, Compliance (GRC) ->  Risk Management -> Release 3.0 (click Release 2.0 if you are looking for RM2.0). -> Installation Guide. In this you should be able to get the prerequisite for the RM application.
    Hope it helps.
    Regards, Varun

Maybe you are looking for

  • Get multiple values from Command-Line

    Can any body tell how can I do this� When I input a number, then I should be able to insert that number of lines (rows). Note that number of columns is always 4. I.e.: If I put number 3 in command-line, It should be like this & then exit from the pro

  • New update how to play music on apple tv

    I just updated my iPhone 4 and now can't figure out how to play music or videos on my apple tv

  • Error deleting a row from the JHeadstart generated page

    Hi I am trying to learn JHeadstart. I have a small country table and I am creating maintenance screens for the same. I used JHeadstart to generate the default pages for me, but when I try deleting a row/record, I get JBO-27101 error. How do I resolve

  • Problem in setting vector or string[] as the "value object" in hashmap

    Hey I am new to this forum. I am doing a project in which i need to store a array of strings as "value object" for a unique key in hashmap. as I populate the hashmap from external file according to key and setting the string[]. The hashmap is taking

  • Upgrading to Studio 8

    Hi, I have a Web site that uses a dreamweaver template. In this template, I've inserted 10 swf files. These files were created with Studio MX and the swfs don't play correctly in IE 7 beta (they show up with that grey border and I have to click them