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

Similar Messages

  • RFC call from java webdynpro

    Hi,
    I'm creating a Java Webdynpro where I call RFC's from SAP.
    For the images in the webdynpro, I call the standard SAP function 'CVAPI_DOC_VIEW'
    When I execute the function in SAP, I get the url to the contentserver with the correct image.
    After calling the same function in my Java Webdynpro, the url is empty.
    I've checked the importing parameters after calling from webdynpro and SAP and they are the same.
    After debugging, I saw that the function 'CVAPI_DOC_VIEW' is the problem. He's exporting an empty url after calling from the webdynpro.
    Does anybody knows the possible fault and solution for my problem?

    I'm not an ABAPer but the last time I've dealt with DMS from Web Dynpro an ABAPer wrote a custom function that gets the file content (XSTRING) by sending DMS parameters (documenttype, documentnumber, documentversion, documentpart).
    After getting the XSTRING from my Web Dynpro Java, I convert it to byte[] and created URL by using WDResourceFactory.
    Hope it helps...
    Omri

  • Java webdynpro Iview accessing different SAP system

    Hai,
    I have created two Java webdynpro Iview for ess leave application, in the Iview application parameter, I have given the below value
    IVIEW1
    sap-wd-arfc-useSys=SAP_R3_HumanResources:200&sap-wd-arfc-useSys=SAP_R3_HumanResources_MetaData:200.
    IVIEW2
    sap-wd-arfc-useSys=SAP_R3_HumanResources:300&sap-wd-arfc-useSys=SAP_R3_HumanResources_MetaData:300
    JCO SAP_R3_HumanResources is mapped to client 100, I have created two more JCO's and the metadata SAP_R3_HumanResources200 & SAP_R3_HumanResources300
    We have a CUA system and the client number of this system in 099. Apart from that we have client 100, 200 & 300. My userid is created in client 099 and 200 and Iview "IVIEW1" is assigned to my userid. When I try to access the Iview from portal I am getting a error, I checked the trace file and found the connection is going to client 100.
    Then I created my userid in client 100 also and try to access Iview1, its going to client 200 without error.
    When I use "SAP_R3_HumanResources:200&sap-wd-arfc-useSys=SAP_R3_HumanResources_MetaData:200" it looks like system will first connect to SAP_R3_HumanResource and then connects to client 200. Is this behavior normal.
    What I want to do is with the "SAP_R3_HumanResources:200&sap-wd-arfc-useSys=SAP_R3_HumanResources_MetaData:200" I want to access client 200 without creating a id in client 100. Please let me know how to do or is there any other solution to achieve it.
    Regards,
    H.K.Hayath Basha.

    HI,
    Edit the JCo's, try to point the JCo's to 200 Client.
    so that the iview can points to the 200 client right,
    May be it will help u,
    Cheers,
    Apparao

  • Calling a Java WebDynPro App without SWFVISU setup

    Hi Workflow gurus,
    Good day!
    I am currently studying an implementation for a clock in clock out solution for ESS/MSS wherein the workflow task is calling a transaction directly from the backend when accessed via the UWL. However, when invoked, instead of showing the standard screen from ECC, a java web dynpro application is being called. I checked with the set up in SWFVISU and none was maintained for the task.
    Now I would like to check if there is any other way of calling a java web dynpro application even without the SWFVISU setup. If my understanding is correct, this config creates the necessary xml files so that the UWL can call an existing Java dynpro
    Regards,

    Hi,
    You don't need SWFVISU for calling Java Web Dynpro application. You can configure everything by doing the necessary XML configuration in Portal. SWFVISU is only to help to make the XML configurations - if you have configured the task in SWFVISU, Portal can create automatically the XML configuration for a task. (SWFVISU has some other purposes too, but they are not relevant in your case.)
    In other words, you can manipulate the XML configuration directly in Portal.
    Regards,
    Karri

  • Calling webservice in webdynpro component

    Hi All
         I am working on a scenrio where I need to call a webservice outside SAP system into my webdynpro abap component.Kindly let me know how to achieve this.
    Regards
    Sudheendra

    In Web Dynpro ABAP there is nothing special about calling a web service.  Unlike WD Java, there are not dedicated model object types in WD ABAP.  WD ABAP simply has the ability to interact with other ABAP development object types.  You can call function modules, ABAP classes, even modules in old dynpro apps. 
    So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class.  This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object.  You can then call the proxy class from WDA just like any other type of ABAP class.  There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class.  The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.

  • Help with calling a java application from inside another one

    Hello!
    I am having this problem which is getting on my nerves and dont know how to solve..
    I want to call from my java application, another java application. So i use the exec command. Then i want to read the output of this execution from my own application, (the "parent" process).
    But it doesn work properly. Something seems to happen and i dont get the whole output.
    The java program i want to call is created for running an application created with Matlab java builder.
    This program works when called from cmd, but seems not to work when called from inside a java application.
    The code of my java application is:
    Runtime rt = Runtime.getRuntime();
    Process child;
    // The java class getmagic is a special kind of java file that uses classes that work in matlab. It uses a component (.jar) file that is created from matlab java builder. thats why it wants the -classpath and the rest options.
    //I hope you wont get messed up in here.
    String[] callAndArgs = {"java","-classpath",".;C:\\Program Files\\MATLAB\\R2006b\\toolbox\\javabuilder\\jar\\javabuilder.jar;..\\MagicDemoComp\\magicsquare\\distrib\\magicsquare.jar -Djava.library.path=C:\\Program Files\\MATLAB\\R2006b\\bin\\win32;","getmagic","4"};
    try{
    child = rt.exec(callAndArgs);
    InputStream is = child.getInputStream();
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    String line;
    while ((line = br.readLine()) != null)
    System.out.println(line);
    is.close();
    System.out.println(child.waitFor());
    System.out.println("Finished");
    }catch(IOException e) {
    System.err.println("IOException starting process!");
    }catch(InterruptedException e) {
    System.err.println("InterruptedException starting process!");
    The java program (getmagic) thats uses matlab gives the following output (after some time) when called in cmd with argument 4
    Magic square of order 4
    16 2 3 13
    5 11 10 8
    9 7 6 12
    4 14 15 1
    My program shown above only prints:
    Magic square of order 4
    1
    Finished.
    Do i do something wrong? How can i get the rest of the output???
    Thank you very much in advance,
    Stacey
    PS: I am sorry for the length of my post.

    Hello CaptainMorgan08, thanx for the instant reply.
    I tried, but no, i cant.
    Because i cannot include this java aplication that uses matlab into my application, cause 1) it needs special arguments in the compiler and during execution so it can be run and 2) it uses classes that java doesnt have. only the java-like matlab code.
    For example it uses:
    import com.mathworks.toolbox.javabuilder.*;
    import magicsquare.*; //the component which is made from matlab java builder.
    So i cannot compile it with my application!
    If you know of a way, please let me know!
    I know i might be missing something.. something that is obvious to you.. but i ve been working days=nights hardly no sleep..so you can excuse me if i say something foolish..
    Message was edited by:
    Stacey_Gr

  • How to call Java WebDynpro iViews from Portal (Portal Content Directory)

    Hello everybody,
    I am trying to call a Java WebDynpro iView, which was created within the Enterprise Portal and is stored in the portal content directory (pcd).
    I have created an HTML-iView in VC, where I have put in the pcd-link into the default-url field (pcd:portal_content/com.sap.pct/every_user/com.sap.pct.cprxrpm.ppmdc/com.sap.pct.cprxrpm.iviews/com.sap.pct.cprxrpm.iviews_cprojects/com.sap.pct.cprxrpm.cpr_projects). This iView is calling the cProjects WebDynpro Application. But after I run my model, the portal page is running and running, but nothing happens.
    I did the same with transactional iView, which was also created in the Portal before. I have also created an HTML-iView in VC, where I have put in the pcd-link into the default-url field (pcd:portal_content/IBU_content/SAP_for_Service_Provider/com.sap.pct.issp.ps.professional_services/com.sap.pct.issp.prs.iviews/com.sap.pct.issp.prs.display_sd). This is working fine!
    What I also tried is to call another VC-Model with an HTML-iView. Here I have put-in into the default-url field the pcd-location of my VC-model (pcd:portal_content/IBU_content/SAP_for_Service_Provider/com.sap.pct.issp.vcmodels/com.myComp.myProduct.1DM9.CreateEngagement/com.myComp.myProduct.iviews/com.myComp.myProduct.1G62.Cprojects_neu). This is also running fine!
    Now I do not understand the difference between this three objects. There are all iViews within the portal but the WebDynpro iView is not callable through a HTML-iView in VC.
    Could you help me in this case? Your help is very appreciated!
    Thank you in advance.
    Best regards,
    Aylin.

    Hi Marcel,
    when you mean the preview within the portal, yes, it is working fine.
    URL is not the way to solve my problem. I am working with IDES-Systems. This is our Demo System within SAP. I have to build my VC-Model in a Master IDES-System which will be transported than into the other IDES-Systems. The URL of the WD is not the same in the other systems. It is changing depending on the several Sysems. But the pcd-location is in all systems the same. Therefore I have to specify the pcd-location of the application.
    Is there a restriction with WD within VC?
    If we can do some kind of a netmeeting, I can show you my problem exactly.
    Thank you.
    Regards,
    Aylin.

  • CNTL_ERROR while calling a function module from Java webdynpro

    I am calling a RFC function module from javawebdynpro app
    which inturn calls a function module performing BDC on CAPP transaction. When I run this from SE37 of the same system or a different system everything works fine. But when called from Java webdynpro app, it raises a CNTL_ERROR exception and creates a short dump.
    Any help on this is highly appreciated

    Good catch, BI Learner. This was exactly it: when assigning the values from SOURCEFIELDS directly to the import/export parameters, you have to make sure that the types are EXACTLY the same, otherwise it will not work (the routine stops with an error when calling the FM, but there is no dump).
    Therefore, to solve my problem, I created the declarations precisely as expected by the FM and assigned the values to these fields:
    DATA:
          SOURCEVAL TYPE  /BIC/OIINVQTY,
          SOURCEUOM TYPE  /BIC/OIUSUOM,
          USITM TYPE  /BIC/OIUSITM,
          TARGETUOM TYPE  /BIC/OIUSUOM,
          CONVERTED_COST TYPE  /BIC/OIINVQTY.
    DATA PRODUCTION_UOM TYPE /BIC/OIUSUOM.
    " get the Production UOM
        SELECT SINGLE I~/BIC/USPRDUOM
          FROM /BIC/PUSITM AS I
          INTO PRODUCTION_UOM
          WHERE I~/BIC/USITM = SOURCE_FIELDS-/BIC/USITM AND I~OBJVERS = 'A'.
        IF ( SY-SUBRC = 4 ). " no records found
          "RAISE PARTNO_NOT_FOUND.
          RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD.
        ENDIF.
    " load the parameters
        SOURCEVAL = SOURCE_FIELDS-/BIC/USFRZMFC.
        SOURCEUOM = SOURCE_FIELDS-BASE_UOM.
        USITM = SOURCE_FIELDS-/BIC/USITM.
    " then you can call the FM
        CALL FUNCTION 'Z_CA_CONVERT_US_COST'
          EXPORTING
            PSOURCEVAL                = SOURCEVAL
            PSOURCEUOM                = SOURCEUOM
            PUSITM                    = USITM
            PTARGETUOM                = PRODUCTION_UOM
          IMPORTING
            PTARGETVAL                = CONVERTED_COST
          EXCEPTIONS
            CONVERSION_NOT_MAINTAINED = 1
            PARTNO_NOT_FOUND          = 2
            OTHERS                    = 3.
    " ... [do the rest]
    Thanks for your help,
    Dennis

  • How to call Java Webdynpro from UWL

    Hi All,
    How to Call the Java Webdynpro Application from UWL by task?
    I Know about the TX - SWFVISU, briefly explained about the parameters to be maintanied for approval task from workflow.
    What all the necessary parameters (settings) to be maintained while Developing Java WD Application?
    Thanks in advacne
    Ganesh

    Hi Ganesh,
    See if the following threads help:
    /thread/623279 [original link is broken]
    Webdynpro to UWL
    Bye
    Ankur
    xxxxxx (please read forum rules)
    Edited by: Armin Reichert on Jan 17, 2008 10:19 AM

  • Calling a java function from xquery

    Hello,
    I'm pretty new to ODSI and xquery, so forgive me if what I'm asking is too trivial, but I need to find a way to call a java function from inside xquery. I know xquery can do this through external functions, but can't find any example on how the query prolog declaration should be, nor how the function should look like. Could someone enlighten me?
    Thanks,
    Pedro Ivo

    You can do this 2 ways that I know of (Mike probably has more ideas too)
    1. Register an inversion function:
    [How to use an inversion function|http://download.oracle.com/docs/cd/E13167_01/aldsp/docs32/dsp32wiki/Using%20Inverse%20Functions%20to%20Improve%20Query%20Performance.html]
    2. Create a physical data service based on a java function. I have used this approach for both custom JDBC database operations and straight Java processing, with pretty good results.
    Good luck,
    Jeff
    Edited by: jhoffmanme on Apr 14, 2010 9:57 AM

  • Calling SAP GUI Client from a Java Webdynpro app.

    Hello experts,
    We would like to call the SAP GUI client from a java WebDynpro application running without portal or ITS. Can it be done by having a web link, with mime registration in internet explorer to kick off the SAP GUI ? (similar behavior with a SAP favorite link saved on the desktop).
    many Thanks.

    Hi,
    Webdynpro possibilities:
    1. You can try to use LinkToUrl.
    with reference to file://<exefile> or your weblink with the mime type (possibly some java coding can be required; I can try to help).
    2. other option is to use IFrame and you can use either href to your exe or weblink
    Web Explorers:
    1. IE: It should work. if you point to exe file popup window will be displayed asking for action (run, save, cance).
    2. Firefox: the only way I know to make it work is to modify nsHelperAppDlg.js file (if you need Firefox I can tell you how to modify the file).
    Kind Regards, Jack

  • Calling JAVA webdynpro applications from SAP Business workflow

    Experts,
    Is it possible to call JAVA webdynpro application as a task from SAP Business workflow? If yes, please pass on any links to relevant documents.
    Thanks,
    Deepak

    Hello,
    You would probably want to use UWL in the portal. From UWL you can launch tasks from portal, and with proper configuration (for example with the help of transaction SWFVISU) you can easily start web dynpro applications from UWL.
    I suggest you go trough the SAP documentation about UWL. Start for example here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/39/a1bb5c4c0d4ab4a417e87ef35f1efa/frameset.htm
    Regards,
    Karri

  • Custom Button in Sap Standard webdynpro Component

    Hi Friends,
    i have one requirement
    1. want to added one custom Button in SAP SRM standard webdynpro component - This is done using component configurator
    2. but when i click this button, one   Z webdynpro component should run,
    Can any one please give me  idea on this
    Thanks and Regards
    Kumar Srini

    Hi,
    copy below given code and paste inside of your on action method,
    Note: just change the url address
    data: l_window type ref to if_wd_window_manager.
    data: l_cmp_api type ref to if_wd_component.
    data: str             type stinrg.
    data: result        type if_wd_window.
    CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
    application_name = 'ZWEBDYNPRO COMPONENT NAME'
    IMPORTING
    out_obsolute_url = str.
    l_cmp_api = wd_comp_controller->wd_get_api( ).
    l_window = l_cmp_api->get_window_manager ( ).
    result = l_window->create_external_window(
    url = str ).
    result->open( ).

  • Calling a Web Service from Java Webdynpro

    Hi,
    Can any one give me step by setp details on how to call a Web Service from Java Webdynpro ?
    I tried creating a model using Import Web Service Model but when I completed creating the model, I got some errors as shown below.
    Error               The method setRouteGeometryLineArray(double[][]) in the type Trip is not applicable for the arguments (double[])     ComplexType_Trip.java     WS_INVOKE/gen_wdp/packages/com/cintas/test/model/p1     line 249
    thanks
    SBK

    Hi SBK,
    I assume you may already have read the [help guide|http://help.sap.com/saphelp_nw70/helpdata/EN/81/12703e5da3e946e10000000a114084/content.htm] This gives a pretty good idea of how to do it (step by step).
    Is there a typo in the error you pasted?
    Error The method setRouteGeometryLineArray(double][) in the type Trip is not applicable for the arguments (double[]) ComplexType_Trip.java WS_INVOKE/gen_wdp/packages/com/cintas/test/model/p1 line 249
    The square brackets [] after double in the method call appear to be reversed. Is that also in the code? or just a mistake here?
    Hope this points you in the right direction.
    BRgds,
    Simon

  • How to call parent view event or method from popup in java webdynpro

    Hi ,
    I have  view  in my webdynpro component. I created a  button, when i click i am opening  a popup window.
    In side  popup window i am doing some search criteria. I want call a parent view method from popup window and populate search results in parent view table control.I can able to pass the data through context mapping. But i want  a  custom method where i want  to write a code to populate the table control ( i don;t want  to use the wdDoModifyView() method).
    Please help me.
    Thanks
    Aravinda

    Hi,
         The methods in a view are only accessible inside same view. you cannot call it outside the view or
         in any other view although its in same component.
         If you want to have a method in both views, then create the method in component controller and
         from there you can access the method any where in whole component.

Maybe you are looking for

  • Why won't iPhoto 9.1.5 update to 9.2

    I'm trying to update my iphoto from 9.1.5 to 9.2 and it keepds giving me the message that it is the current verision.  I wont be able to use icloud until i update. Please help

  • Macbook pro no airport installed

    Hi all i have problem in my macbook pro cannot detect airport even i already reinstalled my OSX leopard...anybody can help me regarding this issue.

  • How cn i download new song in my ipod

    how cn i download my new songs in my ipod

  • Push not working with mobileme.

    Hey, got my iphone 3gs a few days ago and despite turning push on and also fetch on every 15 mins the emails only come through when i manually open mail and click the refresh button, some emails that should have arrived 5+ hours ago. any ideas? thank

  • af:query Search

    Hi I use JDev 11.1 with ADF BC, and i use <af:query>, the problem is all field are appear by default at search block, i need to hide some attribute from search block and when i click in advance i can to add that field already hidden. Regards