[Integration] Web Dynpro ABAP calling Flex in Popup (without Flash Islands)

Hi,
We do not intend to install Enhancement Package 1 in a near future.
Nevertheless, we do have requirements where Flex should be integrated with Web Dynpro ABAP (Flex components embedded or 'attached' to Web Dynpro ABAP applications).
I would like to open a popup showing a Flex component. Then, the user validates and the Web DYnpro ABAP application is resumed. All this integrated within EP 7.0.
What, according to you, would be the most effective combination : 
- Suspend / Resume plug
- Server-side cookies
- iFrame (although it is deprecated)
Given what I have read so far, it seems encapsulating the .swf within a BSP application would be the best shot. Could it be possible to get rid of this 'additional layer' ?
Thanks in advance.
Best regards,
Guillaume

Web Dynpro ABAP
Define a suspend and a resume plug.
BSP
Retrieve the parameters sent by WDA either by AUTO attributes or the following code
CONSTANTS: c_resume_name          TYPE string  VALUE `sap-wd-resumeurl`.
DATA: lt_tihttpnvp                TYPE tihttpnvp.
FIELD-SYMBOLS: <fs_httpnvp>       LIKE LINE OF lt_tihttpnvp,
               <fs_dept_magasin>  LIKE LINE OF t_dept_magasins.
** Lecture des paramètres envoyés (par le WD ABAP)
CALL METHOD request->get_form_fields
  CHANGING
    fields = lt_tihttpnvp.
READ TABLE lt_tihttpnvp ASSIGNING <fs_httpnvp> WITH KEY name = c_resume_name.
IF sy-subrc = 0.
  e_url = <fs_httpnvp>-value.
