WDA: Call Webdynpro Java Component
Hi!
Is it possible to invoke a Webdynpro java component from inside of WDA?
Best regards,
-Ronni
Hello Ronni,
It is not possible to invoke a webdynpro java component in webdynpro abap, but we can call the appliction of the webdynpro java in webdynpro abap and vice versa.
Regards
Nizamudeen SM
Similar Messages
-
Has anybody created Iview from "Webdynpro Java" component in CE7.1 ?
Hi All,
Has anyone created Iview from Webdynpro Java component in CE7.1.
Because the wizard that appears for creation of Iview has only "Webdynpro ABAP"
component.There is no option to create iview from "Webdynpro Java" component.
Althought in portal content--->Template folder i can see there is also
another template for "SAP Webdynpro iview" which i think is for the Java scenario.
But issue is, its not coming in the wizard.Can anyone tell me how to make it appear in the wizard ? It will be of great help to me.
Thanks and Regards
AshisHi Ashis,
your deployed webdynpros are published under "web dynpro applications". just copy the webdynpro from there and paste it into the portal content section.
http://help.sap.com/saphelp_nwce10/helpdata/en/ce/e0d6f54ae641fc9566501cffaa8c6c/frameset.htm
Hope that helps you.
Best wishes, Jens -
Calling Webdynpro Java Application from Webdynpro ABAP Application.
Hi,
We have developed one Application using Webdynpro Java and I m in need to call the Webdynpro Java application from Webdynpro ABAP.
Require Suggestions to acheive this.
Thanks In advance.
Reg,
Ajay.Dear Ajay,
Assuming that both your applications WDA & WDJ are in the portal & you don't have to pass any parameters to the WDJ application.
Write the following code on the action where you would call the WDJ application.
DATA:
lr_compcontroller TYPE REF TO ig_componentcontroller,
l_component TYPE REF TO if_wd_component ,
lr_port_manager TYPE REF TO if_wd_portal_integration ,
wa_navigation TYPE navigation.
lr_compcontroller = wd_this->get_componentcontroller_ctr( ).
l_component = lr_compcontroller->wd_get_api( ).
lr_port_manager = l_component->get_portal_manager( ) .
* The value inserted into the navigation-target field can be found in the Portal
* content administration tab of your portal. It is the ID or PCD Location field
wa_navigation-target = pcd. " Please provide the PCD Location of the WDJ Application here.
wa_navigation-mode = '0'. "0 = INTERNAL(same page) and 1 = EXTERNAL(new page).
CALL METHOD lr_port_manager->navigate_absolute
EXPORTING
navigation_target = wa_navigation-target
navigation_mode = wa_navigation-mode.
You can get the PCD from the Page properties of the WDJ application page in the Portal.
Hope it helps!
Warm regards,
Upendra Agrawal -
Calling WD Java component in WD ABAP
Hi Experts,
I've a requirement to call WD Java application in my custom WD Abap component.
In Ehp4 time management module, the time recording application is designed in WD java component while Ehp5 the same appln is designed in WD ABAP.
Now I need to call either of this application based on country grouping. For eg: If an employee belongs to US then i need to call WD ABAP component, while if an employee belongs to Canada then it should open WD Java component.
Could you pls clarify whether we can call a WD Java application using any Class / Functional module. If yes, pls let me know
Appreciate your help
KamalHi Kamal,
You can use Country Specific services. Toa chieve this.
Refer to
http://213.41.80.15/SAP_ELearning/OKEC/nav/content/011000358700000597012006e.pdf
Thanks
Prashant -
Call webdynpro java Web Service from ABAP
Hello,
This is regarding calling portal web service from ABAP.
1. created web service in NWDS and deployed it to portal server
2. created abap proxy to call this web service from abap SE80 transaction
3. created logical portal for the above proxy LPCONFIG transaction
this is working perfectly. the web service is getting called from abap and funcitonality is working
but my doubt is we have no where given the login password for portal server in the abap system
then how come it works without login password
if i run this web service directly from portal in wsnavigator, then portal login is required.
If we want to incorporate authentication then how to do that ?
thankyou,
BWhen you are testing the application in SE80.
Is it ot asking for the user id password.
I created a similar service and for me its asking for user id and password.
Go to SM59 and there look for a RFC destination of type HTTP Connection to External Serv. usually will be named as
SAP_PROXY_ESR.
for this connection check the logon and security tab.
may be some user id and password is given there. means hardcoded.
thanks
sarbjeet singh -
Http post to a url from a WebDynpro (Java) application
Hi,
I want to send http post parameters to a url from a WebDynpro (Java) component. I need to do this to send OCI catalog data back to SAP SRM.
I found this thread:
HTTP Post
which suggests to use the the Suspend plug for this purpose.
<quote>
Sending POST parameters with Web Dynpro Suspend Plugs
1) Define a an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map
</quote>
After adding the postParams parameter of type java.util.Map to the Suspend-plug the WebDynpro gives the following error during build:
Outbound plug (of type 'Suspend') 'suspend_plug' may have at most two parameters: 'url' of type 'string' and 'postParams' of type 'Map'.
I use SAP NetWeaver Developer Studio version 7.0.16.
Does someone know a solution? I would highly appreciate it.
Thanks in advance.
EricHi,
Please have a look at this thread,
Pass Table as Input to Adaptive RFC
Regards,
Saravanan K -
Iview Template missing for Webdynpro-Java application
Hi All,
I wanted to create an iview out of my webdynpro component . I followed
the steps given in the following document ---
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c7b2f25-0c01-0010-f2a2-f8a65a9dcad9
But unfortunately i couldn't find any template to create iview from webdynpro-java
application . Can any one help me out ? Is there any customization for the same or
this feature is not available for CE7.1--Sneak Preview version ? Any suggestion will
be of great help to me.
Thanks and Regards
AshisHi Ashis,
please refer to thread
Has anybody created Iview from "Webdynpro Java" component in CE7.1 ?
and by the way...there is a portal included under ../irj
greetings jens -
UWL application in Webdynpro Java
Hi
I have a requirement where I need to replicate the standard SAP UWL feature in a custom Webdynpro Java component.
The Webdynpro Java component will be a custom screen which will have all the features of the standard UWL.
When the users launch the Webdynpro application, he should be able to see all the notifications in his inbox and when he clicks on a particular task in his inbox, the task should perform the same things that it does when opened from UWL application. It should be able to trigger webservices or launch UI related to BPM processes.
Please provide your suggestions on this.
Thanks and Regards,
Sayan GhoshHi Sayan,
UWL apis will provide you the methods and interfaces to replicate the similar behavior of standard SAP UWL. You can read more about [UWL API|http://help.sap.com/javadocs/NW04S/SPS09/uw/index.html].
Make sure that UWL services are started in Portal.
There is a nice tutorial that you can refer for building UWL in webdynpro. Refer - [Accessing UWL Notifications from Web Dynpro Using UWL API|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/802bfda2-8a85-2b10-9290-d67da32d0c01?quicklink=index&overridelayout=true]
Hope it helps.
Regards
Abhinav Sharma -
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
SarmisthaSomeone 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 -
Call stateless session bean EJB 2.0 from Webdynpro Java UI
Hello,
Can someone please tell me asto how to call a stateless session bean EJB 2.0 from Webdynpro Java UI?
The NWDS version is 7.0.
Thanks and Regards,
AryaHi Aryadipta
Please check this pdfs
https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10&overridelayout=true
Steps for calling stateless session bean in Webdynpro java
Go to NWDS -> open perspective ->j2ee
select EJB Module Project ->create a project with name
Open the Project -->RC on ejb-jar.xml -> Select new --> EJB
Give name to EJB Bean (First letter should be in capital letters)
select the type of bean as Stateless session bean and give the package name to store that EJB bean.
After that Expand ejb-jar.xml and then select the <projectEJB>
Double click on this on method tab double click you will get business method where we will create the methods for business logic
Double click on projectEJB and then RC on bean tab and write required business logic in bean window as follows(based on requirement we will design a business logic).
After writing the business logic go to project -> rebuild
Till now we have created one EJB jar file
then go to File-->Enterprise Application Project -->create a project (projectEAR)
After creating a project click on next-> here we will have ear projects and then we select specific project required for our application.(here select projectEJB)
After that Calculate EAR project will be available on j2ee explorer.
Right click on <Bean> here
select New->Web Service->give a name to webservice and select Default configuration type as simple SOAP
-->click next -> Finish.
That webservice and related are created in ejb-jar.xml .
Expand the ejb-jar.xml.and double click on < webservice>
RC ProjectEJB -> Build EJB Archive RC on CalculateEAR ->Build applicationarchive.
Expand the projectEAR->RC on CalculateEAR.ear->Deploy to J2EE Engine
Double click on calculateEAR.ear ->Webservice navigator tab ->we eill servers expand the node
select the specific WebService
Here we test the webservice by click on Test and test it.
After that go to Web dynpro perspective ->create one webdynpro Project and one component
RC on model> Select import Web Service model(last)>give model name and package
and select radio button as local file system or URL
Go to WSnavigator->copy the WSDL path and paste it in model WSDL path and click on finish.
from here onwards steps are same as that adaptive RFC model
Hope it helps
Thanks
Tulasi Palnati
Edited by: Tulasi Palnati on Aug 26, 2009 12:15 PM
Edited by: Tulasi Palnati on Aug 26, 2009 12:43 PM -
How to create and call a COM component in Java
Hi All,
can you suggest how to create and call a COM component..or if have any sample simple application can you send it to me...i will try to develop my project.
actually i am configuring a OCR Engine using SDK which is in VB .Net when i contacted their support they told that if i have any sample COM based component Project they will help me...
So please can you help in this.
Thanks in advance.As said by my fellow posters Java Devolopment Environment (Except Microsoft implementation of JVM,this is no longer supported by MS themseleves) does not provide an built-in support to serve this cause.
If you are looking to devolop a custom based solution the below is a good place to start with where end user is talking about Java <=> JNI <=> Native <=> COM connectivity.
[http://bloggershetty.blogspot.com/2004/12/java-jni-com-activex-bridge-lots-of.html]
However,if you are looking for ready made solutions ?
Implementation any one of the solutions stated below might serve your cause.
Open Source Solutions:
[http://j-interop.org/]
[http://www.danadler.com/jacob/]
Commercial Solutions:
[http://javacombridge.com/]
[http://www.jnbridge.com/]
[http://www.nevaobject.com/j2cdetails.asp?kw=java%20com%20bridge]
[http://j-integra.intrinsyc.com/]
Hope this might help :)
REGARDS,
RaHuL -
Why we call adaptive RFC in webdynpro java..
Hi,
I want to know why we call adaptive RFC connection in webdynpro java whenever we import new rfc in our java web dynpro project. why name ADAPTIVE RFC is used
if we make any structure changes in the model which we imported in web dynpro project , like adding a new field, or changing the length/datatype of the existing field, then we always have to reimport the model in our webdynpro project so why adaptive name used. wats especial in the word ADAPTIVE RFCHi Rahul,
please read the guide:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df?quicklink=index&overridelayout=true
Best Regards,
Ervin -
RFC call in a Webdynpro Java help?
Hi all,
I need used in my webdynpro Java a FM that I created in R3. Exactly I need load in a combo box the results of my function module.
I do it this but not works correctly. I think thats my code is not correctly..Anybody can help me?
public void inicializarPrimerAprobadorTarea( ) {
//@@begin inicializarPrimerAprobadorTarea()
//Creamos variable para transformar el login en nombre
String nombre;
IModifiableSimpleValueSet valueSet = wdContext.nodeCONTAINER().getNodeInfo().getAttribute("AGENT_APPROVAL").getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
// Obtenemos la primera tarea asociada al los aprobadores
PP4Model2 pp4model2 = new PP4Model2();
Z_Hsp_Wf_Gbs_Apro_Pva_Input rfcPrimerAprob = new Z_Hsp_Wf_Gbs_Apro_Pva_Input(pp4model2);
//wdContext.nodeZ_Hsp_Wf_Gbs_Apro_Pva_Output().bind(rfcPrimerAprob);
try {
rfcPrimerAprob.execute();
wdContext.nodeOutput_1().invalidate();
if(rfcPrimerAprob.getOutput().getEx_Subrc()!= 0){
msgmgr.reportException(rfcPrimerAprob.getOutput().getEx_Mensaje());
}else{
for( int i=0;i<wdContext.nodeLt_Tabla_Pva().size();i++){
//Transformamos el login en nombre
nombre = getNombreUsuario(wdContext.nodeLt_Tabla_Pva().getLt_Tabla_PvaElementAt(i).getApprover_Id());
//Imprimimos mensajes para ver si está correcto.
msgmgr.reportSuccess(nombre);
//Metemos el valor en la variable del container.
valueSet.put(wdContext.nodeLt_Tabla_Pva().getLt_Tabla_PvaElementAt(i).getApprover_Id(),wdContext.nodeLt_Tabla_Pva().getLt_Tabla_PvaElementAt(i).getApprover_Id()); }
}catch (Exception e) {
msgmgr.reportException("Error. "+e.getMessage());
//@@end
Any body knows the main steps from call correctly to my FM?
Regards,
C. CastilloThank you very much, now my method works correctly:
//@@begin inicializarPrimerAprobadorTarea()
//Variable para transformar el login en nombre
String nombre;
IModifiableSimpleValueSet valueSet = wdContext.nodeCONTAINER().getNodeInfo().getAttribute("AGENT_APPROVAL").getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
// Obtenemos la primera tarea asociada al los aprobadores mediante la función de PPA Z_Hsp_Wf_Gbs_Apro_Pva
PP4Model2 pp4model2 = new PP4Model2();
Z_Hsp_Wf_Gbs_Apro_Pva_Input rfcPrimerAprob = new Z_Hsp_Wf_Gbs_Apro_Pva_Input(pp4model2);
try {
rfcPrimerAprob.execute();
wdContext.nodeOutput_1().invalidate();
if(rfcPrimerAprob.getOutput().getEx_Subrc()!= 0){
msgmgr.reportException(rfcPrimerAprob.getOutput().getEx_Mensaje());
}else{
if (rfcPrimerAprob.getOutput().getLt_Tabla_Pva().size()== 0){
msgmgr.reportException("No existen primeros aprobadores responsables para esta tarea, por favor póngase en contacto con el Administrador de la aplicación");
}else{
for(int i=0;i<rfcPrimerAprob.getOutput().getLt_Tabla_Pva().size();i++){
//Transformamos el login en nombre
nombre = getNombreUsuario(rfcPrimerAprob.getOutput().getLt_Tabla_Pva().get(i).getApprover_Id());
if(formInfo.getValue().equals("Inicio")|| formInfo.getValue().equals("Modif")){
if (nombre.equals(rfcPrimerAprob.getOutput().getLt_Tabla_Pva().get(i).getApprover_Id())){
msgmgr.reportException("El login: "+rfcPrimerAprob.getOutput().getLt_Tabla_Pva().get(i).getApprover_Id()+"es eliminado de los valores del primer aprobador por no existir en SAP Portal");
}else{
//Metemos el valor en la variable del container.
valueSet.put(rfcPrimerAprob.getOutput().getLt_Tabla_Pva().get(i).getApprover_Id(),nombre);
}catch (Exception e) {
msgmgr.reportException("Error. "+e.getMessage());
//@@end
If anybody can be improve please let me know,
Regards all,
C. Castillo -
Calling RFC with webdynpro java (in NetWaver Dev.Studio)
Hi,
I have a RFC like below
FUNCTION ZSAP_X.
*""Local interface:*
*" IMPORTING
*" VALUE(USNAM) TYPE USERNAME
*" EXPORTING
*" VALUE(PWD) TYPE CHAR8
1-I want to write webdynpro java application to call RFC
2-Call RFC with USNAM parameter
3-Get PWD output parameter and write it's value into View TextInput field.
I wrote application but I did not get PWD (output parameter) value. I checked RFC running poreperly.I did not achieve to get PWD.
How can I do that?
Thanks.Hi Bala,
I checked RFC, it is running properly and getting the output value.
And I used command below, but it produces error
String X = wdContext.currentPWDElement().getpwd().toString();
Error:
java.lang.ArrayIndexOutOfBoundsException: -1
Thanks. -
Importing Java Bean Model in Webdynpro Development Component
Hi All,
Is there any simple tutorial, example to import java bean model in webdynpro development component.
I am using NWDS 7.0 SP14 and WAS 7.0.
it really helps if you can provide simple EJB as a development component with details how to create a public part and using this bean as java bean model in Webdynpro development component.
what are the steps to be followed with precautions
Thanks in Advance,
MuraliHi,
[Using the Java Bean Model in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4072c0d0-c21e-2b10-ab84-e2c183d355de]
[Using EJBs in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
you will get more if you search in the forum.
more help on EJB's
Re: Help needed in EJB
http://help.sap.com/saphelp_nw70/helpdata/EN/19/f9bc3d8af79633e10000000a11405a/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
PradeeP
Maybe you are looking for
-
Unable to open URL attachment from SBWP in CRM WEB UI
Hello Gurus, Need your help please. I'm having some problem opening the URL attachment from SBWP via CRM 7 WEB UI (I used a Transaction Launcher for SBWP). The attachment is a Webdynpro application. I am able to open the attachment in SAP GUI, but n
-
We are using an MRP software package that when we create a report we want to export it to a PDF. This option was working fine up until April 20th. We use to click on the Export icon in the report, get a box that says export to what-- we choose Acroba
-
No Adjustment Brush Tool in Camera Raw 5.2
Hi, I'm new here. After watching a Gavin Hoey tutorial on HDR editing, I decided to give it a try. My pc came with PSE 7.0 pre-installed (it's version 7.0.1 and the camera raw is version 5.2.0.65) When I drag a RAW image into the edit window of PSE,
-
Please help!!!! Favorites show only numbers and no names
I have seen this question, but no solution. All of the sudden, when i look at my contact favorites only numbers are displayed, with no names. For example my wifes number is there but not her name. Furthermore, in the contacts app, she is not there
-
Exit code 7 when installing Design Premium CS5
For some reason I can't copy & paste from note pad into this forum at the moment, so I'm unable to load the error report here. I've tried several times to install CS5 Design Premium upgrade onto my Vista business 32 bit (sp2) machine with no joy & gr