Using DBMS_LDAP to retrieve the DN based on a UID
Hello there,
I have a users ID (UID) and I want to determine the DN using dbms_ldap.
is this possible ?
currently I am using
l_retval := DBMS_LDAP.search_s(ld => l_session,
base => ldap_base,
scope => DBMS_LDAP.SCOPE_SUBTREE,
filter => 'uid=gerard.rogers',
attrs => '*',
attronly => 0,
res => l_message);
however this only returns folloiwing attributes
orclobjectguid
orclsamaccountname
krbprincipalname
sn
displayname
mail
uid
cn
objectclass
orclobjectsid
orcluserprincipalname
I was expecting the DN to be returned.
any ideas ?
thanks for your help.
Darragh.
thank you, that worked a treat..
I dont understand though why it is different to get the RDN from active directory.
the pricinciple is the same but the atrribute values differ.
thanks again solves my issue for the moment.
Darragh
Similar Messages
-
Retrieve the records based on date where date is not stored
Hi,
I have one table in Oracle.
I want to retrieve the records which are added or modified after a particular date & time.(but the table does not contain any column for date & time )
For example: Product table(pid number,pname varchar2)
i am entering 10 records on date 21/07/2005
i am entering 20 records on date 22/07/2005
i am entering 15 records on date 23/07/2005
i am entering 30 records on date 24/07/2005
If i want to retrieve the records added after 22/7/2005
(ie.) last 45 records
But the table does not contain any date field.
How will you know date & time of each record updated in the table.
If any one knows, help me.
bye.for 9iR2: check out online document of Oracle9i Application Developer's Guide - Fundamentals and search flash back query
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg08sql.htm#10851
for 10G, flash back feature is enhenced to whole database level, you can still use flash back query though. -
Can we create TDMS file using C# and retrieve the data using a diadem
I want to write a tdms file from a dot net application and to use the diadem to retrieve the data and to create a user defined report
Hello,
If you want this kind of output, you can use Java Mapping e.g
1. Create your data type like this:
CHARSET 0..1
LOADMODE 0..1
CODEFORMAT 0..1
CURRENCY 0..1
SUPPLIERID_DOMAIN 0..1
ITEMCOUNT 0..1
TIMESTAMP 0..1
UNUOM 0..1
COMMENTS 0..1
FIELDNAMES 0..1
DATA 0..unbounded
ENDOFDATA
2.In your message mapping assign all the constants. You might want to concat all the values of the FIELDNAMES and output them to DATA
3.In your Java Mapping, replace all the XML fields including ,, with ,''',
4.In ID, do not use FCC.
Hope this helps,
Mark -
Using dbms_metadata to retrieve the datatype and parameter name of a procedure
Greeting Guru,
is there a subprogram in dbms_metadata that will retrieve the call spec of a procedure/function that ideally
if the my program spec is proc1(id1 in number, cde in varchar2, id2 out number)
if I call something like
select * from table(dbms_metadata.<subprogram> ('proc2')) ;
It gives me
id1 in number
cde in varchar2
id2 out number
any ideas/pointers ?Hi,
Not really sure why you need it from dbms_metadata, but DESC and DBA_ARGUMENTS (dictionary view) would provide the same info. *_ARGUMENTS has lot more info in it
desc dbn
Argument Name Type In/Out Default
<return value> NUMBER OUT
P1 NUMBER IN
desc show_html_from_url
Argument Name Type In/Out Default
P_URL VARCHAR2 IN
> col owner format a10
> col object_name format a10
> col argument_name format a10
> select owner, object_name, argument_name, data_type, data_length, in_out
from dba_arguments a where object_name = 'DBN'
OWNER OBJECT_NAM ARGUMENT_N DATA_TYPE DATA_LENGTH IN_OUT
HR DBN P1 NUMBER 22 IN
HR DBN NUMBER 22 OUT
vr,
Sudhakar -
SAP Cloud Application Studio How to retrieve the details based on OVS in Product ID
Hi Experts,
I have small requirements in AdvanceListPanel. I have custom BO as mention below,
businessObject Demo {
element ID : ID;
node Sporoduct [0,n] {
element P_ID : ProductID;
element P_DES : SHORT_Description;
element P_QTY : Quantity;
element P_NET : Amount;
I have attached the OVS on Product ID (P_ID) element.
I want to auto-fill the details under the AdvanceListPanel ( Product Desc , Product Net value ( Price) )
1) How to get the details of Product ( Prod Descr, Product Price etc ).
Please anyone have idea about this share your thoughts.
Many Thanks,
MithunHi, Mithun
What you want is to auto-fill the related details when you select a product from your OVS.
That means you have to write your codes in Event After Modify.
We normally use QueryByElements or some other query options given for a particular standard BO.
It would be like that.
var query=Product.QueryByElements;
var selParams=query.CreateSelectionParams();
selParams.Add(query.ProductID ,"I","EQ",this.P_ID );
var result=query.Execute(selParams);
for(var product in result){
this.P_DES =product.Description;
What I have just written is just a sample code. You have to find the exact name of the attributes of a standard BO in Repository Explorer.
Hope this helps,
Fred. -
I have ITunes sharing. We have already enabled 5 computers but over the years at least 2 of them are long gone no way to "deauthorize" them. This current computer has just been reformatted as it crashed and I am trying to get all of the music back but am told I am at the 5 home sharing limit. Anyone know how to deauthorize the old computers so I can have itunes on the primary computer?
We have already enabled 5 computers but over the years at least 2 of them are long gone no way to "deauthorize" them. This current computer has just been reformatted as it crashed
Are any of the two remaining authorisations on a computer you have access to?
If so, I'd try doing a deauthorise all from one of the accessible computers, and then reauthorise the ones you still have access to. -
Pl sql procedure to retrieve user details based on the input
hi,
I am looking for an example which will retrieve the data based on what he requests. I mean: the user types in an request_name, the procedure will check if the request_name already exists. If yes, then it will retrieve the request_name and other columns from the table R. Else it will create a new request by adding request_name and other details to the table.
hope this is clear some1 could help me
thanksIf defaults are set for the request table fields and you can get by inserting only the request_name field, perhaps something like the below would work?
T_REQUEST is the table, REQUEST_NAME is the field you mentioned. If the function finds the record, it returns it as a record. If it doesn't, it inserts a blank record with REQUEST_NAME populated:
CREATE OR REPLACE FUNCTION REQUEST_LOOKUP
( V_REQUEST_NAME IN T_REQUEST.REQUEST_NAME%TYPE )
RETURN T_REQUEST%ROWTYPE
AS
R_REQUEST T_REQUEST%ROWTYPE;
CURSOR C_REQUEST IS
SELECT *
FROM T_REQUEST
WHERE REQUEST_NAME = V_REQUEST_NAME;
BEGIN
OPEN C_REQUEST;
IF C_REQUEST%NOTFOUND
THEN
INSERT INTO T_REQUEST (REQUEST_NAME)
VALUES (V_REQUEST_NAME);
ELSE
FETCH C_REQUEST INTO R_REQUEST;
RETURN R_REQUEST;
END IF;
CLOSE C_REQUEST;
END REQUEST_LOOKUP; -
Retrieving the Cell Site Id, Mobile Network Code, Mobile Country Code
Hi,
I am using CLLocationManager to retrieve the latitude/longitude of a place.Its working fine.I can also find the distance travelled between the old location and the new location.
But I need to get the information about the Cell Site Id, Mobile Network Code, and Mobile Country Code .
Is there any API in the SDK to retrieve them ?or any other work around that will fetch these values?
Any suggestion or help will be appreciated.
ThanksHi and Welcome to the Community!
Please refer to this helpful thread:
http://supportforums.blackberry.com/t5/General-BlackBerry-Functions-and/Unlocking-your-BlackBerry-Gu...
Good luck!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Connecting webservice and retrieve the data in json format.
Hi,
I need to connect to web service using java and retrieve the data in the format of JSON.
I'm pretty new to this kind of technology, so kindly inform me about the class which are to be used.
Thanks in advanceThere isn't one class that will solve your problems. You need to use many classes, and it's not a trivial task.
-
Any SAP standard report is used to retrieve the inventory number based Asse
Hi all
Any SAP standard report is used to retrieve the inventory number based Asset ID.
Please help us to provide the standard report.
Regards
K.GunasekarHi,
Create the Sort version with field Inventory no, so that you can display Inventory no details in all Asset report.
You can get "Inventory no" details by including field "INVNR" in Sort versions for Asset reporting(T.code - OAVI).
Hope this information helpful for you.
Thanks & Best Regards,
M.Ganesan -
Not able to Retrieve Transaction Data based on the property of master data
Hi,
I am trying to retrieve transaction data based on property of Master Data for ACCOUNT (property ACCTYPE = ‘EXP’)
in BPC 10 version for netweaver.
Transaction data is present at backend, But I am not getting data in Internal table after running RSDRI Query.
I am using this code.
DATA: lt_sel TYPE uj0_t_sel,
ls_sel TYPE uj0_s_sel.
ls_sel-dimension = 'ACCOUNT'.
ls_sel-attribute = 'ACCTYPE'.
ls_sel-sign = 'I'.
ls_sel-option = 'EQ'.
ls_sel-low = 'EXP'.
APPEND ls_sel TO lt_sel.
lo_query = cl_ujo_query_factory=>get_query_adapter(
i_appset_id = lv_environment_id
i_appl_id = lv_application_id ).
lo_query->run_rsdri_query(
EXPORTING
it_dim_name = lt_dim_list " BPC: Dimension List
it_range = lt_sel" BPC: Selection condition
if_check_security = ABAP_FALSE " BPC: Generic indicator
IMPORTING
et_data = <lt_query_result>
et_message = lt_message
Data is coming if i use ID of ACCOUNT directly, for e.g.
ls_sel-dimension = 'ACCOUNT'.
ls_sel-attribute = 'ID'.
ls_sel-sign = 'I'.
ls_sel-option = 'EQ'.
ls_sel-low = 'PL110.
APPEND ls_sel TO lt_sel.
so in this case data is coming , but it is not coming for property.
So Please can you help me on this.
Thanks,
RishiHi Rishi,
There are 2 steps you need to do,.
1. read all the master data with the property you required into a internal table. in your case use ACCTYPE' = EXP
2. read transaction data with the masterdata you just selected.
Then you will get all your results.
Andy -
UDF For Retrieving the Tax Code based on PO
Hi all,
Mine is a file to Idoc scenario.
I wrote a FM to retrieve the Tax Code based on PO .
Created the udf which directly gets the Taxcode from the r/3 with out importing in to the imported objects,is this correct i never tried this before.
Find the UDF for the Same.
final String CHANNEL_NAME = "GeneratedReceiverChannel_RFC",
VALNOTFOUND = "VALUE_NOT_FOUND",
SAPRFCNS = "urn:sap-com:document:sap:rfc:functions",
TAG_FM = "Z_P_INT012_RFC_LOOKUP",
TAG_TAX_CODE = "T_TAX_CODE",
TAG_TAX_CODE_P = "TAX_CODE";
AbstractTrace trace = container.getTrace();
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = null;
factory.setNamespaceAware(false);
factory.setValidating(false);
try {
builder = factory.newDocumentBuilder();
} catch (Exception e) {
trace.addWarning("Error creating DocumentBuilder - " + e.getMessage());
Document docReq = null;
try {
// Building up RFC Request Document
docReq = builder.newDocument();
Node root = docReq.appendChild(docReq.createElementNS(SAPRFCNS, TAG_FM));
Node nodeTbOpt = root.appendChild(docReq.createElement(TAG_TAX_CODE));
for (int i = 0; i < pernr.length; i++) {
Node nodeTbOptItem = nodeTbOpt.appendChild(docReq.createElement("item"));
nodeTbOptItem.appendChild(docReq.createElement(TAG_TAX_CODE_P)).appendChild(docReq.createTextNode(TAX_CODE<i>));
} catch (Exception e) {
trace.addWarning("Error while building RFC Request - " + e);
trace.addInfo("RFC Request XML: " + docReq.toString());
//trace.addWarning("RFC Request XML: " + docReq.toString());
// Lookup
Payload load = null;
try {
Channel channel = LookupService.getChannel(receiver[0], CHANNEL_NAME);
RfcAccessor accessor = LookupService.getRfcAccessor(channel);
InputStream is = new ByteArrayInputStream(docReq.toString().getBytes());
XmlPayload payload = LookupService.getXmlPayload(is);
load = accessor.call(payload);
} catch (LookupException e) {
trace.addWarning("Error during lookup - " + e);
// Parsing RFC Response Document
Document docRsp = null;
try {
docRsp = builder.parse(load.getContent());
} catch (Exception e) {
trace.addWarning("Error when parsing RFC Response - " + e.getMessage());
trace.addInfo("RFC Response XML: " + docRsp.toString());
//trace.addWarning("RFC Response XML: " + docRsp.toString());
try {
NodeList res = docRsp.getElementsByTagName("item");
for(int i=0;i<res.getLength();i++){
NodeList itemNodes = res.item(i).getChildNodes();
Map itemMap = new HashMap();
for(int j=0;j<itemNodes.getLength();j++){
itemMap.put(itemNodes.item(j).getNodeName(), itemNodes.item(j).getFirstChild().getNodeValue());
rows.add(itemMap);
catch (Exception e) {
trace.addWarning("Result value not found in DOM - " + e);
result.addValue("true");
Error:
16:24:08 Start of test
Source code has syntax error: /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:598: 'class' or 'interface' expected public void TaxValues$(String[] a,String[] b,ResultList result,Container container){ ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:618: 'class' or 'interface' expected } ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:619: 'class' or 'interface' expected ^ 3 errors Source code has syntax error: /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:598: 'class' or 'interface' expected public void TaxValues$(String[] a,String[] b,ResultList result,Container container){ ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:618: 'class' or 'interface' expected } ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:619: 'class' or 'interface' expected ^ 3 errors
16:24:11 End of test.Hi Potharaju,
Why don't you try this, that really works:
If you are using PI 7.1:
http://help.sap.com/saphelp_nwpi71/helpdata/en/33/1ec6ced273493a993a80c2301c03da/frameset.htm
If you are using XI 3.0, PI 7.0
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
Try with these.
Regards,
Juan -
SQL Query to retrieve the All records based on the Max Dates.
Hello all,
I am trying to retrieve the newest record based on the date field ( nextDate ).
Currently there are only 4 records in the MC_Maintenance table and two in the Machine table.
Machine table
MC_id EquipID
1 0227
MC_id EquipID
2 0228
MC_Maintenance table
Maint_id MC_id Next_maint
1 2 08/25/2010
2 2 07/01/2010
3 1 06/11/2010
4 1 07/11/2010
What I am trying to accomplish is,
list the two machines from the Machine table with the MAX(Next_maint) controlling the MC_Maintenance output list
These are the records that I would like to Display.
Maint_id MC_id Next_maint
1 2 08/25/2010
4 1 07/11/2010
Below is the SQL Query
SELECT
MC.MC_ID as ID,
MC.complete_Date as completed,
MC.next_maint as nextDate,
MC.maint_notes as Notes,
MC.facility as Facility,
M.EquipId,
M.name as name,
M.SerialNumber as SN,
M.dept as dept,
M.Freq as freq
From MC_Maintenance MC, Machine M
where MC.MC_ID = M.MC_ID
' USING MAX(nextDate )
Any ideas would help.
TJI would have thought that was a simple group by problem?
SELECT M.EquipID, MC.MC_ID, Max(MC.next_maint)
FROM MC_Maintenance MC INNER JOIN Machine M ON MC.MC_ID = M.MC_ID
GROUP BY M.EquipID, MC.MC_ID -
Using a lookup for mapping program to retrieve the specific value
Hi All,
I have a scenario like I need to use a lookup for mapping program to retrieve the specific value based on the input parameters.
Here I have got some rough idea like
1. Creation of java program to connect the DB table and access the values, Import this java program as archive into XI.
2. Creation of user defined function to use the above java program
3. Include the user defined function in the interface mapping.
Here I feel it needs some more info to complete this scenario, so can anyone provide the step by step procedure for the above scenario.
Thanks in advance.
Vijay.Hi Vijay,
Basically you have embed Database lookup code in the UDF. For all kind of Lookups refer to below links..
Lookup - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
DB lookup - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
SOAP Lookup - /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0
Lookups in XI made simpler - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the Lookup API -
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
/people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
Lookups - /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
Lookups - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
/people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
Lookups with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
/people/sravya.talanki2/blog
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14
How we have to create the lookups?
Check this weblogs with some screenshots on how to achieve this:
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
/people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
/people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
/people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
Ranjeet Singh. -
How do you use BOBJ SDK to retrieve the results of a query in XML
I am trying to programatically get the results of a query given the query id
My old code used BusinessObjects Enterprise Web Services API to Retrieve a document's contents
DocumentInformation biDocInfo;
RetrieveData retBOData = RetrieveData.Factory.newInstance();
Action[] actions = new Action[1];
retBOData.setRetrieveView(xmlView);
biDocInfo = rEngine.getDocumentInformation(queryId, null, actions, null, retBOData);
(XMLView) biDocInfo.getView();
Is there an equivalent way to retrieve the results of the query using SAP BusinessObjects BI 3.x Developer SDK Library ?
Thanks for any informationHello.
Are you wanting to use the BusinessObjects Enterprise SDK along with the Report Engine SDK as opposed to using the Web Services SDK that you were using previously?
Also, what part of a webi document are you trying to get the XML format of?
- Whole document
- Single report within a document
- Report page of a report
- Report part within a report
- All data providers
- Single data provider
If you are trying to use Business Objects Enterprise along with the Report Engine SDK, there are numerous samples for the various parts of the webi document that I mentioned above available at the following link:
http://wiki.sdn.sap.com/wiki/display/BOBJ/JavaReportEngineSDKSamples
I hope that this information helps.
Regards.
- Robert
Maybe you are looking for
-
Blurry/ fuzzy fonts in pdf when export from indesign
Hello all, i have done alot of research/ readings via the internet (& forum) but i still can't find a solution to this: - I have saved my pdfs (line drawings, texts, graphics) in illustrator. - i 'place' them into Indesign. - In indesign, i click 'ex
-
Mac hardware test and what this means
My Imac started to freeze, I tried to reinstall tiger but the install just hung. So I decided to run the hardware test and this is the error message: 4MDT/1/40000003:HDD Does anyone know what that means or what piece of hardware is being problematic?
-
Hi all I want to display an Image in the cell of the JTable. I defined already a cellRenderer for the table ( not for colum ) for component. but for exampele, If I want that cell (0,0) will be JButton ( which now its working good ) and cell (1,0) wii
-
Photo size/manually pushing photos
Is there a way to up the allowed photo size on the server without putting the photos in AD? Like a cmdlet? OR even a way to set the user photo via cmdlet which would ignore the current max size limitations? Thanks, Brandon
-
Aperture Trial loaded but will not accept the emailed serial number
I downloaded the aperture trial, and received an email with the serial number to activate the trial but i keep being told the serial number is invalid! I am concerned that my trial is counting down, and i cannot access it... can i register for anothe