2007 Apr 20 7:27 PM
1. Which statement is used to bypass automatic field checks ?
2. What is the difference between a class and an interface ?
3. Values supplied to variants are stored in which table ?
4. What is the naming standard for creating a LOCK OBJECT ?
Thanks. Reward points guaranteed !!
2007 Apr 20 7:52 PM
3. Values supplied to variants are stored in which table ?
table TVARV
4. What is the naming standard for creating a LOCK OBJECT ?
Should start with EZ
ex: EZONE.
3. Values supplied to variants are stored in which table ?
table TVARV
4. What is the naming standard for creating a LOCK OBJECT ?
Should start with EZ
ex: EZONE.
2007 Apr 20 7:52 PM
3. Values supplied to variants are stored in which table ?
table TVARV
4. What is the naming standard for creating a LOCK OBJECT ?
Should start with EZ
ex: EZONE.
2007 Apr 20 7:58 PM
Hi,
2. What is the difference between a class and an interface?
A class defined as ABSTRACT cannot be instantiated, that is, you cannot use CREATE OBJECT with reference to the class. Instead, you can only address the class using its static components or its subclasses. The major purpose of an abstract class is to serve as a template for subclasses.
If a class contains abstract methods, that is, method declarations with the ABSTRACT addition, the whole class must also be abstract (that is, have the ABSTRACT addition), since a class may not be instantiated if it has unimplemented methods. Equally, if a subclass does not implement all of the abstract methods of its superclasses, it must itself declare them abstract.
Interfaces are independent structures that allow you to enhance the class-specific public points of contact by implementing them in classes. Different classes that implement the same interface can all be addressed in the same way. Interfaces are the basis for polymorphism in classes, because they allow a single interface method to behave differently in different classes. Interface references allow users to address different classes in the same manner
3. Values supplied to variants are stored in which table ?
Please check table VARI.
4. What is the naming standard for creating a LOCK OBJECT ?
You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ. For example EZTEST_LOCK.
Regards,
Ferry Lianto
2007 Apr 21 4:12 AM
hi suresh,
1) at exit-command is used to bypass automatic field checks in the dialog programming.
3) In the runtime u can use sy-slset. It will have the variant name that the program is uing.
4) EZ* is the naming standard for creating a lock object.
Regards....
Arun.
Reward points if useful.
2007 Apr 21 5:38 AM
Hi Suresh,
here are your answers...
1. <b>AT EXIT-COMMAND</b>.
2. A class defined as ABSTRACT cannot be instantiated, that is, you cannot use CREATE OBJECT with reference to the class. Instead, you can only address the class using its static components or its subclasses. The major purpose of an abstract class is to serve as a template for subclasses.
If a class contains abstract methods, that is, method declarations with the ABSTRACT addition, the whole class must also be abstract (that is, have the ABSTRACT addition), since a class may not be instantiated if it has unimplemented methods. Equally, if a subclass does not implement all of the abstract methods of its superclasses, it must itself declare them abstract.
Interfaces are independent structures that allow you to enhance the class-specific public points of contact by implementing them in classes. Different classes that implement the same interface can all be addressed in the same way. Interfaces are the basis for polymorphism in classes, because they allow a single interface method to behave differently in different classes. Interface references allow users to address different classes in the same manner
3. Variants values are stored into table <b>TVARV</b>.
4.for <b>Enqueuing</b> the lock object should be named <b>E*</b>
and for <b>Dequeing</b> it should be<b> D*.</b>
<b>Reward Points if useful,</b>
Regards,
Tejas
2007 Apr 21 5:45 AM
Hi suresh,
1.The Field Checks
As already mentioned Transaction is the only method, which SAP recommends to update the database tables. Data entered in the database table should be valid and correct. Data entered is validated at each and every point. ABAP/4 offers various methods to validate data and those are as follows:
Automatic field checks
Checks performed in the flow logic
Checks performed in the ABAP/4 module pool program
in the user-defined transaction by using AT EXIT-COMMAND. This module can Automatic Field Checks
These checks are based on the field information stored in the dictionary. These checks are performed by the system automatically when the user enters the data for the screen field. System performs these checks before PAI event is triggered. Types of field checks performed by system are as follows:
Required input
While designing the screen, for particular screen field if you click the Req. Entry checkbox, the field becomes mandatory. When the transaction is executed if user leaves this particular field blank, the system displays error message. User cannot proceed until the user enters some data.
Proper Data Format
Each field has its own data format whether it is table field or screen field. Whenever data is entered, system checks for the proper format of the data. For example date. Each user has its own format for date, which is defined in the user master record. If the date defined in the user master record is in the format DD/MM/YYYY, if the user enters the date, say, in YY/DD/MM, the user displays the error message. System also checks for the value of month or days. For example if month entered is greater than twelve then the error message is displayed.
Valid Value for the Field
In data dictionary two tables are related by Primary key-Foreign key relationship. Whenever the user enters the data, the system checks for the check table values. Also in Domain, if you have fixed values, then the system checks for these values.
Automatic field checks are repeated each time the user enters the data.
About at Exit Command
Automatic field checks can be avoided by AT EXIT-COMMAND, which works exactly the same way as Cancel works on application tools bar. In the R/3 screen, if you want to quit the processing of that particular screen without entering the mandatory fields, user can click the Cancel button. Same functionality can be incorporated be called before the system executes the automatic field checks and it goes without saying that before PAI event. Code for AT EXIT-COMMAND in flow logic and in module pool program can be written as follows:
In Flow Logic
Process After Input.
Module exit AT EXIT-COMMAND.
In module pool program.
Module exit.
Case okcode.
When Exit.
Leave to screen 0.
To achieve this kind of functionality a pushbutton or menu item should be assigned a function type E. It tells the system to process this particular module before carrying out any field checks.
for the remaining answers u can check the above answers...
2007 Apr 21 8:34 AM
Hi Suresh
Adding to above , Lock Objects can also start with EY apart from EZ
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |