Launch webdynpro component from a assignment block

Hi,
I am trying to launch a webdynpro component on click of a hyperlink from a assignment block.
This works fine but, on click of hyper link i set a global attribute GV_url = 'X'.
based on this, i call the webdynpro link in the .htm page of the view.
<%
if ZL_BT116IT__BSPWDCOMPONEN_IMPL=>gv_url is not initial.
%>
<a href="<%= ZL_BT116IT__BSPWDCOMPONEN_IMPL=>gv_url %>" target="_blank"> Sample URL to launch Web Dynpro Application</a>
<%
clear: ZL_BT116IT__BSPWDCOMPONEN_IMPL=>gv_url.
endif.
%>
using this i get an additional hyperlink in the assignment block which on click gets the webdynpro page.
This is an additionaluser click which is not required.
How can we skip this , instead directly navigate on click of the attribute in the assignment block?

have solved this using the script window.open
<%
if ZL_BT116IT__BSPWDCOMPONEN_IMPL=>gv_url is not initial.
%>
window.open("<%= ZL_BT116IT__BSPWDCOMPONEN_IMPL=>gv_url %>).focus();
<%
clear: ZL_BT116IT__BSPWDCOMPONEN_IMPL=>gv_url.
endif.
%>
This helped me open the link directly but have a new problem with this.
I am able to navigate to the link in a new window only the first time i click the hyperlink.
once i close the new window and if i try to click the hyperlink again, i am not able to open this again.
Have tried to debug but, everything is in place.
Pointers on this scripting would be very helpful.
Should i clear the link before exceuting again or do any additional scripting?.

Similar Messages

  • Calling WebDynpro Component from PDK

    Hi
    I need to pass portal runtime information to a webdynpro component. How do i call a webdynpro component from PDK.
    Any Help please.
    Regards
    NagaKishore V

    Were you able to call Webdynpro component fro PDK? Can you tell me how did you accomplish this?
    I have a similar requirement.

  • Calling a WebDynpro Component from other

    I have a WebDynpro Component. When i click on a button , i need to call another WD Component. How can i do this ?

    Hi Manju,
    You can proceed as shown below. You need to just get the URL of the component which you want to call from your component using the static method construct_wd_url of class cl_wd_utilities. You then just have to pass this URL to the create_external_window method of if_wd_window_manager. (This part can be done by using the code wizard itself.)
    Regards,
    Uday
    METHOD onactioncall .
      DATA : lv_url TYPE string.
      CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = 'Z187442_ALV1'
        IMPORTING
          out_absolute_url = lv_url.
      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( ).
      CALL METHOD lo_window_manager->create_external_window
        EXPORTING
          url    = lv_url
        RECEIVING
          window = lo_window.
      lo_window->open( ).
    ENDMETHOD.

  • How do you remove blank lines from an assignment block?.

    I have used the UI enhancement tool to add fields to an assignment block, but I've ended up with a blank line between the fields. How can I remove this?. There's an option to add new lines and fields but not remove them.
    Anyone.
    Jason

    Many thanks, that worked fine. I did not think of doing that, but I can see why there would not be a remove line option.
    Regards
    Jas

  • Hyperlink to launch webdynpro abap from workflow

    Hi Guys,
    We have developed WORKFLOW where we need to send HYPERLINK along with WORKITEM to the AGENTS.
    When ever the user(AGENT) clicks on the HYPERLINK we need to launch our WEBDYNPRO ABAP APPLIOCATION.
    Please guide me to achieve this scenario.
    Thanks&regards,
    Harsha P

    Hi
    I think you have to check the below points  as Karri has suggested you some good points, and still if you face some issues then
    1. Make sure you have made the workitem ID as URL parameters.
    2. You should be able to access the URL parameters from Default method of the Window.
    3. Make sure the URL that you are generating is correct , by looking at URL I felt like some thing is missing, like if you have observed the url of any webdynpro applicaiotn it may be some thing like
    https://<domain>.50000/sap/bc/webdynpro/....   and this is purely my guess so make sure th URL you are populating is correct.
    @Rick
    Why do you keep saying "kemp" when the sign-off is "Karri"?
    May be you should concentrate on suggesting some thing useful regarding thread issue, rather than how the others signature is or suggesting something how to call or address the other forum participants.  Its just a suggestion....
    Don't mind its just a friendly advise.
    Regards
    Pavan

  • Removing buttons from the assignment block

    Dear WebUI experts,
    I want to remove the buttons for creation of 'corporate account', 'group account', 'individual account' from the search account workcenter page.
    http://picasaweb.google.com/satishsoni.sap/SAP?authkey=Gv1sRgCJz0wMn5j_ftvgE
    The authorisations given to the user are display only still the create buttons are displayed.
    Thanks
    Satish

    Go to Tx: BSP_WD_CMPWB
    Enhance the component/ view: BP_HEAD_SEARCH/MainSearchResult
    Redefine method:  DO_PREPARE_OUTPUT with something like this:
    CALL METHOD super->do_prepare_output
      EXPORTING IV_FIRST_TIME = IV_FIRST_TIME.
    DELETE LS_BUTTON WHERE ON_CLICK = 'CREATECORP'.
    DELETE LS_BUTTON WHERE ON_CLICK = 'CREATEIND'.
    DELETE LS_BUTTON WHERE ON_CLICK = 'CREATEGROUP'.
    Before this I think you shold take a look at the Auth. Obj. UIU_COMP for authorizations on this buttons.
    Best Regards

  • How to add an Assignment Block to Activity

    Hi Gurus,
    How to add an Assignment Block to Activity?
    Thanks & Regards
    Rohan

    Hi Kkp
    Goto the component/view: BT126H_APPT/ApptOVViewset to place the attachment assignment block on the screen.
    Click on the Configuration tab.
    Click on change.
    Add them from Available Assignment Blocks to Displayed Assignment Blocks.
    Best Regards,
    Shiven

  • Debug WebDynpro Component in NWDS?

    Pro's I need some help here...
    Does anybody know how to debug a webdynpro component from NWDS?
    Thanks, Johannes

    Hi Johannes,
    To debug an application
    Run-> Debug->Webdynpr->
    Right click and select new
    Once this is done you will see four tabs
    1)Debug: select your project and the application to launch
    2) Select the SAP System for Debugging
    3)Source need to be added here.
    Check the following blog for more detailed exaplination and process to do debugging
    /people/karsten.geiseler/blog/2005/07/04/netweaver-portal-debugging
    Hope that helps, incase if issues let me know
    regards
    Anil
    Edited by: Anil Dichpally on May 5, 2008 8:11 PM

  • Resue of Custom Controller to another webdynpro component

    Hello,
    I would like to use all the methods and context of one custom controller residing in one webdynpro component from another view residing in another webdynpro component.
    Could you please give me an idea asto how this can be achieved?
    For this I have added the first webdynpro component(which has the custom controller) to its public part and added the first component to the other webdynpro component(which will resue the previous one) as a used DC.Now I want to access all the methods of this custom controller in the view of this second component.
    Thanks and Regards,
    Arya

    Hi
    To make uses of component and its other controller u have to deal with [ Interface controller|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f07c3625-c971-2910-3a9c-ce131487f82c]
    For  [Custom Controller|http://help.sap.com/saphelp_nw04/helpdata/en/c4/862594e85911459301aa71a2b7b6b4/frameset.htm]   it is nothing but a separation of the component controller task into unit for example want to implement OVS ,so put it in one dedicated custom controller etc.
    Best Regards
    Satish Kumar

  • Error while launching Webdynpro Console

    Hello Gurus,
    I am trying to launch webdynpro console from the
    url
    http://<HOST>:50000/webdynpro/welcome/Welcome.jsp
    and its giving me error
       Internal Server Error
      SAP J2EE Engine/7.00 
      Application error occurred during request processing.
      Details:   java.lang.NullPointerException: null
    Exception id: [001A4B063BBE0066000000210000556500045A9A6DA83C10]
    can you help in diagnosig it, where can i check the logs for this and what steps can i take to correct this.
    Precise answers will be rewarded.
    -Thanks
    Sam

    Hello Koti
    I checked defaultTrace0.trc
    and found some entries related to webdynpro
    #1.5 #001A4B063BBE00130000000100004E8900045A6ABC0BD07A#1225314374759#com.sap.engine.core.service630.container.ServiceStopper##com.sap.engine.core.service630.container.ServiceStopper#######SAPEngine_System_Thread[impl:5]_16##0#0#Error##Plain###Service webdynpro error com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to access Web Dynpro container. during shutdown.#
    #1.5 #001A4B063BBE00130000000300004E8900045A6ABC0BD7B2#1225314374761#com.sap.engine.core.service630.container.ServiceStopper##com.sap.engine.core.service630.container.ServiceStopper.ServiceStopper.run#######SAPEngine_System_Thread[impl:5]_16##0#0#Error#1#/System/Server#Plain###Failed to access Web Dynpro container.#
    #1.5 #001A4B063BBE00130000000400004E8900045A6ABC0BD810#1225314374761#com.sap.engine.core.service630.container.ServiceStopper##com.sap.engine.core.service630.container.ServiceStopper.ServiceStopper.run#######SAPEngine_System_Thread[impl:5]_16##0#0#Error##Plain###com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to access Web Dynpro container.#
    #1.5 #001A4B063BBE00130000000500004E8900045A6ABC0BD869#1225314374762#com.sap.engine.core.service630.container.ServiceStopper##com.sap.engine.core.service630.container.ServiceStopper.ServiceStopper.run#######SAPEngine_System_Thread[impl:5]_16##0#0#Error##Plain###com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to access Web Dynpro container.
         at com.sap.tc.webdynpro.serverimpl.wdc.deployment.DOContainerHook.stop(DOContainerHook.java:76)
         at com.sap.engine.services.webdynpro.WebDynproFrame.stopInternal(WebDynproFrame.java:218)
         at com.sap.engine.services.webdynpro.WebDynproFrame.stop(WebDynproFrame.java:202)
         at com.sap.engine.core.service630.container.ServiceStopper.run(ServiceStopper.java:31)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:81)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:152)
    Caused by: java.lang.NullPointerException
         at com.sap.tc.webdynpro.serverimpl.wdc.deployment.DOContainerHook.stop(DOContainerHook.java:73)
         ... 6 more
    any suggestion on that
    Thanks
    Sam

  • Call WebDynpro component interface

    Hi experts
    We have developed a WebDynpro component to export context data node to excel file using jakarta poi libs.
    This component have all logic to generate the excel file, and have only one method in component interface controller, this method is called with other WebDynpro components and work fine.
    Now we have new requeriments, we need to generate the same excel file with one scheduled task in KM.
    Anyone know if is possible to call our WebDynpro component interface method from scheduled task?
    Best regards

    Hi Xavier
    If I were you I'd just separate the logic to generate the excel from the WebDynpro component. If the logic is isolated in Java lib it can be invoked from WebDynpro component and also from the KM Scheduler. There is no necessity to invoke the whole WebDynpro component from KM scheduler. Moreover, I think that it's not possible.
    BR, Siarhei

  • Transport Webdynpro Component

    Hi Experts,
    I need to move a Webdynpro component from sandbox system to developement system with out using TR. Is there any possiblity of downloading a Web Dynpro object from one system and upload it again to another system? Please help me if there is any solution for this.
    Regards,
    Sarathy.

    Hi Pandi,
    You can use SAPLINK..
    Please go through this...
    Download web dynpro developments to local disk
    Need to download Webdynpro Component from se80 into desktop and vice versa
    Cheers,
    Kris.

  • How to populate data from bol to assignment block.

    Dear experts,
    I saw on sdn discussion similar questions, but have not found the suitable answer.
    I need to add fields for BP using EEWB and to work with this field in WEB UI. For achievement of it I have executed following steps:
    1. Using EEWB has added new z u2013 fields to BP. This fields have appeared in tcode bp on a tab "customer data".  Besides I have seen this field in created z u2013 BOL.
    2. Using tcode BSP_WD_CMPWB has created z bsp component.
    3. In z bsp component has created view and custom controller which correspond earlier created z - BOL. Also has created following binding:
       owner->do_context_node_binding(
                iv_controller_type  = cl_bsp_wd_controller=>CO_TYPE_CUSTOM
                iv_name = 'ZBP_S_INF/NumBpOutSYS'
                iv_target_node_name = 'ZZ9BHEEW'
                iv_node_2_bind      = ZZ9BHEEW ).
    4. Has redefined method DO_PREPARE_OUTPUT and would make modify the *.htm file for the purpose on toolbar there were buttons of editing of the data.
    5. Has adding z - assignment block to bp_head component.
    At start WEB UI the assignment block it is visible in list displayed blocks of account data. In this block there are buttons on toolbar. But in this block the data is not displayed. Though really data there is, as they are displayed in tcode bp.
    Please inform as to populate the data from bol to z u2013 component. I assume that it is necessary for me to create get_ methods. But methods get_ and set_ do not cause query.
    Iu2019m work in CRM 7.0.
    Best regards,
    Eugene.

    HI, Prasenjit
    Here the text my html pages
    <%@page language="abap" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <thtmlb:areaFrameSetter toolbarButtons  = "<%= controller->gt_button_header %>"
                            maxButtonNumber = "3"
                            displayMode     = "<%= controller->view_group_context->is_view_in_display_mode( controller ) %>" />
    <chtmlb:configTable actionsMaxInRow       = "3"
                        allRowsEditable       = "TRUE"
                        displayMode           = "<%= controller->view_group_context->is_view_in_display_mode( controller ) %>"
                        downloadToExcel       = "TRUE"
                        id                    = "Table1"
                        onRowSelection        = "select"
                        personalizable        = "TRUE"
                        selectedRowIndex      = "<%= ZZ9BHEEW->SELECTED_INDEX %>"
                        selectedRowIndexTable = "<%= ZZ9BHEEW->SELECTION_TAB %>"
                        selectionMode         = "<%= ZZ9BHEEW->SELECTION_MODE %>"
                        table                 = "//ZZ9BHEEW/Table"
                        usage                 = "EDITLIST"
                        visibleFirstRow       = "<%= ZZ9BHEEW->VISIBLE_FIRST_ROW_INDEX
    %>"
                        visibleRowCount       = "6"
                        width                 = "100%"
                        xml                   = "<%= controller->configuration_descr->get_config_data( ) %>" />
    Whether the page can html operate extraction of the data?

  • Launching WebDynpro from Universal Worklist

    Hello All,
        am trying to launch a Web Dynpro Application from the UWL but was not able to open the application.
    We are following the Launching WebDynpro from Universal Worklist blog. But we are not able to open. Can any one help on this?
    Thanks
    Gopal

    Hi ,
    check the defaultAction assigned to launchWebdynpro or not?
    <ItemType name="uwl.task.webflow.TS91000129.UWL" connector="WebFlowConnector"
    defaultView="Test" executionMode="default" defaultAction="launchWebdynpro">
    after modifying did you upload with previous name of xml file? If you give different name to xml file , set highest priority such that uwl will consider this xml file
    Koti Reddy

  • Read data from assignment block

    Hi all,
    I'm a bit puzzled for the moment with a development I've done.
    In short, I've created 2 views, 1 with a value node context node and 1 with a model node context node type BuilContactPerson.
    These 2 views are put on an overview page. On the overview page I have a button 'Save'. In the eh_onsave event I need to read the content of the assignment block from the model node. Anyone an idea how to get this done?
    Some background info on what I am doing.
    In the BP_CONT_SEARCH component I've enhanced the SearchResult view and put a button "Move" on top of the assignment block. I also made the SearchResult table multi select.
    The purpose of this is that you can select multiple contacts, hit the move button and then enter in a new customer where the contacts have to be moved to.
    So, the selected contacts are showing correctly in my assignment block and I can read the newly entered customer. The only thing that is left is that I need to loop over the contacts so I can move them. Code to move them is also already done and tested.
    Help is much appreciated.
    Thanks
    T

    Solved it myself.
    DATA:
             lr_entity_customer TYPE REF TO IF_BOL_BO_PROPERTY_ACCESS,
             lr_entity_contact TYPE REF TO cl_crm_bol_entity,
             lr_iter TYPE REF TO CL_bsp_wd_collection_wrapper,
             lr_entity type ref to cl_crm_bol_entity.
      lr_iter ?= me->typed_context->contacts->get_collection_wrapper( ).
    lr_entity ?= lr_iter->IF_BOL_BO_COL~GET_FIRST( ).
    lr_entity->get_properties( IMPORTING es_attributes = lv_contactdetails ).

Maybe you are looking for

  • Confusion on IDOC types for creation of PO

    Hi, Requirement is sending PO from sendin SAP system to receiving system. For sending am using- Processing code ME10 On serching forums and tutorials,  i came across IDOC type- ORDERS05 but this idoc type is for both PO and SO. PORDCR04 idoc type for

  • Perfect use of Automator if I can get it to work with QT or FCP

    Hello, I've spent all day trying to wrap my head around Automator and I jumped right into it with the following task: to take 150 video clips (uncompressed 8 bit QT files) and add an opening graphic, a closing graphic and to save as a new version. Do

  • Is there a limit to size of SD card I can synch with a Mac?

    Hi I had a 2GB SD card that synched perfectly with desktop manager on my mac. I bought a 32GB card (having first checked my curve is compatible) but now my mac can't see an sd card (even though the phone can) - wondered if the Mac version of BB DM ha

  • Track Routing history

    Hi all, Is there any way we can track changes in routing or rate routing. i.e who made the changes. Please let me knwo. Regards, Suman

  • Apache with weblogic serveron windows xp.

              Hi,           Can you plz tell me how to connect Apache http server to weblogic in the windows           os. The documentation provided is for linux platform. Can someone help me for           windows.           Thanks,           Ankur