Opening a view in f4 popup

Hi Experts,
My requiremnt is to get a view as a popup in a f4 help.
Product search is a different view IN  ICCMP_PRODUCT/PROSEARCH.I want this window as a popup in my f4 help on product in camapiagn in CPGOE_ABLOCKS/OVELProducts.
I have created a OP_Productsearch,now it is showing me a popup on that f4,but my problem is in that winodw (ICCMP_PRODUCT) when we search a products and select and click on Back Button, Its not showing any action.
Again when i am traying to click on close it comes out of Camapaign .
my code in OP is as follows:I have added ICCMP_PRODUCT as component usage in runtime repository.
method op_productsearch.
Added by wizard: Outbound plug 'PRODUCTSEARCH'
  data: lv_title  type string.
  lv_title = cl_bsp_runtime=>get_otr_text( alias = 'CRM_IC_APPL_UI_MARKETING/SEARCHFORPRODUCTS' ).
  if gv_popup is not bound.
    gv_popup = comp_controller->window_manager->create_popup( iv_interface_view_name = 'ProductWindow'
                                                              iv_usage_name = 'CUproductsearchPOPup'
                                                              iv_title = lv_title ).
  endif.
OPEN THE POPUP
  gv_popup->set_window_height( 500 ).
  gv_popup->set_window_width( 600 ).
  gv_popup->set_on_close_event( iv_event_name = 'PRODSEARCH_POPUPCLOSED'  iv_view = me ).
  gv_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
  gv_popup->open( iv_inbound_plug = 'TORESLIST' ).
endmethod.                    "OP_PRODUCTSEARCH
code i have written in EH_ONPRODSEARCH_POPUPCLOSED is as follows:
method eh_onprodsearch_popupclosed.
  data:   lr_context_node    type ref to cl_bsp_wd_context_node,
          lr_current         type ref to if_bol_bo_property_access,
          lr_product_id      type string,
          lv_outbound_plug   type seocmpname,
          lv_value           type string,
          lr_cnode           type ref to cl_cpgoe_ab_ovelproducts_cn01.  "cl_cpgoe_ab_cucocampaign_impl
get query result context node
  lr_context_node = gv_popup->get_context_node( iv_cnode_name = 'PRODRESULT' ).
  check lr_context_node is bound.
  lr_current = lr_context_node->collection_wrapper->get_current( ).
  check lr_current is bound.
Check outbound plug
  lv_outbound_plug = gv_popup->get_fired_outbound_plug( ).
  check lv_outbound_plug = 'CLOSE_POPUP'.
Retrieve Product ID
  lr_product_id = lr_current->get_property_as_string( 'PRODUCT_ID' ).
  check lr_product_id is not initial.
  lr_current = me->typed_context->products->collection_wrapper->get_current( ).
set product id
  if lr_current is bound.
    lr_current->set_property( iv_attr_name = 'PRODUCT_ID' iv_value = lr_product_id ).
  endif.
Clean up result
  lr_context_node->collection_wrapper->clear( ).
  try.
    catch cx_sy_ref_is_initial cx_sy_move_cast_error.
      return.
  endtry.
endmethod.                    "EH_ONPRODSEARCH_POPUPCLOSED
in this  lr_context_node in initial so it comes out of the method in first time itself.
Do i need to  redefine EH_ONDONE and there i can write a code for that back button.
I have seen many standard components for product search.
I have gone through many threads but not able to figure out the solution.
Can you all please help me in this??
Thanks in advance.
Best Regards,
Sunita.

Hi Masood ,
Yes, i have already written that code.
But when i click on back button  it is going inside IF but no history is maintained so it does not return any value in lv_no_back
lv_history_access = me->view_manager->get_history_manager_display( ).
  lv_history_access->get_history( importing no_back = lv_no_back ).
  if lv_no_back = abap_false.
so it comes out without any action.
the code i have written for close popup is as folows:
method eh_onprodsearch_popupclosed.
  data:   lr_context_node    type ref to cl_bsp_wd_context_node,
          lr_current         type ref to if_bol_bo_property_access,
          lr_product_id      type string,
          lv_outbound_plug   type seocmpname,
          lv_value           type string,
          lr_cnode           type ref to cl_cpgoe_ab_ovelproducts_cn01.  "cl_cpgoe_ab_cucocampaign_impl
* Check outbound plug
  lv_outbound_plug = gv_popup->get_fired_outbound_plug( ).
  check lv_outbound_plug = 'CLOSE_POPUP'.
* get query result context node
  lr_context_node = gv_popup->get_context_node( iv_cnode_name = 'PRODSELECTED' ).
  check lr_context_node is bound.
  lr_current = lr_context_node->collection_wrapper->get_current( ).
  check lr_current is bound.
