Webdynpro application - connecting to backend system
Hi,
Iam developing an application in webdynpro.Iam able to generate the application in Frontend by using BAPI_BANK_GETLIST but its not taking the data from the backend system.
Is it necssary to create the application in backend.
Will any one please help me to sort out this.
Thanks & Regards
Sushma
Hi
To get the data from your BAPI you need to follow steps
1. create a Model.
2. open your data modele and add it.
3. Map with your Controller and the View.
4. Apply a table on your ivew
4. Excute your BAPI.
PS: IF data is still not pulling up from back end then you need to test BAPI on your backend ..it working fine or not
Thanks
Similar Messages
-
Failure to connect to backend system in Portal
Hi Experts,
I was hoping someone could help, quickly!!
We are having an issue with transporting our VC model. We are on VC 7.0 SP17
I created a model in our development environment using a variable input form and adding the value help feature. After we deploy in our dev environment the model looks perfect!!!
We transported the VC model as an iview through the portal and we get a Failure to connect to back end system error. We ruled out that it is not a transport problem using the portal.
Can someone help!!
Thanks so much, AnnaHi Again,
Thanks for both of your response, however, there is nothing in the log files andt we still have the Application error message, failure to connect to backend system.
We were able to bypass the error and the model starts to "semi-function" - but we cannot access the characteristic through value help, we just get empty drop downs. We all have the proper authorization in BI....
Do you think there is a permission problem in the back end portal?
Hopefully you can help.
Thanks so much, Anna -
Could not connect to backend system through portal via Web Dispatcher
Web dispatcher redirecting problem
Dear Experts,
I have implemented a scenario which comprised of customizing that is developed in Portal EP7. What customizing does is getting report from backend system (ERP 6.0)
According to the needs for reaching the portal from internet I configured the SAP Web Dispatcher in the environment as you may see its contents below.
The problem is when I run the customizing in portal system then it requires connecting to backend system (ECC 6.0) to get the data (report). But from this point on web browser comes to a blank page, could not view the data that is from backend system via portal. Because in the time when it tries to retrieve data in backend system, on the left bottom of the explorer the indicator shows internet address that system uses connecting to the backend system as local network address of the backend system which is not known in internet therefore I get blank page.
The question is how to configure the web dispatcher in a way that both portal and backend systems could be reachable from internet?
Contents of profile file of Web Dispatcher as;
SAPSYSTEMNAME = WDP
SAPGLOBALHOST = portald
SAPSYSTEM = 02
INSTANCE_NAME = W02
DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTAMD64
DIR_EXECUTABLE = $(DIR_CT_RUN)
Accesssability of Message Server
rdisp/mshost = portald
ms/http_port = 8101
Configuration for medium scenario
icm/max_conn = 500
icm/max_sockets = 1024
icm/req_queue_len = 500
icm/min_threads = 10
icm/max_threads = 50
mpi/total_size_MB = 80
SAP Web Dispatcher Ports
#icm/server_port_0 = PROT=HTTP,PORT=81$$
SAP Web Dispatcher Ports
icm/server_port_0 = PROT=HTTP,PORT=60000
icm/HTTP/redirect_0 = PREFIX=/, TO=/irj/index.html
icm/HTTP/redirect_0 = PORT=50000
#maximum number of concurrent connections to one server
wdisp/HTTP/max_pooled_con = 500
wdisp/HTTPS/max_pooled_con = 500
Configuration for medium scenario
icm/max_conn = 500
icm/max_sockets = 1024
icm/req_queue_len = 500
icm/min_threads = 10
icm/max_threads = 50
mpi/total_size_MB = 80
Regards,
Ali TanerHi,
To resovle this you must have registered FQDN for your backend system as well. When you call the report from Portal using internet it should call that FQDN of your backend system then DNS will resolve this & you will get the expected page. This way only you can resolve this issue.
Thanks,
Sachin Sable -
User cannot connect to backend system with user J2EE_ADMIN.
I am using Rapid Installer to initiate the second part of the installtion "ERP 6.0 EhP 3 Self-Service Scenarios and Automatic Roles". When I get to the J2EE User section to enter the parameters, the user is defaulted to "Administrator" and I enter my password. I click next and get this message "User cannot connect to backend system with user J2EE_ADMIN." Any ideas?
If this is a double stack installation, you need to enter J2EE_ADMIN as user, NOT administrator.
Markus -
Connecting a webdynpro applcn to different backend systems
Hi,
We have a webdynpro application based on adaptiveRFC model connected to a backendsystem with client number 200 for users of sister company A.
Another sister company B would like to use the same application(also on the same WAS platform) but connected to the backend with client 300.
The JCO destination for the application allows definition of one specific system at one time.
Duplicating the webdynpro application seems tedious as the application is robust.
Any other suggestions?
Regards
meesumHi Meesum,
1. Create 2 Jco destination in your WAS. (eg. JCo_CompA and JCo_CompB)
2. Based on the company get the JCo.Client and set that to the model.
//Getting the JCo.Client from the J2EE server
IWDJCOClientConnection clientIWDJCOClient;
JCO.Client clientJCO = null;
//Change this string value based on company
String strSystemName = "JCo_CompA";
try
clientIWDJCOClient = WDSystemLandscape.getJCOClientConnection(strSystemName);
clientJCO = clientIWDJCOClient.getClient();
}catch (WDSystemLandscapeException e){ //Handle exception here
//Instantiate your model object and set the JCo.Client to the model
MO_Modelname objModel = (MO_ModelName) WDModelFactory.getModelInstance(
MO_ModelName.class,WDModelScopeType.APPLICATION_SCOPE);
objModel.setJcoClient(clientJCO);
Regards,
Santhosh.C -
Portal application connecting to backend R/3 system
Hi All,
i am developing one portal application through NDS(Netweaver Developer Studio) that connects to backend SAP R/3 system & fetches some data in R/3 system. I started working on it & developed some code, which i want to test whether it is working fine or not.I:e- code to connect to SAP R/3, but when i run the application it doesnt give any error but also it doesnt show any output which it should display(value of output parameter of RFC). Below is the code for component, code for JSP & code for bean. Can any one tell me what is the error in this? or why i am not getting the output i desired. All the connection parameters supplied in the coding are correct. Now below i mentioned these parameters as *, bt in actual i have mentioned them correct. I checked them twice, they are fine.
Code for Component
[code]package com.lti.portal;
//import java.util.ArrayList;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.*;
import com.sapportals.htmlb.event.*;
import com.sapportals.htmlb.page.*;
import com.sapportals.portal.htmlb.page.*;
import com.sapportals.portal.prt.component.*;
import java.util.ArrayList;
import com.sap.mw.jco.IFunctionTemplate;
import com.sap.mw.jco.JCO;
import com.sun.corba.se.internal.core.Response;
public class Connection_R3 extends PageProcessorComponent {
public DynPage getPage(){
return new Connection_R3DynPage();
public static class Connection_R3DynPage extends JSPDynPage{
private Conn_R3 myBean = null;
public JCO.Client mConnection;
public JCO.Repository mRepository;
public ArrayList al = new ArrayList();
public String output;
public String Ans;
public static String BEAN_KEY="myBean";
public void doInitialization(){
IPortalComponentRequest request =(IPortalComponentRequest) this.getRequest();
IPortalComponentContext context = request.getComponentContext();
IPortalComponentProfile profile = context.getProfile();
//create & initialize the bean.
Conn_R3 test_bean= new Conn_R3();
test_bean.setans("3");
// put the bean into application context.
context.putValue(BEAN_KEY,test_bean);
conn();
//IPortalComponentResponse res = (IPortalComponentResponse)this.getResponse();
//for(int i=0;i<al.size();i++)
//res.write(" "+al.get(i).toString());
public void doProcessAfterInput() throws PageException {
public void doProcessBeforeOutput() throws PageException {
this.setJspName("Connection_R3.jsp");
public ArrayList conn() {
IPortalComponentRequest request =(IPortalComponentRequest) this.getRequest();
IPortalComponentContext context = request.getComponentContext();
IPortalComponentProfile profile = context.getProfile();
Conn_R3 sample_bean = new Conn_R3();
sample_bean.setans("5");
//context.putValue(BEAN_KEY, sample_bean);
//r3-accessing
//connect_to_r3();
try {
// Change the logon information to your own system/user
mConnection = JCO.createClient("800", // SAP client
"********", // userid
"******", // password
null, // language
"*******", // application server host name
"**"); // system number
mConnection.connect();
//System.out.println(mConnection.getAttributes());
mRepository = new JCO.Repository("ABC", mConnection);
} catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
JCO.Function function = null;
JCO.Table codes = null;
try {
function = this.createFunction("ZSAMPLE");
if (function == null) {
System.out.println("ZSAMPLE" + " not found in SAP.");
System.exit(1);
String num1 = "7";
String num2 = "9";
//String ans;
function.getImportParameterList().setValue(num1,"My_import");
function.getImportParameterList().setValue(num2, "My_Import");
mConnection.execute(function);
Object name =function.getExportParameterList().getValue(Ans);
output=name.toString();
sample_bean.setans(output);
//sample_bean.setans(output)
//al.add(name);
//store values into strings
//pushing of values we get from r3 into awt
} catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
disconnect_r3();
return al;
public void connect_to_r3() {
public JCO.Function createFunction(String name) throws Exception {
try {
IFunctionTemplate ft =
mRepository.getFunctionTemplate(name.toUpperCase());
if (ft == null)
return null;
return ft.getFunction();
} catch (Exception ex) {
throw new Exception("Problem retrieving JCO.Function object.");
public void disconnect_r3() {
mConnection.disconnect();
Code for BEAN
package com.lti.portal;
import java.io.Serializable;
public class Conn_R3 implements Serializable {
public String answer;
public void setans(String a)
answer=a;
public String getans()
return answer;
Code for JSP
<%@ taglib uri= "tagLib" prefix= "hbj" %>
<jsp:useBean id="myBean" scope="application" class="com.lti.portal.Conn_R3" />
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<hbj:textView
id="Welcome_message"
text="<%=myBean.getans()%>"
design="STANDARD" >
</hbj:textView>
</hbj:form>
</hbj:page>
</hbj:content>Hi Chetan,
Connection to R/3 systems through Portal can be done in many ways. Since you have mentioned that you are using jspdynpage then its better that you use JCo for connecting to R/3 system.
U can write the JCo code using the jspdynpage component. I hope you have pdfs related to JCO. Incase u dont have then give me you mail id. OK
Another approach could be developing a web dynpro java application that access a r/3 table using a BAPI. You can a dynpro model to easily connect to R/3 system.
Just develop an iview based on this web dynpro application. And finally navigate to this iview through your jspdynpage.
I hope this helps you in some way
Regards,
Prasanna -
Failed to connect to backend system
Hello,
I have installed visual composer and experience some errors.
My system fails to connect to the backend system in VC. I am able to create SAP transaction iviews for the system, see the alias, and user mapping is configured.
When I perform the System Connection test for my system which based on the load balancing template. All the test fail except the ITS test.
- SAP Web AS - SAP Web Application Server
- ITS Connection Tests the connection to an SAP
- Connection Test for Connectors Tests
- Connection Test Through DQE
Must all these test pass, or is it enough with only a subset of these tests. Does the alias have to be the same as the logical system.Hi Jørgen,
It is a genuin problem. Just tell your Portal Administrator to give the userid (which you are using to log in to the portal from VC) the full authority for the alias you want to access from VC, as it is the portal administrator who has the rights to give access to various portal users. In the portal, the administrator can give a user the access to an alias by selecting that alias and change the required property.
Try the following flow to get the required document:-
help.sap.com->SAP Netweaver->SAP Netweaver 2004->people integration->portal->Administration Guide->System Administration->Permission,Role/User........
Check out the given help document, I hope it will help you in solving your problem.
Check out the section 3.2 (specially steps 25-30) in the pdf file provided in the following link :-
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
Thanks in advance,
Deep. -
MSS Component not connected with Backend system
Hello All,
In our NW Portal 7.01 system, we have got old Business package of MSS 60.1 & when we are trying to connect to our backend system R/3 4.7, we are able to connect it.
Now we have upgraded portal to EHP1 and then we are trying to do the same, then we are not able to connect to MSS business package, as we are getting TP Host missing error and connection not able to do with R/3 system
Has anyone come across such scenario? please update us asap.Just 1 correction, we are able to work successfully with NW 7.0, but not after upgrade to EHP1.
So need to know, whether anyone is able to work with NW 7.01? -
Publishing through Portal - "Connection to backend system failed"
We are having a problem publishing documents through our SAP Portalu2019s service u201CPublish Course Contentu201D under Course Administration.
When we go to publish, we get a status u201CConnection to backend system failedu201D with the message u201CNo message availableu201D.
We are running:
Portal on NW 7.0 EhP1, Support Package 04.
ABAP on ERP 6.0, EhP4, Support Package 18.
Both the Portal and ABAP systems are running on Linux RHEL5, with an ORACLE 1.0.2.4 database.
Portal and ABAP are on different servers.
Not certain if this is significant but under System Configuration, if I open my ABAP back-end systemu2019s configuration and perform connection tests, the overall Connector test fails.
We also have a sandbox system on which we did the configuration first. We have compared all of the values for the configuration we have done to ensure they are configured the same. On the sandbox, the connection test is successful and we can publish content without error.
I have been trying to review the various trace files, increase trace levels, etc. both on the ABAP back-end system and on the Portal. I have been able to find anything that appears significant but this is probably due to my not knowing what to look for.
Which specific trace files should be reviewed for the root cause of the issue? What are the exact steps the Publish process takes to accomplish its work? If we know the exact steps it takes (how it communicates, what modules it uses, what accounts) we might be able to determine the root cause.
We are using a SAML login to our portal for authentication and have removed the Basic password login module from the Authentication Stack u201Cticketu201D. We have established trusted RFCu2019s between the ABAP and Java instances for the Publishing function. When authentication is configured, we try to use the highest form available in the configuration. We use Assertion tickets if available, it not, we use Logon Tickets, if not available, we would then select X.509 certificates and if that were not available, would select Username and password.
Any ideas as to what we should be looking at would be greatly appreciated. I have searched both SDN and SAPNet for similar situations and not yet found something that corrects the problems.
Thank-you in advance,
Deb Nugent.Arun,
Thank-you for your suggestions. The ABAP back-end system is up and I have verified the connection properties. I have had others verify as well. All appears correct.
The default trace files, through NWA, show the messages:
BackenConfig not correct. processId = 78775D8D1053B855;
com.sap.hcm.ls.shared.config.backend.BackendConfigException: Destination Exception
Can not get Destination com.sap.security.core.server.destinations.api.DestinationException: The properties for destination ZZ_LSOCP_JP3 of type RFC could not be located.
I have checked all of the trace files both on the ABAP and Java sides and cannot determine the root cause. I have repeatedly tried things suggested by other threads in SDN and others (consultants) have tried as well. We cannot determine the root cause of the connection errors and now, cannot get the Publishing to work properly.
The only system where the connector test works is our sandbox. Our dev and test systems all fail the connector test. We configured them all using the same documentation.
Is there some way to increase trace levels to try and get more details? And what objects would need to have traces increased?
Deb. -
Connecting to backend system with parameters
Hi,
i am able to get connected to bakend system with sytem number, portno, sid, host or ip... and can get transcation ivews with that...
ex: i am able to see perticular SAP R3 Transactional iview with these parameters
Then what is the purpose of creating RFC destinations, go.bat configuration, certificate creation and all those things.....
Thanks
Kumar.Hi Kumar,
This things are needed when you want to access any service from R3 to Portal or vice versa. Like <b>Adobe Document Service (ADS)...</b>It should be installed in Portal server..and if you want to use ADS for displaying/printing R3 form in pdf format then you need to access ADS from Portal. For this type of case you need only the creation of RFC destination, go.bat configuration for HTTP destination, certificate..etc..
Thanks,
Sekhar -
JCO Connection to Backend System - CC 5.1
Hi All,
I have installed Virsa CC 5.1 on my server which is Netweaver 2004s system. Now i want to connect one of my servers which is a SAP 4.7 EE. For this i downloaded the RTA for 620. Now when i create the JCO from Webdynpro/COntent Administrator/maintain JCO Detination I'm getting the error below. We are trying to use the message server of the SAP 4.7 EE system and J2ee cluster of the 2004s system.
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=mnr3472trg GROUP=PUBLIC R3NAME=CER MSSERV=sapmsCER PCS=1 ERROR hostname 'mnr3472trg' unknown TIME Thu Aug 23 11:13:45 2007 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -2 MODULE ninti.c LINE 361 DETAIL NiPGetHostByName2: hostname 'mnr3472trg' not found SYSTEM CALL gethostbyname_r ERRNO 11004 ERRNO TEXT WSANO_DATA: Valid name, no data record of requested type COUNTER 1
Can any one please help me out?
Regards,
VishalHi Vishal -
I'd double check that a) your SLD is running b) check with whomever is maintaining the SLD that it contains correct entry for message server to your target system - and that there aren't any cross - domain issues with this connection.
cheers
Paul -
No system available - When connecting to backend system
In the VC we have created our models, we then select data, then click on the portal connect button, the logon page is then displayed from which we log-on, the logon page disappears and the VC 'Data' page is displayed, the 'Connect to System' field display's a message 'NO SYSTEMS AVAILABLE'.
We have checked and tested the Portal settings which are all connect the R3.
The VC has previously been working and we have implemented a live application last year, however, we have recently re-built our server and ever since the VC has been displaying the above error message.
We are on EP6 SP2, and the VC version 6
Can anyone please help...hi
since you said you rebuilt the server and all. you might want to check the user mappings for the systems you have in the portal.
plus try redeploying the portaladdons for the visual composer.
hope that helps. -
WebDynpro application no displayed on other systems
Hi All..
We have developed an WebDynpro application using webservices where in the webservice will be used in connecting to the XI server and the rest all the business logic is there is done on XI which will be connecting to the R/3 using an RFC and the data is retrived on to the webdynpro.This has been deployed on to the XI J2EE engine and its running well on the systems where we are having the NWDS but its not working when we are using the same URL in other systems.Its working well on the system where we have NWDS.
We are having EP and XI servers on different systems.
URL:http://hostname:port/webdynpro/dispatcher/local/XIWebService1/OrderApp
Help Me
Thanks in advance..
SumaHi Suma,
Are you getting any error or just a blank page ?
Did you check wether you can access any other webdynpro application page on other system where NWDS is not available?
Let me know the details ..
Nanda -
How to connect to multiple backend systems to IMS
Hi,
I want to connect multiple backend system to SRM IMS.How to connect multiple backend system.
Thanks in advance
Regards
Nitin AmritkarHi
see page 63. it is possible.
define backend systems in spro and record all your ecc systems and create a distribution model fpr bbpiv message in srm and distibute to all backend systems.
http://www.portal.state.pa.us/portal/server.pt/gateway/PTARGS_0_160867_305341_0_0_18/2006_05_26_srm_007.pdf
br
muthu -
Potal Authorisation Error:"Failed to connect backend system.Check your syst
Hi Experts,
Please advise me on how to proceed....
I created a dashboard reports (5) based on 5 different reports in BI Queries using Visual Composer...I deployed them to portal and in portal i assigned those iviews to a role and assigned that role to a end user.
In BW end user is autorized to execute those 5 queries and in portal user is able to access those queries as well
But when he tried to execute Dashboard reports..it is displaying error
"Failed to connect backend system.Check your system definition and user priviliges"
Then i modified his authorisations in BW assigned SAP_J2EE_ADMIN role in BW and then in portal he is able to execute the Dashboard reports...by assigning the SAP_J2EE_ADMIN role he is able to execute dashboards in portal and he got more authorisation in portal than he required like 'Content Admin','User Admin' and 'System Admin'
I tried by using SAP_J2EE_GUEST role but he is getting error
"Failed to connect backend system.Check your system definition and user priviliges"
Please advise on how to proceed
ThanksHi,
Refer,
Visual composer
Failed to connect to backend system. Check your system definition and user
Regards,
P.Manivannan.
Maybe you are looking for
-
Unable to filter a recordset using a session variable
I have a volunteer application page and when the volunteer presses <Submit> their info is saved in a MySQl db table and a session variable is created containing the primary key of their record in the table, control is then passed to a "success page".
-
Help On Creating Process Chain
Dear Experts, we have a Process chain A running twice a day (01:00 AM & 13:00PM). Now I've created a Process Chain B(Broadcasting workbook in SAP BW 3.x). This Chain has to run by following 01:00AM only once after finishing the Process Chain A(this
-
Can Illustrator really make use of 8GB RAM?
Hello, I'm thinking of upgrading my 17" 2010 Core i7 Macbook Pro from the curretn 4GB of RAM to 8GB or RAM as the prices have come down considerably. (around £40.00). I've already posted a thread on a mac forum, but I thought that posting in on here
-
Help on installing Photoshop CS6 on Mac OS X Lion
Mac OS X Lion, I am using version 10.7.4. Trying to install Photoshop CS6 Free trial, before I buy a license. But since I can't even install the trial successfully onto my computer, I fear that buying a license will still lead to a failed installion
-
Can't record video's in iOS7 on iPAD 3th generation
I just upgraded my iPAD 3th generation to iOS7 ( it seems to be very slow ) and now I can't record any video's anymore in camera. I can't seem to select video or square format, so i'm stuck with only taking pictures? Please help.