Call webservice URL through view, on click of a button

Hello Gurus,
I have a local development webdynpro project . My requirement is that on click of a submit button, webservice is called and it returns a string which i need to display on the view. I searched a lot but couldnt find the exact step by step process.
While creating the web service model, which one dhould i choose n then after model creation
what code should i write to call webservice.
Regards
nishu

Hello All,
Thanks for all your replies. I am able to create model and bind it to my component controller.
But when i write the code to call webservice , i am unable to instanciate the model....
I wrote the following code :
testmodel = new Soap(); - (1)
Request_ServiceSoap_insertTicket insert = new Request_ServiceSoap_insertTicket(testmodel); - (2)
insert.setUserId("CCM_RUS");   
wdContext.nodeRequest_ServiceSoap_insertTicket().bind(insert);
private Soap testmodel;
In Above code , line (1) , 'Soap' is the name of my WebService model, which i made by importaing the wsdl file from my local system. And line (2), i amd getting error :
the constructor Request_ServiceSoap_insertTicket(testmodel) is undefined.
If i remove the 'testmodel' and just write Request_ServiceSoap_insertTicket() , the webservice is not called, since model instantiation is necessary for webservice Models. I am stuck
Please help
Thanks
Nishu
Edited by: nishu_rj on Aug 23, 2011 9:01 AM

