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.

Similar Messages

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

  • 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

  • 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

  • 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

  • Incorporating web service in an ABAP web dynpro view

    Hi,
    I am trying to call an external web service to have its results displayed in an ABAP web dynpro view. I've seen various threads that are dealing with the same issue, but none of them seemed to have helped me (I am quite new at this so maybe I'm just having a slow beginning, please bear with me)
    I'm interested in extracting information from a simple web service online. To this end, I went on www.xmethods.net and found a "quote of the day" service, which is practical because it doesn't even need input.
    I am writing down all the steps I've taken, even if they seem trivial, because maybe my problem is the result of a silly mistake I'm not yet capable of noticing...
    I am mostly following the instruction from here:
    <a href="/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap:///people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    The SAP I use is the one on the SC7 system, seems to be ECC 6.0
    After I created my package, I go on to create a Proxy Object, and when prompted for a WSDL source, I give the URL destination I got from xmethods.net: <a href="http://www.swanandmokashi.com/HomePage/WebServices/QuoteOfTheDay.asmx?WSDL">http://www.swanandmokashi.com/HomePage/WebServices/QuoteOfTheDay.asmx?WSDL</a>
    Doing this I get an HTTP error (return code 400, message "ICM_HTTP_CONNECTION_FAILED") (others have had this problem, e.g. Calling Web Services from ABAP, but the answers offered haven't been much help to me)
    and having no idea what to change or not change in SICF and other settings, I decided to save the file locally, and so I then created a Proxy Object by choosing the WSDL source as the local file I saved.
    Telling me that multiple port types exist (SOAP, httpGet and httpPost) I picked SOAP. I can then see the properties of my Client Proxy Object, its structure with the classes and methods etc.
    Then, following Thomas Jung's procedure, I went to create a logial port which I named QUOTE_PORT. When I do the F8 test he suggests to do, I get an error: SRT: Processing error in Internet Communication Framework: ("ICF Error when receiving the response: ICM_HTTP_CONNECTION_FAILED") which was predictable since I still haven't resolved that same problem above.
    I then proceed to create a Web Dynpro Component. In that component, in the component controller's context, I created a simple node into which I added attributes which I created using the wizard -> Attributes from components of structure, and there I picked the structures that had just been created in my proxy object, each in its own node
    I have three proxy structures generated: GET_QUOTE_SOAP_IN, GET_QUOTE_SOAP_OUT and QUOTES. This last one has two attributes which are STRINGs, the quote of the day and its author.
    I then create a rather trivial view, whose context I have mapped to the component controller's context so as to have access to those "quote" and "author" attributes I just mentioned. The layout is simplistic at best, containing only two textviews, each one bound to its respective attribute.
    Once the application has been done and tested, the output is a blank page. I'm hoping that this is only because of that ICM_HTTP_CONNECTION_FAILED error. Has anyone else had these problems when calling external web services? Is this the right procedure for displaying output?
    Thanks and Regards,
    Micol

    Hi, sorry for the long reply time.
    from work I do have proxy settings:
        automatic configuration script: http://proxy:8083
        proxy server for LAN: proxy / 8080
    from home it's a proxy free connection.
    In both cases I tried changing the settings in the SICF transaction, but it hasn't changed much.
    With the HTTP error that I get, I get a long text on how to maybe solve it,
    <b>No connection to Integration Builder (only generic data visible)
    Message no. SPRX081</b>
    In this long text, I have four tests to do in order to check the connection (as far as I can understand)
    1. The address of the Integration Builder must be stored in the SAP system
    =>Check/maintain with report SPROX_CHECK_IFR_ADDRESS
    2. The HTTP connection of the ERP application server must function correctly
    =>Check with report SPROX_CHECK_HTTP_COMMUNICATION
    3. The Integration Builder server must be running correctly
    =>Check with report SPROX_CHECK_IFR_RESPONSE
    4. Proxy generation must interpret the data of the Integration Builder correctly
    ==>Check with report SPROX_CHECK_IFR_CONNECTION
    The checks for 1&2 work okay, but I get errors for checks 3&4
    "Integration Builder data not understood"
    How can I go on from here?
    Thx

  • Personalization option for Standard Webdynpro ABAP iView

    Hello Experts,
    We are stuck with an issue on personalizing a Webdynpro ABAP application.  Personalization option is available for Webdynpro Java iViews, when we preview the iView from the Administrator's login and do a Control + Right click.  This will provide a dialog box where we can personalize the iView.  We can do personalization on the existing fields (hiding the fields, changing the text etc).  But this is not happening with Webdynpro ABAP iView. 
    Scenario:
    We have a Standard Webdynpro ABAP iView which has 3 rows of links (Row1 - 5 links, Row2 - 2 links and Row3 - 2 links).  The client wants only one link in Row1, one link in Row2 and one in Row3.  I tried hiding the other links through Personalization.  It is not working as am able to see the changes only with the Admin ID.  When I assign this iView to a different user and tried viewing the iView its showing all the links. 
    But the strange thing is that, if I hide the complete row (eg. Row2 both the links are hidden),  then am able to see the complete row being hidden with both the Admin ID and also the end user's ID.  So not sure where am I missing.
    Please refer the link for the Personalization option available for Webdynpro ABAP iView.
    [http://help.sap.com/saphelp_nw04s/helpdata/en/46/98ce61f37d19ace10000000a11466f/frameset.htm|http://help.sap.com/saphelp_nw04s/helpdata/en/46/98ce61f37d19ace10000000a11466f/frameset.htm]
    Any help in this regard will be greatly appreciated.  Thanks in advance.
    Cheers
    Madhu

    Hi Volker,
       Thanks for your reply.
       I think, I have set the properties of the iView right. I have tried with all the options for the property "Launch in new window" property of the iView but it didn't work.
       "By home page framework" I mean that the link of the iView in portal has been created using the "Home page framework" i.e. from "SPRO" transaction in the backend.
       Please let me know if you need any other input from me.
    Regards
    Mukesh

  • Closing web browser from a Web Dynpro (ABAP) component in it

    Hi,
    I am opening a Web Dynpro component in IE.
    I have a requirement to close the Internet Explorer window on click of a "Close" Button in Web Dynpro (ABAP) component. I am using EXIT Outbound plug of the Main Window to perform the same.
    In the EXIT plug I am setting "CLOSE_WINDOW" parameter to ABAP_TRUE.
    On click of the "Close" button a pop-up dialog box (with "Yes" and "No" buttons) appears asking me whether I really want to close the IE window.
    If I click on "Yes" button of the dialog box, the IE window gets closed without any issues.
    But when I click on "No" button, the IE window shows up a blank screen. I want the control to come back to the calling Web Dynpro component's screen.
    Appreciate any help/guidance in the above issue.
    Thanks,
    Prasanna

    create an action 'YES','NO', 'CANCEL' in required view.
    copy and paste below code in YES action
    method ONACTIONYES .
      data : l_view_cntr type ref to if_wd_view_controller,
    l_win_cntr type ref to if_wd_window_controller,
    l_window type ref to if_wd_window,
    l_parameter_list type wdr_event_parameter_list,
    l_parameter type wdr_event_parameter,
    l_val type ref to data.
    field-symbols <fs> type any.
    l_view_cntr = wd_this->wd_get_api( ).
    l_win_cntr = l_view_cntr->get_embedding_window_ctlr( ).
    l_parameter-name = 'CLOSE_WINDOW'."'CLOSE_WINDOW'.
    create data l_val type c.
    assign l_val->* to <fs>.
    <fs> = 'X'.
    l_parameter-value = l_val.
    insert l_parameter into table l_parameter_list.
    l_win_cntr->if_wd_view_controller~fire_plug(
    exporting plug_name = 'EXIT_PLUG'
    parameters = l_parameter_list ).
    endmethod.
    goto your window
    create plug EXIT in Window of type EXIT and chect interface checkbox
    create a button - for example - "PUSH BUTTON"
    in pushbutton action
    copy and paste this code
    method ONACTIONEXIT_PLG .
    DATA: API TYPE REF TO IF_WD_COMPONENT,
          WINMAN TYPE REF TO IF_WD_WINDOW_MANAGER,
          WIN TYPE REF TO IF_WD_WINDOW,
          TEXT1 TYPE STRING_TABLE,
          ls_text type string,
          V_API TYPE REF TO IF_WD_VIEW_CONTROLLER.
    API = WD_COMP_CONTROLLER->WD_GET_API( ).
    WINMAN = API->GET_WINDOW_MANAGER( ).
    LS_TEXT = 'Do You Want To Close the Window'.
    INSERT LS_tEXT into table text1.
    win = winman->create_popup_to_confirm(
                                           window_title = 'CONFIRM'
                                           text = text1
                                           button_kind = if_wd_window=>co_buttons_yesnocancel
                                           message_type = if_wd_window=>co_msg_type_question
                                           window_position = if_wd_window=>co_center ).
    V_API = WD_THIS->WD_GET_API( ).
    WIN->SUBSCRIBE_TO_BUTTON_EVENT(
            BUTTON = IF_WD_WINDOW=>CO_BUTTON_YES
            ACTION_NAME = 'YES'
            ACTION_VIEW = V_API
            IS_DEFAULT_BUTTON = ABAP_TRUE ).
    WIN->SUBSCRIBE_TO_BUTTON_EVENT(
            BUTTON = IF_WD_WINDOW=>CO_BUTTON_NO
            ACTION_NAME = 'NO'
            ACTION_VIEW = V_API
            IS_DEFAULT_BUTTON = ABAP_FALSE ).
    WIN->SUBSCRIBE_TO_BUTTON_EVENT(
            BUTTON = IF_WD_WINDOW=>CO_BUTTON_CANCEL
            ACTION_NAME = 'CANCEL'
            ACTION_VIEW = V_API
            IS_DEFAULT_BUTTON = ABAP_FALSE ).
    WIN->OPEN( ).
    endmethod.

  • How to Collapse standard MDM WD component trays?

    Hi All,
    I want to collapse some of the trays of Standard MDM WD component when loading the page. Is that possible through code? I know it is possible in custom trays. But I've no idea about standard components. Any help is highly appreciated.
    Thanks & Regards,
    Manoj

    Hi Manojkumar,
    I checked your question with the MDM WD component experts and following is the answer provided by them
    Collapse some of the trays… - not sure which trays are meant
    But if the tray is a container of some MDM WD Component (e.g. Search), then usually customer can:
    1. Add a 'ViewContainerUIElement' in his custom view to hold the interface view of the search.
    2. Wrap this ViewContainer with a Tray UI element.
    3. Control the try collapse with his custom code.
    Please can you try this.
    Regards,
    Karthika S.

  • Error during check of component BP_EEW view ContactRelEL in WCF_CC T.code

    In CRM 7.0 EhP1, Perform Check showed error in UI Configuration that:
    "Context Node Attribute does not exist: STRUCT.ZZFIELD in Object type: BP_ACCOUNT, Subobject type: ZZI5TEEWCONTACT
    Role Config Key: <DEFAULT>, Component Usage: <DEFAULT>".
    Please help on how to resolve this.
    Also, appreciate your help in providing information resources in working with WCF_CC t.code, how to rectify errors?

    Thanks Leon.
    I selected the edit button, which lauched the UI Config tool. I noticed that the field attribute properties is not Hidden.
    I do not see an assignment to Design layer. I tried to add Assignment.
    Selected the object type BP_ACCOUNT & expanded it. But did not find the sub objectype ZZI5TEEWCONTACT.
    What is the assignment I should make?
    Information I'm looking for is to how to work with the transaction. It is intuitive, but I'm looking for information as to how to navigate to various places and fix issues.
    For Eg: Error during check of component BP_EEW view RelEL was the error message.
    I couldn't find any clue to proceed with this.
    Please tell me the needful information I should be equipped with to understand & resolve issues.
    Edited by: crmdevelopers on Jan 25, 2012 7:08 PM

  • 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

  • Making a component to view my Own Map !!

    Dear all,
    I am developing a website with jsf and richfaces, but now, I'm in a state that I need to show a detailed map of my city to the user. I looked around to find a component that make it work, but I couldn't find one!
    Is there anyway to show my own detailed map (except google map) in a jsf component and what is it?!?
    or, if there is not one, how can I make a component that gives an image as input map, and makes available zooming in and out on the map, and selecting a point.
    my second question is, how can I visualize addressing??! I mean that, how can I let user to make an area selection on the map and I write the address with the user's selection ?
    please help me! a component for viewing my own map that is an image ?!?!

    Such a JSF component doesn't exist yet. Look at the Google map API and integrate it. Basically JSF components does nothing much else than taking some variables and outputting some plain vanilla HTML, so it shouldn't be that hard to put all the HTML/JS of the Google API together in a JSF component.

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

  • Diference bet. sap 4.6b,4.6c & 4.7e from abap point of view

    hi,
      i want to know what are the diferences between the sap versions 4.6b, 4.6c and 4.7e.
    at my home i am having 4.6b and in my institute i am having 4.7e.
    will there be any difference sintax wise, look and feel wise in reports,alv's, scripts, smartforms, screen designing,bdc etc.
    regards,
    maqsood

    There is hardly any difference between 46B and 46C from ABAP poitn of view.
    However there is quite a lot of new features/tools/syntax changes in 4.70, which is based on WAS 6.20.
    (Web-extension/BSP, Unicode check, Code Inspector/SCOV, extended SE80, XSLT, New package concept etc)
    The best is check SE38 Application help "New features in ABAP" and check the Changes in Release 6.10 & 6.20 section.
    Same is also available in the Online help ( help.sap.com )
    Peter

Maybe you are looking for