Use of " NOT" keyword ??
Hello all,
I have declared a Parameter Variable like below.
Parameter : p_file type localfile .
At selection-screen.
If p_file is NOT initial.
Here i want to Fire error message .
Endif .
But i am getting this error "" Incorrect logical expression: Comparison / SELECT-OPTION can only be followed by "AND", "OR" or ")
But if i use like this .
If NOT p_file is initial.
Error message .
Endif .
it works fine,
So what is the basic difference of this two use and why in first case its showing me error. ???
please share your knowledge ..
Edited by: sagar singh on May 4, 2011 5:45 PM
Edited by: sagar singh on May 4, 2011 5:46 PM
Edited by: sagar singh on May 4, 2011 5:48 PM
The syntax "... IS NOT INITIAL" is only available since a certain ABAP release, it might have been 6.10 or 6.20, check ABAP online help for the exact details. You are probably working with an older release, where only "NOT ... IS INITIAL" is allowed.
Thomas
Similar Messages
-
What is the keyword used to not extract the duplicate datas
what is the keyword used to not extract the duplicate datas
After select
write delete adjacent duplicate records from itab comparing field names.
before this sort itab by field names.
Thanks -
How to reference a class without using the new keyword
I need to access some information from a class using the getter, but I don't want to use the new keyword because it will erase the information in the class. How can I reference the class without using the new keyword.
ContactInfo c = new ContactInfo(); // problem is here because it erases the info in the class
c.getFirstName();quedogf94 wrote:
I need to access some information from a class using the getter, but I don't want to use the new keyword because it will erase the information in the class. How can I reference the class without using the new keyword.
ContactInfo c = new ContactInfo(); // problem is here because it erases the info in the class
c.getFirstName();No.
Using new does not erase anything. There's nothing to erase. It's brand new. It creates a new instance, and whatever that constructor puts in there, is there. If you then change the contents of that instance, and you want to see them, you have to have maintained a reference to it somewhere, and access that instance's state through that reference.
As already stated, you seem to be confused between class and instance, at the very least.
Run this. Study the output carefully. Make sure you understand why you see what you do. Then, if you're still confused, try to rephrase your question in a way that makes some sense based on what you've observed.
(And not that accessing a class (static) member through a reference, like foo1.getNumFoos() is syntactically legal, but is bad form, since it looks like you're accessing an instance (non-static) member. I do it here just for demonstration purposes.)
public class Foo {
private static int numFoos; // class variable
private int x; // instance varaible
public Foo(int x) {
this.x = x;
numFoos++;
// class method
public static int getNumFoos() {
return numFoos;
// instance method
public int getX() {
return x;
public static void main (String[] args) {
System.out.println ("Foo.numFoos is " + Foo.getNumFoos ());
System.out.println ();
Foo foo1 = new Foo(42);
System.out.println ("Foo.numFoos is " + Foo.getNumFoos ());
System.out.println ("foo1.numFoos is " + foo1.getNumFoos ());
System.out.println ("foo1.x is " + foo1.getX ());
System.out.println ();
Foo foo2 = new Foo(666);
System.out.println ("Foo.numFoos is " + Foo.getNumFoos ());
System.out.println ("foo1.numFoos is " + foo1.getNumFoos ());
System.out.println ("foo1.x is " + foo1.getX ());
System.out.println ("foo2.numFoos is " + foo2.getNumFoos ());
System.out.println ("foo2.x is " + foo2.getX ());
System.out.println ();
} -
Use of 'ME' keyword in ABAP Objects?
Hi all,
Can any one please use of 'ME' keyword in ABAP Objects?
Thanks,
Vijay.
Moderator message: next time, please search for available information before asking.
Edited by: Thomas Zloch on Sep 16, 2010 5:33 PMHi,
Please find the description about the ME keyword as per the SAP documentation and help.sap.com.
Within the implementation of every instance method, an implicitly created local reference variable called me is available, which points to the instance in which the method is currently being executed. The static type of me is the class in which the instance method is implemented.
Each class implicitly contains the reference variable me. In objects, the reference variable mealways contains a reference to the respective object itself and is therefore also referred to as the self-reference. Within a class, you can use the self-reference me to access the individual class components:
-To access an attribute attr of your class: me->attr
-To call a method meth of your class: CALL METHOD me->meth
When you work with attributes of your own class in methods, you do not need to specify a reference variable. The self-reference me is implicitly set by the system. Self-references allow an object to give other objects a reference to it. You can also access attributes in methods from within an object even if they are obscured by local attributes of the method.
Regards,
Sagar -
Use of final keyword on methods arguements ?
Hi All,
Just say I have an input arguement for a method which is an int. If I wanted to access the value stored by the input arguement reference inside an anonymous class that is contained in the method one way would be to pass the input arguement reference to a instance variable of the class that contains the method and use that.
// Declared at start of class
int arrayIndex = 0;
methodName(nt inputNumber)
arrayIndex = inputNumber;
ActionListener task = new ActionListener() {
public void actionPerformed(ActionEvent evt) {
// Accessing here
anArray[arrayIndex] = 100;
}Just wondering, I used the final keyword on the the input arguement instead and then used the input arguement directly instead. It seemed to work ok. Is this good programming practice or are there some pitfalls to using this that I'm not aware of?
(I don't need to change what the input arguement reference points to)
// Alternate
methodName(final int inputNumber)
ActionListener task = new ActionListener() {
public void actionPerformed(ActionEvent evt) {
// Accessing here
anArray[inputNumber)] = 100;
}Regards.declaring it final guarantees that you will not change the value.Of course it does. That's what it's for. That's what it means. But you're only guaranteeing that to yourself. It doesn't form part of the interface contract so it's no use to anybody else. Which is the bigger picture.
Whenever i use any anonymous classes i prefer to use the final variables as long as i dont need to change their values.No you don't 'prefer' it, you are forced to do that by the compiler. -
Use of const keyword in java ?
Hi All,,
I want to know the use of const keyword with proper example.
Many many thx in advance
Cheers
SouvikI want to know the use of const keyword with proper example.
There is no proper example, because const is not used in Java. If you want to create a constant, use the final keyword. -
Use VB Set keyword with Clone method?
I am using the TestStand API with Visual Basic 6.0 SP5. Is is necessary to use the Set keyword when calling the Clone method of a PropertyObject? i.e. which is correct:
Set thePropObj = existingPropObj.Clone("", 0)
or
thePropObj = existingPropObj.Clone("", 0)
Seems the Set keyword would be required, but I am
running into funny problems with this. I have a step
that I am trying to create a copy of. (The step contains a call to a LabVIEW VI.) If I omit the Set keyword, execution hangs at the call to Clone. If I include the Set keyword, all information present in the original PropertyObject doesn't seem to get copied to the new one. (Also, oddly enough, if I omit the set keyword, and the step calls a CVI function, everything seems to work
fine!)
Anyone have any advice?
Thanks in advance
D. LaFosseHello LaFosse,
You need to use the Set keyword before the clone method statement. However, I have a couple of comments about the code you sent.
This is the code you sent:
' Start up the testStand engine
Dim theTS As TS.Engine
Set theTS = New TS.Engine
' OK, load in the sequence file I
' created. This sequence file
' contains nothing more than a call
' to a VI in the main stepgroup of
' the MainSequence.
Dim seqFile As SequenceFile
Set seqFile =
theTS.GetSequenceFile()
' get a handle to the MainSequence
Dim seq As Sequence
Set seq = seqFile.GetSequenceByName
("MainSequence")
' Get a handle to the step that calls
' the VI, and a property object for
' the step
Dim theStep As Step
Set theStep =
seq.GetStep(0, StepGroup_Main)
Dim theStepProp As PropertyObject
Set theStepProp =
theStep.AsPropertyObject
' Create another step. We will attempt
' to use Clone to fill in the
' properties of this step.
Dim theOtherStep As Step
Dim theOtherStepProp As PropertyObject
Set theOtherStep = theTS.NewStep("",
TS.StepType_Action)
Set theOtherStepProp =
theOtherStep.AsPropertyObject
' Call clone...this step will hang.
theOtherStepProp =
theStepProp.Clone("", 0)
Basically the problem is that you are not loading the TypePallete after creating the engine. You shoud include right after the Set theTS = New TS.Engine:
theTS.LoadTypePaletteFiles
This should avoid the crash.
Some Additional comments:
1. With VB you don't need to create property objects from other objects. All the classes, except the Engine Class, inherit from the Property Object Class. The following Code does the same thing, but without creating propertyobjects directly:
Sub MySub()
'Variable Declaration
Dim theTS As TS.Engine
Dim seqFile As SequenceFile
Dim seq As Sequence
Dim theStep As Step
Dim theOtherStep As Step
'Create the Engine
Set theTS = New TS.Engine
'Load the Types
theTS.LoadTypePaletteFiles
'Get Sequence File
Set seqFile = theTS.GetSequenceFile()
'Get Sequence
Set seq = seqFile.GetSequenceByName("MainSequence")
'Get Step
Set theStep = seq.GetStep(0, StepGroup_Main)
'Clone the Step
Set theOtherStep = theStep.Clone("", 0)
'Using the inheritance functionality
'gets the Step Status
'Notice that theOtherStep is not a PropertyObject
'and you can use all the properties and methods that
'applies to the PropertyObject Class to a Step class
'in this example
'Also, in VB when you are typing the statement, you
'will not see the PropertyObject Class properties and
'and Methods automatically if the variable is not a
'PropertyObject type. However, you can still use them
'as mentioned before
MsgBox (theOtherStep.GetValString("Result.Status", 0))
End Sub
2. When you create or modify sequence files programatically be carefull not to break the license Agreement. You need the development lisence when modifying sequences.
3. This piece of code is not completed, and you will need to shutdown the engine by the end.
4. Since you are not handling UI Messages, you will need to be carefull when loading sequences that have the SequenceFileLoad Callback. The engine posts UI Messages when executing this callback. Also when you shutdown the engine, UI Messages are posted. For both operations (Load Sequence and Shuutdown) you may prevent the engine from posting the message (You may check the options parameter for this two methods in TS Programmer Help.)
5. If you want to run a sequence, again you will need to incorporate in your code the UIMessage Handler part. (You may check the TS Programmer Help->Writing an Application Using the API->UI Messages). Otherwise it may hang since the engine posts UI Messages eventually.
Regards,
Roberto Piacentini
National Instruments
Applications Engineer
www.ni.com/support -
Filter for NOT [keyword]?
I cannot find any DIRECT way to Library Filter for photos NOT containing a particular "keyword." The work-around through Text/Keywords/Don't Contain doesn't work for me because many of my "keywords" contain spaces (multiple "words"). Since there doesn't seem to be any "quotation" option in the text-search box, what I get is a search that ORs together each "word" of my multi-word "keyword."
I've discovered that I can get around this problem by first making a Quick Collection from all of my positive filter criteria, then selecting the photos from that Quick Collection with the undesired (negative) "keyword" (for example, by clicking on one of my "keywords" in the Keyword List/Filter Keywords column), and finally removing these selections from the Quick Collection.
Alternatively, I can Rename my "keywords," replacing all spaces with hyphens, underscores, or whatever, and then use the Text/Keywords/Don't Contain filter.
There should be a more direct method. Am I missing something? -- JClarkWI'm afraid you didn't understand the OP right.
He has 3 images with the following keywords:
aaa
bbb
"aaa bbb"
He wants to exclude #3 only. He doesn't want to exlude neighter #1 nor #2.
Your method will exclude:
!aaa - #1 and #3.
!bbb - #2 and #3.
!aaa !bbb - #1, #2 and #3.
So, it doesn't work. With the current search implementation it is impossible to achieve what the OP wants. -
How do you put a comment (not Keyword) on a photo in LRCC?
How do you put your comments (not keyword) on a photo in Lightroom CC?
What field would you suggest
You could use the EXIF: User Comment field:
Compared to a plugin like Big Note, the advantage of User Comment is that it is stored in industry-standard metadata inside the photo, outside of the catalog, available to other software. (And a potential disadvantage is that it is stored inside the photo, available to other software.) -
Does anyone know how i can view PDF files using Galaxy Note 2?
Does anyone know how i can view PDF files using Galaxy Note 2?
This is what i have been doing;
I click on the file i wish to view (via a portal)
this file goes to notification widget (i drag down screen)
notification/message says download complete
i click on notification/message
nows it says complete action using (here i only have 2 icon options 1= DB Text Editor 2 = HTML Viewer)
I have installed Adobe Reader.Can you confirm if the downloaded file is a pdf file, that is it ends with .pdf?
-
Questions on use of notes.app
Hello all.
I have a few questions on the use of notes.app.
1.) Is there a size/word limit on the touch 2nd generation?, I have OS4.1 installed.
2.) My second question is where are my notes stored/synced?
thanks,
bill
edited: -billI do not know about length/size. For the latter question the Users Guide (iOS4.2) states:
Syncing Notes
You can sync Notes in either of the following ways:
In iTunes, use the iPod touch settings panes to sync with Mail on a Mac or with
Microsoft Outlook 2003, 2007, or 2010 on a PC when you connect iPod touch to your
computer. See “iPod touch Settings Panes in iTunes” on page 50.
In Settings, turn on Notes in MobileMe, Google, Yahoo!, AOL, or other IMAP account
to sync your notes over the air (iPod touch 3rd generation or later) with those
accounts. See “Adding Mail, Contacts, and Calendar Accounts” on page 1 -
Help needed using NiReport in MSVC (using C, not C++/MeasStudio)
Hi, folks!
I develop my apps writing in C, using MSVC (not Measurement Studio/C++). I use LabWindows to design the UI and use the external compiler support to generate the UI's object file, which I link into my program. I've had great results doing this; I link to the appropriate .lib and the corresponding .dll is in the apps root folder.
However, I'm unable to get this to work for using the NiReport library. I'm trying to build the nirsample app which came with my LabWindows installation but the link step fails because it cannot find the exported functions required (NI_Report_xxx).
There is a utility that comes with the MSVC installation called Depends, which allows one to view the imported and exported fuinctions in a .dll file. When I load up the NiReports.dll, it only exports four functions: DllCanUnloadNow, DllGetClassObject, DllRegisterServer and DllUnregisterServer. Where are all the NI_Report_xxx functions? I think if I can find the proper .dll, I'll be successful in building my app and will be able to go on with my life...
Thanks in advance for any help.
[update]
I'm almost there! I'm using nirsample.c and nireport.obj in my test compile and it returns a link error saying it it has an unresolved external symbol, _StrDup@4. Ok, I know that StrDup is a function found in the CVI_Toolbox and I've included that in the libraries used to link against. I had a similar problem using the Excel automation functions and was able to get around it by including the source file, excel2000.c. So, if I could just get hold of the source for nireport.obj, I think that would solve my problem. However, unlike most of the other toolbox extras, this one does not include its source.
[/update ]
'til next we type...
HAVE FUN!! -- JesseMichael,
Thanks for the quick response. A long time ago I rebuilt Toolbox as a dll; it works fine that way for all my other projects until this one. However, I tried your suggestion and it led to another error:
--------------------Configuration: NirSample - Win32 Debug--------------------
Compiling...
toolbox.c
c:\program files\microsoft visual studio\vc98\include\windef.h(252) : error C2371: 'HINSTANCE' : redefinition; different basic types
g:\extlib\include\cvidef.h(144) : see declaration of 'HINSTANCE'
Error executing cl.exe.
NirSample.exe - 1 error(s), 0 warning(s)
My guess is this is because of a conflict in how the various include files are being loaded and I'm not sure how to fix that. (I do not have that problem when using toolbox as a dll for my other projects.)
For the sake of completeness, I've attached the MSVC project file (nirsample.dsp) so you can see how I've got this set up. Oh, and I'm using MSVC 6.0 for coding and LabWindows 6.0 for ui design. (I don't have a CVI2009 directory.)
Jesse
p.s.: Your website won't let me upload the dsp file (the file extension is not valid), so I've renamed it NirSample.txt
Attachments:
NirSample.txt 5 KB -
On my iPad I have a working icloud that I have complete access to, but on my iPhone it keeps asking me for the password for it, but I do not know it! And the email that I used is not activated anymore! How do I delete the icloud account on my phone?
Hi Aurion23,
If you intend to keep using iCloud on your iPad, your best course of action would be to update your Apple ID/iCloud information so that you have a known password and it is associated with an active email address. You may find the following articles helpful:
iCloud: Change your iCloud password
http://support.apple.com/kb/ph2617
Apple ID: Changing your Apple ID
http://support.apple.com/kb/ht5621
Regards,
- Brenden -
I recently bought an iphone 4s from people who are not in the know
and restore my iphone .. Now do not be in use for not having ID and password ... Owner apple owner just gave me a serial number how do I want to continue to use this ... Their telephone help me: (I am having same problem . i can not use the phone. my Carrier ROGERS checked the phone its not stolen or lost phone but after restoring always ask for apple ID of previous owner and seller is not responding to any mails or phone if some one can help me out than it will be great.
thank you -
I would like to know how i can share my music using an UPnp protocole. I have an Imac but when i'm chosing the option share my file i can connect my mac to another network reader . it seems that the protocole used is not UPnp. I need this to be in UPnp. does somebody can help ?
Google "upnp mac"
Maybe you are looking for
-
Regarding getting java error in peoplesoft ?
Hi TEAM, I am getting the below error while accessing some data in peoplsoft. Please give any idea regarding thsi why such type of error is coming?? Java Exception: java.lang.NoSuchMethodError: PeopleSoft.PeopleCode.Func.CreateSQL(Ljava/lang/String;
-
Can't find image display in the IMAQ Vision control palette
Hi I am trying to display an image on the front panel. But i cannot find the image display vi .. according to the manual, it is available from the IMAQ Vision control palette. I have the academic version of LabVIEW 7 express. Does my version have the
-
Hi, Iam using the e-TEST 8.20 version for testing our web based application. Iam facing some issues while palying back the recorded scripts. the errors are like Navigation failed, Times out..etc. The tool is not specifying detalied cause for the erro
-
0404 USB Software Install Problems
Just purchased E-Mu 0404. I plugged into USB & p.c.recognised it OK. After software install, p.c. hung on reboot so I had to crash it! After reboot, p.c. hung at registration so had to crash it again. Decided to start a fresh so removed programme & d
-
HT201210 receiving error 1 when restoring an iphone 4s
Reciveing Error 1 ehen trying to Restore. Need emergency Fix