BI query to be accessed from Web Dynpro Java
Hello,
I have a requirement to access a url that fetches data from BI.
The BI query provides output as an xml file when the query is run in a browser and required authentication credentials are provided.
I do not wish to use the standard BEx iView approach available in portal.
Any clue how this can be achieved ??
Thanks in advance.
Regards,
Sudeep
Hi Avik,
I imported the project 3-4 times already, moreover I created a fresh project also. Same outcome.
I am executing the BAPI also. Just now I had restarted the Java Server, let see will that work, this might be pointing to some other server coz I originally configured with other server but shifted to another which i am using right now.
will get back to you if solution achieved. Thanks.
Best Regards
Chander Kararia
Similar Messages
-
Moving from Web Dynpro Java timesheet to Web Dynpro ABAP timesheet
Hi
We are in the process of moving from Web Dynpro Java ESS timesheet to Web Dynpro ABAP ESS timesheet. When using Web Dynpro Java ESS timesheet it is possible to enter time using a daily or weekly view.
When using the Web Dynpro version and ensuring the period type is set to weekly view for the data entry profile it is only possible to enter time on the weekly view, the tab for the daily view is no longer available.
Still using the Web Dynpro version and changing the period type to daily view I can enter time using the daily view and the weekly tab also becomes available, but the weekly tab is read only.
Do you know if it is possible to make daily and weekly timesheet entry for one data entry profile.
Thanks
MarkYes you can have only one view ie weekly or daily as per your CATS profile in CAC1.
but of course you can select multiple profiles
Configuration
The application configuration HRESS_AC_CATS_1 is provided by default and allows you to provide default values for the application parameters. It also allows you to specify the layout and appearance of the application.
The following application parameters are provided:
HIDE_CLOCK_TIMES_IN_WEEKLY
Hides the clock times in the weekly view.
MULTIPLE_PROFILE
Enables the selection of multiple data entry profiles from the dropdown list -
HTTP form post from Web Dynpro Java Application without opening new window
Hi Experts,
We are trying to submit form data to an external URL from Web Dynpro Java application. We are achieving this with the following piece of code.
try
strPrintContent="<html>"+
"<head>"+
"<script type=\"text/javascript\">"+
"function myfunc () "+
"{"+
"var frm = document.getElementById(\"paymentForm\");"+
"frm.submit();"+
"}"+
"</script>"+
"</head>"+
"<body onLoad=myfunc()>"+
"<form id=paymentForm method=post action=\""+merchantURLPart+"\">"+
"<INPUT type=hidden name=username value="+userName+">"+
"<INPUT type=hidden name=pass value="+passWord+">"+
"<INPUT type=hidden name=senderid value="+senderID+">"+
"<INPUT type=hidden name=dest_mobileno value="+mobile+">"+
"<INPUT type=hidden name=message value='"+msg+"'>"+
"<INPUT type=hidden name=response value="+response+">"+
"</form>"+
"</body>"+
"</html>";
IWDWebResource webResource = WDWebResource.getWebResource(strPrintContent.getBytes(),WDWebResourceType.HTML);
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(webResource.getAbsoluteURL(),"WBSEDCL");
window.show();
catch(Exception e)
wdComponentAPI.getMessageManager().reportException("Error : "+e.toString(),false);
But it opens another window. We dont need that. We have to stay on the same window. Please suggest what can be done.Hi,
You can create a HTML file with the request post parameters and the external URL something like this:
public java.lang.String GetRedirecturl( )
// External URL
String html = "<html><head></head><body onload=\"load()\"> " +
"<form id=\"form1\" action=\"https://www.abc.com/xyz.jsp\" method=\"POST\">" +
// Post Parameters
"<INPUT TYPE=\"HIDDEN\" NAME=\"Param1\"VALUE=\""+Param1Value+"\">"+
"<input name=\"sap-wd-resumeurl\" type=\"hidden\"/>" +
"</form> " +
"" +
"<script>" +
"function load(){" +
"var loc = window.location.search.substring(1);" +
"var queryString = loc.split(\"sap-wd-resumeurl=\");" +
"if(queryString.length > 0)" +
"{" +
"var resumeURL = queryString[1].split(\"&\");" +
"if(resumeURL.length >= 0)" +
"{" +
" document.forms['form1'].elements['sap-wd-resumeurl'].value= unescape(resumeURL[0])" +
"}" +
"}" +
"document.getElementById('form1').submit();" +
"}" +
"</script>" +
"</body> </html>";
String redirectUrl = "";
byte[] byteArrayHtmlData = null;
try {
byteArrayHtmlData = html.getBytes("UTF-8");
} catch (UnsupportedEncodingException e) {
wdComponentAPI.getMessageManager().reportException("Internal error occurred. Please try after some time",true);
IWDResource htmlResource = WDResourceFactory.createCachedResource(new ByteArrayInputStream(byteArrayHtmlData), "Redirect.html", WDWebResourceType.HTML, true);
redirectUrl = htmlResource.getUrl(WDFileDownloadBehaviour.AUTO.ordinal());
return redirectUrl;
Hope this will be helpful.
Regards,
Anurag -
Calling Remote-Enabled JAVA Module from Web Dynpro Java
Anyone have a clue how I can call a Remote-Enabled JAVA Module in ECC from a Web Dynpro Java app? I'm on Portal 7.0. When I try and create an Adaptive RFC model in NWDS and put in the Function Module name (CFG_API_FIND_KNOWLEDGEBASES) or its Function group, that RFC is not returned for me to import. Can I not use this method to get at this function?
(I CAN call this function module and run it from the old SAP Business Connector software. That, however, does not help me get it into my Web Dynpro app.)If anyone stumbles upon this thread, the long and short answer is you can't call a Remote-Enabled JAVA module in SAP from Web Dynpro Java.....using Adaptive RFC.
You can, however, if you create your own session and function call directly in Java code and give up on being able to use Adaptive RFC. -
Accessing UWL API from Web Dynpro Java
Hi experts,
I need to retrieve the data from UWL into Web Dynpro java, I have gone through many blogs and solutions but since I am new to portal I am unable to a get hang of it. Can anyone provide me step by step solution including codes for my problem?
Thanks & Regards,
Amit Sinha.
P.S. Points will rewarded.Hi Amit,
just gothrough this below link... here they given the coding also.....
Accessing UWL-API out of Web Dynpro Java
it may be helpful to you.... pls comeback if you are struck any where......
Regards,
Srinivas. -
Web Service access from WEB Dynpro
Hi,
I have requirement to pass the values from web dynpro to .NET cross application can any body guide me?
Regards
Srini.hi
Check for the methods like setuser and set password for your webservice
Request_<webservicename> request=new Request_<webservicename>();
wdContext.nodeRequest_<webservicename>().bind(request);
wdContext.currentRequest_<webservicename>Element().modelObject()._setUser("sdnuser");
wdContext.currentRequest_<webservicename>Element().modelObject()._setPassword("sdnuser");
wdContext.node<webservicename>Request().current<webservicename>RequestElement().setRequest(company);
try
wdContext.currentRequest_<webservicename>Element().modelObject().execute();
catch (Exception e) {
wdComponentAPI.getMessageManager().reportWarning("Exception:"+e);
Hope this helps,
Regards,
Arun -
Migrating from web dynpro java app nwds 7.0 to nwds 7.3
Hi,
is it possible to migrate web dynpro java app developed in nwds 7.0 to nwds 7.3 environment.
I tried but lots of problem.
Is there a blog?
Regards.Cemil
its very much possible to migrate the component to 7,3 platform. SAP NWDS 7,3 provides a migration wizard to help with the migration, after that you need to do some manual adjustments, like changing the deprecated APIs, fixing JAR dependency etc etc..
Here is a guide on how to do it step by step
http://help.sap.com/saphelp_nw73/helpdata/en/e9/546e60777641509a5e0dc5cd05675b/frameset.htm
Hope this helps... -
Navigation to External URLs from Web Dynpro Java
Hi,
I have Web Dynpro application, which shows one button called 'Navigate' and 'Close'.
I have created iView for this Web Dynpro application and integrated with Page to display in Portal.
When I click the button 'Navigate', I want to display some external url (ex: http://www.google.com) in the same window.
When I click the button 'Close', I want to close this window.
Let me know how to achive this.
ThanksHI
To close a window use
window.hide();
windw.destroyInstance();
and check this [thread |How to close a window ?;
For navigating to another web page use LinkToURL UI element in code and place your website as said above
Regards,
Mahesh -
Hi all,
Can anybody tell me how to fetch records from MS-ACCESS in Web Dynpro java.Hi,
Please go through this thread Using MS Access as backend in Webdynpro Application
Regards,
ramesh -
Web dynpro java application to update data in CRM system
Hello All,
I need to develop a web dynpro java application which will read and update data in CRM. How can I do this?
Thanks and Regards,
DeeptiFirst develop RFC / BAPIs to update and read in CRM system. Call those BAPIs from Web Dynpro Java application using AdaptiveRFC model.
Cheers,
~kranthi -
Kill the RFC connection as soon as the call is completed in Web Dynpro JAVA
Hi Experts,
Please guide us how to kill the RFC Connection from web dynpro java as soon as the execution is completed.The FM connection (Adaptive RFC) isnt getting closed in IS-U side. Please guide us how to close them explicitly.
We are getting the following error
(102) RFC_ERROR_COMMUNICATION max number of cpic clients exceeded (300)hi suvankar ,
wdContext.current<Modelname>_InputElement().modelObject().modelInstance().disconnectIfAlive();
use this option after executing your rfc, it will remove the connection to the r/3.
adn this
(102) RFC_ERROR_COMMUNICATION max number of cpic clients exceeded (300) -- is occuring because the pool size defined the jco destination is not sufficient, ask your basis team to increase the pool size.
Regards
Govardan -
How to access HttpServletRequest from Web Dynpro
Hi,
How could I get HttpServletRequest from Web Dynpro. I used the following code
IWDRequest req = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
HttpServletRequest hreq = (HttpServletRequest) reg;
but it's throwing ClassCastException.
Is there any other way?
Thank youI am building an application based on IPC API. I need to pass HttpSession as a parameter to initialize some IPC objects. Mainly trying to create IPCClient object.
-
Accessing ABAP Functions in Web Dynpro Java
Hi,
I am trynig to do "Accessing ABAP Functions in Web Dynpro Java" this application, (which is the example application which i got from www.sdn.sap.com) but everything is fine no error also while dyploying.
But it is not dysplaying the first page after i run the application i am getting plain web page ,without any content.
Can any body help me.
Regards,
H.V.Swathik.. now iam getting some error on page.
I have embeded the two view in to window.
But now after running the application i am getting connection error
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=jktr3 GROUP=SPACE R3NAME=R32 MSSERV=sapmsR32 PCS=1 ERROR Group SPACE not found TIME Fri Sep 26 15:05:59 2008 RELEASE 700 COMPONENT LG VERSION 5 RC -6 MODULE lgxx.c LINE 4288 DETAIL LgIGroupX COUNTER 1
at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:457)
at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:989)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3193)
at com.sap.dictionary.runtime.mdi.DataProvider.<init>(DataProvider.java:90)
at com.sap.dictionary.runtime.mdi.DataProvider.<init>(DataProvider.java:122)
... 61 more
Rgards,
H.V.Swathi -
Execute BI Query in Web Dynpro Java
Dear All,
I have a requirement where i have to display of traffic light that sets its color based on the outcome of a SAP BEx query using Web Dynpro Java.
Please explain me the steps how to retrieve and execute the SAP BEx query using WDJ.
Thanks & Regards
RajeevHi Rajeev
You can refer to the following links :
[How to execute a BI query/view from a web dynpro application?]
[How to send query parameters using BIApplicationFrame]
Regards,
Sayan Ghosh -
Connecting to SAP from Web Dynpro
Hi,
I am new to web dynpro, but have downloaded the java sneak preview edition and worked through it a bit. I understand that we have to use JCo to connect to SAP from Java Web dynpro, . Is it true?
What about web dynpro for ABAP? Can we use normal select statements to connect to SAP? How is it exactly done in that case?
Thanks in advance
PGhi pg
Just go thru this example which describes how to connect to SAP from web dynpro application.
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on accessing abap functions in web dynpro - 4.htm
thanks
kris
Maybe you are looking for
-
Garageband is not picking sound from builtin mic (rMBP). I recorded some tracks, now it is not working. I have checked GB Preferences, Audio/MIDI > Audio Input > Built In Microphone. All other apps can use the mic. Dictation, Skype etc. can use the m
-
Can I show Line Graph Markers in Legend?
Can Markers be shown in the legend? We have a Graph with linetypes and markers and the linetypes show in legend but not the marker . I have tried several things but nothing seems to work. Here is a snippet of code that I have tried (specifically setM
-
J1ih Issue for capital on Hold
Dear All, I have to capture additional excise on Capital Good(RG23C) from T-code J1IH in Additional Excise. So when i enter amount in BED Amount = 100, ECS Amount= 10, SECess Amount= 4 and click on Determine GL system show SECESS Ac DR 2 BED
-
More than one solution active ?
Hello Everyone, I have some enhancements to Opportunity, Accounts and Activity. These enhancements are part of different solutions. That is, Opportunity Extensions are part of one solution, Accounts extensions are part of another and activity in anot
-
I'm having some trouble with a network setup. Sending box is a G4MDD w/10.3.9 receiving box G5 dual 2.0 w/10.4. Had I not seen it with my own eyes I never would have believed it. But the sending box put up the progress bar and showed 644 megs of data