How to fetch resource approver using SPML 1.0?
I want to retrieve approver of a particular resource using SPML1.0. Any pointers regarding how to do it, would be helpful.
In my opinion the best way to do this would be to write an xpress form with a single field and set its value to the resource owner you require and then invoke this form from SPML and the resource owner you have set in the form will be returned in the SPML response.
Similar Messages
-
How to fetch message comments using JMA API?
Hi All,
From telnet <host> 143, and tring get comments associated with a message works well as shown below.
2 fetch 8 COMMENT ("/message/vendor/ms/follow-up-flag-status" ("value.shared"))
* 8 FETCH (COMMENT ("/message/vendor/ms/follow-up-flag-status" ("value.shared" "completed")))
How to fetch the same details using Java Mail API. I couldn't get any of these flags when added to FetchProfile before fetching. The last option is using IMAPFolder.ProtocolCommand.
Please suggest if there is a better way to fetch message meta data as "comment" using JMA
Regards,
VenkatI don't know what JMA is. I assume you meant JavaMail.
Sorry, there's no direct support for fetching that data.
You might be able to get this to work using IMAPFolder.ProtocolCommand. -
How to get Admin Roles using SPML in SUN IdM 7.1
Hi,
I am tring to get Roles and Admin roles using SPML in IdM 7.1.
But i am able to get the Roles of the user using the attribute "Role"; For Admin role i tried with the attributes "AdminRole", "adminRole", "AdminRoles", "adminRoles". But I am not able to get the values.
What is the attribute name where we can fetch the values of admin roles assigned to a user using SPML.
Please let me know for any queries.
Thanks and regards,
Dinesh.Hi Dinesh,
Try using waveset.adminRoles
Thanks -
How to create a user using spml call
Hello,
I am trying to create an user in idm using spml call. I have also imported spml.xml into idm. I m using LighthouseClient class to set the user attributes. After authenticating to idm i m sending the request to rpcrouter2 on localhost via client.request(req); But i m getting error
com.waveset.util.InternalError: Unable to locate view handler for 'user'. Why cant i create a user in IDM from a command line program. Do i need to call this program from a workflow only ? Is it necessary?
thanks in advance
ravihi All,
I am working with Idm7.1 and using SPML to write command-line programe to work with Idm7.1
getting a guideline from all your post I started with few sample code and got stucked ... Can any of you answer me ....
Why Can't i do the following in IDM from a command line program using SPML.
Add a User
Delete a User
Modify a User
Search for a User
I am using following code to create user:-
------ CODE--------
LighthouseClient client = new LighthouseClient();
client.setUrl("http://localhost:8080//idm/servlet/rpcrouter2");
client.setUser("configurator");
client.setPassword("configurator");
AddRequest req = new AddRequest();
req.setOperationalAttribute("trace", "true");
req.setObjectClass("person");
req.setIdentifier("user1");
req.setAttribute("password", "abcd");
req.setAttribute("gn", "showmen");
req.setAttribute("sn", "majumdar");
req.setAttribute("email", "[email protected]");
SpmlResponse res = client.request(req);
System.out.println("Response from Server->"+res.getResult());
System.out.println("Error from server->"+res.getError());
The output Reflect's as:-
------------OUT-PUT--------
init:
deps-jar:
compile-single:
run-single:
Response from Server->urn:oasis:names:tc:SPML:1:0#failure
Error from server->null
BUILD SUCCESSFUL (total time: 5 seconds)
---------------------XXXXX------------------------
I am currently using Idm7.1 and when i try to Import spml.xml file it throws some Weird Exception
where as spml2.xml can import without any Exception.
After all these when i loging to Idm7.1 using login.jsp as -u "configurator" -p "configurator"
there is no new user created .....
likewise all the sample code provided is throwing exception's ....
Can any of you please send me some guideline to figureout these
Thank's
Showmen Majumdar
e-mail: [email protected]
Wipro Technology
Bangalore. -
How to fetch any Hardware using Java
Hi! Friends
I wanna switch off my bedroom light through my laptop
how to code in java for it please give me a little example
if any suggetion please mail me [email protected]
thanx
S M Hasan
Message was edited by:
hasan-mobileWell, the problem is that a laptop cannot really "connect" to a light or light switch. In any way. No way.
If your lights come with one of those neato remotes, there is a solution. Tape/glue the remote to the lid of your laptop, and once you close the laptop, push the "power" button on your remote. That should do the trick.
Otherwise, you have to rewire your lights to go through some sort of mechanism that can be controlled using a neato remote. Then refer to the method listed above :D
I'm not kidding one bit. -
How to fetch billing number using delivery number
Hi Experts,
Based on delivery number(LIPS-VBELN) i need to get the data from billing table(VBRK and VBRP).
Is there any function module to get the same. Pls anyone help on this.
Thanks
Ramesh Manoharan
Moderator message: please do some research before asking.
Edited by: Thomas Zloch on Mar 2, 2011 9:16 AMHi ,
My requirement is to fetch the check number from payr table using CHECT field .
but relation ship i taken from bseg table.
i am giving query as follows
select single chect from payr into a_chect where vblnr = bseg-belnr.
above query is not giving solution.
is there any other relation ship for getting check number.
i written subroutine program for calling into form .
form check_get tables in_tab structure itcsy
out_tab structure itcsy.
tables: payr.
data: a_chect type payr-chect,
b_belnr type bseg-belnr.
read table in_tab INDEX 1. "with key NAME = 'BSIK-BELNR'.
check sy-subrc = 0.
b_belnr = in_tab-value.
break-point.
select single CHECT from PAYR into A_CHECT where vblnr = b_belnr.
if sy-subrc = 0.
read table out_tab index 1. "with key 'CHECT'.
check sy-subrc = 0.
out_tab-value = a_chect.
modify out_tab index 1.
endif.
endform. -
How to fetch column data using foreign key in adf table ?
I have created a adf table using a view that has a group id and user id column. I want to display the user name ( from user table) and group name from group table. I had created view links to the corresponding tables from the user_group view ( whose iterator is used to render the table).
It sort of works. I dragged the user name from the embedded user iterator in user_group iterator. It does find the correct user name but if I have more than one row, it displays the user name of the last row user in all rows !
Is there a solution to this problem ?Well, I saw in the view query for the association view ( for Many-Many) that the SQL already had the joins with the two ( master) tables to the association table. So I went ahead and added the descriptive columns to the select clause. Then the selected columns showed up in the attribute list by themselves ( without my intervention). So far so good.
Then I recreated the adf table attribute by dragging these newly selected attribute to the page. I still see that the value of the attribute is the same in all the rows - this time it is the value for the FIRST row. It doesn't correspond to the foreign key for that particular row.
IS THIS A BUG ? Has anyone else ever done this ? -
How to fetch MCH1-CHARG using MATNR, PLANT, MVT_type?
Hi all,
Is there any way to get CHARG from MCH1 by passing any one of the following fields?
DT_PSTG type mkpf-budat, "Posting date
DT_DOC type mkpf-bldat, "Document date
MVT_TYPE type BWART, "Movement type
MAT_NUM type mara-matnr, "Material Number
OLD_MAT_REF(1) type c, "Old material reference
PLANT type mseg-werks, "Plant
SLOC type mseg-lgort, "Storage Location
STK_QTY type mseg-menge, "Quantity of stock from legacy
STK_UOM type mseg-meins, "Stock UoM
LONG_TEXT type mseg-SGTXT, "Description
val_type type mseg-BWTAR, "Valuation type
matnr type mara-matnr, "Material Number
mat_doc TYPE mblnr , "Material Document
doc_year TYPE mjahr, "Document year
equnr TYPE equi-equnr, "Equipment Number
Please help...
Thank You,
SureshHi Chakri Help.....,
Thanks for the response and plesae help me with issue also.
I have a data in the excel with the earlier mentioned fields in Excel.
All these Excel records are passed into BAPI_GOODSMVT_CREATE to create Material Document.
As we are not passing the CHARG field. This BAPI creates internal CHARG for all Items.
Now my requirement is to get the internal CHARG for each item into memory variable and get that all CHARG in my calling report.
and then i have to update MCH1-LICHA based on CHARG.
how can i do this? Is there any Enhancement Point/EXIt/BADI?
Sample code more helpful 4 me.
Please help..
I hope you can help me?
Thanks alot..
Suresh -
How to check resource existance using standard web-services?
Hi,
There was the web-service KMNodeServiceStrdWSVi_Document in the SAP EP 7.0 that exposed the function "exists" checking whether the folder exists or not.
SAP EP 7.3 does not contain KMNodeServiceStrdWSVi_Document web-service and I did not find any function in the RepositoryFramework web-service.
Is there any other web-service providing this functionality?
Thanks in advance.Hi Arun,
I got the data in the context in the response node .But the problem is that the web service returns an array of objects which inturns has array ob object, I m only able to get those values from the response node from the context which are simple string type.Could u pls tell me how can i get the complex data which is present in the response node in the context.
Can i traverse the node(i.e) the rray in the context.CAn u tell me wat can i do.The response node has the complex structure as defined in the WSDL file ,i just need to get the data present in the array of that context which is populated by the web service. -
We are working on a requirement for using SPML in our project and we�ve been able to do simple tasks like Add Delete Search Modify a user using SPML.
Now here is a brief understanding jotted down in points that I�ve about SPML
SPML is an XML- based framework for exchanging user, resource and service provisioning information between organizations
A given requesting authority, or client, sends the provisioning service a set of requests via a well-formed SPML document (an XML document that conforms to the SPML standard).
Based on a pre- defined service execution model, the provisioning service takes the operations specified within the SPML document and executes provisioning actions on a pre- defined set of service targets or resources.
Sun Java Identity Manager comes with a toolkit for OpenSPML which is bundled with the Identity Manager Suite itself.It is basically a collection of Java classes that assist in submitting OASIS SPML 2.0 (SPML2) requests and receiving SPML2 responses.
Now using the OpenSPML.jar(The collection of Java Classes) that is available with Sun Java Identity Manager 6.0 I am able to do the following
Add a User
Delete a User
Modify a User
Search for a User
Etc.
If we consider the following sample code for a add operation it would be as simple as the following.
LighthouseClient client = new LighthouseClient();
client.setUrl("http://localhost:8080/idm/servlet/rpcrouter2");
client.setUser("configurator");
client.setPassword("configurator");
AddRequest req = new AddRequest();
req.setOperationalAttribute("trace", "true");
req.setObjectClass("person");
req.setIdentifier("jkerry");
req.setAttribute("password", "heinz57");
req.setAttribute("gn", "SPML");
req.setAttribute("sn", "Test3");
req.setAttribute("email", "[email protected]");
SpmlResponse res = client.request(req);
Now following are the answers I am looking for.
How do I get access to information about the person I am going to add using SPML?
( In the above case information about jkerry)
Do you guys have some documentation regarding flow you�ve implemented in your previous projects?
How does one handle a scenario when there are batch/multiple requests coming in (say for creation of users)?
Do I need to design in such a fashion that I need to have a Custom XML Parser and get all the information (say creation of users) in a well formed XML Document? Then user the Custom XML Parser to get information from XML document and use the OpenSPML jar API�s to do the provisioning part?
I hope I made myself clear.
Regards,
Vinod KandukuriHi again Vinod ,
You were asking :
1.How do I get access to information about the person I am going to add using SPML?
( In the above case information about jkerry)
2.Do you guys have some documentation regarding flow you�ve implemented in your previous projects?
3.How does one handle a scenario when there are batch/multiple requests coming in (say for creation of users)?1. A solution to access user information might be using a SPML searchRequest :
<%@page contentType="text/html"%>
<%@page import="org.openspml.browser.*"%>
<%@page import="org.openspml.client.*"%>
<%@page import="org.openspml.message.*"%>
<%@page import="org.openspml.message.Filter"%>
<%@page import="org.openspml.server.*"%>
<%@page import="org.openspml.util.*"%>
<%@page import="java.util.List" %>
<%@page import="java.util.Iterator"%>
<html>
<head>
<title>Edit User Result</title>
</head>
<body>
<%
String userName = request.getParameter("name");
if (userName != null && userName.length() == 0)
userName = null;
String firstName = request.getParameter("firstName");
if (firstName != null && firstName.length() == 0)
firstName = null;
String lastName = request.getParameter("lastName");
if (lastName != null && lastName.length() == 0)
lastName = null;
LighthouseClient client = new LighthouseClient();
client.setUrl("http://traian:8080/idm/servlet/rpcrouter2");
client.setUser("configurator");
client.setPassword("configurator");
SearchRequest sreq = new SearchRequest();
System.out.println(" Equals : "+FilterTerm.OP_EQUAL);Hi Vinod ,
System.out.println("AND :"+ FilterTerm.OP_AND);
Filter f = new Filter();
FilterTerm ft = new FilterTerm();
ft.addValue("firstname");
ft.addOperand(new FilterTerm(FilterTerm.OP_EQUAL));
ft.addValue(firstName);
List ops = ft.getOperands();
for ( int i = 0 ; i < ops.size() ; i ++ ){
System.out.println("ops :"+ops.get(i).toString());
System.out.println("Filter initial Thingey :"+ft.getInitialSubstring());
System.out.println("Filter final Thingey :"+ft.getFinalSubstring());
System.out.println("Filter match rule Thingey :"+ft.getMatchRule());
System.out.println("FitlerTerm : "+ft.toString());
//f.addTerm(ft);
// sreq.setFilter(f);
sreq.addAttribute("firstname");
SearchResponse sres = (SearchResponse) client.request(sreq);
//obtain the result
List responses = sres.getResults();
if (responses == null || responses.size() == 0) {
%>
Terribly Sorry . No Results Found .
<%
else {
%>
<table border=1>
<tr>
<td>
User
</td>
<td>
Pass & Stuff
</td>
</tr>
<%
String name;
String id;
SearchResult searchResult;
Iterator iter = responses.iterator();
while (iter.hasNext()) {
searchResult = (SearchResult)iter.next();
if (searchResult != null) {
%>
<tr>
<td>
<%= searchResult.getAttributeValue("firstname") %>
</td>
<td>
<%= searchResult.getAttribute("id") %>
</td>
</tr>
<%
%>
</table>The only drawback is that I did not manage to implement Filters . If anyone has any ideas/sugestions or is willing to give it a go please post the information .
Thanks ,
Victor
Edited by: java_gibi on Jan 15, 2008 8:13 AM -
How to fetch APPROVER NAME and approval date dynamically for an user
Hi all..
How to fetch approver name and approval date dynamicall for an user in an email template..
can any help me to sort out this pbm,i am new to IDM..
Thanks in advance..Access policies get a static value. You can't populate a field with an adapter. If you must do this, leave the field blank, and put an adapter on the process form for your field that must be populated using code or logic.
-Kevin -
How to fetch content from UCM in WLP using VCR
Hi,
I configured the connection between weblogic portal v10.3.2 and UCM 11g using VCR adapter guide. But i am struck in how to fetch the content from UCM/VCR and display it in Weblogic portal.
Please guide me on how to fetch the content from UCM/VCR and display it in Weblogic Portlet ( JSF Portlet). is there any api is available to get the content from ucm and display it in portlet.
Appreciate your support here.
Thanks a lot,
SureshSuresh,
Please check the name of the VCR configured in the UCm.
You can use a batch file to load the VCR on to your Weblogic server. Using the name you can retrieve the contents from UCM.
Please let us know other configuration details to help you further -
How to fetch presence in Lync 2013 from SQL server (using query)
We are running Lync 2013 setup with 5 FE and 2 BE SQL (mirrored) servers.
How can i get presence information for our users by script or SQL queries?
My Concern is to fetch out current presence information of a list of users (CSV file) by script (Powershell or SQL query) for automation purpose. So that one need not to go to Lync 2013 (or anything) Client for every single user, to check their corresponding
presence.
E.g Say a service desk agent is handling tickets of 200 users per day. So it will be time consuming for him/her to go to Lync 2013 client and check presence for every user. It would be better for SD agent to operate, if we could make a script to fetch presence
status for the list of 200 users.
We will fetch the information when required and send a mail to him/her.
i have asked this question under Presence and IM forum.
https://social.technet.microsoft.com/Forums/en-US/ef6287d1-e474-48ab-a411-f3813d256145/how-to-fetch-presence-information-in-lync-2013?forum=lyncprofile
been suggested to post it here.Create a Store procedure which will give you integer value according to presence status:
USE [rtc]
GO
/****** Object: StoredProcedure [dbo].[GetAvailability] Script Date: 05/01/2015 10:36:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <sudipta samanta>
-- Create date: <02.01.2015>
-- Description: <fetch presence information of user>
-- =============================================
CREATE PROCEDURE [dbo].[GetAvailability]
@_Publisher varchar(50)
AS
DECLARE
@agrregate_state varchar(500),
@availability varchar(50),
@index_first int,
@index_last int,
@index int
BEGIN
SET NoCount ON
set @agrregate_state = (select top 1 Data from dbo.DiagPublisherDataView(@_Publisher) order by LastPubTime desc);
set @index_first = (select CHARINDEX('<availability>',@agrregate_state));
set @index_last = (select CHARINDEX('</availability>',@agrregate_state));
set @index = @index_first + 14;
set @availability = (SUBSTRING(@agrregate_state,@index,@index_last - @index));
return CONVERT(int, @availability);
END
GO -
Self-Registration in OIM 10g: how to install, customize and use of SPML
Hello. Can someone point me to any documentation (Oracle or other) on self-registration in OIM 10g. Like doc on how to install it and customize it. Also a doc on how to set up self-registration on a separate server and talk to OIM server using SPML.
Refer doc below:
http://download.oracle.com/docs/cd/E14049_01/doc.9101/e14044.pdf
regards,
GP -
How can I prevent any use to update Purchase order if status was "Approval"
I have some users can update any purchasing order update after "Approval"
Please I would any Purchasing oracle module expert to Assist me to get way to solve problem.
How can I prevent any use to update Purchase order if status was "Approval"?
Further Information :
Oracle Allpication Release : 11.5.9
Oracle Purchasing Module.
Oracle Data Base: 11i
Khaled,Try writing a personalization on the PO screen that adds the following condition to the where clause
"and authorization_status !='APPROVED'
However, I will be careful with a blanket restriction like this. There are situations when you need to modify an existing PO. So you should code some exceptions for this rule.
Hope this helps,
Sandeep Gandhi
Maybe you are looking for
-
if i am purchasing a material from 5 different vendors while raising the purchase order, my system should show only that particular 5 vendors in that 5 vendors i should select the vendor. is it possible in SAP??
-
How can I delete the gap tool from the tools panel?
I find it useless and I want the type tool where it has always been. I'd like the pallets to be layed out like indsign CS3. Thank You.
-
how can i buy wats app?
-
How does the Student Discount work?
Does the student discount work if your going on a High School and above 18 y/o?
-
Thanks in advance for the input =] Ok so today i purchased an ipod 5g as my minidisc played finally packed up on me. I put the intallation CD in and i get this error message: "1608: Unable to create InstallDriver instance, Return Code: -2147024894" C