Calling one WD Application fron URL
Hi Experts,
I have to call one WD Application in a report.For that i use one FM which gives me URL after passing application name to that.
The URL which i am getting from the FM is working fine.
Further the requirement is to pass a value from the report to the WD Application.
Is it possible by modify the URL with parameter?
I need that value at the view level as well,how i can do this.
Please help.
Thanks
Mahesh
this is method to pass value to pass from one wda to another wda through modifying the url. ( not from report to wda )
Data w_url type string,
w_value type string.
get the url of calling aplication
call method cl_Wd_utilities->construct_wd_url
exporting application name = name of second application( to which u want to pass parameter )
importing out_absolute_url = w_url.
***Make the value type compatible that has to passed with url.
w_string = lv_pernr
***Now attach the parameter and its value with url that have to passed to 2nd application
call method cl_http_Server=>append_field_url
exporting name = 'pernr'
value = ' w_value'
changing url = w_url.
then popup window for 2nd application with above url
lo_window = lo_window_manager->create_external_application ( url = w_url ).
lo_window -> open( ).
***now in wddoinit of 2nd application
data lv_param type string
lv_param = wdr_task=>client_window->get_parameter( ' pernr ').
Now you can use lv_param in 2nd application.
Regards
srinivas
Similar Messages
-
Calling Web Dynpro application or URL from POWL
Hi Friends,
I need to call a Web Dynpro appl from a custom POWL. In my feeder class's method HANDLE_ACTION, i am not getting how to use e_portal_actions parameter for calling a URL of WD application. Pls help me out in this.
Regards,
SaudYou can create a launchpad application through tran LPD_CUST and then in repsective method of POWL class you can launch your web dynpro application like this
DATA ls_appl_param TYPE APB_LPD_S_PARAMS.
DATA lt_appl_param TYPE APB_LPD_T_PARAMS.
DATA lt_lpd_content TYPE apb_lpd_t_content.
DATA lr_lpd_content TYPE REF TO apb_lpd_s_content.
DATA lt_lpd_appl_params TYPE apb_lpd_t_params.
DATA lr_lpd_handle TYPE REF TO cl_apb_launchpad_api.
DATA lo_component TYPE REF TO if_wd_component.
DATA lr_provider TYPE REF TO if_apb_lpd_provider.
"Get launchpad handle
lo_component = wd_comp_controller->wd_get_api( ).
cl_apb_launchpad_api=>read_for_display( EXPORTING id_role = cl_oif_ui_assist=>sc_lpd_roles "Role Name
id_instance = cl_oif_ui_assist=>sc_lpd_instance " Instance Name for Launchpad
id_langu = sy-langu
ir_provider = lr_provider
ir_wd_component = lo_component
RECEIVING er_launchpad = lr_lpd_handle ).
CHECK lr_lpd_handle IS BOUND.
lt_lpd_content = lr_lpd_handle->get_content( ).
READ TABLE lt_lpd_content REFERENCE INTO lr_lpd_content
WITH KEY link_text = cl_oif_ui_assist=>sc_lpd_link_text. "Link text for launchpad
ls_appl_param-key = cl_oif_ui_assist=>wda_config_key. "'SAP-WD-CONFIGID'. "app conf if any
ls_appl_param-value = cl_oif_ui_assist=>CREATE_CONFIG_ID. "'MDG_OIF_CREATE_CONF'.
APPEND ls_appl_param TO lt_appl_param.
lt_lpd_appl_params = lr_lpd_content->application_parameter.
"launch application
lr_lpd_handle->launch_application(
id_application_id = lr_lpd_content->application_id
it_application_parameters = lt_lpd_appl_params
it_business_parameters = lt_appl_param -
Call another WD Application (Web Dynpro for ABAP)
Hi, everyone.
I have a question.
I made two WD applications. The applications are not related to main Component and Sub Component.
I wanna call one WD application from a main WD application as like ABAP call transaction.
It does not mean popup window or sub component...
How can I implment the techique?Hi Etnaya,
Just create an external url window and supply the name of the application as . An external url window can be created by calling method CREATE_EXTERNAL_URL_WINDOW at the window manager.
Best regards,
Thomas -
Calling a BSP application with MVC and send one start value
Hi,
I developed a BSP application with BSP. The application has a start page with one input field. The user gives a number and click the send button. The controller creates the modeler and gives the userinput as start parameter for the data search. After the data are read/found, the controller calls a view to show the data.
This is very easy and does work.
I have to call this simply application from another one: the caller application sends the start value.
I don't know, if is better to send the start value in the URL or not. I tried it, but the controller cannot read it.
How can I call the controller with a start value?
Thank you!
Bye
PatriziaHi ,
what you need to do is
1) for the "Send" button attach a java script.
<htmlb:button id="myButton" text="Submit ...." onClick="sendRequestWrapper()"/>
this javascript should take the inputfrom the field,
then in the javascript create the URL.
function sendReqeustWrapper(){
sendRequest(InputField);
function sendRequest(InputField)
var URL;
URL = window.location.protocol + "//" ;
URL += window.location.host ;
<b>Note: its only Example link,</b>
URL += "/sap/bc/bsp/sap/<BSPApplication>/controller.do";
URL +="?InputFieldName=";
URL +=InputFieldValue;
<b>then use</b>
Your URL will look like:
http://ld0507.wdf.sap.corp:50007/sap/bc/bsp/sap/<bsp appl>/controller.do?InputFieldName=XXXXX
window.open(URL,"_self","");
so once this URL is triggered you need to goto the respective controller and handle the input. You can see the reply from Mr. Akshaya Rao .
regards,
Vijaya Kumar M.
Message was edited by: Vijaya Kumar -
The Web Dynpro application was called up with the wrong URL parameters
Hi all,
I am using the systems below:
ERP STACK :16
EHP : 4
EHP SP Stack :4
EA-HR * : 604(SP12)
SAP-HR * :604(SP12)
XSS JAVA components : SAP ESS 603 SP05
SAP MSS 600 SP16
PCUI_GP 603 SP05
Business Package : BP ERP05 ESS 1.41 SP04
BP ERP05 MSS 1.41 SP04
BP ERP05 COMMON PARTS 1.41 SP04
I am getting below error after clicking on the appraisal document:
App. Called Up Incorrectly
The Web Dynpro application was called up with the wrong URL parameters.
Note
Enter the URL parameters and their use.
You can find more information on the functions that you can perform in the catalog for appraisal templates in the Implementation Guide (IMG) for Objective Setting and Appraisals under Edit Forms.
I already applied the below notes also:
1468466 Performance Management Launchpad Configuration
1463821 Performance Management Portal Configuration
1416756 OBN Configuration in Performance Management
1408243 Configuration for object-based navigation
Plz advise me??
Thanks,
Anumitcan you paste the exact error. also you can take a HTTP trace and see which resourse or UWL is being launched!
-
Calling one application into another
how can i call one application file into another so that
session should not expire in any way
Has anyone done such like thatPut the code into a cfc or custom tag and have both
applications call it as required. -
Calling application's URL from Notes Portlet
Hello,
We have been able to successfully configure Lotus Notes- External Application Portlet using JPDK. Now, we are creating a link on this Notes portlet that will take the user to the corresponding external application.
For this, we have called a self made servlet that will direct the user to the application's URL. But we are unable to pass confidential user information, like password, to this servlet due to which the link is opening application's login page.
We want to utilize the user information available in LotusProvider.java, provider used for creating the notes portlet, instead of asking user to login again.
Any prompt comment or suggestion over this is eagerly awaited.
Thanks & Regards,Please post this question in the PDK forum:
http://forums.oracle.com/forums/forum.jsp?forum=4 -
How to call an applescript application from Office 2011 Excel VBA
All:
I have been pounding my head how to implement a working VBA application into the Mac environment. I have tried a number of approaches calling applescript from VBA. I would like to call my applescript application and pass one argument. My applescript application is as follows:
<code>
on run argv
set theURL to (item 1 of argv)
set p_path to do shell script "echo ~"
set m_path to POSIX file p_path
set theName to text -((offset of "/" in (reverse of characters of theURL) as text) - 1) thru -1 of theURL
set theFile to (p_path & "/Downloads/" & theName)
set macPath to (POSIX file theFile)
do shell script "/usr/bin/curl " & theURL & " -o " & quoted form of POSIX path of macPath
end run
</code>
My last attempt within VBA is:
<code>
Sub SaveMetaDataFile(URL As String, shortFileName As String)
Dim scriptToRun As String
Dim posixcmd As String
posixcmd = ThisWorkbook.Path
scriptToRun = "tell application " & posixcmd & ":MetaDataFileDownloadScript.app " & URL
MsgBox "[" & scriptToRun & "]"
MacScript (scriptToRun)
</code>
I first tried to call the script directly without the "tell application" and I still obtain an error. I also tried the following in VBA and I get the same error with the last lane of code:
<code>
scriptToRun = "set theURL to " & """" & URL & """" & Chr(13)
scriptToRun = scriptToRun & "set p_path to do shell script " & """" & "/bin/echo ~ " & """" & Chr(13)
scriptToRun = scriptToRun & "set m_path to " & """" & posixcmd & """" & Chr(13)
scriptToRun = scriptToRun & "set theName to " & """" & shortFileName & """" & Chr(13)
scriptToRun = scriptToRun & "set theFile to (p_path & " & """/Downloads/""" & " & theName)" & Chr(13)
scriptToRun = scriptToRun & "set macPath to (POSIX file theFile)" & Chr(13)
scriptToRun = scriptToRun & "do shell script " & """" & "/usr/bin/curl " & """" & " & " & " theURL " & " & " & """" & " -o " & """" & " & " & " quoted form of POSIX path of macPath"
MsgBox scriptToRun
'scriptToRun = scriptToRun & "do shell script " & """/usr/bin/curl """ & " & " & " theURL " & """ -o """ & " & " & " quoted form of POSIX path of macPath"
MacScript (scriptToRun)
</code>
The above code is from the applescript application. The applescript application works well using the terminal via osascript. For example:
xenas-imac:Census Work Xena$ osascript MetaDataFileDownloadScript.app http://www2.census.gove/acs20095yr/summaryfile/Sequence_Number_and_Table_numberLookup.xls
xenas-imac:Census Work Xena$
The whole goal is to download a file into the Download directory from Excel to allow the next step to import the file into Excel for the user. Any help here would be great!
Thank you;
LoriUpdate:
Ok have the module almost working and matches the syntax within the test applescript I had created, but the VBA code via the MacScript() call is generating an invalid procedure or argument call. The following is the test applescript to compare the created string to be passed to VBA MacScript() function:
<code>
set appPath to quoted form of POSIX path of "Macintosh HD:Users:Xena:Desktop:Census Work:"
do shell script "/usr/bin/osascript " & appPath & "MetaDataFileDownloadScript.app " & "http://www2.census.gove/acs20095yr/summaryfile/Sequence_Number_and_Table_numberLookup.xls"
</code>
The following is the VBA module that generates the above word for word as far as I can tell:
<code>
Sub SaveMetaDataFile(URL As String, shortFileName As String)
Dim scriptToRun As String
Dim posixcmd As String
posixcmd = ThisWorkbook.Path
posixcmd = posixcmd & ":"
scriptToRun = "set appPath to quoted form of POSIX path of " & Chr(34) & posixcmd & Chr(34) & Chr(13)
scriptToRun = scriptToRun & "do shell script " & Chr(34) & "/usr/bin/osascript " & Chr(34) & " & appPath & " & Chr(34) & "MetaDataFileDownloadScript.app " & Chr(34) & " & " & Chr(34) & URL & Chr(34)
MsgBox "[" & scriptToRun & "]"
MacScript (scriptToRun)
End Sub
</code>
The message box in the above VBA code matches my test applescript file and I have taken the output of the MsgBox and used it in a test applescript and it works great, but VBA is throwing "Run-time error '5': Invalid procedure call or argument".
Looking at Microsoft's definition it takes a string argument and I have made sure that scriptToRun is a string type, so at this point I suspect there is something wrong with the MacScript() funciton, or I am missing something above. Is there another way to call an applescript application from VBA outside the MacScript() function? Or is there something I am missing? Any help or suggestions is needed.
Thank you;
Lori (CodeXena) -
Calling a BSP application in ABAP webdynpro
Hi Friends,
Is there any chance that i can call a BSP application from WEBDYNPRO.
regards
Nalinikanth.Hi Yashpal/ Pankaj,
I have one question regarding this.
The usage of the UI element link "link to URL" is pretty much understandable to call a stanalone application.
Whereas the usage of suspend and resume plugs, how does it work for BSP applications? For two WD components we can connect the plugs and it works.
As I do not know about BSP, does it have in/out plugs like WD components?
If so how to create the navigation link for this.
Please explain.
Sankar. -
Calling a BSP application from a report
Hi to everybody,
I have one BSP(Business Server pages)application.I want to call that application from report.How to call BSp from report.The SAPGui HTML control is great way to show a BSP page. You can create the HTML control (CL_GUI_HTML_VIEWER) in a full screen or subscreen (anywhere you can insert a container controll). Best yet you can activate SSO for the HTML control so that the user doesn't get prompted for credentials. The following is some code samples:
CREATE OBJECT custom_container
EXPORTING
container_name = 'CUSTOM_CONTAINER'.
CREATE OBJECT html
EXPORTING
parent = custom_container.
CALL METHOD html->enable_sapsso
EXPORTING
enabled = 'x'.
DATA: url TYPE string.
DATA: url1 TYPE url.
DATA: l_appl TYPE string,
l_page TYPE string.
l_appl = bsp_appl.
l_page = page.
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.
url1 = url.
CALL METHOD html->show_url
EXPORTING
url = url1. -
Calling a BSP application from universal worklist
Hi All,
I want to call a BSP application, when a workitem is clicked in Universal Worklist(Enterprise Portal)
I have configured the Task Type in SWFVISU transaction, with Visualization type BSP standard & in visualization parameter i entered,
APPLICATION = zgelrbsp0001
PAGE_ID = leso.htm
When I click on the workitem my test BSP application is called. Buy my requirement is not call a static dynamic application, when the workflow is called the workflow container has a URL
http://dev01.abc.gov.sg:8000/sap/bc/bsp/sap/hap_document/document_port_wf.htm/
this URL will change. But I don't know how to configure to call the URL in container. Please let me know how to achieve this.
Regards,
H.K.Hayath Basha.Hi Raja,
Thanks for the reply.
I said wrongly in my earlier mai, my URL is static, but the parameter appl_id will have different value.
http://dev01.abc.gov.sg:8000/sap/bc/bsp/sap/hap_document/document_port_wf.htm/?appl_id=1234
What I have done is similar to the one which you have said, copied the standard BSP and modified, I pass WORKITEM ID to the BSP application, BSP application reads the workflow container for appl_id and sets that value to the BSP application attribute.
There should be a better way to do this.
Regards,
H.K.Hayath Basha. -
Calling A Webdynpro Application From Another Webdynpro Application
Hi,
i want to call a webdynpro application from another webdynpro application with sending parameters.
i used this method,
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = lv_webapp
IMPORTING
out_absolute_url = lv_url.
CONCATENATE lv_url '?param1=' lv_param INTO lv_url.
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 = LV_URL
lo_window->open( ).
but this method shows the parameters on the address bar.
is there a method to send the parameters to another webdynpro application without show the parameters on the address bar?
Can somebody help me pls?
Thanks.I've used a server cookie before. This was built for BSP, but it is really usable anywhere. It just writes the data temporary into the database. This way you can just pass one meaningless URL parameter - like a GUID and use this key to read the data (the server cookie) upon initialization of the new application. I generally serialize all the data that I want into one server cookie by serializing a class. I can then restore whatever attributes of the class that I want on the receiving side.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bd/4cd23a09313b37e10000000a11405a/frameset.htm -
How to call a struts application in a portlet
How to call a struts application in a portlet. I have two different ear's. In one ear I have my struts application and in one war i have a struts portlet. In the struts portlet provider.xml defaultAction tag can i call the action class .do which in other ear (ie my struts application ear).Can anyone suggest me whether this is the right way or else can u suggest me with some other thing.
Waiting for ur responses.
Thanks and Regards,
Dhanu.Hi Dhanu,
Your Struts Portlet will not be avialble via a URL as it is completely dependent on Oracle Portal Environment. The Provider for the Portlet is alone available via a URL - you would have registered your Portlet using the URL of the Provider.
Your Struts application, which does not rely on the Oracle Portal Environment, is defeitely accessible from a URL. It's just another web application that uses the popular Struts Framework.
Hence, you can use the URL ( the starting point - a JSP, Servlet, etc. ) of your Struts Application to "call" the application in your Struts Portlet. I don't think you need to fiddle with the parameters in Provider.xml.
Moreover, <defaultAction> in Provider.xml should have the URL of a Struts Action Class - the mapping in the
struts-config.xml should map the .do action to the right JSP file.
You can have a look at Metalink Note : 331069.1 for a good insight into the <defaultAction> Tag.
Regards,
Sandeep -
How to call custom BSP application on click of BACK button for SC in EBP.
Hi All,
We are implementing OCI using custom BSP applications.In EBP SC screen ,in step1 (Select Goods/Services), the links for these BSP applications are displayed.
The user can create a shopping cart using these applications , after the items are transfered from BSP to SC on standard EBP screen , in step2
there are four buttons ,
1)Refresh
2)Check
3)Back
4)Continue.
We need to call one of our custom BSP applications on click of this BACK button
How can i acchieve the same?
Do i need to make changes in the standard ITS application or thers some other way?
Thanks,
Anubhav.
Edited by: Anubhav Jain on Jul 1, 2008 7:24 AMTo call a wd abap application from BSP use the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL then just create a link in bsp with the url returned like this:
<a href="url">Link</a>
To pass data from wd abap to bsp or vice versa that a look at this blog: /people/koen.labie2/blog/2006/11/29/eating-cookies-with-webdynpro-and-bsp
regards,
Fabio Louzada Saito -
How to Pass values between one webdynpro application to another
Hi ,
I know How to Pass Values Between the Application by URL But For My Requirement NO need The Pass in URL Rather Than That Please any one TEll me How to GEt VAlues BEtween the application......
Thanks
ANANTH.If you dont want to pass values through URL, then you must have to use component Usage with interface node.
Or you can try like this,
by appending field value to url,
Data w_url type string,
w_value type string.
get the url of calling aplication
call method cl_Wd_utilities->construct_wd_url
exporting application name = name of second application( to which u want to pass parameter )
importing out_absolute_url = w_url.
***Make the value type compatible that has to passed with url.
w_string = lv_pernr
***Now attach the parameter and its value with url that have to passed to 2nd application
call method cl_http_Server=>append_field_url
exporting name = 'pernr'
value = ' w_value'
changing url = w_url.
then popup window for 2nd application with above url
lo_window = lo_window_manager->create_external_application ( url = w_url ).
lo_window -> open( ).
***now in wddoinit of 2nd application
data lv_param type string
lv_param = wdr_task=>client_window->get_parameter( ' pernr ').
Now you can use lv_param in 2nd application.
Regards
srinivas
Maybe you are looking for
-
How do i use a Aux channel with reverb from two different patches
I have a Concert with an Aux channel strip for Reverb and i want two seperate patches to both use Send 1 with different amounts/level of reverb but when i move the fader on the patch and then go to the other patch the fader has moved back to the down
-
Help connecting to HD TV using HDMI
Hello, I have had problems connecting using my airport to my Samsung HD TV. One post said to try connecting using an HDMI cable first directly. But I am trying to find how to do that. The cables are HDMI but there is no HDMI port. There doesn't seem
-
How can I deactivate Photoshop from a different computer?
My old computer recently broke and I was wondering if there was a way I could deactivate my Photoshop elements that was installed on the old computer? It is Elements 11.
-
Hello All, I have a query regarding clearing of installment plan. For example: Posting Date Due Date Description Amt 01.02.2011 20.02.2011 Fees 5000 01.02.2011 20.02.2011 Interest 200 01.02.
-
Cookie.setPath Inconsistent with RFC 2109
My reading indicates that Java EE imposes an additional restriction beyond that in RFC 2109 on setting Cookies. That does not make policy sense. Am I interpreting the specification correctly? If so, should the Java EE part be changed? From Java EE 5