How to use URL iview parameters??
Hi all,
i have created a URL iview to www.gmail.com, now my requirement is i dont want to give user id and password and it should logged me in directly so for that i need to make use of URL iview parameters, but i am not aware of how to use it, can anybody help me to resolve this issue??
Thanks in advance,
Regards,
Ameya.
Hi Ameya,
Basically, you need to create a HTTP system, then create a URL Iview giving this http system as a reference in it.
Check this <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=389042">thread</a> for details.
You can also refer to
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/f5/eb51730e6a11d7b84900047582c9f7/frameset.htm">SAP Help Library</a>
cheers~
avadh
Similar Messages
-
How to use url iview???
how to use url iview???
HI all
I need to use url iview as back button in the same page with saptransaction iview.
url iview to used as back button to the home page.
pl suggeest how to use url ivew....what sort of properties need to be used.HI chander
thank u for ur response
I have done an aplication in which i have called sap transsaction ivew usind quick link property in .html(page) language.
where we will be fetching saplogon server using this sap trans saction ivew into the portal frame work .
when i loging into the server and log off with in the portal frame work i am not able to go to my aplication home page. since back/ forward link are disabled.
atleast i want know how to enable those links.
or else
i thought to use url ivew along with sap transaction ivew with a same page with diffrent layouts.but that is also fine.
and one more option was
i thought it to be used as pop up as so that when user login and log off into the server they will close that seperate window.
for that i have set the ivew property
"launch in a new window property As : display in a seperate head less portal window"
but even that is also not working.
i dont know y that property is not working
finally i have coded with java script , now i am able to open the portal in a seperate window but with headed portal.
for that i have coded some thing like below mentioned.
problem here is still i am getting the headed portal
but i want head less portal.
here headless in the sence i want it like the preview of the ivew.
please help me in this regard how to get the head less portal when i click on the link.
Regards
Gayathri -
URL iView Problem - How to Use URL Parameter of Type 'User Information'
Hello URL iView experts
I am currently working on integration of backend-functionality with the help of an URL iView.
I want to use a parameter of type 'User Information'. In SAP Help Library it is said, that it is possible to set the value of a parameter according to a dynamic query on the users attributes. (Link SAP HELP)
It is also said, that one can retrieve the Logon ID of the users account.(Attribute Name: j_user -> Link SAP HELP Attributes )
I can choose the type 'User Information' but i don't know what to specify in the field 'Value'.
I have made a screenshot of the problem.->[Link to screenshot|http://img66.imageshack.us/img66/7782/urliviewproblemfrsdnthrel3.jpg]
But if i am calling the application this way, he doesn't retrieve the Logon-ID of the account, but he just uses the 'j_user' as value for the parameter.
Can you tell me, what i need to specify in the field value?
Best Regards
Marcus
Edited by: Marcus Böhm on Jun 2, 2008 1:22 PMHi Marcus,
> It is also said, that one can retrieve the Logon ID of the users account
This is not correct; on the help.sap.com-page concerning the URL-iView-Parameters, it is printed that "other attributes (general, account, group, role) are not supported". The j_user attribute is part of the account group, so - not supported.
For your needs, it may be a better choose to use the AppIntegrator, which offers such a possibility by using "<User.LogonUid>"; see http://help.sap.com/saphelp_nw70/helpdata/EN/36/5e3842134bad04e10000000a1550b0/frameset.htm and https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0cbc309-ff89-2a10-8bad-bcde4c152ecb
Hope it helps
Detlev -
How to display the image which in KM folder using url iview
Hi Friends
How to display the image, which is under KM folder structur using the url iview.
i trying using url iview url as \document\testfolder\abc.jpg as url for the iview.
but its now working .. so please help me how to slove this problem
If is not the correct way then please suggest me best way to achive this.
Thanks
MukeshHi Mukesh,
I think this may work,
1, Create a HTML Layout.
You can put your image wherever u want with HTML Codes.
Check this, [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3915a890-0201-0010-4981-ad7b18146f81] & [Help|http://help.sap.com/saphelp_nw04/helpdata/en/cc/00c93e9b2c3d67e10000000a114084/frameset.htm]
With this, u can use the standard KM commands also.
2, U need to use KM Navigation iView for this rather than KM Doc iView.
3, In the Nav iView, u can use &rndLayoutSet=nameOfUrHTMLLayout to force the view with this new layout.
Regards
BP -
How to View Smart Forms in Portal Using Url Iview?
I am trying to view a smart form in the portal using url iview but not able to define proper url address. can any one help me out with relevant example?
Hi,
Go through Re: Web Dynpro and Smart Forms.
Regards,
Satyajit. -
How to use multiple selection parameters in the data model
Hi, after have looked all the previous threads about how to use multiple selection parameters , I still have a problem;
I'm using Oracle BI Publisher 10.1.3.3.2 and I'm tried to define more than one multiple selection parameters inside the data template;
Inside a simple SQL queries they work perfectly....but inside the data template I have errors.
My data template is the following (it's very simple...I am just testing how the parameters work):
<dataTemplate name="Test" defaultPackage="bip_departments_2_parameters">
<parameters>
<parameter name="p_dep_2_param" include_in_output="false" datatype="character"/>
<parameter name="p_loc_1_param" include_in_output="false" datatype="character"/>
</parameters>
<dataTrigger name="beforeReport" source="bip_departments_2_parameters.beforeReportTrigger"/>
<dataQuery>
<sqlStatement name="Q2">
<![CDATA[
select deptno, dname,loc
from dept
&p_where_clause
]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_DEPT" source="Q2">
<element name="deptno" value="deptno"/>
<element name="dname" value="dname"/>
<element name="loc" value="loc"/>
</group>
</dataStructure>
</dataTemplate>
The 2 parameters are based on these LOV:
1) select distinct dname from dept (p_dep_2_param)
2) select distinct loc from dept (p_loc_1_param)
and both of them have checked the "Multiple selection" and "Can select all" boxes
The package I created, in order to use the lexical refence is:
CREATE OR REPLACE package SCOTT.bip_departments_2_parameters
as
p_dep_2_param varchar2(14);
p_loc_1_param varchar2(20);
p_where_clause varchar2(100);
function beforereporttrigger
return boolean;
end bip_departments_2_parameters;
CREATE OR REPLACE package body SCOTT.bip_departments_2_parameters
as
function beforereporttrigger
return boolean
is
l_return boolean := true;
begin
if (p_dep_2_param is not null) --and (p_loc_1_param is not null)
then
p_where_clause := 'where (dname in (' || replace (p_dep_1_param, '''') || ') and loc in (' || replace (p_loc_1_param, '''') || '))';
else
p_where_clause := 'where 1=1';
end if;
return (l_return);
end beforereporttrigger;
end bip_departments_2_parameters;
As you see, I tried to have only one p_where_clause (with more than one parameter inside)....but it doesn't work...
Using only the first parameter (based on deptno (which is number), the p_where_clause is: p_where_clause := 'where (deptno in (' || replace (p_dep_2_param, '''') || '))';
it works perfectly....
Now I don't know if the problem is the datatype, but I noticed that with a single parameter (deptno is number), the lexical refence (inside the data template) works.....with a varchar parameter it doesn't work....
So my questions are these:
1) how can I define the p_where_clause (inside the package) with a single varchar parameter (for example, the department location name)
2) how can I define the p_where_clause using more than one parameter (for example, the department location name and the department name) not number.
Thanks in advance for any suggestion
AlexAlex,
the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
So change your package to (you need to expand your variables)
create or replace package bip_departments_2_parameters
as
p_dep_2_param varchar2(1000);
p_loc_1_param varchar2(1000);
p_where_clause varchar2(1000);
function beforereporttrigger
return boolean;
end bip_departments_2_parameters;
create or replace package body bip_departments_2_parameters
as
function beforereporttrigger
return boolean
is
l_return boolean := true;
begin
p_where_clause := ' ';
if p_dep_2_param is not null then
if instr(p_dep_2_param,',')>0 then
p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
else
p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
end if;
if p_loc_1_param is not null then
if instr(p_loc_1_param,',')>0 then
p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
else
p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
end if;
end if;
else
if p_loc_1_param is not null then
if instr(p_loc_1_param,',')>0 then
p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
else
p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
end if;
end if;
end if;
return (l_return);
end beforereporttrigger;
end bip_departments_2_parameters;
I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
Regards
Rainer -
How to use SET & GET Parameters in Module Pool
Hi Friends,
Can anyone please tell how to use SET / GET parameters and PARAMETER ID for a text box (Input / Output field ) in module pool? What is the purpose and where do we need to do coding for it?
Note : I will definitely give the marks for good responses.
Thanks in advance,
PradeepHi Pradeep,
You can save values in the SAP memory using a parameter ID. These
are user and terminal-session specific, but available to all internal and
external sessions.
SET Parameter copies the corresponding field contents into the SAP
System memory in the PAI processing block.
GET Parameter copies the corresponding field contents from the SAP
memory at the end of the PBO processing block, after data has been
transferred from the program, if the screen field still has its initial value
You can link an input/output field to an area of the SAP memory in the
ABAP Dictionary.
When you use an input/output field that is defined in the ABAP
Dictionary, its parameter ID is displayed in the Dictionary attribute
Parameter ID in the Screen Painter.
Usage
SET PARAMETER ID: CAR FIELD space,
CON FIELD space,
DAY FIELD space.
Here is the link that explains the usage of GET/SET in detail
<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm</a>
Regards,
Sharadha -
How to use "url.openStream()" . What this function does?
how to use "url.openStream()" . What this function does?
Edited by: sahil1287 on Apr 16, 2009 10:02 PMhttp://java.sun.com/javase/6/docs/api/java/net/URL.html#openStream()
http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html -
Question about URL iView parameters
Hi experts.
I have this issue: I have several iviews in DEV instance, URL iViews that points to backend applicationes. The URL parameters in DEV instance, point to DEV instance of backend applications. But when a will need to transport these iview to PROD instance, the URL parameters then I need to point to PROD instance of this backends apps.
Which is the best practices to resolve this issue ?
<b>Example:
in DEV instance:
URL iView "A" point to http://dev.app.com.
in PROD instance
URL iVIew "A" point to http://prod.app.com</b>
But i try to avoid change this parameters after transport to Production , in Production instance directly.
I think for example, use a some type of configuration file o .ini, in order to iviews "take" the URL string from it; and do not harcdode this strings.
Is possible? How?
I am clear?
thanks in advance!thanks Atul, Wayne,
I could be use "http system" but..
Suposse this case:
In DEV instance, I have:
- URL iview "A" point to backend system "http://dev.zzz.com"
- URL iview "B" point to backend system "http://dev.xxx.com"
- URL iview "C" point to backend system "http://dev.yyy.com"
In PROD instance, I have:
- URL iview "A" point to backend system "http://prod.rrr.com"
- URL iview "B" point to backend system "http://dev.ddd.com/aspx"
- URL iview "C" point to backend system "http://dev.mmm.com/app3"
All different!. No pattern. If I use a Http system,I think that I am continue with the same problem: in the transport to PROD, I should be change all references, or all http systems.
For this reason, I am begin asking for use a some type of configuration file, but I dont know how.
thanks in advance.. -
How to open URL IView with dynamic url parameter (navigate_absolute)
Hi Experts,
i would like to open an URL-IView from the WebDynpro ABAP Application in the Enterprise Portal 7.0
and i want to set the URL parameter dynamically. Is this possible and how can i achieve this!!
Thx MarkusHi Markus,
You can take help of the following code snippet.
Here we are calling an Iview using absolute navigation and passing URL parameters as well
* Select the input value entered and then pass it to REM INQ application---------
DATA lv_inputbusobjid TYPE wd_this->Element_context-inputbusobjid.
DATA lv_path TYPE string.
DATA lv_tab_wd_param TYPE wdy_key_value_list.
DATA lv_str_wd_param TYPE wdy_key_value.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA api_component TYPE REF TO if_wd_component.
DATA window_manager TYPE REF TO if_wd_window_manager.
DATA window TYPE REF TO if_wd_window.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
* read the imput data first-------------
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* get single attribute
lo_el_context->get_attribute(
EXPORTING
name = `INPUTBUSOBJID`
IMPORTING
value = lv_inputbusobjid ).
** call remuneration inquiry window using absolute navigation
CLEAR lv_tab_wd_param.
* Adding parameters
lv_str_wd_param-key = 'sap-wd-configId'.
lv_str_wd_param-value = 'CACS_REMINQ_CONF'.
APPEND lv_str_wd_param TO lv_tab_wd_param.
lv_str_wd_param-key = 'BUSOBJ_ID'.
lv_str_wd_param-value = lv_inputbusobjid.
APPEND lv_str_wd_param TO lv_tab_wd_param.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_portal_manager = lo_api_component->get_portal_manager( ).
if lo_portal_manager is BOUND.
* PCD
lv_path = 'ROLES://portal_content/com.sap.pct/specialist/com.sap.pct.erp.common.workset_reuse/com.sap.pct.erp.icmparticip.bp_folder/com.sap.pct.erp.icmparticip.15.bp_folder/com.sap.pct.erp.icmparticip.15.pages/com.sap.pct.erp.icmparticip.RemInquiry'.
lo_portal_manager->navigate_absolute(
navigation_target = lv_path
navigation_mode = if_wd_portal_integration=>co_show_external
window_features = 'toolbar=no,resizable=yes,scrollbars=yes'
business_parameters = lv_tab_wd_param
endif.
Hope this helps
Regards
Manas Dua -
How to use different iViews for variables and queries?
Hi all!
I need to use separtate iViews for storing variables and extracting queries.
For example, I have one variable "Currency" for two different queries, and I need that all of these queries (in separate iViews) would use the value of currency was put by user in the first iView with only one input.
How can I do this task? Is it possible at all?
Thanks for replies.Hello Alex,
You have to use EP client framework (EPCF) in your development.
I hope this idea will help you.
Kind regards, Pino. -
How to use URL class instead of Socket
Hi all. I am developing a small inventory control system for a warehouse.
I am suing a Java desktop application that connects to a servlet via Internet.
I have been searching the net how to use JSSE for my application since i am new to secure sockets and JSSE.
Since I havent implemented security In my current system yet, i am using URLConnection conn = url.openConnection(); to connect to a servlet.
However, in a good tutorial that I found about JSSE, sockets are used directly for connection, insted of URLCOnnection. They use the code like this: SSLSocketFactory sf = sslContext.getSocketFactory();
SSLSocket socket = (SSLSocket)sf.createSocket( host, port ); Since, using sockets is overly complex for me, I want to make use of the URLConnection class instead to keep it simple.
Could anyone please tell me how to make use of the URLConnection class to establish secure http connection.
by the way, the tutorial is here:
http://www.panix.com/~mito/articles/articles/jsse/j-jsse-ltr.pdf
thanks.Here you go. The following code snippet allows you post data to http URL. If you have to do the same to https URL , please let me know.
OutputStream writeOut = null;
HttpURLConnection appConnection = null;
URL appUrlOpen = null;
//data to be posted.
String data = "This is the test message to post";
byte[] bytesData = this.data.getBytes();
appUrlOpen = new URL(""Your Servlet URL");
appConnection = (HttpURLConnection) appUrlOpen.openConnection();
appConnection.setDoOutput(true);
appConnection.setDoInput(true);
appConnection.setUseCaches(false);
appConnection.setInstanceFollowRedirects(false);
appConnection.setRequestMethod("post");
appConnection.setRequestProperty("Content-Type","application/text");
appConnection.setRequestProperty("Content-length", String.valueOf(bytesData.length));
writeOut=appConnection.getOutputStream();
writeOut.write(bytesData);
writeOut.flush();
writeOut.close();
String inputLine;
StringBuffer sb = new StringBuffer();
reader = new BufferedReader(new InputStreamReader(appConnection.getInputStream()));
char chars[] = new char[1024];
int len = 0;
//Write chunks of characters to the StringBuffer
while ((len = reader.read(chars, 0, chars.length)) >= 0)
sb.append(chars, 0, len);
System.out.println("Response " + sb.toString());
reader.close();
sb=null;
chars = null;
responseBytes = null;
****************************************************************************************** -
Hi, how to use URL encoding in jsp
hi, how to apply URL encoding in jsp for a string, could u pls suggest some ideas to use URL encoding in jsp
thank you in advancehi, thnx for the reply, but my problem is to use url encoding method
i would u like to know how to represent in jsp program i have asp code some thing like this
href='/project/tel_number.asp?team=<%=DbRecTeam("id")%>&name=<%=Server.URLEncode(DbRec("name"))%>'
i would like to know how replace that Server.URLEncode stmt in jsp, could u pls suggest some equivalent method for the above stmt
thanx in advance -
How to use URL for http adapter
Hello,
Iam working on IDOC2HTTP scenario. Here the end user system they have given only url address userid and password.End user is htttp. Please can u help me how ot use that.
Thanks in Advance.
Regards,
AbhiramHi Abhiram,
you can put there the URL directly or link to a destination where you store the address.
Have a look to [Configuration of HTTP receiver adapter|http://help.sap.com/saphelp_nw2004s/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/frameset.htm]
Regards,
Udo -
How to use setFireActionForSubmit with parameters and capture the parameter
Hi,
Can anyone explain how to use setFireActionForSubmit.
I am extending the Controller of ShoppingCartPG. In the extended controller processRequest method I am adding a button to the table and setting up the setFireActionForSubmit, so when the button is pressed it raises the event associated with the setFireActionForSubmit.
I need to pass the RequisitionLineId as a parameter which is present in the VO associated with the ShoppingCartPG.
I have used the following code in processRequest
=================================
public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
super.processRequest(paramOAPageContext, paramOAWebBean);
OATableBean otbRN=(OATableBean)paramOAWebBean.findIndexedChildRecursive("ItemTableRN");
OASubmitButtonBean oasb= (OASubmitButtonBean)paramOAPageContext.getWebBeanFactory().createWebBean(paramOAPageContext,"BUTTON_SUBMIT");
oasb.setID("addnInfo");
oasb.setUINodeName("addnInfo");
oasb.setText("Additional Info");
String pageName = paramOAPageContext.getRootRegionCode();
Hashtable params = new Hashtable (1);
params.put ("param1", pageName);
Hashtable paramsWithBinds = new Hashtable(1);
paramsWithBinds.put ("param2", new OADataBoundValueFireActionURL(oasb, "${oa.encrypt.current.RequisitionLineId}"));
oasb.setFireActionForSubmit("addnInfoEvent",params,paramsWithBinds,false,false);
otbRN.addIndexedChild(oasb);
=================================
And in processFormRequest method I am capturing the event "addnInfoEvent" and trying to capture the RequisitionLineId which I have passed it as a parameter.
This is the code I have used in processFormRequest.
=================================
public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
super.processFormRequest(paramOAPageContext, paramOAWebBean);
OAApplicationModule localOAApplicationModule = paramOAPageContext.getApplicationModule(paramOAWebBean);
String strEvent= paramOAPageContext.getParameter(EVENT_PARAM) ;
if ("addnInfoEvent".equals(strEvent))
Number localNumber = 0;
try {
localNumber = new Integer(ClientUtil.getDecryptedParameter(paramOAPageContext, "param2"));
catch (Exception e) {e.printStackTrace();}
String outmsg="Line ID : " + localNumber + ":" + strEvent;
throw new OAException(outmsg,OAException.INFORMATION);
=================================
But I am not able to capture the RequisitionLineId which I have sent as a parameter.
Can anyone let me know what I am doing wrong.Hi,
This is the requested HTML Code
===============================
<button id="N3:addnInfo:0" class="x7g" style="background-image:url(/OA_HTML/cabo/images/swan/btn-bg1.gif)" onclick="return _chain('submitForm(\'DefaultFormName\',1,{\'param1\':\'${oa.encrypt.current.RequisitionLineId}\',\'serverValidate\':\'1\',\'param2\':\'${oa.encrypt.current.RequisitionLineId}\',event:\'addnInfoEvent\',source:\'N3:addnInfo:0\'});return false;',*'submitForm*(\'DefaultFormName\',1,{\'_FORM_SUBMIT_BUTTON\':\'N34\'});return false',this,event,true)" type="submit">Additional Info</button>
===============================
Hi I am not able to paste the HTML Code..some parts of HTML gets removed automatically when I paste it in the forum.
Regards,
Rohit
Maybe you are looking for
-
We have a corporate iPad in our auto showroom to show guests how to use features on their vehicles. Someone locked it with their account. It was not an employee. How can I get in? I did a restore of the software already?
-
My Macbook pro is running slow, no longer connects to my printer.
My Mac has been running so slow, not connecting to internet or kicking me off after a couple windows are open. Why is this happening and what can I do to "clean it up"?
-
URL Link to Documents in Other systems
Hi, Is it possible to have a url link saved as a document in OCS? We have somme documents that cannot be moved to OCS( business decision). These documents reside in various systems and are raccessible through a web url. Is there any way to create thi
-
Seach and copy files from selected subfolder
Hi, We had some performance issue while looking for files in a folder(Archive) which have more than 600000 subfolders. Daily these subfolder get created and we want to look for files inside those subfolder which are created in this year (2014). there
-
URGENT - SET TASK (SYSTEM STATUS) TO COMPLETE - IW22
Hi, Can anybody suggest a FM and its parameters (necessary) to set the system status of a task in IW22 transaction? I tried using STATUS_CHANGE_INTERN by calling it in my report with OBJNR and STAT. it didn't gimme any error but the status didn't get