How to check whether an attribute is existing in an OU using JNDI
I want to check whether an attribute is exixting some where in a User URl. Right now I am doing like this. I am setthing the Returning attributes with this attribute and will do a search whic will return a naming enumeration. If the namingEnumeration is not null, then the attribute is valid. But this search will take some time to finish. So Is there any way to identify an attreibute is existing or not, without performanc hindrance
your suggestions will help
Thanks in advance
SoulTech2012 wrote:
coolhead wrote:
I'm not sure you can. 24 hours ago you were not sure how to write an if statement and apparently you're still stuck.Probably you didn't notice the previous post.
I clearly told
coolhead wrote:
@SoulTech
thanks for your advice,
I am only using the traditional if statement till now.So I don't know what makes you think I am expecting others to do my job. And also, I have been going through the forum, though the case may be that others want their job done by this forum members, that is not going to be the case with me, because here only to learn, not to travel on someone shoulders.!
Please be a bit patient and go through all the replies in the thread, before you go accusing the poster. Yeah, I can understand your position, you have nearly 2900 posts as such, but don't you think, it is somehow unfair when you go accusing someone without reading the replies.?
And I am not here to have argument with this forum members, because I know they do a great job helping the people with their doubts.
If u still want to argue, do it until you are satisfied.
Similar Messages
-
Try to check whether a file already exists on disk by using fileExists
Hy all,
i try to check whether a file already exists on disk in my
Action scirpt.
I found this link about fileExists:
link
So i tried somethink like this in my code, but without
success...
if(fl.fileExists("file:///C|/toto.txt"))
{gotoAndPlay(2);}
else
{gotoAndPlay(3);}
Is it not the right syntax?
Thank you for your help.Did you build and application from the swf with mProjector?
The only
way this and other mProjector functions will get called is to
post
process your swf into and application (exe / app) using
mProjector.
you can get a free trial here
http://www.screentime.com/software/mprojector/demo.html
On 2007-01-08 16:02:42 -0500, "Alexis Schneider"
<[email protected]> said:
John Pattenden
Screentime Media - Flash Tools since 1997
http://www.screentime.com -
[req] how to check whether given oracle table exist or not + C#
Hi,
All.
Actually i m creating a program using C# which connects to the database (oracle) and checks for the given table "OPC_GROUP". if the table doesnt exists then it creates the table else it updates all field with provided values
code
cmd.CommandText = "SELECT tname from tab where tname = 'OPC_GROUP'";
cmd.CommandType = CommandType.Text;
int length = cmd.ExecuteNonQuery();
if (cmd.ExecuteNonQuery() >0)
MessageBox.Show("Table does exist");
else
MessageBox.Show("Table doesnt exist");
But this code return "TABLE DOESNT EXIST" though table is already created
What i m doing wrong???
Please help..........
Thnx in advanceTry this..
cmd.CommandText = "SELECT count(*) from tab where tname = 'OPC_GROUP'";
cmd.CommandType = CommandType.Text;
string strnum = cmd.ExecuteScalar().ToString();
if (strnum!="0")
MessageBox.Show("Table does exist");
else
MessageBox.Show("Table doesnt exist");
Hope it helps,
Greg -
How to check whether the Application Server directory exits or not
Hi,
I have a selection screen in which I give the Application server file name(UNIX file) as input. Here, I would like to check whether the Server directory exists or not.
Let us say, the path I gave in the selection screen is /usr/sap/tmp/testfile.txt . Here, the file name is testfile.txt and the server directory is /usr/sap/tmp . I would like to check whether this directory /usr/sap/tmp exists in the server or not. I am not bothered about the file name as I am going to write data into the file. I am mainly concerned about whether the directory exists in the server or not. and one more thing... this is the Application Server path not the Local path.
Can anyone help me on the same how to check whether the server directory exists or not.
Thanks in advance.
Best Regards,
Pradeep.Also you can use the FM EPS_GET_DIRECTORY_LISTING for this purpose.
Store the directory name
l_dpath = p_file+0(l_no).
Validate the directory of the application server
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
EXPORTING
dir_name = l_dpath
TABLES
dir_list = l_i_dlist
EXCEPTIONS
invalid_eps_subdir = 1
sapgparam_failed = 2
build_directory_failed = 3
no_authorization = 4
read_directory_failed = 5
too_many_read_errors = 6
empty_directory_list = 7
OTHERS = 8.
If any problem occurs with the directory then display proper
error message
IF sy-subrc <> 0.
Display error message
MESSAGE e018 WITH 'Problem with directory entered'(008).
ENDIF. " sy-subrc <> 0
Regards,
Joy. -
How to check whether a node exist in a Particular Level. (xmltype)
hi,
please help me to check whether a particular node exists in one level.
for eg
I have the following xml
<map>
<entry>
<key>
heading1
</key>
<map>
<entry>
<key> sub1 heading1</key>
<value> sub1 heading1 value </value>
</entry>
<entry>
<key> sub2 heading1 </key>
<value> sub2 heading1 value </value>
</entry>
</map>
</entry>
<entry>
<key>
heading2
</key>
<map>
<entry>
<key> sub1 heading2</key>
<value> sub1 heading2 value </value>
</entry>
<entry>
<key> sub2 heading2 </key>
<value> sub2 heading2 value </value>
</entry>
</map>
</entry>
</map>i need to check how many heading exists in this xml.
I am checking like
i:=1;
l_section := ip_xml.extract('//map/entry');
WHILE l_section.existsnode('entry[' || i|| ']') = 1 LOOP
// extract the key name within entry tag
// print the key name.
i:=i+1;
end loop;but iam getting all the key name like
heading1
sub1 heading1
sub2 heading1
heading2
sub1 heading2
sub2 heading2
I need only heading1 and heading2. how can I check whether a particular node exist in particular level.
first level , second level etc. Please helpbut iam getting all the key nameThat's because you're using a descendant axis : //map/entry
SQL> DECLARE
2
3 ip_xml xmltype := xmltype('<map>
4 <entry>
5 <key>
6 heading1
7 </key>
8 <map>
9 <entry>
10 <key> sub1 heading1</key>
11 <value> sub1 heading1 value </value>
12 </entry>
13 <entry>
14 <key> sub2 heading1 </key>
15 <value> sub2 heading1 value </value>
16 </entry>
17 </map>
18 </entry>
19 <entry>
20 <key>
21 heading2
22 </key>
23 <map>
24 <entry>
25 <key> sub1 heading2</key>
26 <value> sub1 heading2 value </value>
27 </entry>
28 <entry>
29 <key> sub2 heading2 </key>
30 <value> sub2 heading2 value </value>
31 </entry>
32 </map>
33 </entry>
34 </map>');
35
36 BEGIN
37
38 for r in (
39 select heading, headno
40 from xmltable( '/map/entry/key'
41 passing ip_xml
42 columns heading varchar2(30) path '.'
43 , headno for ordinality )
44 )
45 loop
46 dbms_output.put_line('Heading '||r.headno||' = '||r.heading);
47 end loop
48 ;
49
50 END;
51 /
Heading 1 =
heading1
Heading 2 =
heading2
PL/SQL procedure successfully completed -
How to check whether a file exist in the program folder or not?
Hi guys,
how to check whether a file exist in the program folder or not? Let is say i recieve a file name from user then i want to know if the file is there not and act on that base.
abdulLook at the class java.io.File and the .exists() method:
http://java.sun.com/j2se/1.4/docs/api/java/io/File.html -
How to check whether transport path exist between two systems in sld??
Hi,
I have two systems namely 'A' and 'B' and created business systems for both of them.Then i created transport path between the two systems.How i check whether what i have done is right in SLD.<b>WRT to CMS</b>
am not sure with this but u can try:
1. Start CMS: http://<host>:<J2EE Engine http port>/webdynpro/dispatcher/sap.com/tcSLCMS~WebUI/Cms.
2. Goto lansdscape configurator and check there
Message was edited by:
Prabhu S -
How to check whether a file is present in the UNIX directory of app. server
Hi,
I am creating files in the UNIX directory in the application server using :
CONCATENATE '/sapmnt/RD1/interfaces/client670/'
p_fname '.CSV' INTO w_filename.
OPEN DATASET w_filename FOR OUTPUT IN TEXT MODE.
LOOP AT t_output1.
TRANSFER t_output1 TO w_filename.
ENDLOOP.
CLOSE DATASET w_filename.
I am unable to check whether a file with the same name exists or not. How to check the duplicate state of the file.You can use the following fm
RZL_READ_FILE
or
use OPEN DATASET FOR INPUT. -
How to check whether a field contains at least one numeric value
how to check whether a field contains at least one numeric value..
Hi,
I hope that this code will works.
constants:
c_digit_grp TYPE char11 VALUE '0123456789', " Digit group
* Data Declaration
data :
str type string.
* if you want check entire string and pass entire string
if str CA c_digit_grp.
* write your logic ---this block will execute atleast one numeric value exists in the string
Endif.
Regards
Bhupal Reddy -
How to check whether ESBAgentListener listener is started or not for ESBSys
Hi,
I am working on Oracle ESB 10g, I want to know how to check whether the ESBAgentListener listener is started or not for particular ESB system. I know we can verify the logs but I want to know is it possible from database or any other sources.
Thanks in advance.
RameshHi Jogdand ,
You can get the PO total value change form the PO business Object BUS2201 attribute POTotalValueIncreased .
Below code sample decribes how to get the BO attribute values
1. INCLUDE <swfcntn01>.
2. Create an instance of the BO by calling the macro and passing the three parameter.
swf_create_object <po bor object> <BUS2201> <po_guid>
3. Get the PO attribute by calling macro
swf_get_property <po BOR object> < 'POTotalValueIncreased' > < lv_pototalvalueincreased>
OR
You can query the table BBP_PDHGP and get the original Value of the PO and call the FM BBP_PD_PO_GETDETAIL to get the new Value of the PO. Check the difference and if there is any difference then the PO value is changed.
I hope this will be very useful.
Regards,
Surender -
Use Powershell to check whether and AD user exists
We're trying to clean up roaming profile folders, and as part of the task I need to check whether the user actually exists in AD. I have tried 3 different methods and so far none of them work.
Either the empty result of the search doesn't equal $null (e.g. If ($objUser -eq $null) resolves to false) or Powershell crashes (like when I try to run that If statement). So is there an AD User equivalent to Test-Path?
RFI should add, if you want to use PowerShell filter syntax, you can use:
$Name
= "jsmith"
$User = Get-ADUser
-Filter {sAMAccountName
-eq $Name}
If ($User
-eq $Null) {"User does not exist in AD"}
Else {"User found in AD"}
And if you only have PowerShell V1, you can use the following:
$Name =
"jsmith"
$Searcher =
[ADSISearcher]"(sAMAccountName=$Name)"
$Results =
$Searcher.FindOne()
If ($Results
-eq $Null) {"Users does not exist in AD"}
Else {"User found in AD"}
In all cases I assume you are checking the "pre-Windows 2000 logon" name, not the Common Name (the value of the cn attribute, which does not uniquely identify the object in AD).
Richard Mueller - MVP Directory Services -
R12.1.1 staging complete! How to check whether the stage is Good
Hi Gurusl,
I have completed staging R12.1.1 for Hp unix B.11.31. I want to know how to check whether the stage is good for installation or whether it is corrupted. Is there any metalink note or script from where we can check it. Ur help will be highly appreciated. Thanks in advance
regards,Hi,
Please refer to (Note: 802195.1 - MD5 Checksums for R12.1.1 Rapid Install Media).
Regards,
Hussein -
How to check whether follow on document is created for sc or po,is there any table or fm available?
Hello Venu
Check FM: BBP_PD_SC_GETDETAIL and BBP_PD_PO_GETDETAIL table E_HEADER_REL
Check this: SRM Shopping cart and PO tables link
Regards -
How to check whether there r new txt files in a folder n file creation date
How to check whether there r new text files in a specified folder and what is the date of creation of the text file.........?
Hi
I have been searching for a solution to find the date of creation of a file for over 6 months now but haven't found it. So I presume that it is not possible though I havent found any authentication of my assumption in any document.
Cheers!
Shailesh -
How to check whether calendar is being used in any of the sap application
Hello All,
We are having few factory calendars. However some of the calendar having valid to year 2010. Can you please let me know how to check whether these calendar is being used in any of the sap application/module
kindly reply as early as possible
Regards
GirishHi RKS
yesterday BLOG by our SUMMER WANG helps every SRM consultant to debug the PO error
/people/summer.wang/blog/2010/05/11/trouble-shooting-of-srm-po-transfer-error
Good work Summer wang !!
Muthu
Maybe you are looking for
-
I use Mac OS 10.6.6 This Firefox does not work. Open two tabs, can't close the second, nor can I get back to the first. What do I do? Can I get my old Firefox back?
-
ABAP Help at start routine of Update rule
Good After Noon All, My requirement is that cube ZAPO_C24M theres an UPDR flowing from 8ZAPO_C24M back to itself so to speak.The request is to change the data in the cube from Fiscal Year Variant Z3 to Z4. But in start routine i have to take the
-
I upgraded my OS on my macbook to Snow Leopard 10.6.3 yesterday and now Aperture 3 will not open, error message "aperture cannot be opened because of a probelm" Any suggestions?
-
Private construtor, public static method
Hi, I'm having a problem trying to use a class' method. The class' constructor is private, and the methods are public static.... I created an object that belongs to the class, but then when I try to apply the methods to the object, the do not appear
-
Hi I need to get a Mac for high school should I get a MacBook air with i7 and 8gb of ram or should I get a MacBook pro retina I make music surf the web and check emails and play games on my Mac should I compromise the portability of the air for the p