How to get userinformation by passing userid
Hi All,
I know how to get IUser Object for the current logged in user and get the user information like Job title, City, Time Zone, Country, Department etc..
The same details I want go get for a particular user (not current logged in user).
Hence I am trying to pass the userid but not getting the IUser object and getting only null always. The user I am passing exists and also tried passing the full LDAP Unique ID.
IUser user2 = (IUser)WDClientUser.getClientUser("ramesh.kotagiri");
Is there any other way using UME API to get the IUser object and the user details like country, department from it, by passing a known userid.
Regards,
Ramesh.
Hi ,Ramesh Kotagiri
1) Depend DC :tc/je/usermanagement/api
2) Use UME API like this "UMFactory.getUserFactory().getUserXXX()",you will see many method to get
user information.
Regards,
Shiyu
Similar Messages
-
How to get the logged in userId value in adf task flow OIM11g R2
Hi,
I have created an adf task flow. Now I want to run some query in that based on the logged in userId.
Could you please help me in knowing how to get the logged in userID value in adf TaskFlow so that I can run a parameterized query.
Thanks3 different ways to retrieve the username (not sure what you mean by user ID) :
http://mahmoudoracle.blogspot.be/2012/06/adf-get-current-logged-user-name.html#.USI_c-h8zIo
Also provide your JDev version.
Basicly, you should use the groovy expression in a view criteria (it's the fastest and easiest way) and call that view criteria whenever you need it.
That's if you are using ADF BC of course. -
How to get the restriction pass code for iPhone ?
How to get the restriction pass code for iPhone ?
if you forgot it you have to restore your phone to get past that code
-
How to get the restriction pass code for my iPad
How to get restriction pas score for my ipad
Remove restriction passcode
1. Restore to Factory Default
http://support.apple.com/kb/HT1414
2. You can restore from a backup that was done before you enable the Restriction Code. -
How to get current loop pass for LOGICAL DATABASE
HI,
can anyone tell me how to find the current loop pass in case of logical db.
As i have to put some condition when cursor goes to GET statement 2nd time..??
MrunalU need to explicitly handle this in the program.
START-OF-SELECTION.
DATA V_I TYPE I.
Get Event starts
GET PERAS.
V_I = V_I + 1.
IF v_i = 2.
*write the condition ...
ENDIF.
END-OF-SELECTION. -
How to get the logged in userId value in adf task flow
Hi,
I have created an adf task flow and deployed the same in application as an adf library.
Now I need to get the Logged in User ID value in the adf task flow which I created.
Based on this userid I need to run query to fetch the data related to the user from the database.
Please help/guide me to solve this issue.3 different ways to retrieve the username (not sure what you mean by user ID) :
http://mahmoudoracle.blogspot.be/2012/06/adf-get-current-logged-user-name.html#.USI_c-h8zIo
Also provide your JDev version.
Basicly, you should use the groovy expression in a view criteria (it's the fastest and easiest way) and call that view criteria whenever you need it.
That's if you are using ADF BC of course. -
How to get burks by passing value of matnr
Hi All,
I need logic to get the company code by passing material number .
Thanks,
satish.Hi,
Try this code..
PARAMETERS: P_MATNR TYPE MATNR.
DATA: V_BWKEY TYPE MBEW-BWKEY.
DATA: V_BUKRS TYPE T001K-BUKRS.
* Get the material valuation.
SELECT SINGLE BWKEY INTO V_BWKEY FROM MBEW
WHERE MATNR = P_MATNR.
IF SY-SUBRC <> 0.
MESSAGE S208(00) WITH 'Invalid material'.
LEAVE LIST-PROCESSING.
ENDIF.
* get the company code.
SELECT SINGLE BUKRS INTO V_BUKRS FROM T001K
WHERE BWKEY = V_BWKEY.
IF SY-SUBRC = 0.
WRITE: / 'Company code is ', V_BUKRS.
ENDIF.
Thanks
Naren -
Pressed "Never for This Website" by Accident: How to get my log/pass back?
Now password for my GMail account won't autofill.
I've tried going through Keychain Access to set it straight, but no joy.
iMac, OS X 10.4.11
Any Ideas?
TIACarolyn, the OP might be on to something. I was about to answer and say pretty much what you did, when I found out my Safari Autofill preferences for websites for which I've selected "passwords not saved" aren't there any more. They're not in Keychain either. They're gone. In other words, there is no longer an entry for google.com in your example. It's not there.
I checked another computer, for which I have not updated Safari and Keychain. There's still an entry for "passwords not saved" like always.
This rocks my world! Or am I simply overlooking something?
I posted a question about this in another forum:
http://discussions.apple.com/thread.jspa?threadID=2369911 -
How to get PERNR based on user ID
Hi All,
How to get PERNR based on userid.
please help me in resolving this.
Thanks for the support.
Regards,
Dhananjaya R Ehope this will help u
DATA: t_pernr LIKE pa0105-pernr,
t_email LIKE pa0105-usrid_long.
STEP 1 - Find personnel number for UNAME
SELECT SINGLE pernr
INTO t_pernr
FROM pa0105
WHERE subty = '0001'
AND endda >= sy-datum
AND begda <= sy-datum
AND usrid = p_uname.
Employee record found*
IF sy-subrc = 0.
STEP 2 - Find email address for personnel number*
SELECT SINGLE usrid_long
INTO t_email
FROM pa0105
WHERE pernr = t_pernr
AND subty = '0022'
AND endda >= sy-datum
AND begda <= sy-datum. -
I've been having a lot of problems trying to get an old batch file we have laying around, to run from my powershell script. The batch file actually asks for two inputs from the user. I've managed to put together a powershell that echos a response, but of
course, that only will answer one of the prompts. As usual, I've simplified things here to get my testing done. The batch file looks like this:
@ECHO OFF
SET /P CUSTID=Customer Number:
SET /P DBCOUNT=Number of Live Databases:
ECHO Customer Id was set to : %CUSTID%
ECHO Database Count was set to : %DBCOUNT%
Two inputs, two echos to verify values have been set. Now, the powershell looks like this:
Param(
[string]$ClientADG,
[string]$ClientDBCount,
[scriptblock]$Command
$ClientADG = '1013'
$ClientDBCount = '2'
$Response = $ClientADG + "`r`n" + $ClientDBCount
$Command = 'Invoke-Command -ComputerName localhost -ScriptBlock {cmd /c "echo ' + $ClientADG + ' | E:\Scripts\Setup\Company\DatabaseSetupTest.bat"}'
powershell -command $Command
Output looks like:
Customer Number: Number of Live Databases: Customer Id was set to : 1013
Database Count was set to :
As expected, as I'm only passing in one value. I can't figure out how to get a second value passed in for the second prompt. Instead of $ClientADG, I tried to mash the two value together in the $Response variable with a cr/lf or a cr or a lf in between,
but no go there either. The first input gets set to the second value, and second input is blank still. In the essence of time, I need to get this batch file called from Powershell to get some folks productive while I actually rewrite what the batch file does
in another powershell, so it can be integrated into other things. (I'm automating what a bunch of people spend hours doing into multiple scripts and eventually one BIG script so they can focus on doing their real jobs instead).
How do I get this right in powershell? I don't want to modify the batch file at all at this point, just get it running from the powershell.
Thanks in advance!
mpleafIt's a "simple" test so I can figure out how to get the arguments passed from ps to bat. The bat file looks like this:
@ECHO OFF
SET CUSTID = %1
SET DBCOUNT = %2
ECHO Customer Id was set to : %CUSTID%
ECHO Database Count was set to : %DBCOUNT%
That's it. The PS script looks like this:
Invoke-Command-ComputerName myserver-ScriptBlock{cmd/c"E:\Scripts\Setup\Company\DatabaseSetupTest.bat
1013 2"}
That's it. The bat file exists on "myserver", and I'm getting the echo back, but without the values.
mpleaf -
How to get userId and ResponsibilityId of EBS Application
Hi all,
We are using oracle.apps.fnd package to get the userId and ResponsibilityId of EBS Application. By using this api we are getting -1 for both userId and resposibilityId, but want the corrrect values for these two Ids.
Can anyone please tell us how to get userId and ResponsibilityId of EBS Application using oracle.apps.fnd package?
Thanks,
EswariHi Kumar,
Thanks for your answer. I tried using pageContext, but it didn't work.
I forgot to mention the version of EBS Application. We are using 12i.
To use FND_GLOBAL package first we should initialise by passing userId and respId which we want. Can we get these details from this api oracle.apps.fnd of 12i Instance.
Thanks,
Eswari
Edited by: user593578 on Jul 31, 2009 4:35 PM
Edited by: user593578 on Jul 31, 2009 5:18 PM -
Hi ,
I need to get the ECC Mapped USerID (mapped in portal) and pass it to a BAPI. ANy Idea how do I get it from UME once it is mapped in Portal.
Thanks,
-AshwaniHi,
if you are using WD then your code will work will little modifications:
IWDClientUser user = WDClientUser.getLoggedInClientUser();
Iuser puser = user.getSAPUser();
IUserMappingService iumser = (IUserMappingService) WDPortalUtils.getServiceReferences.(IUserMappingService.KEY);
IUserMappingData iumdata = iumser.getMappingData("System Alias",puser);
Map map = new HashMap();
try {
iumdata.enrich(map);
} catch (Exception e) {}
String userid = (String)map.get ("user");
IWDClientUser and WDPortalUtils Api is already provided by webdynpro runtime,
apart from this you have to add saaj-api.jar ,usermapping_api.jar which you have already included,
and com.sap.security.api.jar for iuser.
if you are using NWDI then these jars excluding usermapping api jars are available in webservice and com.sap.security.api.sda lib dcs.
finally in webdynpro shared references you have to give the references like this:-
PORTAL:sap.com/com.sap.portal.usermapping
Regards,
Siddharth -
How to get SSO userid to URL-based app?
I'm developing a web-app using Struts that will be accessed by Portal (I guess as a URL-based app). The web-app will not require login. The web-app will not be Portal "aware", except that it requires the SSO userid for auditing/logging purposes.
I know little about Portal and SSO. How can Portal be configured to send the Portal userid of the logged-in Portal user? Can it send it as a parameter in a GET or POST?
The version of Portal will be 9.0.2 (or greater).This topic is answered in the PDK forum here:
How to get SSO userid to URL-based app? -
How to get each value from a parameter passed like this '(25,23,35,1)'
Hi
One of the parameter passed to the function is
FUNCTION f_main_facility(pi_flag_codes VARCHAR2) return gc_result_set AS
pi_flag_codes will be passed a value in this way '(25,23,35,1)'
How to get each value from the string
like 25 first time
23 second time
35 third time
1 fourth time
I need to build a select query with each value as shown below:-
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3, code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 25 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q1,
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3,code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 23 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q2,
(SELECT t2.org_id, RTRIM(xmlagg(xmlelement(e, t4.description || ';')
ORDER BY t4.description).EXTRACT('//text()'), ';') AS DESCRIPTION
from org_name t2, ref_org_name t3,code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 35 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date
group by t2.org_id) q3,
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3, code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 1 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q4
Please help me with extracting each alue from the parm '(25,23,35,1)' for the above purpose. Thank You.chris227 wrote:
I would propose the usage of regexp for readibiliy purposes and only in the case if this doesnt perform well, look at solutions using substr etc.
select
regexp_substr( '(25,23,35,1)', '\d+', 1, 1) s1
,regexp_substr( '(25,23,35,1)', '\d+', 1, 2) s2
,regexp_substr( '(25,23,35,1)', '\d+', 1, 3) s3
,regexp_substr( '(25,23,35,1)', '\d+', 1, 4) s4
from dual
S1 S2 S3 S4
"25" "23" "35" "1"In pl/sql you do something like l_val:= regexp_substr( '(25,23,35,1)', '\d+', 1, 1);
If t2.att_type is type of number you will do:
t2.att_type= to_number(regexp_substr( '(25,23,35,1)', '\d+', 1, 1))Edited by: chris227 on 01.03.2013 08:00Sir,
I am using oracle 10g.
In the process of getting each number from the parm '(25,23,35,1)' , I also need the position of the number
say 25 is at 1 position.
23 is at 2
35 is at 3
1 is at 4.
the reason I need that is when I build seperate select for each value, I need to add the query number at the end of the select query.
Please see the code I wrote for it, But the select query is having error:-
BEGIN
IF(pi_flag_codes IS NOT NULL) THEN
SELECT length(V_CNT) - length(replace(V_CNT,',','')) FROM+ ----> the compiler gives an error for this select query : PLS-00428:
*(SELECT '(25,23,35,1)' V_CNT FROM dual);*
DBMS_OUTPUT.PUT_LINE(V_CNT);
-- V_CNT := 3;
FOR L_CNT IN 0..V_CNT LOOP
if L_CNT=0 then
V_S_POS:=1;
V_E_POS:=instr(pi_flag_codes, ',', 1, 1)-1;
else
V_S_POS:=instr(pi_flag_codes,',',1,L_CNT)+1;
V_E_POS:=instr(pi_flag_codes, ',', 1, L_CNT+1)-V_S_POS;
end if;
if L_CNT=V_CNT then
V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS));
else
V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS,V_E_POS));
end if;
VN_ATYPE := ' t2.att_type = ' || V_ID;
rec_count := rec_count +1;
query_no := 'Q' || rec_count;
Pls help me with fetching each value to build the where cond of the select query along with the query number.
Thank You. -
DOES ANYONE KNOW HOW TO GET PASSED MY PASSWORD LOGIN on a mac pro? I FORGOT IT. (yosemite 10.10.1)
User Tip: Reset the user password in OS X Lion, Mountain Lion, Mavericks and Yosemite
Posting in CAPS LOCK Is often seen as screaming and is not appreciated. It's also very hard to read.
Maybe you are looking for
-
AFPPRN received a return code of failure from the OSD routine FDUPRN
Hi all, Operting system : Solaris 9 Oracle application: 11.5.10 i would like to ask query related to buffer area of pinter on solaris server. we are trying to print cheques using oracle application on network printer. some times it is printing the ch
-
How do I transfer photos from iphoto to my new ipad?
Just bought my wife and I new iPads. We have a MacBook Pro and all all pictures are on her profile. How do I synch my iPad with iPhoto on her profile (I obviously want to stay away from her iTunes profile as all my songs and videos are over on my p
-
How To Migrate My Customized reports & Forms To R12?
Hi... How To Migrate My Customized reports & Forms To R12? I want to migrate my customized report&forms to R12 From 11.5.9 Base? how to find the customized Reports & Forms Location? How To Register the customized Reports & Forms? Regards **SBJ**
-
Re: Tax code does not exist for jurisdiction code
Hi Ramanjaneyulu, This is Sunil, and I am facing an error message as below - "Error in external tax system: Line: 1 - For Input String "MI0000000". How do we fix this error message ? and why such an error occurs while processing a MIRO entry with ref
-
Date validations in adobe form
Hi i have two textfields in adobe form with labels TODATE AND FROMDATE,where TODATE should always be greater than FROMDATE.can you please tell me where to write validations for adobe form and what is the code required for it. Thanks krishna