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

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.

  • WebDynpro component interface and Models

    Hi there,
    I'd like to know how I could reuse Models and WebDynpro Interfaces from Projects to Projects.
    For instance, I have created models and webdynpro interface in Appication1 in Project1. Now, I have created Project2 and Application2 and would like to re-use the components and models that I created in Application1. Is it supported in NW preview version or any production version?
    Any help will be appreciated.
    Thank,
    Paul

    Hi Paul
    > Does that mean inheritance is supported as well? If I
    > made changes tot he DC of Proj1/App1 after adding it
    > tto Proj2/App2, would the changes be imported
    > automatically? Do I need to do a re-import model to
    > refresh the models?
    DC dependencies are resolved automatically. If you build a DC which depends on another it's ensured, that the "used" DC is built before the using one. This includes every dependency to a public part entry, even model dependencies.
    > In the NW Sneak Previw, how do I craete a WebDynpro
    > Development Component project?
    "File->New->Development Component Project". If this shortcut doesn't exist in your IDE version, select "New->Project" and then choose "Development Component" in the list on the left side (I hope it's there ;).
    Another hint: Since you don't have the Design time repository (DTR) active in Sneak Preview, you can only work with the "LocalDevelopment" repository. This is not really a problem, since it's possible to transport the DCs to the DTR later.
    Regards
    Stefan

  • Calling webdynpro application

    Hi,
    Is it possible to call webdynpro component by using <Frame> tag? If so is it possible to get the values from webdynpro browser to sapcrm browser? I have a button in WEBUI, when I click on the button it has to call webdynpro application? Is it possible through Frame tag in .html? after opening webdynpro application after doing some calculations, I need to get some data back to webui screen
    s it possible?
    Regards,

    Hi,
    Is it possible to call webdynpro component by using <Frame> tag? If so is it possible to get the values from webdynpro browser to sapcrm browser? I have a button in WEBUI, when I click on the button it has to call webdynpro application? Is it possible through Frame tag in .html? after opening webdynpro application after doing some calculations, I need to get some data back to webui screen
    s it possible?
    Regards,

  • Calling a method in another webdynpro component

    Hi,
    I have two webdynpro components say Comp A and Comp B.
    In Comp A I had a view View A and in Comp B I had a View in View B.
    In View A, I had a method X, I want to call this method in View B of Comp B.
    How I can do this?
    I created a public part of Comp A and tried to add in used webdynpro components. But in the list I am not able to find it.
    Please help.
    Regards
    MQ

    Hi,
    If both the components Comp A and Comp B are in the same DC you can use the interface controller to call the method in comp A. Add this comp A interface controller in Comp B controller by going to the properties tab, so that you can access the methods of comp A interface controller.
    If you have the components in different DC's you can follow the below steps:
    Go to public parts in DC meta data section and create a public part by selecting the first radio button option and add the Comp A by selecting the option (Webdynpro Component-->Selected Entities).
    Click on Finish button so that public part for comp A is created.
    Now build the DC and go to Used Webdynpro components of CompB, give some name and browse to select the used webdynpro component, it will show you the Comp A public part select it and try to finish it.
    Once again build the Dc after doing this.
    Now  you can access the method of comp A in Comp B
    wdThis.wdGetCompA.getX()...
    Hope this helps you..
    Regards,
    Saleem

  • How to call a RFC of a remote system from an ABAP webdynpro component

    Dear Experts,
    I am a newbie in ABAP Webdynpro.
    I am working on a requirement where I have a webdynpro component on ECC system.I need to call a RFC located on CRM system from my webdynpro component on the ECC system.
    How do I do that ?? Please help.
    Regards,
    Mamai.

    Calling RFC from some other system is same as local except the difference is that you have to give destination name while calling.
    And the regarding the method of calling it depends on your FM.
    if it is big RFC with complex structure, you can create the service call for it with destination given as RFC desitination.
    if it is simple straight forward RFC you can directly call it.
    for creating RFC service call call use this method
    1. Starting the Wizard
    To start the wizard, position the cursor on the Web Dynpro component to be edited in the object list at the left margin of the
    workbench window. Open its context menu and choose the entry Create->Service Call. The wizard is started and leads you
    through the creation process.
    Press Continue.
    2. Choice of Controller
    On the second dialog window of the wizard, you can choose whether the service call is to be embedded in an existing
    controller or whether a new controller is to be created for this purpose. Service calls can only always be embedded in
    global controllers u2013 that is, in the component controller or in additionally created custom controllers. It is not possible, to
    embed service calls in view controllers.
    a. Select radio button Use Existent Controller
    b. Do not change the default entry for component: <CC name>
    c. Enter for controller COMPONENTCONTROLLER
    d. Press Continue.
    3. Service Type and Service Selection
    a. You now select, which service type should be used for this service call. Select radio button Function Module. Fill the
    destination here. Press Continue.
    b. Select the service: for Function Module enter <RFC name>. Press Continue.
    4. The Required Methods and Context Elements
    On the two subsequent dialog windows, default values are listed for giving names to the context nodes and attributes
    required by the service call as well as to the required methods. The proposed names are based on the names of the
    embedded service, but you can change them as required. However, heed the respective notes in the corresponding dialog
    box.
    a. Adapt Context: Select from Nodes/Attributes . Press Continue.
    b. Specify Method Name: leave all entries as provided: Component:  Controller: COMPONENTCONTROLLER Method: EXCUTE_ Press Continue.
    5. Completing the Choice
    When you have confirmed the last dialog box, the generation is triggered. Afterwards you now have the required methods
    and contexts at your disposal for using them within your Web Dynpro component.
    or if you want to call directly the use the call statement with destination

  • Issue while calling COBOL program from Component Interface in PeopleSoft HRMS 9.2

    In HRMS 9.2, I am facing problem while calling the remote call function through component interface. In GP_ABS_EESS_REQ (Navigation Main Menu > Self Service > Time Reporting > Report Time > Absence Request) component, we have “Forecast Balance” button as shown below:
    This button checks for eligibility for leave being applied. While using component interface, it executes FORCAST_PB field change event peoplecode which contains a remote call to a cobol program as below:
    RemoteCall("PSRCCBL", "PSCOBOLPROG", "GPPOLRUN", "NET_RETURN_CD", &NET_RETURN_CD, "NET_TXN_ID", &NET_TXN_ID, "NET_TXN_NUM", &NET_TXN_NUM, "NET_MSG_ID", &NET_MSG_ID, "NET_MSG_PRM_CNT", &NET_MSG_PRM_CNT, "NET_MSG_PRM1", &NET_MSG_PRM1, "NET_MSG_PRM2", &NET_MSG_PRM2, "NET_MSG_PRM3", &NET_MSG_PRM3);
    I am getting following error while executing it via component interface:
    (2,148) - Think-time PeopleCode event (RemoteCall), but a SQL update has occurred in the commit interval. (2,148) FUNCLIB_GP_ABS.FCST_PB.FieldFormula Name:Abs_ForecastExec  PCPC:5311  Statement:60
    Called from:GP_ABS_EESS_REQ.GBL.DERIVED_ABS_SS.FCST_PB.FieldChange  Statement:26
    (91,34) - Error changing value. {Z_GP_ABS_EESS_REQ_CI.FCST_PB} (91,34)
    (18,2) - Data being added conflicts with existing data. (18,2)
    (91,37) - Error saving Component Interface. {Z_GP_ABS_EESS_REQ_CI} (91,37)
      After commenting out this line of code, I was able to save the CI successfully. But I need to execute this statement before saving CI so that I can check the eligibility for leave being applied. Can anyone help me on this issue?

    When I tried to read the file using `CAT -vt <filename>`, I could see that the file contains special characters such as ^M and ^I. This may be because of the file transfer mode(but I transferred in ASCII mode, still the special characters where appearing).
    I opened a VI editor and pasted the same script. Save the file, tried to run the script, It was working fine.
    I still didn't get how the special characters appeared. I used notepad++ as my editor.

  • Calling a potal application method in webdynpro component(class)

    Hi All,
    I have a requirement where i need to call a method created in a portal application(.par) in a webdynpro component.
    Any Pointers??
    Regards
    Radhika Kuthiala

    hi radhika,
    You need to create a portal service to call that method from webdynpro.
    I am providing u a url, hope it will help you.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0446f5c-fcb9-2910-e082-88becbe3ddc9
    Regards,
    Ravi Shankar

  • Calling pdk component in webdynpro

    Dear All
    is it possible to call a pdk component in webdynpro
    Please provide your inputs
    Thanks
    Karthi D

    Karthik,
    When you say call a portal component, do you want to navigate away from your webdynpro and call a any portal component?
    If yes,It is possible to call portal component. Just create an Iview for the portal component and assign that into portal page.
    Call the component using EPCF navigation api inyour web dynpro by passing pcd location of the page.
    Ram

  • How to call standard CRM transactions into Webdynpro component

    Hi,
    i have a requirement where i need to call the the standard CRM transaction like <i>activity worklist</i> and <i>activity creation</i> into the webdynpro component. Please let me know how to do it, would appreciate it, if provided with a sample code.
    Thanks,
    Suri

    Hi Suri,
    You could use suspend/resume mechanism to jump to the ITS version of these transactions (in case they are ITS-enabled). Starting the SAPGUI from within the browser environment, transferring data/starting a transaction and then returning to the browser is not possible.
    Best regards,
    Thomas

  • Can't add GP Component Interfaces to WebDynpro Callable Object

    Hi, I've just installed the IDE for Composition Environment 7.1 SP3 and I'm following the tutorial to create a WebDynpro Callable Object for a Guided Procedures that I'm working for a demo. It seems that there is something wrong with my NWDS, 'cause once I add the the required DCs dependencies to my project for caf/eu/gp/api and caf/eu/gp/api/wd and mark them for Design time, I cant add the to any new component as implemented component interfaces 'cause the list for adding them is empty. I really don't understand why this is happening, 'cause that's the way the tutorial explains it to work. I've already try to reinstall the NWDS, without success. Has any of you face the same problem?
    Thanks for you answer.

    Hi,
    You should not create Design Time dependency. It is not required.
    Ensure only that you have created a Build Time dependency on the public of "caf/eu/gp/api and caf/eu/gp/api/wd".
    After creation of dependency ensure that you have build WD DC.
    Check if it works now ?
    Regards,
    Ashwani Kr Sharma

  • Is it possible to call module component's function through interface function

    Hi,
         I see this in the livedocs.
    "In general, if you want to set properties on controls in the module by using external values, you should create variables that are bindable. You then set the values of those variables in the interface’s implemented methods. If you try to set properties of the module’s controls directly by using external values, the controls might not be instantiated by the time the module is loaded and the attempt to set the properties might fail."
         I have an extended component in a module. I need to call that component's funcion from the interface function. i.e My main appication call the interface funcion, and that interface funcion has to call the component's funcion. Is it possible. I get error that the component is null, if I try this. Is there any way to do this.
         Thanks in advance.

    I accomplished this, by dispatching a event from the module, and handling it in the module itself. In the handler I am able to access the component. However it is possible only when I use ModuleLoader. I tried the same using ModuleManager. It didnt work. I am adding the listener in creationComplete event. The event was triggered properly. But the listener was not invoked.
    Below is the TestModule i used. In this setLabel is the implemented function.
    <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark" implements="TestInterface" creationComplete="onCreate()"
               xmlns:mx="library://ns.adobe.com/flex/mx" layout="absolute" width="400" height="300">
        <fx:Script>
            <![CDATA[
                [Bindable] public var labelText:String = 'Initial Text';
                public function onCreate():void {               
                    this.addEventListener("test",testListener);
                public function setLabel(s:String):void {
                    trace(getQualifiedClassName(parentDocument));
                    this.labelText = s;       
                    triggerEvent();
                public function triggerEvent():void {
                    trace('triggering event');
                    dispatchEvent(new Event("test",true));
                public function testListener(event:Event):void {
                    trace('event caught');
                    trace(moduleLabel.text);
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <mx:Label id="moduleLabel" text="{labelText}"/>
    </mx:Module>
    With ModuleLoader I get the following output in console, when the setLabel function is called
    ModuleTest
    triggering event
    event caught
    test
    With ModuleManger,I get the following output. The event listener is not invoked.
    null
    triggering event
    Also while trying different options, in between I tried using parentDocument. I added the below line in the interface function.
    trace(getQualifiedClassName(parentDocument));
    This line printed the correct parent class name, while using ModuleLoader. But printed null with ModuleManager.
    Following are the functions in main application to load the module using module manager.
                public function onCreate():void {
                    loadTestModule();
                public function loadTestModule():void {       
                    var url:String = '';
                    url += 'TestModule.swf';
                    modInfo = ModuleManager.getModule(url);
                    modInfo.addEventListener(ModuleEvent.ERROR,moduleReady);
                    modInfo.addEventListener(ModuleEvent.READY,moduleReady);
                    modInfo.load(null, null, null, moduleFactory);
                public function moduleReady(event:ModuleEvent):void {               
                    if (event.type == ModuleEvent.ERROR) {
                        trace(event.errorText);
                    if (event.type == ModuleEvent.READY) {
                        mod = modInfo.factory.create() as TestInterface;
                        var el:IVisualElement = modInfo.factory.create() as IVisualElement;
                        this.addElement(el);                   
    Am I missing something when I use ModuleManager.

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

  • Calling a java webdynpro component inside a SAP Workflow

    Hi Experts ,
    Is it possible to call a java webdynpro component inside a SAP Workflow  from the task .
    If yes please let me the procedures .
    Regards
    Sarmistha

    Someone has posted this, Take a look if it helps you:
    "1. Activate your service in transaction SICF;
    2. Activate the WS_HANDLER in SICF (probably you have to do more in SICF, SAP notes will be given to you in your browser when you want to call the service);
    3. Make the correct settings in WF_HANDCUST;
    4. Do ofcourse SWU3 including webserver activities;
    5. Define how you want to call the service via WF_EXTSRV including parameters;
    6. Generate a task from your defined service in WF_EXTSRV;
    7. Incorporate this task in your workflow definition;
    8. Test your workflow. Here you probably get some errror messages that the service cannot be called by for instance inactive ICF services. Activate the correct paths in transaction SICF."
    Regards, IA
    <MODERATOR: For reference, that 'Someone' was Joost in [this thread|Re: Callback from WebDynpro to Workflow]>
    Edited by: Mike Pokraka on Jun 19, 2008 4:52 PM

  • Wda: call method from a component interface definition (cid)

    hello,
    I created the following scenario:
    - I have a Main-component "m"
    - "L" is a component interface definition (cid) which force both cid-L-implementating components  "L1" and "L2" to extend and fill the method "set_COMP_USAGES()".
    - I have other cid´s (A-C) too
    - at runtime only one of the components "L1" or "L2" is created and the mother-component M holds component-usages (ref to) of the chosen variants of A-C and L as an attribute in the component-controller of m.
    now my problem: my aim is to call a method in m at runtime which is defined at designtime in my cid L (set_COMP_USAGES() )and decided at runtime which variant of this method is chosen (the one from L1 or L2). in this method the references of comp_usages other cid´s should be passed to L1 or L2.
    or short: how can I call a method from a cid-implementating component at runtime via a IF_WD_COMPONENT_USAGE reference (ref to) to this component?

    I got the solution:
    data: L_INTF_CONTROLLER         type ref to ZIWCI_Z_ITF_CID_L.
      L_INTF_CONTROLLER ?= wd_this->COMPONENT_USAGE_L->GET_INTERFACE_CONTROLLER( ).
      CALL METHOD l_intf_controller->set_comp_usages
        EXPORTING
          comp_usage_a = wd_this->COMPONENT_USAGE_a
          comp_usage_b = wd_this->COMPONENT_USAGE_b
          comp_usage_c = wd_this->COMPONENT_USAGE_c.

Maybe you are looking for