* Retrieve Product ID
  lr_product_id = lr_current->get_property_as_string( 'PRODUCT_ID' ).
  check lr_product_id is not initial.
  lr_current = me->typed_context->products->collection_wrapper->get_current( ).
* set product id
  if lr_current is bound.
    lr_current->set_property( iv_attr_name = 'PRODUCT_ID' iv_value = lr_product_id ).
  endif.
* Clean up result
  lr_context_node->collection_wrapper->clear( ).
  try.
    catch cx_sy_ref_is_initial cx_sy_move_cast_error.
      return.
  endtry.
endmethod.                    "EH_ONPRODSEARCH_POPUPCLOSED
Please help me in this.
Thanks  a lot for your help.

Similar Messages

  • [svn:cairngorm3:] 17872: Popup: Exposed set accessor of open for view state usage and fixed bug when closing from model within popup .

    Revision: 17872
    Revision: 17872
    Author:   [email protected]
    Date:     2010-09-27 08:04:40 -0700 (Mon, 27 Sep 2010)
    Log Message:
    Popup: Exposed set accessor of open for view state usage and fixed bug when closing from model within popup. http://www.spicefactory.org/forum/viewtopic.php?p=3932. Added new sample to show model and view state interactions.
    Modified Paths:
        cairngorm3/trunk/libraries/Popup/src/com/adobe/cairngorm/popup/PopUpBase.as
        cairngorm3/trunk/libraries/Popup/src/com/adobe/cairngorm/popup/PopUpFactory.as
        cairngorm3/trunk/libraries/Popup/src/com/adobe/cairngorm/popup/PopUpWrapper.as
        cairngorm3/trunk/libraries/PopupTest/.actionScriptProperties
        cairngorm3/trunk/libraries/PopupTest/src/samples/MyPopup.mxml
        cairngorm3/trunk/libraries/PopupTest/src/samples/PopUpPM.as
    Added Paths:
        cairngorm3/trunk/libraries/PopupTest/src/PopUpModelExample.mxml
        cairngorm3/trunk/libraries/PopupTest/src/samples/MyPopupWithModel.mxml

    Lots to be excited about. BUT...Just updated to 8.1 on one of my computers to test it out...
    Sadly, the following issue is NOT fixed for me. Is it with new projects only?  I haven't started a new project on 8.1 I've only opened an old project but the issue that I'm referring to which involves also a delay/freeze of anywhere from a few seconds to a MINUTE while the render bar goes from yellow to red and then back to yellow is still there. Boo.
    On the list above...
    Switching between sequences can turn the render bar red.
    This issue is incredibly easy to replicate. I really do hope it gets fixed. Here are the steps:
    1) Create two sequences with multiple short clips (the more clips the better)
    2) Make sure GPU acceleration is enabled.
    3) Add warp stabilizer to the clips in both sequences. Again, the more clips the longer the delay/freeze will be as the render bar goes from YELLOW to RED and then eventually back to YELLOW again.
    4) Hit SAVE.
    5) Now, toggle between sequences. You'll hit a short delay with a few clips stabilized and a LONG delay with lots stabilized. In my case this delay is around a full minute. The render bar will go from YELLOW to RED and then back to yellow...eventually.
    6) Toggle back to the original sequence and the delay occurs again.
    7) Once you've toggled between sequences and have gone through this delay, that's it, there is no longer a delay...UNTIL...(and here's the big kicker)...until the project is SAVED again. After that the issue returns when you toggle between sequences. Both saving manually and AUTOSAVING cause this issue. No way around it except not editing with GPU acceleration.
    Not sure what the issue is...caching issue when saving maybe? Either way, it stinks and it's still there in 8.1. Big bummer.
    Again, lots to be excited about with this release but I really was hopefully this specific issue was resolved.
    Sigh.

  • Help,how close pop-up window ,and open another view

    Hello,
    How click the pop-up window button ,then close the pop-up window .
    At the same time open another VIEW,and  transfer PO number to the VIEW.
    thanks

    Hi,
    First step is set the SCREEN TYPE as "Modal Dialog Box" in screen property tab.
    Then in PBO of the popup screen take a new GUI status and select DIALOG BOX as status type.
    Then assign some function code in 'X' button say 'CANCEL'.
    the put ur logic like below :
    PBO
    module gui_status.
    PAI.
    module user_command.
    module gui_status.
       set pf-status 'ZPOPUP'.
    endmodule.
    module user_command.
      if ok_popup = 'CANCEL'. " Where ok_popup is the ok_code variable in ur popup screen , also define it in TOP include
        leave to screen 0.
    endif.
    endmodule.
    Hope this will solve your problem and help you to put your logic.
    Thanks

  • How to set or deliver information from my actual view into my popup?

    Hello,
    I want to implement a quick help information. So the user should be able to open a popup in several views.
    Now I am faced with the problem that I dont know how to deliver information into a popup? Is that possible? the SAP example gspopup_test provides no answers for that issue.
    I am very pleased if you could help me.
    Thanks a lot, gyus!
    Regards,
    Marcus

    Hi Marcus,
    you have to differentiate which kind of popup you are using. The interface IF_BSP_WD_WINDOW_MANAGER offers you different kinds. Decision popup an popup to confirm are easy to use, cause all required data will be transfered by the parameters of the create-method.
    If you implement an own view for the popup, you have to use the method CREATE_POPUP and call it via a component usage. Add a model node to the context of the corresponding component interface and provide it from the component contoller of the calling component by redefining the method WD_USAGE_INITIALIZE as you can see in component BP_HEAD for example.
              CALL METHOD iv_usage->bind_context_node
                EXPORTING
                  iv_controller_type  = cl_bsp_wd_controller=>co_type_component
                  iv_name             = iv_usage->usage_name
                  iv_target_node_name = 'PARTNER'    " Node of the MAIN component
                  iv_node_2_bind      = 'PARTNER'.   " Node of the embedded component
    regards
    Martin

  • View output should popup the lov containing EXCEL,Browser etc

    Hi,
    We are on 11.5.10.2 and the other instance is on 12.0.4,
    We have one requirement in bothe the instance, When we are opening a "view output" to open the concurrent requests output file, We need to get the popup (LOV) to choose excel, browser etc
    I got one doc:184375.1 but i am not sure, This is the perticular doc
    Please help me out to make this setup.
    many thanks in advance...

    Thanks Hsawwan,
    I could able to configure..
    Steps are
    A.
    1. System Administrator Responsibility
    2. INSTALL > VIEWER OPTIONS
    3. Created valid MIME for Excel
    Format Type     MIME               DESCRIPTION
    Text          application/vnd.msexcel     11i Excel
    B.
    1. System Administrator Responsibility
    2. PROFILE > SYSTEM      -
    3. Check the PROFILE > SYSTEM OPTION - Viewer: Text
    This can be Blank to continue using the TOOLS > COPY FILE function or it can be set to browser to be able to choose a Viewer Option.
    Now the Required functionality is working.
    Regards
    Vasu
    Edited by: user593603 on Oct 17, 2008 6:02 AM

  • How to fire a plug when opening a comp as a popup

    I am opening a WD component as a popup using cl_wdr_runtime_services=>display_view_in_popup().
    Unfortunately, the default inbound plugs of the window or the view are not called when I go this wy.
    Is there anything I can do? How can I make sure that the inbound plug handler(s) are called when opening the comp. in a popup?

    Hi Daniel,
         You can make it Inbound Plug as Default. then system automcatically will call that inbound plug handler method when you open this window.
    Step:
          In Window, Just right click on the Inbound plug and you will get a small popup , in that pop up select  Set as Default .
    Regards,
    Vijay

  • Hi, i am trying to open and view a report that comes from another server with different odbc connection

    hi, i am trying to open and view a report that comes from another server with different odbc connection
    i created a crystal report for a mysql database on my machine and everything works great
    but we have other reports that come from other machines with different odbc connection
    and this its not working when opens the report asks for credentials
    and i cannot use the remote ip for these reports that come from other machine
    question
    if i cannot connect to remote ip to open the report
    for each report i have to create a database the report database on my machine and then open the report ?
    or there is some other way to open the report ?
    i am using visual studio 2013 and mysql and
       <add key="MYSQLODBCDRIVER" value="{MySQL ODBC 5.3 UNICODE Driver}"/>
    thanks

    short
    i have a report that it was created on another server with a specific dsn
    now i am trying to open the report on my machine
    the database from the other server does not exist on my machine
    the server machine where the report was created the ip its not accessible
    question ?
    can i open the report on my machine or its impossible ?
    thanks

  • Every time I try to open Firefox I get a popup saying it is already open, and to close it or restart; but it is NOT open, and restarting doesn't help.

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/880054]]</blockquote>
    Question
    Every time I try to open Firefox I get a popup saying it is already open, and to close it or restart; but it is NOT open, and restarting doesn't he

    Duplicate Thread LOCK please
    * Continue here - https://support.mozilla.com/en-US/questions/880054

  • Running 10.6.8. Trying to open and view contents of a CD (of an MRI) and getting message 'This program cannot be run in DOS mode' Is there a way? Thanks for the help.

    Running 10.6.8. Trying to open and view contents of a CD (of an MRI) and getting message 'This program cannot be run in DOS mode' Is there a way? Thanks for the help.

    Go to the support site for the provider of the MRI software.
    Sounds like it windows/PC. I have ran across that for the CDs that veterinarians provide for digital x-rays.
    I would try on a PC or on yuur Mac with Windows via BootCamp or a virtual machine like VirtualBox

  • In Mail, I can not open a viewer window

    I just had my hard drive replaced on my 27 inch imac.  It came back with a new operating system (OSX10.7.5)  Along with that it had several software updates. One of which was Mail.  It is now at version 5.3.  When I went to open it, it asked to transfer over all the old to the new.  So it did but once that was over it never opened a viewer window.  I then went to FILE to "Open viewer window".  That didn't work either.  I right clicked on the Mail icon in my dock and it said it wasn't responding so I had to force quit.  Same results happen everytime I open MAIL.  Please help.

    With Mail open press Command + Option + Esc to force quit the Mail app.
    Then restart your Mac and try Mail.

  • BW Modeling Tools - open ods view with no data in BW

    Hi,
    We've created an Open ODS View in HANA Studio on HANA Model. HANA model has data in HANA Studio and BI reports on it, but when we look at the Open ODS View in BW, we don't see any data. We followed all prerequisites in installation guide and assigned authorizations to developers: https://websmp102.sap-ag.de/~sapidb/011000358700001144122013E
    We have dual schema HANA approach with BW sitting on own Schema.
    Could the BW system user be missing authorization?
    Sonni

    There is a nice Blog about mapping DBMS Users in SAP NetWeaver AS ABAP 7.40
    Best Regards Roland

  • One more reason to put my iMAC at the curb. I can open and view Picasa photo links when I sign in via Google, but if I'm in Mail and click on the Picasa image link (my own or one someone esle sends me I can't view the images. Thye are all blank white squa

    One more reason to put my iMAC at the curb. I can open and view Picasa photo links when I sign in via Google, but if I'm in Mail and click on the Picasa image link (my own or one someone else sends me) I can't view the images. They are all blank white squares. This started a few weeks ago. Why can't I view Picasa link images through Mail?

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • How to open and view an app in itunes

    I have an app called daily diary how can I open and view my entries in itunes, and retrieve my pics

    This one?
    https://itunes.apple.com/gb/app/daily-diary-journal-diary/id317637852?mt=8
    Has a "mail any entry" feature, will that work?
    tt2

  • Can't open and view icloud

    How do I open and view my I cloud

    You can't view your iCloud on your iPad with Safari. You can on a computer by going to http://www.icloud.com.
    If you use a browser like iCab which can change its browser ID from Mobile Safari to Safari 6 (Mac) then you can use the iPad.

  • Open ODS view in BW 7.4 SP 6

    I have the following doubts regarding Open ODS view in BW 7.4
    What is the benefit of Open ODS view over Transient Provider (how they are different from each other) ?
    Can we use Open ODS view in Composite Provider and Multiprovider ?
    According to below link , we can create Open ODS view from Hana Studio .We also have the option to create Open ODS view from BW(please refer the below image).what is the difference between creating Open ODS view from BW and from Hana Studio?
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40f377fd-194d-3110-469b-82a4131689cf?QuickLink=index&overridelayout=true&59180354393386

    Hello Safiullah,
    Open ODS view is useful when you want to bring in a DB table or view into BW system where as Transient provider is for importing HANA information models (Analytical & Calculation views).
    We can't use Open ODS view in Composite and Multi Provider where as we can include Transient provider in both composite and multi providers.
    We can create Open ODS view from both BW and HANA studio (BW Modelling perspective), both are one and the same.
    Thanks.
    Sathish.

Maybe you are looking for

  • Subcontracting in scheduling agreement

    Dear all, while doing subcontracting scheduling agreement, how can we add the child components to the parent material. in cs01 ,we maintained the bill of material for the parent material.in CS11 we are able to view it. Regards, velu

  • Randomly play single item from array?

    Super rookie here to Flash. Is there some basic AS3 code to have, when the swf loads, a single video play from a collection of videos in an array? And can said code also apply to sound without video? I just found out the tutorial I was using to rando

  • Tab widget doesn't show first tab when site is loaded

    I have a website consisting of only one page. This page has a tab widget that consists of four tabs. Tab one holds an accordion widget, tab two holds a slideshow widget, tab three contains another accordion widget and tab four holds just a .jpg with

  • Hyper Links suddenly stop working ? So does 'ctrl + T/pad'

    Hi everyone,                      I hope I can explain this for you to uderstand easy. I may have 2 or 3 Tabs open and decided to open another, example Amazon. I start to look around and 'say' I want to find a CD cover to make a copy of to paste onto

  • My iPhone 5 shut down by itself and can't be turned on.. help?

    I woke up this morning and I couldn't turn on my iPhone. I've tried charging it, just in case if it runs out of battery, but still it can't be turned on. My lock button on top is slightly broken too...