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
Similar Messages
-
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 portal user exists or not using UM API.
Hi Experts,
Let us say i need to create an user account "PortalUser",i know how to create an user,setting first name,lastname,password for that.
but here before creating the portal user, i need to check whether that user exists or not.If user already exists ,then i need to skip the below for creating the user.
IUserFactory userFact = UMFactory.getUserFactory();
IGroupFactory groupFact = UMFactory.getGroupFactory();
IRoleFactory roleFact = UMFactory.getRoleFactory();
IUser tuser = userFact.getUserByLogonID("PortalUser");
IUserMaint newUser = userFact.newUser("PortalUser");
newUser.setFirstName("PortalUser");
newUser.setLastName("Test");
newUser.setEmail("PortalUser.Testatgmaildotcom");
//Locale PortalLanguage = new Locale(Lang.toLowerCase(), "");
Locale PortalLang=new Locale("en");
newUser.setLocale(PortalLang);
newUser.save();
newUser.commit();
IUserAccount userAcc = UMFactory.getUserAccountFactory().newUserAccount("PortalUser", newUser.getUniqueID());
userAcc.setPassword("test1test$");
userAcc.save();
userAcc.commit();
Thanks in advance.
Thanks
Sony.Hi,
Try this code,
IUserFactory factory = UMFactory.getUserFactory();
IUser user = factory.getUserByLogonID(userId);
lastName = user.getLastName();
firstName = user.getFirstName();
refer this pdf,its very helpful
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars-nw-rig/using%20the%20user%20management%20api%20with%20ep%20applications%20-%20webinar%20powerpoint.pdf
Regards,
Sunaina Reddy T -
How to check if the path exists and if not, create it
I'm trying to check if the path given by the user already exists. In case it doesn't, I'd like to create a folder with name given in the same directory.
Let's say path_1: "C:\folder1" and path_2: "C:\folder2", and suppose that folder1 exists but folder2 doesn't. Then if the path given by the user is the path_1, then ok, nothing happens, but if it is the path_2, then the programm should realize that it doesn't exist in C:\ and should ask you whether you want to create it or not.
I know how to do that for files, but not for folders!
Thanks in advancehi guys,
i`m new at this so im gonne prob. ask a noob`s question...
i have the same issue as in the title.
but when i run :
int a,b,c,d,folderexist=-1;
switch (event)
case EVENT_COMMIT:
GetCtrlVal (panelHandle, PANEL_NAME, name);
folderexist = GetFileAttrs (name, &a, &b, &c, &d);
if (folderexist==-1)
MakeDir (name);
sprintf...........
else.......
if the folder do exists it works perfectly.
if it doesnt - it breaks the run and gives me the message :
NON-FATAL RUN-TIME ERROR: "NewScap.c", line 317, col 27, thread id 0x00001B98: Library function error (return value == -1 [0xffffffff]).
(and mark the getfileattrs line in blue)
and when i check the "folderexits" value it shows 2!? not 1 not 0 not even -1, but 2...
can somone please help ?
thanks
Adi. -
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 Record Exists or not in Ztable
Hi all,
I have Req like this
In ZTable i have 2 fields * Legacy System , Legacy Material No*
Environment Value is coming in one of the field in Idoc
The logic is if the Environment Value is UK and a Record Exists on the ZTable for Legacy Sysyetm = Leg1 means i have send Legacy Material No , else Send 01
Please suggest me the process for this
REgards
Vamsi
Edited by: Vamsi Krishna on May 19, 2009 5:31 PMHi Michal / Aamir,
Thanks for your replies.
The ZTable is at R/3 side only, iam using RFC Lookup for this, but iam bit confuse on how to construct the logic to check whether there is a record Exists or not on Ztable
Logic shld be If the Environment value is UK and a record exists on the Ztable for Legacy system "ABC" means then send Legacy material number else send 01
In Table we will have the fields Legacy System Legacy Material No & Environment value is coming from Idoc itself( Ex: UK or US)
Regards -
How to check if a user exists in the system ?
Dear Gurus,
I want to check whether a user ID exists in the system after logon by using VBA. If the user ID exists, then I will update the user's information with external data by using the method user.change.
When running below codes, error occurs and error msg is: "The persistent key for an business object instance of type USER has not been set. Cannot invoke method EXISTENCECHECK"
How can I do to check the user ID existence ?
Set oUser = oBAPICtrl.GetSapObject("user")
oUser.ExistenceCheck "MyUserID", return:=oReturn
Thanks and Regards,
Bao YanMickey,
I'm afraid I never did get this to work properly. However, in the way of all bad/good (delete as appropriate) programmers eveywhere I worked around this problem. I was using this code in Banner.asp to change the view based on the user group so if a given session variable was set a user would see a different view. It works fine with no slow down on the page and you should be able to adapt it to what you need.
Hope this helps.
Neville
Note: Application variables are ones I have defined in config.xml.
Code follows:
<!--START:INC\common\getgroup.asp-->
<% 'NAH 29/03/2004 ' 'This check the to see if the current user has the group in their membership that has been defined as the group to provide an alternative view of the portal.' 'The group variable is defined in the config.xml as "ALTVIEWGROUP"'
'Do not do this is we have already matched the group'If Session("groupMatch") <> "1" and Session("groupMatch") <> "2" then
Dim pGroup
pGroup = Application("ALTVIEWGROUP") Set Session("groupMatch") = nothing
Dim Plumtree
Set Plumtree = Server.CreateObject("ADODB.Recordset") Plumtree.ActiveConnection = "Driver={SQL Server};Server=" & Application("DBSERVER") & ";Database=" & Application("PLUMTREEDB") & ";" Plumtree.Source = "SELECT GROUPID FROM " & Application("PLUMTREEDBUSER") & ".PTGROUPMEMBERSHIP WHERE (USERID = " & strUserID & ") AND (GROUPID = " & pGroup & ")" Plumtree.CursorType = 3 Plumtree.CursorLocation = 2 Plumtree.LockType = 1 Plumtree.Open()
'If there are records we should have a match otherwise set the session varible to no match.' If Plumtree.EOF then Session("groupMatch") = "2" Else 'By getting here the user should have the matching group but complete one final check to make sure' If cInt(Plumtree.Fields.Item("GROUPID").Value) = cInt(pGroup) then Session("groupMatch") = "1" Else Session("groupMatch") = "2" End If
End If
Plumtree.Close() Set Plumtree = Nothing
End if%><!--END:INC\common\getgroup.asp--> -
How to check whether a table exists in database
test9997 is table already made in database with 3 columns :1st-varchar,2nd-number,3rd-number
declare
var1 varchar2(20);
var2 number(20);
var3 number(20);
begin
plvar1 :='this is again pl/sql';
plvar2 := 12;
plvar3 := 13;
IF (???? condition for existence of table say test1111??????) then
create table test1111(
var1 varchar2(20);
var2 number(20);
var3 number(20);
insert into test1111(plvar1,plvar2,plvar3);
else
insert into test1111(plvar1,plvar2,plvar3);;
end if;
end;
in the above code i want to check existence of a table and insertion or updation will be based on it after creation if it doesnt exist.
how to do it
please help asapYou're in the wrong forum (this one is for issues with the SQL Developer tool). You'll get more answers in the SQL And PL/SQL forum.
Have fun,
K. -
How to check whether a file exists or not
i am in an image uploading utility. i hav succesfully uploaded the image to the server directory (say /uploads). but when displaying the uploaded image, i wanna show the picture only if the image exits (bcoz for some records there is no image). so i hav used this code
if(new File("uploads/1.jpg").exists())
out.print("image exists");
but its not working for me. i got it working fine when i give the full path "D:/Tomcat/webapps/diary/admin/uploads/1.jpg". but i think giving this absolute path is not an efficient method bcoz its a web application, bcoz i may not be able get the absolute path always. so how can i do this by specifieing the relative path
help me ASAP if u can
aleensHaii ameen
This is one way to rectify your problem..
if(new File("uploads/1.jpg").exists())
out.print("image exists");
instead of this u can write like
<%
ServletConfig cf=getServletConfig();
ServletContext c=cf.getServletContext();
if(new File(c.getRealPath("uploads")+"/test.txt").exists())
out.print("image exists");
%>If u are not clear of what it is done let me know..i will xplain to you furthur...
Happy New Year
Shanu -
How to check variants in programs existing in different systems ?
Hi,
i am using same program (coding might not b same ) in two different systems(fsd and bwd) .
one program has two variant and other has only one, now when we execute the main program which is controlling the program in different systems then it shows dump erroe due to different variants or different output.
we want to catch that dump error.
Please provide us some code for that.
Edited by: naincy on Oct 8, 2010 11:06 AMhi
actually the dump error i am getting shows LOAD_PROGRAM_NOT_FOUND
and CATCH_EXCEPTION is not working for that.
i dont have to remove the errors , i just want to handle thm. -
How do I share an lvm partition between two systems?
Hi,
I have a regular system which I usually work from, and I created a lvm partition using that system to store files in. I have another Arch system on the same harddrive (different partition) and I would like to know how I can access the lvm partition using the second system.
I have the following in my new system
/dev/sda8 swap swap defaults 0 0
/dev/sda9 / ext3 defaults 0 1
/dev/sda5 /mnt/arch ext3 defaults 0 0
/dev/sda2 /mnt/boot ext2 defaults 0 0
/dev/sda6 /mnt/arch-home reiserfs defaults 0 0
/dev/ravilvg/lvmpartition /mnt/lvmpartition reiserfs defaults,users 0 0
When I try to mount '/mnt/lvmpartition', I get
[root@myhost ravi]# mount /mnt/lvmpartition/
mount: special device /dev/ravilvg/lvmpartition does not exist
I have put USELVM="yes" in my rc.conf, and on bootup I get the message that Device mapper is not in the kernel. 'lsmod' shows the dm_mod module is not loaded, but loading the module and running the mount command still does not work.
Here are the outputs of the lvm commands
[root@myhost ravi]# lvm pvscan
PV /dev/sda10 VG ravilvg lvm2 [24.20 GB / 0 free]
Total: 1 [24.20 GB] / in use: 1 [24.20 GB] / in no VG: 0 [0 ]
[root@myhost ravi]# lvm vgscan
Reading all physical volumes. This may take a while...
Found volume group "ravilvg" using metadata type lvm2
[root@myhost ravi]# lvm lvscan
inactive '/dev/ravilvg/lvmpartition' [24.20 GB] inherit
Thanks,
RavsterHi,
You were right, the solution was to simply activate the volume
What I did was
lvm lvchange -ay /dev/ravilvg/lvmpartition
The lvm partition is now accesible from both systems
Thanks for your help,
Ravster -
Identity(Prebably using FM) whether a class exists in a system or not?
Hi,
I want to check whether a class exists in a system or not in my program.
How can I do that?
There is a function module FUNCTION_EXISTS which tells whether a function module exists or not.
Similar one if existing for a class if any would help.
Regards,
Bikash.Hello Bikash
I would use static method CL_OO_CLASS=>GET_INSTANCE (alternative: CL_OO_OBJECT).
If this method cannot get an instance of the class then the class does not exist.
Corresponding fm is: SEO_CLASS_GET
For interfaces you may use: CL_OO_INTERFACE of SEO_CLIF_GET
Regards
Uwe -
How to check the given path is existing or not using sp_cmdshell
Hi All,
I am passing one path to the stored procedure, before executing code i want to check whether the path is given existing or not .
By using sp_cmdshell we can know whether files are there are not but in case of my scenario i want to know the directory(folder) is existing or not because the source folder may be blank so it will not get the files there so stored procedure returning the
File Not found as output.
following is the code i am trying to retrieve this please suggest any other way to solve it.
Create table #tableExists (isValid varchar(255))
Declare @path varchar(255)='DIR "C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA "/B'
INSERT INTO #tableExists
EXEC xp_cmdshell @path
select * from #tableExists
Regards,
Niraj SevalkarYou can try the other two undocumented extended stored procedures as well:
--EXEC master.dbo.xp_subdirs @pathName
EXEC Master.dbo.xp_fileexist @pathName
EXEC Master.dbo.xp_DirTree @pathName,1 -
How to check whether file exist or not?
hello,
i wanted to know that how can i check whether a file exist or not independent of underlying Operating system?
please help .
Thank you.Use exists() on a File instance.
-
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.
Maybe you are looking for
-
We have an older IMac (preIcloud) and just purchased a new Macbook Air. Our Iphones are set-up to synch with the IMAC and my calendars on the IMac & the phone look the same. But when I open ICal on the MacBook Air my calendar is missing items? Help.
-
I have been trying to sync my iphone to my computer but it shows up as a camera. I have tried to reinstall itunes, rebooted everything and checked on a different computer. Same issue. itunes does not see the device. Any suggestions?
-
Assets(excisable ) rejection at the time of migo
hiiiii.... i want to reject a excisable asset.I also want to know the storage location of this asset at the time of migo or quality check. Thanks & Regards Rekha Sharma
-
Blinking Lights on Panel on HP C7280 All In One Printer
What does it mean when all the lights on the pnel keep on blinking? It is a HP C7280 All In One Printer. And it does print fine. I did talk to a Tech at Besy Buy who indicated that it is a major problem and not worth fixing. Please advise and than
-
MissingResourceException using ResourceBundle
I'm developing an app based on the Duke's bank app in J2sdkee 1.3 Tutorial. I get the following IE 5.0 browser error when I try to access the "main" page. A Servlet Exception Has Occurred java.util.MissingResourceException: Can't find bundle for base