Webdynpro JAVA call ARFC
Hi Friend
I created the "ZBEN_DEMO_RFC" RFC in IDS.
When Webdynpro Java call the "ZBEN_DEMO_RFC" get a error.
How to get a ARFC?
Regards
Ben
Hi Ben,
I think problem is related to autherization, please chekc the userID/password and check SSO ticket for authorization while defining a metadata JCO Destination.
You can trace error RFC_ERROR_SYSTEM_FAILURE exception, have a look at the dev_jrfc.trc files. These files are written by JRFC and can be found in the directories j2ee/cluster/server* of the J2EE Application Server Installation.
Refre this WDJ - Adaptive RFC Troubleshooting Guide:-
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0019b1a-775f-2910-beb8-d81f27d0d8d0?quicklink=index&overridelayout=true
http://wiki.sdn.sap.com/wiki/display/EP/8EstablishSingleSignOnbetweenPortal%28frontend%29andESS6.0%28backend%29
Hope this may help you
Deepak!!!
Edited by: Deepak Arora on May 17, 2010 6:00 AM
Similar Messages
-
Creating webservice using webdynpro java calling bapi from r/3
hi all,
as i am new to this area can anyone provide me a guide to create a simple webservice using webdynpro java to call bapi's from r/3?
i want to consume the created webservice on a .net client.
Thanks in advance,
RaghunandanYou can use the SAP .NET Connector to do it.
Download from [http://service.sap.com/connectors|http://service.sap.com/connectors]. -
Webdynpro java calling bapi function module
Hi all,
I am webdynpro java developer, In my application i created model using bapi function module and fetch those values using iviews mapping to custom controller . While running that application i got an error as shown below
**Application error occurred during request processing.**
Details: com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'ram.com/getdata' and application 'Searchapp' are not deployed on the server. Please check the used URL for typos.
Exception id: [BCAEC58D04E400870000019500000DF80004B20FE3921612]
Please help me anyone
Thanks in advance.Hi,
Have you deployed your application?because it is mentioned that the "Searchapp"(which i suppose is your application) is not deployed.
Take the "Deploy and Run" option by right clicking the application(i mn Seachapp). It will prompt you to enter the SDM password. Give the pwd and it will open the explorer and will show you the output.
Hope this helps you.
Regards,
Jithin -
Calling RFC with webdynpro java (in NetWeaver Developer studio)
Calling RFC with webdynpro java (in NetWeaver Developer studio)
Hi,
I want to call only one parameter RFC with webdynpro.
Flight example is very complex.
I want to push a button and pass parameter to RFC input and call RFC.
After execution some message must appaer on the screen.
Is there a step by step .pdf?
Thanks.Hello Cemil,
There's a seperate Web Dynpro forum for such posts, you should take a look there.
Nonetheless, the classic tutorial is the FlightList. If I was you, I would make sure to do this tutorial step-by-step as it should give you the fundamentals for understanding aRFC. On top of that, it's most likely already available to you on your SAP system...
Here's the link:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a00f7103-6790-2a10-ac9c-fcac7c5b18a3
Cheers,
Hermann -
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 -
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 -
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. -
How to call IAC Iview from WebDynpro java code
Hi Team,
I am tring to call IAC Iview from WebDynpro Java code. we are passing value but blank page displayed and there is no error show on error log.
Below is Java Code which i am calling.
public void wdDoInit()
try {
String strURL = "portal_content/TestSRM/iView/TestSRM"; //WDProtocolAdapter.getProtocolAdapter().getRequestParameter("application");
String random = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("random_code");
//wdContext.currentContextElement().setRandomNumber(random);
//below we are call URL
WDPortalNavigation.navigateAbsolute("ROLES://portal_content/TestSRM/iView/TestSRM?VAL="+random,WDPortalNavigationMode.SHOW_INPLACE,(String)null, (String)null,
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,(String)null,(String)null, " ");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
I am passing value from URL.
http://<host Name>:<port>/webdynpro/resources/local/staruser/StarUser?random_code=111111111
when we call above URL we getting blank screen.
Regards
Pankaj KambleHi Vinod,
read this document (from pages 7 ).
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62</a>
In addition lok at these links: (Navigation Between Web Dynpro Applications in the Portal)
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm</a>
<a href="http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm">http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm</a>
It may be helpful for you.
Best regards,
Gianluca Barile -
Reg: calling default desktop page of enterprise portal from webdynpro java
hi Experts
Here is an scenario where i need to call enterprise portal desktop from webdynpro java application.
Actually i have designed a custom Home page in WDJAVA and this page i have assigned as default frame work page in enterprise portal ,so once we logon through the portal URL wewill be getting this custom home page as default page and when i click on next button it should connect to the predefined SAP given default frame work page.
The thing is i am able to see the custom page and the button but when i click on the button it is opening the same custom home page only not able to log on to portal default frame work page.
My question is how can we connect to the predefined page from the custom home page.
please share your regarding this scenario...
regards & Thanks
Deepika
Edited by: deepika_indian on Mar 3, 2010 6:05 AMhi Experts
you didnt get my point i vl give in brief
1) that at first we are going to enter the portal URL.
2)we are going give userid and password and click logon button.
3)so once we click on that button it should open custom page what we have designed in by using web dynpro java.with in this application we will have next button which should connect to the sap given predefined default desktop page.
i hope you have got my point.
and more over where can we get the logon action coding in which par file,if so can you give brief information related to it.
i changed the themes master rule collection there i have assigned this custom home page ,but when i click on next button it is opening the same custom it is not connecting to the default desktop.i think this is not the write approach.
please share your knowledge and document also related to it.
Thanking you
Deepika. -
Problem with special charecter while calling a BAPI from Webdynpro JAVA.
Hi Experts,
I am calling a BAPI from Webdynpro JAVA. I am passing a special charecter u2018 as input to BAPI. But I am getting a # as input in R/3.. Can any one explain why it is getting changed?
Any inputs regarding this issue are appreciated.
Thanks,
Kasinath.Hi,
I had same problem before..For this I have created function module in backend for removing #. It was for converting Stream to ITF text.
CONVERT_STREAM_TO_ITF_TEXT.
Try this.
Thanks,
Prajakta -
WDA: Call Webdynpro Java Component
Hi!
Is it possible to invoke a Webdynpro java component from inside of WDA?
Best regards,
-RonniHello 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 -
CALL A WEBDYNPRO JAVA FROM ABAP
From the abap code of the transaction BBP_BID_INV i want to call a webdynpro java that shows a table´s content, that is the main problem , anyone has any experience with this?
Can i use portal eventing with epfc?, or bapis? maybe badis? object navigation though the pcd?
Whatis the best option?
Cheers.
R.Cabrera.Hi,
And as you said it Java Webdynpro application, it should be possible to generate the URL for the Application at runtime.
I also haven't tried, but it should work. Please let me know if LinkTOURL doesnt suffice, we can try and check if it works.
Thanks,
Anand -
Passing Parameters via Post Method from Webdynpro Java to a web application
Hello Experts,
I want to pass few parameters from a web dynpro application to an external web application.
In order to achieve this, I am referring to the below thread:
HTTP Post
As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
I am using SAP NetWeaver Developer Studio Version: 7.01.00
Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
Thanks & Regards,
AnuragHi,
This is purely a java approach, even you can try this for your requirement.
There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
If it is Asynchronous means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
here you go and find the way to implement Asynchronous scenario,
http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
Thanks & Regards
Rajesh A
Maybe you are looking for
-
ActionListener in other package change menuItem
hiya, I have a class MenuBuild and within i specify ActionListeners to the items. now when i receive an action it goes to the set Listener, now from the Listener i want to be able to change an item in the menu. the two files are both in a diffrent pa
-
How do I clear windows in quicktime?
When you right click the QT icon, a list of the last movies watched shows up. How do I clear this list of windows? "Open Recent- clear menu" doesn't do it. Clearing recent items in the system menu doesn't do it either. I seem to recall a way to push
-
BIB-9509 - Oracle olap can't create cursor
Hi, I have this BIB-9509 when I try to create a report or graphic. I've seen when I use a fact table with 2 or 3 dimensional tables the Bi Beans work without problem but when I use more than 4 dimensional tables I find the BIB-9509 error. Anyone know
-
IOS has suddenly decided to download hundreds of messages
It's just streaming downloading messages going back into last summer in groups of 250 messages. Have no idea what it's doing or why. They all seem to be from a GoDaddy POP account. I have 489 unread messages, and it's just started another 250 batch.
-
Using hacked Flash Player in unsupported Power Macs ===
Understandably, the current versions of the Adobe Flash Player no longer support Power Mac G5 (pre-Intel) Macintosh computers, as even Appple has dropped support for these "legacy" machines. There is available a hacked version of the Adobe Flash Play