Question 1: What is the difference between User Exit and Function Exit?
User Exit |
Customer Exit |
User exit is implemented in the form of a Subroutine i.e. PERFORM xxx. Example: INCLUDE MVF5AFZZ à PERFORM userexit_save_document_prepare. |
A customer exit can be implemented as:
Example: CALL Customer function ‘xxx’ |
In case of a PERFORM, you have access to almost all the data. So you have better control, but more risk of making the system unstable. | You have access only to the importing, exporting, changing and tables parameter of the Function Module. So you have limited access to data. |
User exit is considered a modification and not an enhancement. | A customer exit is considered an enhancement. |
You need Access Key for User Exit. | You do not need access key. |
Changes are lost in case of an upgrade. | Changes are upgrade compatible. |
User exit is the earliest form of change option offered by SAP. | Customer exits came later and they overcome the shortcomings of User Exit. |
No such thing is required here. | To activate a function exit, you need to create a project in SMOD and activate the project. |
What is the difference between RFC and BAPI?
BAPI |
RFC |
Just as Google offers Image/Chart/Map APIs OR Facebook offers APIs for Comment/Like, SAP offers APIs in the form of BAPIs. BAPI is a library of function modules released by SAP to the public so that they can interface with SAP. | RFC is nothing but a remote enabled function module. So if there is a Function Module in SAP system 1 on server X , it can be called from a SAP system 2 residing on server Y. |
There is a Business Object Associated with a BAPI. So a BAPI has an Interface, Key Field, Attributes, Methods, and Events. | No Business Object is associated with a RFC. |
Outside world (JAVA, VB, .Net or any Non SAP system) can connect to SAP using a BAPI. | Non–SAP world cannot connect to SAP using RFC. |
Error or Success messages are returned in a RETURN table. | RFC does not have a return table. |
Question 3:What is the difference between SAPSCRIPT and SMARTFORM?
SAPSCRIPT |
SMARTFORM |
SAPSCRIPT is client dependent. | SMARTFORM is client independent. |
SAPSCRIPT does not generate any Function module. | SMARTFORM generates a Function Module when activated. |
Main Window is must. | You can create a SMARTFORM without a Main Window. |
SAPSCRIPT can be converted to SMARTFORMS. Use Program SF_MIGRATE. | SMARTFORMS cannot be converted to SCRIPT. |
Only one Page format is possible | Multiple page formats are possible. |
Such thing is not possible in SCRIPT. | You can create multiple copies of a SMARTFORM using the Copies Window. |
PROTECT … ENDPROTECT command is used for Page protection. | The Protect Checkbox can be ticked for Page Protection. |
Question 4:What is the difference between Call Transaction Method and the Session method ?
Session Method |
Call Transaction |
Session method id generally used when the data volume is huge. | Call transaction method is when the data volume is low |
Session method is slow as compared to Call transaction. | Call Transaction method is relatively faster than Session method. |
SAP Database is updated when you process the sessions. You need to process the sessions separately via SM35. | SAP Database is updated during the execution of the batch input program. |
Errors are automatically handled during the processing of the batch input session. | Errors should be handled in the batch input program. |
Question 5: What is the difference between BDC and BAPI?
BAPI |
BDC |
BAPI is faster than BDC. | BDC is relatively slower than BAPI. |
BAPI directly updates database. | BDC goes through all the screens as a normal user would do and hence it is slower. |
No such processing options are available in BAPI. | Background and Foreground processing options are available for BDC. |
BAPI would generally used for small data uploads. | BDCs would be preferred for large volumes of data upload since background processing option is available. |
For processing errors, the Return Parameters for BAPI should be used.This parameter returns exception messages or success messages to the calling program. | Errors can be processed in SM35 for session method and in the batch input program for Call Transaction method. |
Question 6: What is the difference between macro and subroutine?
Macro |
Subroutine |
Macro can be called only in the program it is defined. | Subroutine can be called from other programs also. |
Macro can have maximum 9 parameters. | Can have any number of parameters. |
Macro can be called only after its definition. | This is not true for Subroutine. |
A macro is defined inside: DEFINE … …. END-OF-DEFINITION. |
Subroutine is defined inside: FORM ….. ….. ENDFORM. |
Macro is used when same thing is to be done in a program a number of times. | Subroutine is used for modularization. |
Question 7: What is the difference between SAP memory and ABAP memory?
SAP Memory |
ABAP Memory |
When you are using the SET/GET Parameter ID command, you are using the SAP Memory. | When you are using the EXPORT IMPORT Statements, you are using the ABAP Memory. |
SAP Memory is User Specific. What does this mean?àThe data stored in SAP memory can be accesses via any session from a terminal. |
ABAP Memory is User and Transaction Specific.What does this mean?à The data stored in ABAP memory can be accessed only in one session. If you are creating another session, you cannot use ABAP memory. |
Question 8:
Function Module |
BAPI |
Might Be Remote Enabled or May not be Remote Enabled | BAPI are RFC enabled function modules |
RFC are direct system call | in BAPI there is no direct system call |
Function modules are modularization elements in the ABAP programming language | BAPIs are defined in the BOR as methods of SAP business object types that carry out specific business functions |
In web developments,
RFC can be compared to HTTP |
In web developments,
BAPIs are CGI applications |
Question: 9
Check table |
Value table |
data can be maintained at client level | This is maintained at Domain Level |
contents of the check will be used as an input help(F4 Help) for a particular field | contents of Value Table are never used in Input Help |
For example you go to Domain SHKZG – Debit/credit indicator. Here only allowed values are H or S. Whenever you use this Domain, the system will forces you to enter only these values. | Whenever an employee Transacts we need to check whether that employee exists, so we can refer to the employee master table. |
Question: 10
Tables |
Structure |
Tables are SAP Tables which stores data in its fields | Structure is temporary tables which doesn’t store data in it but use it for calculation purpose during the transactions. |
has an underlying database | no underlying database |
Permanent Storage of data | Temporary Storage of data |
Table can have primary key | structure does not have |
Table can have the technical attribute | structure dose not have |
Tables |
Info types |
Not a Time Constraint | Time Constraint |
Doses not Create automatically | Creating info types automatically creates tables/Structure |
Used in every Modules | Used in HR Modules |
Select single |
select upto one row |
The Usage Of Buffer | |
will search for all the satisfied data and bring all that data into Buffer and later it will give to that data to the program | will end the search after getting the 1st satisfied record and gives that record to the program |
Takes More Time | Takes less Time |
clear |
refresh |
This Statement will clear the Internal Table Header content This Statement will clear the Internal Table Header content | Refresh will deletes the Internal Table content but still memory is not freed |
Type |
Like |
you assign data type directly to the data object while declaring | You assign the data type of another object to the declaring data object. The data type is referenced indirectly |
Type is a keyword used to refer to a data type | Like is a keyword used to copy the existing properties of already existing data object |
type refers the existing data type | Like refers the existing data object. |
Transparent |
pooled |
Transparent tables in the dictionary has a one-to-one relation with the table in database | Pooled tables in the dictionary has a many-to-one relation with the table in database |
Its structure corresponds to single database field | Corresponds to many |
Table in the database has the same name as in the dictionary | Table in the database has the different name as in the dictionary |
Transparent table holds application data | Pooled table are stored in table pool at the database level |
CI |
Append |
we can include “include structure” anywhere in the table | append structure must be appended only at the end of the table |
include structure can be used more than one time in a table | append structure must be used only once in a table |
include structure can be nested to a depth of 9 structure | we can’t nest append structure |
It is enhanced by customer | Not necessary to be that way |
Template |
Table |
Have the fixed length once you define any template with size of any number of rows columns then you get the template for that many numbers of rows and columns but if you have more than define number records you can’t see the other records. Template is Static. |
Dynamic it grows dynamically as your number of records grow |
Dynamic Actions |
User Exit |
1.Here only initialization of an info type
2. Less time consuming to write. 3.Table T588Z |
1. Along with initialization of an info type, depending upon other info type validation also can be done like in can be done. IT 16 the contract end date cannot be entered more than 6 months. 2. Require programming approach so more 3. PBAS0001 |
Remote enable FM |
BAPI |
You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. In this case u only specify the business object and its method from external system in BAPI there is no direct system call. | RFC are direct system call. |
Domain |
Data Element |
Specifies the technical attributes of a data element – its data type, length, possible values, and appearance on the screen. Each data element has an underlying domain. A single domain can be the basis for several data elements. Domains are objects in the ABAP Dictionary | Describes the business function of a table field. Its technical attributes are based on a domain, and its business function is described by its field labels and documentation. |
Float |
Packed Number |
It cannot be declared in Parameters | It can be declared in Parameters |
Primary Key |
Unique Key |
It can accepts 0 value and cannot be NULL. | It can be NULL |
HRP1000 |
HRP1001 |
Determines the existence of an organizational object. | Defines the Relationships between different objects |
we create different objects like Org. Unit, Job, Position etc | we create the relationship between the above created objects like “Position belongs to Org. Unit”, etc. |
Customizing request |
workbench request |
Involve changes recorded to client-specific Customizing objects |
Involve changes to cross-client Customizing and Repository Objects. The objects are independent of the client |
These client specific requests are used for copying and transporting changed system settings from client-specific tables. |
The requests are used for transferring and transporting changed Repository objects and changed system settings from cross-client tables. |
SE01 |
se09 |
SE10 |
Correction & Transport Organizer – More of generic organizer. |
Workbench Organizer – a part of SE01 |
Customising Organizer – also a part SE01 (Transport Organizer) |
Workbench organiser is the set of utilities for development change management.All Development changes are tracked via Workbench organiser. | Customising organiser is the set of tools for customising change management.All customizing changes are tracked via customising organiser. |
ALV LIST |
ALV GRID |
alv list is done with Function modules | alv grid can also be done with FM, but can also be done using OO concepts |
we cannot show more than one alv list on one screen |
Alv grid (using oo concept) requires designing the screen layout . Hence, in one screen, we can show more then one alv grid |
Less Memory as compared | ALV grid uses ActiveX controls present on the Presentation Server. Hence, it consumes More Memory on the presentation server |
ALV LIST is Display Only | ALV Grid Can Be made EDITABLE for entry purpose. |
Not possible | Possible
without horizontal lines |
ALV LIST Can be displayed hieraicharlly | ALV GRID cannot be displayed hierarichally |
macro |
subrouine |
Macros can only be used in the program the are defined in and only after the definition. | Subroutines (FORM) can be called from both the program the are defined in and other programs (‘perform ‘ of ‘perform in program ‘). |
Macros can take max 9 parameters. | Subroutines can take any amount of parameters. |
Macros are expanded at compilation / generation. | Subroutines are ‘expanded’ at runtime. |
ALV LIST is Display Only | ALV Grid Can Be made EDITABLE for entry purpose. |
Not possible | Possible
without horizontal lines |
ALV LIST Can be displayed hieraicharlly | ALV GRID cannot be displayed hierarichally |
sy-tabix |
sy-index |
NO of record in the internal table |
used for loop counter |
This can be used with Loop—EndLoop or with Describe table . |
It acts like Loop Iteration Cunter. |
check table |
searchhelp |
Check table is a master table. Like T000 for client, t001w for company codes, tcurc for currency. When we write code like ‘PARAMETER V_WERKS LIKE MARC-WERKS OBLIGATORY VALUE CHECK’ the value we entered will be cross checked with the table T001W for existence |
Search help is some thing which pops-up when we press F4. It shows a list of values of available for that field from a particular table. There is no checking scenario in search help. |
sy-ucomm |
okcode |
It contains the latest user action triggered |
generally a variable that we declare as a type of sy-ucomm |
skip |
reserve |
It is for leave the blank line between two lines. We may use this statement while preparing the selection screen. |
Reserve is used to prevent page break between the the set of lines |