Calling WD application from external browser
Hi Experts,
How to call a webdynpro application from an external browser.
Say i have a url 'http://sapep3.utf.sskgroup.local:51000/index.html'.
After i enter this URl in browser i want my webdynpro application to be called.
Thanks in advance
SSK
Hi,
Confused on html / sap?
to create link in index.html:
<a href="https://****:8210/sap/bc/webdynpro/sap/zwd_rk_test_dates?sap-client=500&sap-language=EN">Check Dates </a>
The URL of your WD application you may copy from SE80 t-code.
Regards,
Rama
Similar Messages
-
Call BSP Application From ABAP
Hi,
I want to call BSP Application from ABAP. I've searched the forum and they all are displaying BSP Page in Container of the Screen. My requirement is to show it in a web browser. For that matter I am generating URL to call BSP Application. Following is the code which is throwing short dump.
DATA: url TYPE string,
l_appl TYPE string,
l_page TYPE string,
l_params TYPE LINE OF tihttpnvp,
params TYPE tihttpnvp.
l_appl = 'ZPWLS_SCH_RPT'.
l_page = 'SELECTION_SCREEN.htm'.
call method cl_http_ext_webapp=>create_url_for_bsp_application
exporting
bsp_application = l_appl
bsp_start_page = l_page
bsp_start_parameters = params
importing
abs_url = url.
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
url = url
WINDOW_NAME = ' '
new_window = 'X'
BROWSER_TYPE =
CONTEXTSTRING =
EXCEPTIONS
FRONTEND_NOT_SUPPORTED = 1
FRONTEND_ERROR = 2
PROG_NOT_FOUND = 3
NO_BATCH = 4
UNSPECIFIED_ERROR = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks,
Usman MalikWhat is the dump? also you should uncomment the following lines to receive the exception thrown by the FM
* EXCEPTIONS
* FRONTEND_NOT_SUPPORTED = 1
* FRONTEND_ERROR = 2
* PROG_NOT_FOUND = 3
* NO_BATCH = 4
* UNSPECIFIED_ERROR = 5
* OTHERS = 6 -
How to call WD Application from another WD Appliction
Hi all,
how can we call webdynpro application from another wbdynpro application on click of a button in the same browser.
pls suggest
regards
vishalHi Vishal,
Just try to Embed the another WD Component into Component Controller first.
And then Create a View and map it to window as U regularly do,
then in Window- Explore the tree until that View, now open Context Menu for Embed View Option and from the scroll U get search for that WD Component U wanna Embed.
U also have to handle Plugs here, Because the result application required some parameters to be passed that U do from ur first application by passing those values through Plugs. -
How to call OIM API from external app?
Hi,
I have an java application and I would like to call OIM API to accept a request. The application resides in separate server than OIM.
My questions:
*1.* What to do to call OIM API from external application (import any OIM jars etc.)?
*2.* Which method to use, setRequestResponse , closeRequest or any other?
I appreciate any help, thanks.
Edited by: m.m. on Feb 2, 2010 5:33 AMHello,
If it is an external client, you need to provide the "login" and "password" details explicitly in the code (something like this), before getting any other Interface control to invoke the OIM APIs -
public class OIMAPIClientTest {
public static void main(String[] args) {
try{
System.out.println("Starting...");
ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
Hashtable env = config.getAllSettings();
tcUtilityFactory ioUtilityFactory = new tcUtilityFactory(env,"xelsysadm","abcd1234");
System.out.println("Getting utility interfaces...");
Regards,
Amit
Edited by: amitKumar on Feb 2, 2010 5:29 AM -
Calling BSP Application from Business Object?
Hi,
Can any one tried to call BSP Application from Business Object for showing in the Portal.
I have the following Scenario:
1. BSP Page: User will input the Date and Submit to store in the Database. and in this page the Workflow will be truggered and a Work item will be sent to the Next Level User.
2. When he executes the Work Item it has to trigger the BSP Application and has to show in the Enterprise Portal.
All this has to happen in the Enterprise Portal.
If any one knows how to triggere from business object, please let me know.
Thanks & Regards
SumanthHi Vijay,
Thanks for the information. Its long back i was working on this, but not successful,
Now the similar requirement i need to develope in R/3.
I checked the mentioned class in R/3 4.7, This class is not available. I hope this is only in CRM because of PC-UI.
Any Suggesions how can i achieve this execution of BSP.
In one of the document i saw the Business Object BUS1006 as an example but i could not locate the way to reutilize the similar way.
Thanks & Regards
Sumanth -
Web dynpro abap : Call an application from another with parameters
Hi ,
Could you please tell me how to call an application from another with parameters?
Thanks a lot
Karim* Construct the URL
call method cl_wd_utilities=>construct_wd_url
exporting
application_name = 'APPLICATIION_NAME'
importing
out_absolute_url = g_url.
* Append parameters to URL
data: g_par1 = lv_value. " value of your parameter
call method cl_http_server=>append_field_url
exporting
name = 'PAR1' " Parameter name
value = g_par1
changing
url = g_url.
* Call the Application
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_external_window(
url = g_url ).
lo_window->open( ). -
How to call WebDynpro application from an external application
Hi All,
I have an external application, from which an existing webdynpro application should be accessed.
Is there any way i can access WebDynpro application through an URL, so that i can access the same from the external application.
I have to pass a parameter also in the url from extrenal application for which that data should be displayed.
Thanks
SupriyaYou can call a web dynpro application from an external app by using the web dynpro application url.
Go to WD application in studio and look at the properties tab, you will find the url.
It should be something like this:
http://<host>:<port>/webdynpro/dispatcher/<namespace>/<dc name>/<application name>
MLS -
Calling FPM application from another FPM application
Hello Experts,
I've created 2 FPM configurations, one displays the list of POs created by the user through a List UIBB and the other displays the Header and Item of the PO when selected.
Scenario is that when I should click on the PO (which is a link) in my 1st application, I need to pas the PO number and some other details to my 2nd application and display the PO header and Item. My all Config is purely UIBB based and I'm not using webdynpro at all for designing any views, everything is designed using FPM UIBBs and feeder classes only.
what I need to know is:-
1) how can I pass the data between 2 different FPM applications?
2) how to call and display my 2nd Application on the same page when I click on the link of 1st application? I need the BACK functionality as well.
3) how to get the data into my 2nd application from 1st application?
Plz suggest.
Best Regards
Jitin KharbandaJitin,
The best option in your case would be to open a new browser window with the second application and pass an URL parameter along with the document number.
Then you can read the URL parameter in the second application. Please see Re: Determining Edit/Display Mode from Within Freestyle Component how this can be achieved.
Embedding another FPM application into an already opened FPM application (e.g. by embedding a freestyle UIBB and loading the second FPM application from there) won't work as the FPM runtime will cause a dump saying that two instances ofthe FPM are not allowed.
If you MUST embedd your second application into the first one, the only chance that comes to my mind is the merge the configurations of both applications and pass the data via singleton / wires / events. Please see Data exchange possibilities in Floorplan Manager
Regards, Uwe -
Calling POWL Application From Webdynpro
Hi Experts,
I have a requirements wherein I have to call a POWL application from Webdynpro. Please let me know how to achieve this.
POWL - Personal Object Work List
Any help is welcome.
Thanks
DivakarHello Diwakar,
Based on your query i understand that you need to embed your powl into a web dynpro application to view it.
u can do it in two ways..
the first one is just for testing..
prerequisites...
just check ur web dynpro service is activated.
Use transaction SICF
On the Maintain Service screen leave the default values as they are and choose Execute
In the Virtual Hosts/ Services tree control locate the node sap/bc/webdynpro. Right click on
the node and choose Activate Service from the context menu.
1. Navigate to the initial screen of the SAP Easy Access Menu.
2. Do a right-click on Favorites and choose Add other objects from the context menu.
3. Choose Web Dynpro Application from the upcoming dialog box list.
4. On the Web Dynpro Application subscreen, make the following entries.
Web Dynpro Applicat.-->POWL
Parameter -> APPLID (Be sure to select the parameter via input help.)
Value ->Specify the APPLID defined for the POWER List to test.
Leave rest unchanged.
click OK.
By double-click on the created favorite, the specified POWER List will be displayed in a separate
Browser window..Only the basic functionalities can be tested this way.
The second way is in which you manually insert a powl component in web dynpro appl..
1. create a web dynpro component.
2. Specify POWL_UI_COMP as the used component in the properties and give a suitable name.
3. In the main view. insert a ViewcontainerUIelement.
4. In the component controller properties . click on create controller usage. and select POWL_UI_COMP
INTERFACECONTROLLER
5. Go to the windows selection and right click and select embed view on the ViewcontainerUIelement of the Main view. select POWL_MASTER from input help.
6. Create an outbound plug , name it as 'OUT'. link it with DEFAULT plug by dragging.
7.Go to the methods tab and in the Handle Default method .
and paste the following code..
DATA: lv_inbox_query TYPE string,
lt_query_params TYPE rsparams_tt,
lwa_param TYPE rsparams.
DATA lv_qname TYPE POWL_QUERY_TY.
lv_qname = 'QUERY1'.
CALL FUNCTION 'POWL_ENCODE_SELPARA'
EXPORTING
i_selpara = lt_query_params
i_escape = '\'
IMPORTING
e_selpara_string = lv_inbox_query .
wd_this->fire_out_plg(
applid = 'POWLappl' " powl_applid_ty
forallq = 'X' " powl_xflag_ty
qselpara = lv_inbox_query " string
refresha = 'X'
refreshq = 'X' " powl_xflag_ty
srvgroup = 'X'
qname = lv_qname " rzlli_apcl
where QUERY1 is the name of your default query and POWLappl is your powl applid.
7. create application and test -
How to call webdynpro applications from outside
Hi
I have a requirement where i need to call below webdynpro application from outside (for ex CRM,ISA..) environments
http://test.com/webdynpro/dispatcher/test/eomp~eompapp/EmpDisp?EmpNo=0500002203. When i am running this application from
browser , my application working fine and i am able to see call to the backend BAPI's. But when I configure this url
in the configurations of the above environment. I am unable to run this application.
Any Idea?
Thanks
PrasadHi
I am not getting any error, but the backend call not hapening. I put a debugger in the backend BAPI and run the webdynpro application , no input parameters came or call came to the the backend BAPI.
Thanks
Prasad -
Calling java application from servlet using servletexec servlets
We are using servletexec 3.0,IIS 5.0, sun Java SDK 1.3.1_12.
I have a servlet which works fine. This servlet is being called from the submit of the form in a html file.
It works fine.
But now i have to use a third party credit card application from my servlet.How can i do that.
I have added the third party jar files in the classpath of servletexec.
How can i use their methods.
Please let me know.Something like this ?
import thirdparty.*;
import javax.servlet.http.*;
public class MyServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response) {
ThirdPartyClass t = new ThirdPartyClass();
t.someMethod();
} -
Calling Java application from servlet
Hi !
I'm trying to run a Java application from within a servlet with Tomcat 4. I'm using the Runtime.getRuntime ().exec () method. So the application is run in a different JVM as a subprocess of the servlet. I use ObjectInputStream and ObjectOutputStream and a serializable object to enable communication between the servlet and the application.
I tested the application and the serializable object with another Java application that works as the caller and it works fine. However, replacing the caller application with the servlet I get a StreamCorruptedException. The structure of the caller application and the servlet is the same.
My questions are:
- Is there something I should configure in Tomcat to create a subprocess ?
- What is the cause of the StreamCorruptedException ? How do I get it with the servlet and not with the application ?
- Should I use an environment with the call to Runtime.getRuntime ().exec () ? How do I use it ?
- Is the called application forced to run in my servlet's context ?
- Is there a better way to do this ?
Thanks to allHere's my code:
1. The serializable object:
// Object Obj
import java.io.*;
public class Obj implements Serializable
public int n;
public Obj ()
n = 0;
public Obj (int n)
this.n = n;
public String toString ()
return getClass ().getName () + " -> (n = " + n + ")";
2. The application Sub (subprogram)
// Application Sub
import java.io.*;
public class Sub
private static File f;
private static FileWriter fw;
public static void main (String [] args)
throws IOException, InterruptedException, ClassNotFoundException
ObjectInputStream ois;
ObjectOutputStream oos;
Obj obj;
ois = new ObjectInputStream (System.in);
obj = (Obj) ois.readObject ();
f = new File ("Sub.txt");
fw = new FileWriter (f);
fw.write (obj.toString ());
fw.close ();
oos = new ObjectOutputStream (System.out);
oos.writeObject (obj);
ois.close ();
oos.close ();
3. The application AMain (caller application)
// Application AMain
import java.io.*;
class AMain
private static File f;
private static FileWriter fw;
public static void main (String [] args)
throws IOException, ClassNotFoundException
Runtime r;
Process p;
ObjectInputStream ois;
ObjectOutputStream oos;
Obj obj, obj2;
r = Runtime.getRuntime ();
p = r.exec ("java Sub");
oos = new ObjectOutputStream (p.getOutputStream ());
obj = new Obj (5);
oos.writeObject (obj);
oos.flush ();
B.comunica (obj);
System.out.println ("AMain sends to Sub: " + obj.toString ());
try
p.waitFor ();
catch (InterruptedException e)
System.out.println ("Subprogram was interrupted");
System.out.println (e.toString ());
ois = new ObjectInputStream (p.getInputStream ());
System.out.print ("Sub sends to AMain: ");
obj2 = (Obj) ois.readObject ();
System.out.println (" " + obj2.toString ());
oos.close ();
ois.close ();
p.destroy ();
4. The servlet SMain (the calling servlet)
// Servlet SMain
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.io.*;
import java.util.*;
public class SMain extends HttpServlet
public void doPost (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
Runtime r;
Process p;
ObjectInputStream ois;
ObjectOutputStream oos;
Obj obj, obj2;
int state, i;
res.setContentType ("text/html");
ServletOutputStream out = res.getOutputStream ();
out.println ("<html>");
out.println ("<head><title>Sub</title></head>");
out.println ("<body>");
out.println ("Invoking subprogram...");
out.println ("<br>");
try
r = Runtime.getRuntime();
p = r.exec ("java -cp .;c:\\Programs\\Apache~1.0\\webapps\\SMain\\WEB-INF\\classes Sub");
out.println ("...invoked<br>");
oos = new ObjectOutputStream (p.getOutputStream ());
obj = new Obj (5);
oos.writeObject (obj);
oos.flush ();
out.println ("<br>SMain sends to Sub: " + obj.toString () + "<br>");
try
p.waitFor ();
catch (InterruptedException e)
out.println ("<br>Subprogram was interrupted<br>");
out.println ("<br>" + e.toString () + "<br>");
state = p.exitValue ();
out.println ("<br>Subprogram state: " + state + "<br>");
ois = new ObjectInputStream (p.getInputStream ());
out.print ("<br>Sub sends to SMain: ");
obj2 = (Obj) ois.readObject ();
p.destroy ();
catch (SecurityException e)
out.println ("<br>SecurityException<br>");
out.println ("<br>" + e.toString () + "<br>");
catch (IOException e)
out.println ("<br>IOException<br>");
out.println ("<br>" + e.toString () + "<br>");
catch (Exception e)
out.println ("<br>Exception<br>");
out.println ("<br>" + e.toString () + "<br>");
out.println ("</body>");
out.println ("</html>");
So, as you can see, both application AMain and servlet SMain invoke application Sub and pass it the serializable object Obj. Oddly enough, application AMain works fine whereas servlet SMain throws a StreamCorruptedException exception.
johnpoole said:
�It's hard to guess what would cause the exception without seeing code, but the interaction between the processes would differ from that between two applications, because the servlet process is started with a different class loader. I'm not sure which one the jvm started by the call would use.�
How can I enforce that a System classloader be used in the call to Runtime.getRuntime ().exec () ? (I mean by System classloader a classloader equals to the one applications are launched from console).
johnpoole said
�Is there a reason why you aren't starting the second process manually and then connecting to it on a port?�
The idea is providing a Web interface for an application running in the server. The servlet is used to restrict access to this application but once access is granted (passing the servlet) the application should not be constrained. -
Calling Java Application from another
How can i call a Java Application from another java App.
eg., If my Java application is called MyApp and i would like call another java application from within it.
One way could be by using "System". I would like to know if there is any other method and is portable.
Thanks in advance.hi,
it works and not!
if you start an other class with a command like this the 2nd prog/class terminates too if you terminate the caller-class!
dear
oliver scorp -
Calling report application from jsp
Hi,
I am designing a JSP that captures search parameters. The user will enter words contained in a company name and product codes. This triggers the jsp to display all matches on the same page. My question is how do I call a portal report application from within the jsp and pass the parameters? Also, I would like to change the column condition relational operator for the date parameters.
Thanks for any help,
EdHi,
I found that when i changed the permissions on the following directory to 777 the error in weblogic went away.
/local/apps/boxir2/boinstall/bobje/data/<domainname>.pageserver
However i still have the web page error when i try to load a crystal reports document that is:
An error occurred while creating a Page Server subprocess.
Any help with this would be great.
Thanks -
Calling BSP application from Portal causes error
Hi,
called a bsp application from our portal. The application prompts the following error message:
BSP Exception: The object sap-tray-type=PLAIN_sap-tray-padding=X_sap_ep_version=7.00.200611091758_sap_ep_baseurl=http://v900stwmk1902.v900dtk1.v900.intern:50000/irj/portal in der URL /sap bD1kZSZjPTIwMCZwPTMwOTUxJnY9NyUyZTAwJmk9MSZzPVNJRCUzYUFOT04lM2Fhc2FwdDAzZW4xX1QwMl8wMCUzYXBFMVdnMmlqS21LYnNSZ01mMzIyLXpRdkwxMjdoYWF2NHFBeU9fTGEtQVRU)/bc/bsp/sap/zsi02/sap-tray-type=PLAIN&sap-tray-padding=X&sap_ep_version=7%2e00%2e200611091758&sap_ep_ is not valid.
We used an BSP iView (EP 7.0 and BI 7.0) Any ideas?
Thanks.
FrankHi,
I am not sure how did you get that bsp-url but here are the steps:
1) Create a system and assign an alias to it.
2) Make sure you give proper values in Connector, User Management and ITS Property Category
3) Check the connection by creating a sample SAP Transaction iview using WebGUI
4) If this is working fine, then create a BSP iview. Make sure you select proper system alias, BSP Defination Type (BSP), give the correct Application Namespace, BSP Application, Customer Namespace and start page.
Let me know what are the values you have entered here and we can try to fix this problem.
Cheers,
Sunil
PS: Reward points for helpful answers.
Maybe you are looking for
-
I am wondering if anyone has an update on when finder will show a thumbnail for the raw files from the Canon 5d mark III? I've done all the updates possible and nothing has changed, I can't do a quick preview either, it just shows the extension image
-
How can I put a mathematically if - formula in a field of a pdf - form?
Hello together, I am absolutely unexperienced with JavaScript. I have to implement formulas into a Form. In one field I have to add field a and b - but the result should be displayed only, if the result is positiv. In the next field the result has to
-
Error: Message no. 06218
Hi All, While creating PR got the following error msg Net price must be greater than 0. Message no. 06218. I have maintained the price in Info record and also i have made a source list also then also it is showing this error. Please suggest. Regards,
-
Why can't I see my services?
I've logged in with my BigPond details Not all BigPond users are automatically registered for My Account access. To complete your registration: Step 1 Select the Add an account button on your My Account overview page Step 2 Review and enter the requi
-
I cant view album artwork in my itunes anymore
For some reason my itunes always says it cant veiw my album covers. But it used to, help!