ENDIF.
Flex
To return to the Web DYnpro ABAP, call a Javascript function within the BSP using this kind of code :
jsReturn = ExternalInterface.call("sendBackToSAP", selectedDepartmentsParam, orderParam);
BSP
First, to react to the user action in the Flex component, define a Javascript function in the
      function sendBackToSAP(departements, ordre) {
         fireServerEvent(departements, ordre);
         return("Done");
To fire a server-event (in order for BSP to call the WDA resume plug), I use this declaration :
<!--  Event used by the Javascript to trigger OnInputProcessing so as to create
              the server-side cookie -->
       <bsp:htmlbEvent name= "fireServerEvent"
                       id  = "flexAction"
                       p1  = "departements"
                       p2  = "ordre"></bsp:htmlbEvent>
Last, I simply call the URL that the WDA gives me first :
navigation->goto_page( e_url ).
If people are interested in a more detailed presentation, feel free to reply to this post, and I will write a blog about this. Nevertheless, it should become pretty obsolete with the Flash Islands release... 
Edited by: Guillaume Garcia on Oct 11, 2008 11:13 AM

Similar Messages

  • Web Dynpro ABAP call transaction in the foreground

    In Screen Painter/SAP ALV, we can create a screen where for example if you double click on a sales order field it can take you a VA03 transaction by :
    call transaction VA03 ... and skip first screen.
    I am creating Web Dynpro ABAP application that needs to do the same thing where if we click on the field, it will take to VA03 transaction or other transactions.
    Has anyone done this in Web Dynpro ABAP? I have done some research and determine that we cannot call transaction in the foreground? I hope I am wrong.  Any help/insights will be greatly appreciated.

    Hi Phong,
    WDA is generic client to Netweaver connection based on HTTP/S.
    At this stage on a few clients are supported. WEB dynpro client and Browsers...
    SAPGUI connects to SAP using a different protocol.
    No SAPGUI connection is implied by a WDA client connection.
    Therefore  abap statements that invoke screens and otherwise assume SAPGUI
    is connected are not supported in WDA.   eg call screen, call transaction
    You can either
                         a) build your own WDC to front end calls to BAPIs to get the Sales order data.
                        b) open/ exit to the new WDC for Sales Orders in ERP2005
                              see LORD_MAINTAIN_COMP
                           c) exit to the INTERNAL ITS URL for transaction VA03 
                               eg http://<host>:<port>/sap/bc/gui/sap/its/webgui?~Transaction=VA03
                              but getting the skip first screen may require you to call custom tran ZVA03
                               which calls VA03 to skip first screen setting the PID appropriately.
    Hopefully you opt for option a) or b).
    c) can work... I have used it from BSPs but it not pretty.
    regards
    Phil

  • Web Dynpro ABAP calling another ABAP program

    I have a question and just want to know if it's possible or not.
    Is it possible to write a Web Dynpro ABAP program that calls another ABAP program which happens to be an ALV report?
    Rather than re-write the ABAP ALV report, I was wondering if it's possible to call the ABAP ALV report within a Web Dynpro ABAP program and display the results within the Web Dynpro program.
    If it's not possible, then I assume it would be better to re-write the code from the ABAP ALV report in the Web Dynpro ABAP program.
    Thanks
    John

    The ALV report in your classic program is coded to be displayed in the GUI only.
    Your best bet would be to create a Function Module or Method that will return the data to be used in your ALV.  Simply call the Function/Method from your Web Dynpro and then bind the table to the DATA context node of the ALV INTERFACE CONTROLLER.

  • Integrating Web Dynpro ABAP application in portal

    Dear experts,
    I created a Web Dynpro ABAP application. I need to Integrate it in portal and have to capture portal login id to my application.
    Kindly guide me how to integrate WDA in portal and how to capture Portal Logon id in my application.
    Thanks,
    Kind Regards,
    Ram

    Hello ,
    It is asking for SAP system user id and password becasue there is no SSO established between portal and the web dynpro system.
    Now, either you can establish SSO between portal and the backend system by SAP Logon TIcket or  user mapping.
    SSO stands for single sign on.
    SSO using SAP Logon Tickets :-
    by using this technique you will be able to login into the backend by using SAP logon ticket
    issued by the portal system. For this you need to import the .der certificate form the system administration ->system config -->
    key ticket store. there download verify.der and upload it in the trusted system list in the backend in the trasaction strust_import.
    here is link for this method.
    http://wiki.sdn.sap.com/wiki/display/EP/LogonTickets,CertificatesandBackend+Certificates.
    SSO using user mapping. :-
    For this method you need to map the user in the portal to one user in the backend system.
    You can do so by going to user administration in the portal there find the user id with which the user will login.
    then go to the user mapping for system access tab there select the system from the dropdown and give user id and password
    for the same system save it.
    Now when you will login it wont ask for the user id and password.
    And after this you can get the portal user id also in  your web dynpro application.
    Thanks
    Sarbjeet Singh

  • Web Dynpro Abap - Calling URL in same window

    I've created a new ESS type application but in WD ABAP and in the application I'd like to have an Exit button on each view to the ESS overview page and also put in a link on my confirmation page to go back to the ESS overview page.
    I've found the link I need and tried a couple of methods to call it, either with an exit plug or using the method
    lo_window_manager -> Create_external_window.
    but whatever I do, although it opens up a new page to the correct URL,  it leaves the page I was working on open.  I'd like it to basically go back to the ESS overview page (using my URL), but close the window that is currently running, so that only one window is open at a time.  Does anyone know if this is possible.
    Thanks,
    Pam Laverty

    Yes, I had also found some documents on that and set it up to use an exit plug, and while now although it does not open up a new session in the portal,  when the new page comes up it still has the masthead from the original screen as well as the new one.
    Meaning you still see the portal header and all tabs on the screen from the original screen and then again on the screen just below we again have the portal header and all tabs showing the new page (from URL)  just below.
    Something is still not closing right.  We have portal 7.0.  I see there are come close_window options, but those are only good with 7.1 as far as I read.
    Are there anything special that needs to go in the exit plug method so that it simply closes the old screen and brings up the new URL?
    Thanks for your help.
    Pam

  • Web dynpro abap : Call an application from another with parameters

    Hi ,
    Could you please tell me how to call an application from another with parameters?
    Thanks a lot
    Karim

    * Construct the URL
          call method cl_wd_utilities=>construct_wd_url
            exporting
            application_name              = 'APPLICATIION_NAME'
          importing
            out_absolute_url              = g_url.
    * Append parameters to URL
      data: g_par1 = lv_value. " value of your parameter
      call method cl_http_server=>append_field_url
        exporting
          name  = 'PAR1' " Parameter name
          value = g_par1
        changing
          url   = g_url.
    * Call the Application
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->create_external_window(
                       url = g_url ).
      lo_window->open( ).

  • Integrating Flex/Flash in Web Dynpro ABAP(Netweaver 7.0) need info!

    Hi all,
            I need to embed a flash or a flex object inside a web dynpro abap application.I am working in Netweaver 7.0 and i don't have enhancement pack 1 installed.Is it possible ?   If it is possible can anyone please provide me the coding and configuration details.
    Thanks,
    Saikat

    I'm afraid that the SAP supplied integration technology - call FlashIslands - is only available from NetWeaver 7.01 and forward.  You could perhaps do some simple integration (very little data transfer) with the iFrame UI element - although the iFrame is deprecated in 7.0 and 7.01, but does return to full support in 7.02.  The other option would be to use the NetWeaver Portal or NetWeaver Business Client and have two iViews within the page. One iView would have WDA and the other some external technology (BSP, JSP, etc) to host the Flash/Flex content.  Not tight integration, but you could potentially use Portal Eventing to at least communicate events.

  • Problem with image loading in flex (with web dynpro ABAP integration)

    Hi,
    I am working with integration of flex and web dynpro abap. I am facing unusal problem while loading the images. I have the images in the MIME folder of web dynpro application. Since my swf file and all the images that I want to use are in the same folder(MIME), I am accessing them giving just the image name as source for the image in flex.
    By this method I get the images sometimes, but not everytime. So could anyone suggest me alternative method.
    Regards
    Prashant Chauhan
    Edited by: Prashant8809 on Jul 17, 2011 11:56 AM

    Hello Prashant,
    you need to mention the full path as source for the image in flex.
    ex. if your WD application name is Z_TEMP and image file name in mime folder is 'image.jpg' then you need mention the source in flex as
    http://servername:50001/sap/bc/webdynpro/sap/Z_TEMP/image.jpg
    Hope this solves your problem.
    BR, Saravanan

  • Integration of Adobe Flex with SAP Web Dynpro ABAP

    I am new to adobe flex development. i am following a tutorial prepared by
    Mr. Karthikeyan Venkatesan (Infosys Technologies Limited) Integration of Adobe Flex with SAP Web Dynpro ABAP-for ABAPers
    He used flex 3 to develop the flex application. i am using flex 4 downloaded from adobe(At a time Build release I used low version only 3.5). I followed all the steps. At a time of Run the data was not came.
    How to fetch the data?
    Please Guide how to proceed.

    Hi Laxmikanth,
    For Adebo Flex help..
    Please go through Thomas tutorial..
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10989ef6-968c-2b10-50a9-eb34a5267163&overridelayout=true
    and ...
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/307b434f-ff32-2b10-e885-991247270480?quicklink=index&overridelayout=true
    Hope it might helps you
    Thanks,
    Kris.

  • Error in integrating flex with web dynpro abap

    Hi,
    I did integrating   Island Component into Web Dynpro ABAP as per the tutorial given by Thomas Jung.
    Now i'm facing a problem that in that bar chart ,after giving the values in web dynpro table,bars are not getting populated.
    I'm getting X and Y axis populated...only bars are not getting populated..
    plz help....

    hi,
    i'm using flex 4...
    Is it because of that??

  • Combine Adobe Flex 2 with Web Dynpro ABAP

    Does somebody know if there is a way to call a WDA component from an Adobe Flex 2 application or the other way around? I think within a Portal it should be possible by creating 2 iViews and let them communicate through input and output events (portal events).
    However I am looking for a way without having a portal available. Example: I have created a WDA application that displays customer information in a simple ALV. When I click on a row I would like to call a Adobe Flex component which shows the information in a very nice graphical chart that we cannot create in WDA because it is too complex and in Adobe Flex it is possible.
    Looking forward to your input!
    kind regards
    Angelique

    Hi  Angelique,
    "Flex integration into Web Dynpro is not available to customers yet. The last I heard, it is supposed to be made available for Web Dynpro Java in Q2 of 2008 and made available for Web Dynpro ABAP in Q3 of 2008."
    Please go through the below links for related information :
    Re: How to Flex + Web dynpro Screen
    Re: Flex with WebDynPro
    Regards,
    Mary Joseph

  • How to call web dynpro ABAp application into workflow

    Hello All,
    How to call webdynpro application into workflow .Is it possible ?
    Scenario is : A web dynpro application should flow into 3 levels of approvals .
    Please share your knowledge .
    Thanks
    Sonal

    >
    Saurav Mago wrote:
    > hi,
    > I dont think from workflow , you can call WD application. 
    >
    > Thanx.
    Actually you can configure a workitem to launch WDA via UWL ( http://help.sap.com/saphelp_nw70ehp1/helpdata/en/59/d516690e854c7090ae15bf492a869f/frameset.htm ) or in the NetWeaver Business Client using the Business Workflow Workplace (WDA Application SWF_WORKPLACE).
    There is also a chapter in the upcomming SAP Press 2nd edtion workflow book on different aspects of Web Dynpro ABAP integration into Workflow:
    http://www.sappress.com/product.cfm?account=&product=H3057

  • Integration a Web Dynpro ABAP application within one of my EP overview page

    Hi Experts,
    I've got an issue when integrating a Web Dynpro ABAP application within one of my EP overview pages.
    We've implemented PLM using the Web Dynpro ABAP scenario for employees. Now Iu2019m trying to integrate this into the Employee Self-Service overview page. I've got no issue to make the icon and area title appears, but when I click on it I get a blank page with Error 404. However when clicking on the link in the navigation bar (Level 2) then I get the page fine. So it looks like EP is not able to integrate correctly the Web Dynpro ABAP into the overview page in EP. Is there any specific Resource configuration?
    One more thing is that if I've implemented the same iView using Resources -> Services -> Sub Areas -> Areas everything works fine, but I receive two navigation Levels (Area Group contains the Area Link and when I click it brings me to Sub Area with the single Service Link) I want to avoid this double clicking, calling the application directly from Area Group -> Area link.
    Anyone has ever come across that kind of issue? Has anyone ever integrated a WDA application directly into an overview page?

    Hi,
    We faced a similar problem with BSPs and had to change the definition of the area link type entry.
    I am assuming you have set the area link type to WebDynpro for ABAP and the resource is calling an Iview/page that has the WD ABAP application configured.
    To get around the error, change the Area Link type to Calls a Portal page and make sure the resource calls an Iview/Page that has the WD ABAP application configured.

  • SAP GUI call from Web Dynpro Abap

    Hi all,
    I heard about the possibility to call the SAP GUI directly from my Web Dynpro Abap Application, so that the GUI is integrated in my web browser. But i could not find any information about that.
    Maybe you can help me.
    Thanks,
    Johannes

    Hi Johannes,
    Its not possible to directly call your R/3 GUI from your WDA. You can try the "Screen Design Time Conversion" tool in SAP. You can go through this [link|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/30/f2156a26fb4b4d86c5b0ce9f86bfb3/frameset.htm] for further details regarding it.
    But please also pay heed to Thomas's advise in [here|Is there a converter for classic dynpros?;.
    Regards,
    Uday

  • Portal theme & web dynpro abap popup

    Hi all,
    I have a Web Dynpro ABAP application inside the SAP Portal, with WDTHEMEROOT & WDFORCEEXTERNALSTYLESHEET parameters typed.
    Everything is ok, any UI control that I used in the views is formatted according to the Portal Theme.
    But right now, I want to launch a popup for a message. I use methods from if_wd_window_manager, like create_popup_to_confirm or create_window, but the popups are showed in a standard style, not the Portal theme (like the rest of the applicaton).
    Anyone knows why??
    The same method (create_popup_to_confirm) is used in a WD Java application and gets the Portal theme.
    Thanks!
    Miguel Angel.

    Hi Shanti!
    Yes, I did it, but the problem still remains...
    The fact is that most of the elements get the portal theme (dropdownbyidx, labels, transparentcontainers, buttons...) but when I call a popup through if_wd_window_manager it appears like the standard look&feel (blue color, etc...). The popups doesn't get the portal theme.
    It happens only in WD ABAP, I mean, we have other applications in WD JAVA with the same portal theme & the same popup function, and it works...
    The only elements that doesn't get the portal them are the popups!
    Thaks!
    Miguel Angel.

Maybe you are looking for

  • NFe com erro de assinatura - caracteres especiais

    Bom dia, Algumas notas estão paradas com erro de assinatura por caracteres especiais nas descrições dos materiais. Fizemos a correção dos mesmos porém o GRC não recebe a atualização feita. A função J_1B_NFE_MS_REQUESTS_DATA também foi executada e mes

  • Unable to generate PDF file from reports

    Hi, After running the report when I tried to generate the output to pdf file, I see the number of pages being generated again, I dont see any file being created although it prompts for the file name. Any suggestions Thanks in Advance

  • How can I get a frame accurate output to tape using Premiere Pro CS6 and a Blackmagic Decklink Extre

    i can set the frame offeset inside the Export to tape tool (which BTW is horrible, you can't scrub, you MUST use ":" or ";" in the timecode fiellds or the deck just goes to the beginning of the tape etc), but I'm still 12 frames off.  there is a fram

  • Album art showing up as white box on iphone

    I have an issue with album art displaying in the ipod app on my iphone. If you take a look at the pic linked here: http://yfrog.com/0rimg0091up When albums dont have album art they show up with a generic grey music icon (#1 in the image), but I have

  • Creative cloud + photographers special

    I have one full creative cloud membership, but need to use Lightroom and Photoshop on at least one more computer. So I also took a subscription of the photgraphers special, but even then installation on a third computer is not allowed. Any suggestion