Similar Messages

  • Navigating to a view on click of a button in Webclient

    Hi Gurus,
    I am trying to navigate to a view from one view by clicking on a button.
    What is the coding to be done in do_handle_event and what is the navigation link to be provided in the customized run-time repository.
    Any help would be appreciated and points would be awarded
    Thanks,
    Jai

    This may help.
    ashish.
    3.4.1 Creating the View Set and Controllers
    The following steps are necessary to create your view set:
    1. Use the wizard to create a new view set SimpleActivitySet.
    Consultant’s Cookbook for Interaction Center (IC) WebClient SAP CRM 4.0 Add-On for Service Industries Page 93
    2. Skip through all following steps in the wizard.
    3. Redefine the method if_bsp_wd_history_state_descr~get_state_description in the
    generated class ZL_Z_CRM_IC_SIMPLEACTIVIT_IMPL as follows:
    METHOD if_bsp_wd_history_state_descr~get_state_description .
    description = text-001. " 'Simple Activity'
    ENDMETHOD.
    This method is called by the framework whenever the quick navigation dropdown box is refreshed.
    It returns the text to be displayed, in our case, Simple Activity. Double-click on text-001 in order
    to create the program text.
    4. Add the following code to the layout of the view set:
    <%@page language="abap"%>
    <%@ extension name="htmlb" prefix="htmlb"%>
    <%@ extension name="xhtmlb" prefix="xhtmlb"%>
    <%@ extension name="crm_bsp_ic" prefix="crmic"%>
    <%@ extension name="bsp" prefix="bsp"%>
    <crmic:gridLayout cellPadding="0" cellSpacing="2" columnSize="1" rowSize="1"
    width="100%" height="100%">
    <crmic:gridLayoutCell columnIndex="1" rowIndex="1" width="100%" height="34%">
    <bsp:call comp_id="<%=controller->GET_VIEWAREA_CONTENT_ID( 'SimpAct' )%>"
    url="<%=controller->GET_VIEWAREA_CONTENT_URL( 'SimpAct' )%>"/>
    </crmic:gridLayoutCell>
    </crmic:gridLayout>
    This HTMLB code simply creates a grid layout with one cell. Within the cell, we call the view by its
    ID (SimpAct). The ID is later on defined in the framework (cf. section 3.4.3.2).
    This design has some overhead in our case, but it shows in general how more complex view sets
    are to be designed. For example, see the view set definition of the interaction record,
    IRecViewSet.htm, in the BSP application CRM_IC.
    5. Activate all your objects.
    Consultant’s Cookbook for Interaction Center (IC) WebClient SAP CRM 4.0 Add-On for Service Industries Page 94
    3.4.2 Creating the View and Controllers
    The following steps are necessary to create your view:
    1. Start the IC WebClient workbench and right-click on the View Root node to create a new view.
    2. In the wizard, enter the following data:
    Consultant’s Cookbook for Interaction Center (IC) WebClient SAP CRM 4.0 Add-On for Service Industries Page 95
    We do not define value nodes here. Value nodes are context nodes which are not bound to the
    BOL model but implemented in the context classes.
    Consultant’s Cookbook for Interaction Center (IC) WebClient SAP CRM 4.0 Add-On for Service Industries Page 96
    Consultant’s Cookbook for Interaction Center (IC) WebClient SAP CRM 4.0 Add-On for Service Industries Page 97
    3. After this step, restart the IC WebClient workbench and see your new view in the hierarchy:
    Consultant’s Cookbook for Interaction Center (IC) WebClient SAP CRM 4.0 Add-On for Service Industries Page 98
    The following methods will all be created/implemented in the controller implementation class
    ZL_Z_CRM_IC_SIMPLEACTIVI_IMPL. The additional controller base class should never be changed!
    1. Define the inbound plug. This will be the method that is called by the framework whenever we
    navigate to our view set. For more information on the link definition, see section 3.4.3.3.
    Sample Code: Inbound Plug
    In general, there are two way of passing parameters:
    • Via the business data context (BDC), which is represented by a custom controller.
    At this custom controller you find the method SET_NAVIGATION_DATA and
    GET_NAVIGATION_DATA to pass a context entity.
    • Binding to custom controller context nodes which leads to data sharing between views.
    In our example we bind BTORDER, the root context node of our new view, to the
    context node CURRENTINTERACTION of the BDC (custom controller CuCoBDC).
    When our view is created the data of CURRENTINTERACTION is automatically set to
    the node BTORDER and the data for the dependant nodes is automatically derived.
    2. You can define a dropdown list box for the status as described in section 3.3.
    3. The wizard automatically creates two methods that are responsible for the data transfer between
    the model/controller and the view:
    • set_models
    Sends data to the view. It is comparable to the PBO modules of traditional ABAP screen
    programming.
    • do_handle_data
    Consultant’s Cookbook for Interaction Center (IC) WebClient SAP CRM 4.0 Add-On for Service Industries Page 99
    Retrieves data from the HTTP request fields. It is comparable to the PAI modules of an
    ABAP screen.
    3.4.3 Adjusting IC WebClient Framework
    After having defined the views, controllers, and classes, we need to assign them to the runtime profile of
    IC WebClient.
    The first time you do this, there are some preparations needed which are explained in the following
    section. After the preparation, the view and view set specific work for our example is explained.
    3.4.3.1 Preparation
    In order to prepare the IC WebClient framework for custom-built view sets, we need to create a new
    runtime profile BSP application in the customer namespace. This BSP application will contain one page,
    called CRM_IC.xml. It will contain the definition of all view sets and all navigational links by including the
    corresponding files that actually contain the definitions. We build all this according to standard structures,
    though it doesn’t necessarily have to be this way.
    To make things a bit simpler, we do not split up the repository into runtime and design time. All changes
    we make are only relevant for the runtime repository.
    Perform the following steps:
    1. Create the BSP application Z_CRM_IC_RT_REP in the package Z_CONS_COOK.
    2. Copy the file CRM_IC.xml from the BSP application CRM_IC_RT_REP to Z_CRM_IC_RT_REP.
    3. Adjust the contents of this file according to the changes shown in bold in the following sample
    code:
    <?xml version="1.0"?>
    <WebDynProDefinitions>
    <Application id="CRM_IC">
    <ViewSets>
    <%@include file="../Z_CRM_IC_RT_REP/CRM_IC_All_Viewsets.xml" %>
    </ViewSets>
    <NavigationalLinks>
    <%@include file="../Z_CRM_IC_RT_REP/CRM_IC_All_NavLinks.xml" %>
    </NavigationalLinks>
    </Application>
    </WebDynProDefinitions>
    Hence, CRM_IC.xml includes two more XML files which can be found in BSP application
    Z_CRM_IC_RT_REP.
    4. Create BSP application Z_CRM_IC_RT_REP in package Z_CONS_COOK.
    5. Copy page fragment CRM_IC_All_Viewsets.xml of BSP application CRM_IC_DT_REP to
    Z_CRM_IC_RT_REP and replace the file contents with the following lines:
    <%@ include file="MainViewSet.xml" %>
    <%@ include file="../CRM_IC_DT_REP/BuPaViewSet.xml" %>
    <%@ include file="../CRM_IC_DT_REP/CRM_IC_All_Viewsets_wo_BUPA_and_Main.xml"
    %>
    This definition still works with all standard view sets, but replaces the MainViewSet.xml with our
    own definition, since it is now loaded from Z_CRM_IC_RT_REP.
    6. Copy page fragment MainViewSet.xml from BSP application CRM_IC_DT_REP to
    Z_CRM_IC_RT_REP.
    Consultant’s Cookbook for Interaction Center (IC) WebClient SAP CRM 4.0 Add-On for Service Industries Page 100
    7. Copy page fragment CRM_IC_All_NavLinks.xml of BSP application CRM_IC_DT_REP to
    Z_CRM_IC_RT_REP and replace the file contents with the following line:
    <%@ include file="../CRM_IC_DT_REP/CRM_IC_All_NavLinks.xml" %>
    This definition makes sure that standard navigational links still work and that we are able to add
    our own link definitions later on.
    8. Activate all objects.
    9. Customize the IC WebClient runtime framework profile in such a way that the new source file is
    used, as shown in the following sample code:
    <?xml version="1.0"?>
    <RuntimeFrameworkSettings>
    <RuntimeRepositorySource type="BSP">
    <BspApplication>Z_CRM_IC_RT_REP</BspApplication>
    <PageName>CRM_IC.xml</PageName>
    </RuntimeRepositorySource>
    <WorkareaDefinition>
    <ViewSet>workViewSet</ViewSet>
    <ViewArea>workViewSetArea</ViewArea>
    </WorkareaDefinition>
    <ControllerReplacements>
    <ControllerReplacement>
    <ReplacedController>BuPaMoreContactView</ReplacedController>
    <ReplacingController>Z_CRM_IC/BuPaMoreContactView</ReplacingController>
    </ControllerReplacement>
    <ControllerReplacement>
    <ReplacedController>IRecReason</ReplacedController>
    <ReplacingController>Z_CRM_IC/IRecReason</ReplacingController>
    </ControllerReplacement>
    </ControllerReplacements>
    <InteractionLayerApplication>ALL</InteractionLayerApplication>
    </RuntimeFrameworkSettings>
    3.4.3.2 Creating View Definitions for Design Time Repositories
    Every new view set must be defined in the runtime repository.
    1. Create page fragment SimpleActivitySet.xml in BSP application Z_CRM_IC_RT_REP and maintain it
    as shown in the following sample code:
    <ViewSet id="Z_CRM_IC/SimpleActivitySet">
    <ViewArea id="SimpAct" views="Z_CRM_IC/SimpleActivity"/>
    </ViewSet>
    The view area ID (SimpAct) is the name of the literal used in the bsp:call tag. For more
    information, see section 3.4.1.
    2. Include this file in the framework. Place the following line into page CRM_IC_All_Viewsets.xml in
    BSP application Z_CRM_IC_RT_REP:
    <%@ include file="SimpleActivitySet.xml" %>
    3. Activate your objects.
    Consultant’s Cookbook for Interaction Center (IC) WebClient SAP CRM 4.0 Add-On for Service Industries Page 101
    3.4.3.3 Creating Navigational Link Definitions for Design Time Repositories
    In order to provide a navigational link for the activity clipboard, we need to define this link.
    1. Create page fragment SimpleActivityNavLinks.xml in BSP application Z_CRM_IC_RT_REP and
    maintain it as shown in the following sample code:
    <NavigationalLink name="SimpleActivity">
    <Source viewRef="IRecActivitiesClipboard" outboundPlugRef="default"/>
    <Targets>
    <Target viewRef="Z_CRM_IC/SimpleActivity"
    inboundPlugRef="inboundplugid"/>
    </Targets>
    </NavigationalLink>
    The name of the link is SimpleActivity. We will refer to it in the activity clipboard Customizing. For
    more information, see section 3.4.3.5. The link can be activated on the view
    IRecActivitiesClipboard and it navigates to the view SimpleActivity in BSP application
    Z_CRM_IC. When the target view is activated, method ip_inboundplugid of the view controller
    class is called.
    The framework adds the prefix “ip_” automatically for this method.
    2. Similar to the view definition, include the navigational link into the runtime repository. Add the
    following line to the file CRM_IC_All_NavLinks.xml in BSP application Z_CRM_IC_RT_REP:
    <%@ include file="SimpleActivityNavLinks.xml" %>
    3. Activate your objects.
    3.4.3.4 Placing View Sets into Controller Hierarchies
    After the view set and the navigational link are defined, we finally add our new view to the possible views
    for the work area. We need to adjust the file MainViewSet.xml in BSP application Z_CRM_IC_RT_REP. Add
    the reference to our view set and activate the file as shown in the following sample code:
    <ViewSet id="ICAPPMainViewSet">
    <ViewArea id="navigationArea" views="navigationViewSet"/>
    <ViewArea id="workArea" views="workViewSet"/>
    <ViewArea id="contextArea" views="contextAreaView"/>
    <ViewArea id="breadCrumbsArea" views="BreadCrumbsView"/>
    <ViewArea id="globalSearchArea" views="HistoryView"/>
    <ViewArea id="helpArea" views="Help"/>
    <ViewArea id="statusArea" views="StatusView"/>
    <ViewArea id="errorArea" views="ErrorViewSet"/>
    </ViewSet>
    <ViewSet id="navigationViewSet">
    <ViewArea id="navigationViewSetArea" views="NavBarView"/>
    </ViewSet>
    <ViewSet id="workViewSet">
    <ViewArea id="workViewSetArea"
    views="<%@include file='../CRM_IC_DT_REP/StdWorkareaOccupation.xml' %>
    Z_CRM_IC/SimpleActivitySet"/>
    </ViewSet>
    Consultant’s Cookbook for Interaction Center (IC) WebClient SAP CRM 4.0 Add-On for Service Industries Page 102

  • Call Webservice URL with multiple methods in PI 7.0

    Dear Gurus,
    I have the following requirement:
    I need to make multiple calls to a same webservice (URL) which have multiple methods on its WSDL. I know it is possible in PI 7.1. But is it possible in PI 7.0?
    I have already designed and configured the scenarios and generated ABAP Proxy. When I call the endpoint without specifyng the method I got the following message:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Endpoint {http://mywebserviceurl.com} does not contain operation meta data for: {http://mynamespace}MyMessageInterface</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Please somebody could help me to solve this issue?
    Thank you in advance.
    Fabio Purcino

    >>. But is it possible in PI 7.0?
    Just few cents..
    Test using SOAPUI or  XMLSPY and use that same WSDL URL in the target URL of Communication channel. Just to make sure you use the right endpoint.
    or
    You can specify the method name as  soap action dynamically using udf in mapping and see how it behaves.

  • Setting the webservice url at run time for a execute button in adobe form

    Hi,
    I am using Data connection from the wsdl file to interact with the backend, the button generated from the data connection is of type execute which has the url of the webservice in the object property "Webservice URL" and name of the FM in the interface name. My problem is at present the form is working fine but when the same form transported to QA and PRD them the url of the webservice gets change. hence the same button wont function.
    The solution is either we do the changes manually in all the system or pass the url at run time. Please proide me the solution if there is a way to set this url in the execute button at runtime.
    Thanks in advance.
    Pooja

    Why don't you pass in the URL via an XML input file and bind a hidden text field in your form to that element in your XML? Then use javascript to modify the docReady event of the submit button to something like this:
    var url = textFieldWithURL.rawValue;
    this.event__click.submit.target = url;

  • PCUI - open New Window via Button (to call custom URL / HTML viewer)

    Hello group,
    I have followed the "Use CRM PCUI HTML viewer to call a custom URL" in order to create a custom URL to BW web template.
    However, instead of displaying the URL in a tab (this works fine), I want a Button in the Accounts view to open up a New Window displaying the URL there.
    Here is what I have done:
    Create Field Group & Structure
    Create Event
    - Usage: Layout-Relevant
    - Text: Web template call
    Added Event to Toolbar Group ACC_OIC
    Define Application Layout (CRMM_ACCOUNT) for Event
    - Position: New Window
    - Screen Element Type: HTML
    - my field group
    - my structure
    Define Application Set (COMM_BUPA)
    - my structure
    - my access class
    The button is there, when clicked the read-method of my access class is executed, but no New Window is opened with the URL displayed.
    Is there something I am missing? Can the HTML viewer not called in a new window?!
    I appreciate any input you can provide me.
    Thanks and regards,
    Erik

    I have the same problem. PCUI toolbar button open url http://www.google.com in new window   .
    It sames so easy open a link on web page.
    why so hard in PCUI !
    My god , who design the PCUI.
    anyone solve this problem , let me know please. Thanks!
    [email protected]

  • How to call a url i-view with parameters

    Hello,
    I want to make a portal navigation in a absolute way. This call should open a url-iview. In this iview the main url string is placed. Further more, a url-parameter ("test") is placed with a standard value. Now, i want to call this iview (see the call below) and hand over the value of this url-parameter. But how could this be done? In the following way, it doesn`t work. The iView will be called but the parameter is not settet.
    Call:
    WDPortalNavigation.navigateAbsolute(
                    "ROLES://portal_content/de.dbag.dbag-f/de.dbag.optitechpro.connection_monitor-f/com.dbag.iViews-f/com.dbag.urltest-i",
                    WDPortalNavigationMode.SHOW_INPLACE,
                    (String) null,
                    (String) null,
                    WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
                    (String) null,
                    (String) null,
                    "test=NUIBI");
    best regards
    Mathias

    hi Mathias
    Try this
    1) First right click on the iView you wish to open and click Open -> Object
    2) In the iView editor you will see:
    url parameter : The parameter identifier as recognized by the information source
    value: The value of the parameter
    type: The data type
    personalize:Define if portal end users can view the param and its assigned value and if they can personalize the iView at runtime
    display name: The display name for the parameter identifier
    3) Once you have defined the iView’s URL to the targeted Web page, you may need to configure parameters that are passed to the information source as part of the URL .
    4) The parameter name is something that shouldn’t be changed because it is recognized by the information source .
    5) The parameter value can be changed.
    6) The type specifies data type of the parameter. String: Apply this option for all data types whose property is for example, an integer or string. Mapped User and Mapped Password : Apply this option when the URL parameter requires authentication with the information source at runtime.
    7) The Personalization -specifies whether or not portal end users can view the parameter and its assigned value if they personalize the iView at runtime.
    Hidden: The end user does not see the parameter and its value. This is the default setting.
    Read/Write: The end user sees the parameter and is able to modify its value.
    Read Only: The end user sees the parameter and the fixed value assigned to it. The end user cannot modify the parameter value.
    8) The display name - specifies an intuitive display name for the parameter identifier. If you set the parameter to be viewable by end users at runtime, this name is displayed instead of the parameter identifier, which is often abbreviated and unintuitive. This attribute is available only if Read/Write or Read Only is selected in the Personalize attribute
    9) The Request method:
    Get – appends parameters to the URL when the data request is sent to the information source. The server receives the data in one long query string, which typically limits the length of parameters that can be passed.
    Post - sends parameters for the URL in the header of the data request stream (parameters are not appended to the URL). This allows for long parameters to be passed to a script and parsed one element at a time. POST is only supported when the Fetch Method property defined in the iView is set to Server-side
    Regards
    Pratyush

  • Is it possible to call  a URL from a table entry

    Hi Abap Experts,
    Is it possible to call a URL when we double click on the record of a table
    for  example I have a table zmanifest in which if i double click on the tracking number(table field)
    it should go to UPS website
    Thanks & Regards,
    Tharun.P

    Hi
    It depends on what you mean to do a doubleclick, i.e. where you want to do it?
    If you mean a program created ad hoc, yes you can else I don't think
    Max

  • Controlling Triggering of "WDDOMODIFYVIEW" on click of a button in view

    Hi all,
    I have a Button in a view,
    on click of the button the "WDDOMODIFYVIEW" Executes before the action for the button executes.
    I've a requirement that the "WDDOMODIFYVIEW" shouldnt execute on click of the button in that view.
    Is it possible to control??
    Best Regards,
    Shravan.

    Hi,
    When you a click a button, method "WDDOBEFOREACTION" will trigger first. Then the method "WDDOMODIFYVIEW" will trigger.
    So you can try the below method:
    1. Create a local attribute lv_action_flag in the attribute tab of the view type as "WDY_BOOLEAN".
    2. Write logic in the method "WDDOBEFOREACTION" to find the button clicked and set a local flag over there.
        data lo_api_controller type ref to if_wd_view_controller.
      data lo_action         type ref to if_wd_action.
      lo_api_controller = wd_this->wd_get_api( ).
      lo_action = lo_api_controller->get_current_action( ).
      if lo_action is bound.
        case lo_action->name.
          when '...'. <<Check your action name eg:Show
           wd_this->lv_action_flag = abap_true.
          when others.
            clear wd_this->lv_action_flag.
        endcase.
      endif.
    3. In the beginning of the method  "WDDOMODIFYVIEW" Check the "lv_Action_flag" attribute .
    like
    check wd_this->lv_action_flag is initial.
    <<Your entire logic in this method>>
    Hope this will be helpful
    Regards,
    Meganadhan S

  • Launch a URL in new tab on click of a button

    Hi All,
    I am currently launching a URL from R3 on click of a button on a screen. When I click on the button the second time it lauches the URL again, but opens it in a new window. I am using IE8 to open the URL's. What i wanted to know, is there any way where I can launch the URL in the same IE8 window, but in a  different tab i.e. instead of opening two IE8 windows, launch one window with two tabs.
    Any help would be useful.
    Thanks.
    Sneha.

    Hello sneha!
    As far as I know there isn't an HTML TAG to do that. In CSS3 there is a property 'target-new' that can be used
    [target-new property|http://www.w3.org/TR/css3-hyperlinks/#the-target-new]
    but I'm not sure if IE8 implements this feauture.
    The only easy solution I see is to configure the IE8 to open all the links in a new TAB instead of a new window.
    Open IE8 then go to "Tools" menu -> "Internet options" then in the "Tabs" section click on "Settings" and Select
    "When links from other programs in:"  "A new tab in the current window".
    You can do the same with the :
    "When a pop-up is encountered" "Allways open pop-ups in a new tab".
    Best Regards.
    Claudio (Aparatey)

  • What to do to add some UI elements in a group element on click of a button?

    I want to add Input fields and labels in the a group in a view on click of a button.
    How to :
    1)Access the right gropu in view through code?
    2)Create elements in the group through code?
    Please reply soon!
    Sumit

    You need a flag to signal that the elements should be added with the next call to wdDoModifyView().
    Add a boolean context attribute "AddFields" to the view context and set it to true in the action handler for the button:
    void onActionAddFields(...)
      wdContext.currentContextElement().setAddFields(true);
    In method wdDoModifyView(), check the flag and reset it after the code that adds the fields:
    (I assume the group has a MatrixLayout)
    static void wdDoModifyView(...)
      if (wdContext.currentContextElement().getAddFields())
        /* access group by ID given at designtime */
        IWDGroup group = (IWDGroup) view.getElement("groupID");
        IWDLabel label = (IWDLabel) view.createElement(IWDLabel.class, null);
        /* if new row in MatrixLayout should be started: */
        IWDMatrixHeadData labelLayoutData = label.createLayoutData(IWDMatrixHeadData.class);
        /* change settings for layout data if needed */
        label.setText("whatever");
        IWDInputField field = (IWDInputField) view.createElement(IWDInputField.class, null);
        /* if in same row as label: */
        IWDMatrixData fieldLayoutData = field.createLayoutData(IWDMatrixData.class);
        /* change field layout data if needed */
        field.bindValue("context.attribute.path");
        label.setLabelFor(field);
        group.addChild(label);
        group.addChild(field);
        wdContext.currentContextElement().setAddFields(false);
    Armin

  • Session should logoff on click of save button in webgui window

    Hi All
    I am directly changing section 80 details using WEBGUI ervices( PA30 tcode with infotype 585 in change mode) WITH BELOW URL
    'http://XXXXXXXXXXXXXXX/sap/bc/gui/sap/its/webgui?~transaction=*pa30%20RP50G-PERNR=' lv_aempid
    ';RP50G-choic=0006;RP50G-SUBTY=4;RP50G-begda=01.01.1800;RP50G-endda=31.12.9999;DYNP_OKCODE=CHG'
    So user able to change their details using above URL, but when user clicks on save button, it is showing PA30 main screen..I want o know how to avoid this screen...
    My requirement is when user clicks on Save button, it should save and logoff from session.*
    Regards
    Srinivas

    Try to use CALL FUNCTION 'ITS_END_SESSION' in the user-exit.
    Of couse you must check that it is webgui session (not sapgui).
    Hope this helps

  • Calling Webservice from Adobe form - Webservice URL  Issue

    Dear Friends,
      I have developed a webservice and calling it from an Adobe form. I have downloaded the WSDL file from tcode SOAMANAGER. When I create a data connection from the Adobe form  I use this WSDL file and the form elements gets created automatically and I drag and drop them into the form. The issue is when I click on the Submit(Execute) button the Webservice URL is always pointed to the client from where the file was downloaded and its hard-coded ( for example if i download the wsdl file from client 300 then the URL would be http://<location>/sap/bc/srt/rfc/sap/z_web_getmat/300/z_web_getmat/z_web_getmat). So if i execute the form from client 200 its not working. How to make this URL dynamic so that the webservice gets executed from the client from where this form is called. Please advice.
    Regards
    Sapient

    Hi,
    You have to handle it in your form on submit button calling the web service:
    Write below java script code at submit event to change the URL at run time:
    var tempsoapAddress = xfa.connectionSet.DataConnection.getElement("soapAddress").value;
    var tempwsdladdress = xfa.connectionSet.DataConnection.getElement("wsdlAddress").value;
    var ServerPath = body.systemConfig.system.rawValue;
    var client = <Get Client from a data attribute>
    var Soap_PreServerPort =  "http://";
    var Soap_PostServerPort =  "/sap/bc/soap/rfc?sap-client=";
    var SoapAddress = Soap_PreServerPort + ServerPath + Soap_PostServerPort + client ;
    var Wsdl_PreServerPort =  "http://";
    var Wsdl_PostServerPort1 =  "/sap/bc/soap/wsdl11?services=ZBAPI_PO_CREATE2&amp;sap-client=";
    var wsdlAddress =  Wsdl_PreServerPort + ServerPath + Wsdl_PostServerPort1 + client ;
    xfa.connectionSet.DataConnection.getElement("soapAddress").value = SoapAddress;
    xfa.connectionSet.DataConnection.getElement("wsdlAddress").value = wsdlAddress;
    xfa.connectionSet.DataConnection.execute(0);
    xfa.connectionSet.DataConnection.getElement("soapAddress").value = tempsoapAddress;
    xfa.connectionSet.DataConnection.getElement("wsdlAddress").value = tempwsdladdress;
    xfa.connectionSet.DataConnection = null;
    Change the variable wsdlAddress as per your requirement. The above code is just a sample.
    For getting the client pass it in a datasource variable attribute at time of downloading the form. At time of submit get the value of that variable and use it to form the url.
    Regards,
    Vaibhav

  • Launching URL clicking on a button of a view of BSP Component

    Hi  Gurus,
    I have a requirement of opening a webdynpro URL by clicking on a button in a view of a standard BSP component. I have created one transaction launcher and assigned it to a logical link " ZOPP_CRT". In the event handler of the button I have written the following code.
    method EH_ONOPP_NEW.
    Added by wizard: Handler for event 'OPP_NEW'
    data: lv_nav Type ref to if_crm_ui_navigation_service.
    lv_nav = cl_crm_ui_navigation_service=>get_instance( me ).
    lv_nav->navigate( iv_link_id = 'ZOPP_CRT' ).
    endmethod.
    I have also checked the following links:
    Event triggers transaction launch
    Requirements using Transaction Launcher
    Still it is not working. Please suggest.
    Thanks

    Hi Raghunadh,
    You can find the details here:
    [http://wiki.sdn.sap.com/wiki/display/CRM/SAPCRMTransactionLaunchertoSAPERPBORObjects-Debugging|http://wiki.sdn.sap.com/wiki/display/CRM/SAPCRMTransactionLaunchertoSAPERPBORObjects-Debugging]
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3059fb20-987f-2e10-ef82-d147b9b5e8b4?QuickLink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3059fb20-987f-2e10-ef82-d147b9b5e8b4?QuickLink=index&overridelayout=true]
    Regards
    Leon

  • How to call webservice through Oracle HTTP Server

    I have cluster of three Managed Servers. They are behind a Oracle HTTP Server. I deployed a web service to the cluster. When calling web service, I got the error. The error is that the client of web service can not directly access the Managed Servers.
    The error tell that it can not access http://webapp01:7003/webservice/HelloWorld?WSDL
    Where webapp01 is the host name of a managed server.
    Is there a way that web service return the result to HTTP Server and HTTP Server return it to web service client.

    1. Before you invoke the WebServices from client program, I guess you may have already generated the webservices client jar for the WSDL that is deployed using sun jdk "wsimport" command or bea's clientgen ant task. At this time, what is the wsdl url you gave. In the generated client jar file you should see .JAVA files also. Check the Service related .java file and check the WSDL URL in that file. If it is using weblogic servers managed server host and port, then the problem you see is obvious.
    2. To fix this, you re-generate the webservices client jar file again this time giving the http server host and port instead of weblogic host and port. I am hoping you already modified httpd.conf file to accept the webservice url pattern. Check the .JAVA file generated for service to see the WSDL URL that is having inside.
    3. Another approach is on your client side, before you invoke any operation on WebService, you will be first getting Service object, then Port object and invoke methods on Port object. When you get Service Object, you can pass the WSDL URL as one parameter and ServiceName (QName) as second parameter. Most of time we use default constructor without any parameters to get Service object. But you can use other constructor and pass 2 parameters. The WSDL URL will have HttpServers host and port, and rest of the url for wsdl will be the same.
    In our env, we have similar requirment. SOAP BPEL Process WebServices are deployed on WLS 10.3.1 on a Cluster with 2 ManagedServers. We have Apache Proxy in front of this Cluster. All our WSDL requests goes to Apache host and port + wsdl url. This inturn goes to one of the managed servers at a time in round-robin. This is working. In httpd.conf we gave "MatchExpression / " so that any request from apache will go to cluster.
    HTH
    Ravi Jegga

  • Call WebService through EJB

    Hi friends,
    I have created one web service , how can i call that web service through ejb . Is this possible ?.. can anybody help me....
    Thanks and Regards,
    Krish

    Hi Krish,
    This recent [thread|How to Call webservice by another webservice; deals with the same question. See the answers / links there.
    Hope it helps!
    -- Vladimir

Maybe you are looking for

  • Unable to install any adobe product

    Recently I uninstalled my Adobe InCopy and InDesign (CS6) applications using the Adobe installer. Something went wrong with one of them, as it did not properly uninstall CS6 and instead displayed an uninstaller error. I've been troubleshooting for a

  • IBook to iMac Slideshow

    I have a friend coming over with her iBook & was wondering if there was a quick way to hook her iBook up to my iMac to view a slideshow she has. Would you just do an ethernet to ethernet connection?

  • 2nd time help.

    Hello, i allrady post a question but it didn't solve me the probleam http://discussions.apple.com/thread.jspa?threadID=542542&tstart=0 I did as i told to, but the songs are not rated at all. in my Ipod is rated, last time i format the computer and sy

  • Werb services to proxy- synchronous scenario

    Hi experts,    Can anyone help me with the detailed scenario of  synchronous WEB SERVICES TO PROXY step by step. I tried searching in sdn but  no luck. Also tell me  here that XI will expose the Outbound Interfaces as a Web Service Interface.  how th

  • 0x80070005 when trying to push Registry Settings via GPP on 2008R2 Servers

    Hello, I'm trying to push registry settings via Group Policy Preferences to a group of Windows Server 2008 R2 to set dynamic RPC ports range, but I keep getting an error 0x80070005 Access is denied The Registry Settings I need to push are these Ports