How to get the Portal Username to SAP Transaction IView ( ABAP cust repor )
Hi Experts,
We have an ABAP program that will be exposed in portal as SAP transaction IVIEW. However the username that is being displayed in the report is the username that is defined in SICF > SAP > BC > GUI > ITS > WEBGUI. I tried to remove the username and password defined, changed the procedure to Alternative Logon Procedure and deleted some logon procedure list retained Basic and SSO Authentication but we are getting DDIC username. We have successfully implemented SSO, and it works in Personal Information of Standard ESS. The following are configure in our portal:
1. We have set SSO ticket
2. We are using User Mapping for portal and ABAP System
3. Retain Basic and SSO authentication
what could be the cause why the program (iview) is still getting the user instead of Portal Username? How can we get the portal username for our abap customized report exposed in iview
Hi,
Make sure that the System you are using to connect to R3 has Log On Method and Authentication Ticket Type properties has SAP LOGON TKT as the value selected.
Path: System Administration --> System Configuration ---> Systems....
Regards,
SrinivaS
Similar Messages
-
How to get the Portal Page name from PLSQL?
Can anyone tell me how to get the portal page name from my dynamic page using plsql?
Apparently you can get the page id and work it out from there, but my calls to get the page id are not returning any values anyway.
My code for attempting to get the page id is below.
<oracle>
declare
v_pageid varchar2(30);
begin
v_pageid := wwpro_api_parameters.get_value('_pageid', '/pls/portal30');
htp.print('Page is '|| v_pageid);
end;
</oracle>
Ideally I'd actually just like to get the page name. Is there a straightforward way to do this?
Thanks in advance!
SarahFew clarifications -
1. wwpro_api_parameters cannot be used to get default portal
page parameters such as '_pageid', '_dad', '_schema' etc.,
2. Page information can be obtained through any components which
are available in that particular page. For example, in case of
dynamic page, we need to publish it as a portlet and add it to the
page. This process creates necessary packages in the DB, but we
will not have access to the portlet methods.
So, I would prefer creating a simple DB provider & portlet and access
page title from its show method as follows -
//Declare local variable l_page_id, l_page_title as varchar2
select page_id into l_page_id from wwpob_portlet_instance$ where
portlet_id = p_portlet_record.portlet_id and
provider_id = p_portlet_record.provider_id;
select name into l_page_title from wwpob_page$ where id=l_page_id;
More information on DB provider can be found at
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.database.providers.html
Secondly, usage of wwpro_api_parameters.get_value method is
incorrect. This method expects two arguments -
<ul>
<li><b>p_name : </b> The name of the parameter to be returned.</li>
<li><b>p_reference_path : </b> An unique identifier for a portlet instance on the current page.</li>
</ul>
p_reference_path would be something like 99_SNOOP_PORTLET_76535103 and not some type of path as its name suggests.
The following code fragment fetches all parameters available
for a portlet.
Note : Copy this code into 'show' method of your portlet.
//Declare l_names, l_values as owa.vc_arr
* Retreive all of the names of parameters for this portlet
l_names := wwpro_api_parameters.get_names(
p_reference_path=>p_portlet_record.reference_path);
* Retreive all of the values of parameters for this portlet
l_values := wwpro_api_parameters.get_values(p_names=>l_names,
p_reference_path=>p_portlet_record.reference_path);
//Loop through these arrays to get parameter information
htp.p('<center><table BORDER COLS=2 WIDTH="90%" >');
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(wwui_api_portlet.portlet_heading('Name',1));
htp.tableData(wwui_api_portlet.portlet_heading('Value',1));
htp.tableRowClose;
if l_names.count = 0 then
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.p('<td COLSPAN="2">'
||wwui_api_portlet.portlet_text(
'No portlet parameters were passed on the URL.',1)
||'</td>');
htp.tableRowClose;
else
for i in 1..l_names.count loop
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(l_names(i));
htp.tableData(l_values(i));
htp.tableRowClose;
end loop;
end if;
htp.p('</table></center>');
Hope it helps...
-aMJAD. -
How to get the windows username in jsx
Hello,
I have a JSX script in "My Documents\Adobe Scripts" to make it trusted script. I have another text file I need to read from JSX. Since the location depends on logged in user, I need to find the windows username. If anyone know how to get the windows username from jsx please reply.
Thank you very much.
Regards
Nima.Hey,
You can get username like this:
var myUsername = $.getenv('username');
You could also get My Documents folder like this:
var myDocFolder = Folder.myDocuments;
Hope that helps.
Marijan (tomaxxi)
http://tomaxxi.com/ -
How to get the folder ID of SAP Inox folder
Hi
I want to access the document(mail) which is there in one of the shared folders of SAP inbox through program.
Can anyone suggest me, how to get the folder ID?Hi,
Try the FM SO_FOLDER_ROOT_ID_GET for your requirement.
Hope it will help you in hetting the folder ID.
Best Regards,
Deepa Kulkarni -
How to hide the menu bar from a Transaction iView (SAP GUI for HTML).
Hello all,
I have created a simple SAP Transaction iView of type SAP GUI for HTML. This iView has the Menu bar that has the buttons: Menu, Back, Cancel, and System. My requirement is, I dont want to see the menu bar that has these buttons. How do I go about it? Please advice.
Note: My iView is a SAP Transaction iView and not IAC service related iView.
Thanks
Vicky R.You'll want to set the parameter ~webgui_simple_toolbar in your webgui service.
It is a binary parameter with the following values/options:
0 : Hiding the page header completely (not recommended)
1 : Standard setting
This is the recommended standard setting in which the title and the menu bar below it with the [Exit] and [Help] button and the application buttons are displayed.
2 : Displaying the title line
4 : Displaying the buttons [Exit] and [Help]
8 : Displaying the active system buttons on the screen ([Back] and [Cancel])
16 : Displaying the system menu
32 : Displaying the application buttons
128 : Deactivating the information block in the status bar (new) -
How to get the Portal System details?
Hi,
I have a webdynpro application which has links that the user can click and point to various systems. For instance, there is a link for SAP Transaction,. if the user clicks this link, the SAP transaction is opened as a URL.
Among, these: There is a SAP transaction for BEX Analyzer (RRMXP).A transaction iview has been configured for this BEX ANALyser. I have a <b>link to URL</b> UI element defined in my application. All i need now is the <b>system and host</b> details of the Portal system (EP), where this transaction iview has been configured. Which is the best way to get the system/host/port details of Portal System (EP). Im not talking about backend, nor of the WAS, but the system where Iviews are configured?Hi Christian,
When i tried this, i got <b>2 errors</b>
cannot resolve symbol
symbol : method getProtocolAdapter ()
location: interface com.sap.tc.webdynpro.services.task.ITask
String hostName = TaskBinder.<i>getCurrentTask().</i>getProtocolAdapter ().getServerName();
cannot resolve symbol
symbol : method getProtocolAdapter ()
location: interface com.sap.tc.webdynpro.services.task.ITask
int port = TaskBinder.g<i>etCurrentTask</i>().getProtocolAdapter().getServerPort();
<b>Questions:
1. Are we missing any jar files?
2. Does this work for https?</b> -
How to get the admin username & password for JMX connection
Hi All,
I need to retrieve the username & password and pass it to the JNDI to get the JMX connection for MBean Server. I will be doing this locally.
Is there an API that I can use to retrieve this information ?
thanks
-sheshiForgot to mention, I am using WebLogic 9.1
-
How to get the current username (Adf Security) in a VO query?
Hi all,
I want to filter a VO query using the current username in the where clause. What is the correct object in the security context to do that?
Thanks.
JDEV 11.1.1.7Hi,
Do not directly put the username in your query, you query should be something similar to:
select abc, bcd, user_code FROM TABLE
WHERE (USER_CODE = :LoggedInUser)
then create a bind variable "LoggedInUser" of type String with value type as expression and value as (adf.context.securityContext.userName)
- Lalit -
How to get the portal user id into the web dynpro iview at runtime?
Hi,
Can any one let me know, How to display portal id and as well as backend SAP user id into Web Dynpro iview at runtime. I am using Adaptive RFC model in my web dynpro application.
Raj.Raj: check this thread. I think that will help you.
Can i get Portal User's details in webdynpro??
I had the same requirement and its works whit this solution.
regards. -
How to get the deleted data in sap
dear all
is there any way to find out who deleted the data in sap and if so can u tell me the steps
regards
sathiHello Sathya,
You can find this through the report RSTBHIST. However for this the system profile parameter rec/client should have that particular client as one of its values or its value should be ALL.
Further if it is customizing data then you can look for the transport request through table E071 and identify the user to whom the request is attributed to.
Please award points for useful answers.
Regards.
Ruchit. -
How to get the Relationships data from Opportunity Transaction in CRM
Hi Friends,
Could you please let me know the table / class to fetch the relationships data associated with a single(main) opportunity.
There may be several object types like (activites, sub-opp's..etc) linked to a single main(source) opportunity.
I wanted the these fields information from Relationships tab From Opp transaction.
Source Item No.
Object Type
Target Trans/Object
Description
Type of Linkage
Could you please let me know.
Regards
VijayHi Vijay,
Can you try function module CRM_DOC_FLOW_READ_DB?
By giving opportunity GUID it will return associated information.
Kind regards,
Garcia -
How to get the next FACTORYDATE
Hello all,
Can somebody show me how to get the next (FACTORYDATE) from SAP in the objective to check and validate the shipto date in the ISA b2b application.
Thanks in advance.Hi Manuel,
my email: [email protected]
thank you in advance,
Djamel. -
How to get the current user name in Provider hosted app using appOnlyAccessToken
Hi,
Please help me, how to get the HostWeb UserName in Provider Hosted App
i have Provider hosted App, and Anonymous Authentication is enabled on AppWeb, using appOnlyAccessToken
Below code does not return current user who Log in in hostweb, it is returning
SharePoint App (app@sharepoint)
Web web = clientContext.Web;
clientContext.Load(web);
clientContext.ExecuteQuery();
clientContext.Load(web.CurrentUser);
clientContext.ExecuteQuery();
clientContext.Web.CurrentUser.LoginName;
Below code gives a blank name when Anonymous Authentication is enabled, if Anonymous Authentication is disabled
app prompts for credentials
HttpContext.Current.User.Identity.Name
Thanks
RamHi,
Since you are using a provider Hosted app if you want to get the current logged in name than do not use AppOnlyAccessToken else use AccessToken which is App + user Context AccessToken.
then
Web web = clientContext.Web;
clientContext.Load(web);
clientContext.ExecuteQuery();
clientContext.Load(web.CurrentUser);
clientContext.ExecuteQuery();
clientContext.Web.CurrentUser.LoginName;will return proper user Name.
HttpContext.Current.User.Identity.Name will never return the user as this object is related to IIS server of your App Server not sharepoint.you should set this as Anonymous in case of provider hosted app.you can download the below sample which uses the AccessToken which has user name in it.https://code.msdn.microsoft.com/Working-provider-hosted-8fdf2d95
Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer -
Hiding R/3 Header in Portal SAP Transactional iView
Hi ,
I created an SAP Transactional iView with GUI Type as "SAP GUI for HTML". But when I am accessing the iView, then it is displaying properly. What I want is hiding the R/3 header in that Transaction iView.
I have read several Threads given below.
http://wiki.sdn.sap.com/wiki/display/HOME/Article%2b-%2bEmploy%2bSAP%2bGUI%2bfor%2bHTML%2binstead%2bof%2ban%2bInternet%2bservice
Transaction iView not to display R/3 header
I also have gone through the SAP Note: 1010519. But it talks about IAC iViews, etc.... But I want for the SAP Transaction iView.
Please let me know how to hide the R/3 Header for Transaction iView.
Thanks & Regards,
Ashok Kumar M.Hi,
I am closing this, as I mentioned in my Post some of the links. I followed the same, and implemented. But it was not solved that time. Not sure, how it happened, I saw the change afterwards.
Thanks & Regards,
Ashok Kumar M. -
Pass PO Num parameter to SAP transaction iview
Hi,
I have a table column in my WDJ application that contain PO number.
I have created an SAP Transaction Iview for TCode me23n (display po).
When user clicks on the PO number in the table column, it should dynamically pass the PO number to the transaction iview and display ME23N for that particular PO. How can I pass the PO to this SAP transaction Iview?Hi,
You cannot do it with ME23N because the PO number field is not editable for this transaction. You have to navigate via the top-level menu to enter a new PO number. But you can do it for ME23, the older version of PO display.
You will need to know the screen field name as well as the ok code that's fired when the user hits enter on the entry screen for ME23. Assuming you have the string for the PO number already from the table, you could use this code:
WDPortalNavigation.navigateAbsolute(
"ROLES://<pcd path of the SAP transaction iview>",
WDPortalNavigationMode.SHOW_INPLACE,
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
"RM06E-BSTNR=<PO string here>&OkCode=AB"
true,
true);
Regards,
Satyajit
Maybe you are looking for
-
I have an IPOD Classic with purchased music and I want to sync it with a different PC but I get the message your device is synced with another PC. How do I resolve this issue? I don't have the previous PC.
-
How can I have more version of REVERT TO in Pages?
I have lost my work on 3.30 then I try to find it but there are my work on 12.30am and 4.00pm when I browse all version by REVERT TO. How can I have more versions because the two version of my work which I can get are same? I closed my work and I ha
-
ipad frozen and can't even power off what should i d
-
Cost to have dust inside screen cleaned?
I hate making phone calls so was wondering if anyone else knew the cost to have Apple clean dust that may have gotten trapped inside the LCD screen. I have an annoying dust dot that is in the middle of the screen and I'd like them to get rid of it, b
-
When i try to activate my imessage acount using my @me.com mail address i get an error saying "Unable to verify email because it is already in use." what is that about? Of course it is in use. All help is appreciated.