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 AM
hi
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.
Similar Messages
-
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 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 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 -
Please help me how to check a material does existed group code in system (w
Hi all,
Please help me...
I have inputted quantity for tx MC 94 but when I input them into tx MC94, I met a message " Structure not yet maintained for this conbination characterstics". Step by step to show a error message as below:
Step 1: Launch MC 94
step 2: Enter Planning
Step 3: Enter Prod.Code. Material (ex: enter material code :0101010260008, this code is existed Prod.Code )
Step 4: Click on "Inactive Version " button
==> A error message is showed.
Please help me how to check a material does existed group code in system (which table to check it)?
How to record the message" Structure not yet maintained for this conbination characterstics" to catch up it in my program?
Thank in advance.Karenloria,
1. Check in MC8C, which Infostructure is used for Planning type "Planning" or the one you are entering in the intial screen of MC94.
2. Using transaction MC63 for the infostructure identified in step 1, check the planning hierarchy maintained. If this product is not maintined maintain using MC62.
You can also check using SE16 transction the current infostructe records(Plan) for the table name = infostructure identified in step 1.
Regards,
Prasobh -
How can check payment advice program
How can check payment advice program, pls tell me the steps
Hi,
You have to do the configuration for chaque payment advise...
1. IMG > Financial Accounting > Accounts Receivable and Accounts Payable > Business transactions > Outgoing Payments > Automatic Outgoing Payments > Payment Media > Make settings for Classic Payment medium programs > Assign payment forms for Payment Method in Company Code >>>>>>>> Here assign the payment advise (form) against your company code. AND
2. IMG > Financial Accounting > Accounts Receivable and Accounts Payable > Business transactions > Outgoing Payments > Automatic Outgoing Payments > Payment Media > Make settings for Classic Payment medium programs > Assign Payment medium program for Payment Method in Country >>>>>>>> here assign the payment program against your payment method... normally payment program is RFFOUS_C.
Now, run the authomatic payment program (F110) if it is configured earlier or run Manual Outgoing Payment F-58. It will create the payment advaise...
Hope it helps
Saravanan.A
Assign Points if it is useful. -
JavaScript: How to check if a file exists.
Hello Everybody,
Can you tell me how to check if a file exists using JavaScript and Internet Explorer.
Browsing on this website I could read about the command "f.exists()" and it was necessary to include "java.io.*".
Should I use this same command and should I include the same files? Or are there other files and other commands?
Thanks in advance.sorry ya. there is no command to check whether a file exists using javascript. The following code says the object name and value. But it can't say whether the file exists in the harddisk or .. Javascript cannot access database and system resources. If the file exists or not can be checked through the application (ASP, CFML, ..) you are using.
-
How to compare the programs in two different systems
Hi,
I have two systems say A & B and i have the program say 'Z_TESTPROG'.
How to compare the program in two different systems.
Regards,
VenkatHi,
Check the version in Utilities -> version -> version management in both servers is one option.
Another one is using SE39 transaction.
Regards
Manasa -
How to check if database/table exists in MYSQL
I am writing a program which accesses databases in MYSQL, is there any way to check if the databases exists on the MYSQL server and if not create one && to check if a table exists and create one of if it does not
OK, found out that as special permissions needed to create databases I assume it cannot be done via my app but how about Tables
-
Reg: How to create Variants for program SAPF120
Hi SAP gurus,
How to create variants for programm SAPF 120.
with regards
JK raoHi,
I suppose you intend to include 22 more Recurring Documents in the F.14 screen in an existing variant. Please check if these 22 are Recurring Docs in FBD3. And make sure that all 48 are appearing in the Document Number (Multiple Selection) tab of F.14. You can test (in a test system) by executing after inclusion and not necessarily saving as variant to make sure that BI session includes all 48 docs.
Rgds. -
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 function module exist
Hi All!
Does anyone know how to check if function module, which name is provided by the user, exists?
I have to execute a function but when user provides a incrrect name - i receive a short dump. I would like to chceck if this function exists before execution and if not - warn user with message box.
Thanks
TomekREPORT z_tmtest MESSAGE-ID zz.
PARAMETER: a_fname LIKE tfdir-funcname.
PERFORM test_fun_exist USING a_fname.
FORM test_fun_exist *
Test FM Exists
FORM test_fun_exist USING f_funcname LIKE tfdir-funcname.
CALL FUNCTION 'OM_FUNC_MODULE_EXIST'
EXPORTING
function_module = f_funcname
EXCEPTIONS
not_existent = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e001.
ENDIF.
ENDFORM. -
How to check if an object exists and how to discard it?
Greetings,
I have a main GUI panel in a JFrame that creates a smaller JFrame with a progress bar and text area whenever a process is initiated. I've set the default close operation to DISPOSE_ON_CLOSE as when I set it to EXIT_ON_CLOSE the main GUI panel closes as well (!). But whenever I'm closing the smaller JFrame and initiate a new thread, then the same operation is perform in parallel 2, 3 ,4 times, etc. It seems that the object of the class ProgressGUI which carries all the components of the small panel is not disposed properly. So my question is how can I check if an object exists and if yes how can I discard it? Or in other words how can I discard the JFrame of the small panel without closing the main GUI panel as well?
thanks,
ThomasI've set the default close operation to DISPOSE_ON_CLOSE thats right.
So my question is how can I check if an object exists Whenever you create an object, save its refrence somewhere, then just check
if(reference==null){
//object does not exist
}else {
//object exists
and if yes how can I discard it? Ensure that no references of the object to be discarded are remaining with any of the objects and then believe in 'Garbage Collector' to do the job! e.g. if there is only one reference to the frame (in your case) somewhere, you can just make an assignment like:
reference=null;by doing this, you have made the object a candidate for garbage collection. Rest is done by 'Garbage Collector', not you.
For cases like yours, it is better to make the small frame just once and whenever required just make the frame visible.
e.g.
JFrame smallFrame;
void showSmallFrame(){
if(smallFrame==null)smallFrame=new SmallFrame(); //or something like that
smallFrame.setVisible(true);
}Thanks! -
How to check it certain url exist?
hi there....
can someone help me??
is it possible to check if certain url exist?
public class checkFile1{
public static void main (String [] args) {
String file = "http://www.yahoo.com";
if (file = exist){
open file;
else{
System.out.println("nv exist");
Message was edited by:
n_dilahi try doing this but how come it give me false instead off returning me true?
System.out.println(exists("http://www.yahoo.com/"));
System.out.println(exists("http://www.rgagnon.com/"));
static boolean exists(String URLName){
try {
HttpURLConnection.setFollowRedirects(false);
// note : you may also need
// HttpURLConnection.setInstanceFollowRedirects(false)
HttpURLConnection con =
(HttpURLConnection) new URL(URLName).openConnection();
con.setRequestMethod("HEAD");
return (con.getResponseCode() == HttpURLConnection.HTTP_OK);
catch (Exception e) {
e.printStackTrace();
return false;
} -
How to check if a function exists in Flex?
Hi,
I am wondering if there is any method to check if a function exists in Actionscript/Flex.
The same way as we do isdefined in javascript.
Thank you
MayankOn instances - use Object hasOwnProperty method - all objects in AS3 inherit from Object:
var mc:MovieClip = new MovieClip();
var s:Sprite = new Sprite();
trace(mc.hasOwnProperty("play")); // true
trace(s.hasOwnProperty("play")); // false
Maybe you are looking for
-
Can't convert an originally Word doc from PDF back to Word
I'm running Windows 7 and MS Office 2010. I edited a 65 pages long doc, which I was recommended to convert to a PDF. Said and done. However now i want to make changes in that doc. I've tried to convert it back to Word but I don't succeed in doing it
-
Optimize Adobe PDF Size (Reduce) via Adobe LC Services.
I would like to know if there is a Service provided by Adobe LiveCycle ES2 which will reduce the size of a given PDF (Static or Dynamic) something similar to what you get using Acrobat menu option Optimize PDF. Tarek.
-
[svn:osmf:] 15687: Extending unit tests
Revision: 15687 Revision: 15687 Author: [email protected] Date: 2010-04-26 03:25:12 -0700 (Mon, 26 Apr 2010) Log Message: Extending unit tests Modified Paths: osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as Added Paths: osmf/trunk/f
-
RH9: Unwanted bold formatting showing up in WebHelp
I have a WebHelp build with a topic that, when published, shows bold formatting where there should be none. Only a word within each bulleted sentence should be bold, not the entire sentence. The .xpj file does not assign bold formatting to this text.
-
IBook will not start up past gray screen w/ apple logo
iBook will not start up past gray screen w/ apple logo. So I have zeroed out the hard drive and reinstalled tiger. No change except if I start up holding shift it will boot and welcome comes up then black screen that says you must restart by holding