Call WDJ from WDA

Hi
Is is possible to call Web Dynpro Java components from Web Dynpro ABAP ones?  We currently have an SAP Portal based on NW2004 and are just upgrading to ECC6.0 and wish to use WDA.  However, it is likely we will want to integrate the WDA components with existing WDJ components rather than rewrite a lot of java code to ABAP.
Any ideas anyone?
Regards
Ian

Hi Ian,
the 2 WD application sets should coexist ok.
Navigating directly from one to the other is like any URL link.
I guess you knew that.
You can not treat them as subcomponents.
If you hope to do context level component embedding,
then I believe you are without luck.
The framework assumes the Component to be embedded is on the same stack.
Evening embedding WDA1 inside WDA2 on another ABAP stack is limited to URL
suspend and resume plugs.
I tried exactly what you want in 2 ABAP stacks without luck.
It all comes back to SESSION.  I assume the JAVA stack cant work with the ABAP stacks session. Dont know WDJ enough to be sure.
So only rudimentary url parameter passing to pass data back and forth.
I hope your components are nicely encapsulated and can be called via URLs
regards
Phil.

Similar Messages

  • Calling WDJ from WDA application

    Hi experts,
    Can anyone please tell me that how 2 call a WDJ application from a WDA application. Please explain in detail as i am complete novice in this field.
    thnx.

    Hi Thomas and experts,
    I have requirement where i need to call WD java standard application.
    My requirement : I am displaying teamview in my MSS through OADP by using WD ABAP...
                                 Initial Screen displays columns like Position, Employee name , Job ...etc
                                     when manager select position in teamview ....it has to check whether positions region went live or not.
                                    I) IF position region went live then it has to open 3rd party tool and pass parameters(Here i am open 3rd      party URL and passing parameters)
    Here my requirement, 2)Already we have standard WDJ application which is using as of now, so if positions region has not gone live then i have to call standard WDJ application with passing parameter and skipping initial screen which is displaying teamview and continue with position details
    Is this possible through portal which explained above. can any one suggest me how to proceed .
    Thanks in advance...
    Regards,
    Farooq

  • Getting values from a function module called in a WDA method

    Friends,
    I am trying to execute a function module from WDA.
    I have created a service call for the function module. The function module takes values from the user, looks up the corresponding values of another field and returns the values in an internal table.
    I am using the "Method Call in Used Controller" of WD Code wizard to call the function module.
    When the event handler method containing the call to the function module is executed, nothing happens.
    I am not sure how to pass values to the function module and to get the return values from the function module.
    I am new to using function modules from WDA. Please help me out.
    Thanks and Regards.

    Rashmi,
    Is the function module intended to collect input data from the UI and process it? - Yes
    If yes, then the input (importing parameter) to the Function Module is a table of values (which should be ideally from the context mapped to the Table UI Element). - The importing parameter is a single value NOT a table and is mapped to the view context.
    Now this table UI Element is bound to the view controller context , which in turn is mapped to the component controller context. And you are indeed being able to read the value of this internal table in the component controller method where the function module is being called by means of get_static_attributes_table (Is this right? - Yes, I am able to read the table of values that is passed from the component controller view to form view context by using get_static_attributes_table.
    Or are you being able to read it in the event handler method of the view controller and not being able to read it in the component controller method) -
    The function module takes a single value as import parameter and returns a table of values as return value.
    It works fine when no importing parameter is being used and returns the table of values that is getting passed from component controller context to form view context when i am able to read it using get_static_attributes_table.
    Now the question is: how to pass the import parameter value to the function module. I assumed since the importing parameter is a context node (like the return values are), i should set the value ( captured when the user enters the value in the form) to the importing parameter context attribute using set_attribute method. Since it is mapped to the component controller context, i assumed it will get passed and the method will take it as input parameter.
    Let me know if my assumptions are correct regarding passing the import parameters and what is missing here.
    Thanks and Regards.

  • CALL a report from WDA using SUBMIT to sap-spool

    Hi,
    I need to call a report from one of the methods of a WDA application.
    The out of this report is a sapscript. I want show it in WDA (PDF).
    The report is called when a user clicks EXECUTE button.
    The piece of the code is:
      call function 'GET_PRINT_PARAMETERS'
        exporting
          immediately            = 'X'
          new_list_id            = 'X'
          no_dialog              = 'X'
          receiver               = sy-uname
          release                = 'X'
          sap_cover_page         = 'X'
        importing
          out_archive_parameters = t_arcpar
          out_parameters         = t_pripar
          valid                  = i_valid
        exceptions
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          others                 = 4.
          submit hbrcced0
                          with pnppernr-low eq i_pernr
                          with pnpbukrs-low eq t_p0001-bukrs
                          with pnpbegda     eq i_begda
                          with pnpendda     eq i_endda
                          with p_expot      eq ''
                          with ano          eq v_gjahr
                          with respcc       eq v_sachn
                         to sap-spool
                         spool   parameters t_pripar
                         archive parameters t_arcpar
                         without spool dynpro
                         and return.
        if sy-calld eq ''.
          message 'err' type 'E'.
        else.
    If i execute this code in WDA, the sy-calld never is equal 'X'.
    But if i execute it in program (SE38) the sy-calld is 'X'.
    How i can call the program 'hbrcced0' in WDA ?
    Cheers,
    Silvio Galery

    Hi Silvio,
    a submit REPORT to spool does work from WDA.
    ONLY when "and return" is used.
    You have that, so it should work.
    Note you had print immediate on, so it will be output on printer,
    and not available to read after the call.
    (which option was the keep after print?, I would have to check docu)
    The sy-calld will be set to X  inside the REPORT when it is running.
    After the submit has run back inside WDA it is of course reset to space again.
    Cheers
    Phil.

  • Calling SAP Transaction from WDA

    Hi,
    We have a peculiar requirement of calling SAP Standard Transaction from Web Dynpro ABAP.Well, we tried achieving this using the Transactional iview. On click of appropiate link/button in my applicaiton, I can call the Transactional iview. But the problem is, I could not pass on the data from WDA Application to Transactional iview. I need some inputs in handling such cases.
    The case might look something similar to PCR's final updation(like after all approvals of PCRs, the final Administrator executes the workitem which in turn calls the Notification Maintenance and this in turn calls the PA40 passing the data from Adobe form(XML data) to PA40 txn. Like this, After all my approvals, I would like to call the SAP Transaction passing the data from WDA Application. Hope I am clear.
    Regards
    <i><b>Raja Sekhar</b></i>

    Hi,
    Maybe you can use the information from this blog to pass dynamic parameters to the SAP transaction iview which you call with the created URl
    How to launch SAP transaction & pass parameters via URL
    Dagfinn

  • Conversion from WDJ to WDA

    Hello,
    I have been working on Webdynpro for Java in ESS/MSS for a while now....I read that the Application for the HR Administrator Role have been converted from Webdynpro for Java to Webdynpro for ABAP.....is it true that SAP is slowly migrating all thier Web-Based Applications(ESS and MSS also) to WDA from WDJ.......?
    Any help would be highly appreciated.

    Hi Subhash,
                     Please refer this  WDJ Vs WDA what to use?
    regards,
    Siva

  • How would/should you invoke a javascriptable applet from WDA or WDJ?

    The background to this question is here:
    OK - finally a bioinformatic coding problem that may not be so easy ...
    The question is as follows.
    Suppose you have a javascriptable applet - that is, an applet whose behavior can be tailored by passing it certain parameters from javascript.
    What would the best way be to invoke the javascript from WDA or WDJ, assuming that you wanted to "pop" the applet in a separate HTML frame within tne WDA or WDJ application?

    Anton -
    Glad to see you contributing again!
    Well, your original comment about RasMol shamed me into doing some research into molecular viewers callable as applets.
    Here are the latest responses I've gotten from Angel Herraez at Jmol.  (You might find it fun to join the Jmol project at SourceForge and also subscribe to its jmol-users list-server.)
    I told Angel that here's what I want to do:
    > 1) we're in Frame1 of a portal that has two other frames in it: FrameA and
    > FrameB.
    >
    > 2) A query in Frame1 against a certain database brings back two sets of
    > specifications for Jmol, say:
    >
    > a 1hru, A, 123-145
    > b) 2eqa, A, 144-167
    >
    > 3) Via "client-side eventing" at the portal level , the portal passes the
    > parameters in (a) to JMol and Jmol runs in FrameA to display the "partial"
    > structure view requested (with rotate capability, same as in interactive
    > JMol;
    >
    > 4) At the same time , the portal passes the parameters in (b) to JMol and
    > Jmol runs in FrameB to display the "partial" structure view requested (with
    > rotate capability, same as in interactive JMol;
    >
    > Is this scenario currently possible as JMol is currently written?
    He then responded:
    As long as you have already set the means to communicate with the
    Jmol applets in your portal system, I think it is indeed.
    This is what I'd pass to Jmol in FrameA:
    load "1hru.pdb"; display *:A and 123-145;
    and this to jmol in FrameB:
    load "2eqa.pdb"; display *:A and 144-167;
    (you will have to adjust the loading of the pdb file depending on
    where it is located)
    "display" is a better choice than the alternative, "restrict", for
    reason I won't discuss now (but we can separately, if you need it)
    Depending on your ways of inserting Jmol into your frames, there may
    be some details to solve, but on the Jmol scripting side that's all
    needed.
    > Or would I have to settle for the portal simply invoking Jmol in FrameB
    > and again in FrameC and letting the user manipulate settings in the
    > console, as you suggest.
    No, I won't suggest so, you can indeed preprogram what you want.
    I also asked him about capturing the views after rotating in each frame to get the desired view of each structure, and here's his response to that:
    Yes, the views can be captured to the user's computer, in a web page
    (e.g. popup window) from where the user can copy or save them to
    disk, using the browser's capabilities.
    If you need to "capture" to the server, I cannot say *but see below.
    The discussion on how to make snapshots is quite long. There are
    several mesages in the list some time ago and there are several
    places that use this functionality; Bob has at least one, I dont0
    remember exactly where right now, and I have a testpage/tutorial at
    http://biomodel.uah.es/Jmol/export-image/index.htm
    See if you can make it from that, then ask if you need help.
    >From the screenshot, displayed inside the browser, you can save
    directly to your disk in some browsers, or else copy-paste into any
    image editing program (I would not recommend Powerpoint, as the
    quality of saved images is poor). You get a jpeg file directly.
    Now that I think of it, in fact all the trouble was getting the
    server-generated image into the client browser, so there should be a
    way to store the image in the server maybe.
    Anyway, will you be in LasVegas?
    If so, will you be at SDN Community Day?
    If neither, do you have MS shareview ????
    Anyway, I will be talking soon (this weekend) in the WIKI about "alignments" and how I have to use them to get the results at StrucClues (http://strucclue.ornl.gov).
    This is where the really interesting and heavy regex-ing and returned html parsing is going to come in, so I hope you will remain interested long enough to solve the new propblems I am going to pose.  They will be much more related to real scripting problems - I just wanted to get this "view/rotate" issue out of the way, so that I could do an honest job at my SDN Community Day Session.
    Very best regards
    djh

  • How to call a CRM transaction from WDA  component

    I have requirement where i need to open the CRM transaction CRMD_BUS2000126 from WDA with the object id selected in the context. To be more specific all i need to do is to open the activity screen of a particular give activity number from a WDA component.
    I have checked out the previous threads there is a solution how to fire a transaction from WDA, but i need to send a parameter to this transaction to open that particular activity number screen.
    please advice asap.
    Thanks,
    Shyam

    Karthikeyan,
    Please make sure that flag attribute is under some node, say NODEA. NOW please select the interface node property and input element  of NODEA.
    now NODEA will be available in interface controller. Interface controller acts like a global  controller between two different components.
    So from interface controller you can take that flag value.
    pls reply back if you have any confusion.
    Regards
    Srinivas

  • Related documents or links on how to call webservices from WDJ

    Hi all
    i need documents & links on how to call webservices from Webdynpro for Java.
    if anybody send the documents on sample scenarios on the same then it is the great help to me...
    Thanks
    Sunil

    Hi Sunil,
    May these links help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/f7/f289c67c759a41b570890c62a03519/frameset.htm
    http://help.sap.com/saphelp_nwce10/helpdata/en/64/0e0ffd314e44a593ec8b885a753d30/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm
    and  the below thread to call weservices in java.
    Re: How to call a web service from Java
    Regards,
    Supraja

  • How to start BPM process WSDL from WDA

    Hello,
    I need to start BPM Process from SRM ECC with WDA; i have been through this link ;
    http://forums.sdn.sap.com/thread.jspa?threadID=1643425
    also followed the pdf named 'Triggering NetWeaver BPM Process from ABAP' provided from SAP but still stuck on some issues;
    - I have a WSDL in order to start BPM process and works fine as i successfully call it from EP Java AS with WDJ..
    - What i need to do is to trigg it from SRM Screens so i need to call this WSD from ECC, so;
        When i try to create a consumer proxy using external wsdl option, after putting in WSDL Url it throws an error;
    Exception occurred in communication framework:Error in HTTP Framework:405 Method Not Allowed http://xxx.local:50000/bpm/de
    mosapcom/dccategoryappbpm/StartCatAppSI
    Exception of class CX_SLIB_HTTP_FAIL
    And this is error from BPM Logs for the same action;
    process()
    [EXCEPTION]
    com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: com.sap.engine.services.webservices.espbase.server.additions.wsa.WSAddressingException: com.sap.SOA.wsr.030104 - Expected request method POST. Found GET.
    at com.sap.engine.services.webservices.espbase.server.additions.SOAPHTTPTransportBinding.getAction(SOAPHTTPTransportBinding.java:581)
    at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.overwriteConfiguration(RuntimeProcessingEnvironment.java:894)
    at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:469)
    Also i found this link : http://wiki.sdn.sap.com/wiki/display/TechTSG/(WSR)Problems-P06/
    But no help so far,
    So, is there anyone faced similar or the same issue? Any suggestion will be appreciated.
    Regards,
    Yasin

    Hi soujanya,
    BPM server is not open to the internet but only intranet, so i will copy the WSDL code for you,
    will be glad if you can help;
    - <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.koczer.com/StartCatAppSI/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="StartCatAppSI" targetNamespace="http://www.koczer.com/StartCatAppSI/">
    - <wsdl:types>
    - <xsd:schema targetNamespace="http://www.koczer.com/StartCatAppSI/">
    - <xsd:complexType name="DetailsType">
    - <xsd:sequence>
      <xsd:element name="Category_ID" type="xsd:int" />
      <xsd:element name="Category_Text" type="xsd:string" />
      <xsd:element name="User" type="xsd:string" />
      <xsd:element name="Manager" type="xsd:string" />
      </xsd:sequence>
      </xsd:complexType>
    - <xsd:element name="NewOperation">
    - <xsd:complexType>
    - <xsd:sequence>
      <xsd:element name="Details" type="tns:DetailsType" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:schema>
      </wsdl:types>
    - <wsdl:message name="NewOperationRequest">
      <wsdl:part element="tns:NewOperation" name="parameters" />
      </wsdl:message>
    - <wsdl:portType name="StartCatAppSI">
    - <wsdl:operation name="NewOperation">
      <wsdl:input message="tns:NewOperationRequest" />
      </wsdl:operation>
      </wsdl:portType>
    - <wsdl:binding name="StartCatAppSISOAP" type="tns:StartCatAppSI">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="NewOperation">
      <soap:operation soapAction="http://www.koczer.com/StartCatAppSI/NewOperation" />
    - <wsdl:input>
      <soap:body use="literal" />
      </wsdl:input>
      </wsdl:operation>
      </wsdl:binding>
    - <wsdl:service name="StartCatAppSI">
    - <wsdl:port binding="tns:StartCatAppSISOAP" name="StartCatAppSISOAP">
      <soap:address location="http://zerbpmts.koczer.local:50000/bpm/demosapcom/dccategoryappbpm/StartCatAppSI" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>

  • Starting WDJ through WDA

    We have a requirement where a custom WDA screen sends the PERNR as a parameter and calls Standard WDJ screen.
    Has anyone attempted this funcationality?
    What are the setting / Parameter we should be passing to call the Standard WDJ from custome WDA component?

    From help link
    To control communication channels externally,
    you use an HTTP GET or POST request to the following URL:
    http(s)://host:port/AdapterFramework/ChannelAdminServlet?
    party=party&service=service&channel=channel&action=action
    The parameters in italics are described in the following table:
    party
    Identifies the party of the channel to be administered. You can use an
    asterisk (*) as a placeholder to administer several channels simultaneously.
    service
    Identifies the communication component of the channel to be administered. You can
    use an asterisk (*) as a placeholder to administer several channels simultaneously.
    channel
    Identifies the name of the channel to be administered. You can use
    an asterisk (*) as a placeholder to administer several channels simultaneously.
    action
    Identifies the action to be executed (start, stop, or status).
    You use the start and stop actions to start and stop the channels.
    You can use the status action to query the status of one or more channels
    Edited by: Ramesh P on Dec 8, 2011 4:34 PM

  • Probelm in calling ME23N from WebDynpro ABAP application.

    Dear All,
    My requirement is to call the transaction ME23N by doing some action from WDA application.
    And I have to pass the Purchase Order Nubmer from this WDA application.
    This is for your information, For this I have created the Transactional iView for ME23N and I am using the PCD location .*
    I am using the " navigate_absolute " method from the portal intergration ( IF_WD_PORTAL_INTEGRATION ).
    There I am passing the launching paramerters and Business parameters . It is opening the ME23N Screen, But it is not taking the purchase order number what I am paasing in the business parameters . It is always taking the default purchase order number.
    And one more this , the same thing i have tried for VA03 transaction, here everything is going fine.
    But I did not understand the why it is not taking purchase order number what I am passing from the WDA application in the business parameters.
    Hope I have given my query clearly...
    Please help me...
    Thanks & Regards,
    Veerendra Nath

    Solution found.
    You can use Tcode MMPURPAMEPO Tcode.
    In your URL set the parameter P_EBELN with the PO number and set the OKCODE to execute the report.
    This transaction is used in Portail only.
    You can found the same for MIGO/MIRO and several other Tcode.
    Regards
    Ludovic Bento

  • How to trigger workflow from WDA and read workflow container into WDAscreen

    Dear Expert,
      Please suggest the solution for the following requirement:
       1. Create 1 leave request from WDA and submit for approval
       2. When User press "submit" button in WDA screen, workflow will be triggered for processing approval  .
       3. When 1 request is sent to approver, he logon into portal and access to UWL to process task himself.
       4. After he press approval link, the system will call WDA screen to process approval ( this screen will contain full information of requester.)
       5. After finishing process, the result will return workflow and end of process.
    Please send simple example for step 1 and one for get data from workflow into WDA screen at step4
    Any help would be appreciated
    Thanks and best regards,
    DucTV.

    Hi,
      I am not sure for what reasons you are developing a application but SAP has its own standard workflow process for applying leave from ESS portal..
    1. AS soon as you click on the submit button of the applicaiton then you need to trigger a workflow right in that case you make sure that you need to pass some data to the workflow container I hope you might be using either SAP_WAPI_CREATE_EVENT or SAP_WAPI_START_WORKFLOW to start the workflow  in both the function module you have to fill this table in Order to pass the values from ABAP    program to workflow container.
      The answer to your question is it depends on the type of the work item ID you are passing to the SAP_WAPI_READ_CONTAINER if you are passing a top work item ID  then you will have workflow container in LT_CONTAINER if you are passing any of the child or dependent work item ids of the top work item id then you have that respective task container value.
    2. You can make use of the any foreground activity or a decision step, it depends on how you want to get back the result, if you use a foreground activity step then in that case you have to populate the result back to the task container and if let say you are using a decision step then in that case you do not have to populate the result there will be standard  container element _RESULT in the decision step it will be filled.
    Make sure if you are expecting some work item in UWL and as soon as you click on the work item your application should open then configure in SWFVISU transaction and maintain DTD in UWL any portal consultant can perform this steps in few seconds.
    3. When the workflow is started then the work item which you are able to get back is the one which helps to identify dependent work item ids it is the TOP or PARENT work item ID.
    Regards
    Pavan

  • Run Transaction from wda and display results

    Hello,
    If it is possible to run SAP transaction(f.e.ME2L) and the result (ALVreport) display in wda window?
    Regards,
    Natalia.

    Hi,
    Check this forum thread regarding calling transaction from WD4A.
    Re: Calling a transaction code
    Thanks
    Suman

  • Accessing an SAP T-Code from WDA

    Hi all
    I need to call an SAP T-Code from my WebDynpro. I tried it on a button click.But while I am trying to do that its giving me an error "Access via 'NULL' object reference not possible". Its because l_sapgui_manager is not getting the value. Why is it so?
    This is the code that I have used,
      data l_componentcontroller type ref to ig_componentcontroller .
      data l_api_componentcontroller type ref to if_wd_component.
      data l_sapgui_manager type ref to cl_wdr_sapgui_integration.
      l_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
      l_api_componentcontroller = l_componentcontroller->wd_get_api( ).
      l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).
    if l_sapgui_manager is not initial.
        l_sapgui_manager->fire_start_transaction(
        exporting
                   transaction =  item_tcode' ).
      endif.
    Is there any other option through which I can access T-Code from WDA.
    Please help me with solutions.
    Thanks In Advance
    Athu

    Hi, Athulya,
    You can only use SAPGUI Manager when you are executing your wda application from within SAPGUI:
    Calling R/3 Transaction from WDA
    Call Transacion from my WebDynpro.
    Hope this helps!
    Andre

Maybe you are looking for

  • No speakers or headphone plugged in

    Hi, so i have a dv4 1275mx and i recently updated to windows 7, i updated the bios and all the drivers but im still not getting any sound, it says i don't have speakers plugged in. but when i go to my playback devices it shows that the speakers are m

  • Has anyone solved why the scanner would cause ARD to freeze

    If I try to scan a network range, it comes back with nothing.  If I click on my list, it r-authenticates with every machine.  I can Control or Observe machines with no problem.  The scanner seems to be the issue.

  • Script error message chrome://accountcolors/content/accountcolors-3panewindow.js:966

    About 1 month ago when I start Thunderbird it freezes and I get a message that Thunderbird is "Not Responding." After about 5 minutes I get Script Error chrome://accountcolors/content/accountcolors-3panewindow.js:966 Do you want to halt script. If I

  • Oracle instant client 10.2.0.4 to connect to oracle database 9.2

    got message ORA-03134 when creating ODBC connection to database version 9.2. However, it was successful to connect to database versions 10g and up. Has anyone successfully connected to Oracle 9.2 by using the 10g instant client? Isn't Oracle 10g inst

  • Do I get a brand new iphone 5s

    I just got a replacement from apple so I was wondering if I'm going to get a brand new iphone????? I got this a month ago and I m having software issues so they are sending one which will be coming soon is it going to be brand new ???