You are on page 1of 10

1. What are the assignment options to a field ?

A. 1. Direct assignment of data type, length and short text


2. Data element
3. Check table for a field can be defined with a foreign key
4. Search help
5. Reference table or reference field.
2. While transporting any report program do we need to transport the text elemen
t separately or not required ?
A. Text elements or any GUI elements gets stored in a separate repository called
MIME in ABAP. If you want to transport text elements or GUI elements of your re
port,
the only thing you have to take care is - transport your report in a specific pa
ckage, goto object navigator and make sure you transport the relvant text and GU
I objects
via the same package.
3. How to compare two tables between two systems ?
A. you can use the transaction SCMP to compare table or view of two different sy
stems.
4. Difference between STOP, Continue, Exit, Check, and Reject ?
A. STOP: This terminated the block and execute EOS.
EXIT: it terminates the loop processing and process the next statement, outsi
de the loop: terminates report processing and triggers list display if any.
CHECK: It evaluates the subsequent logical expr, if its true, the processing
continues with the next statement.. if its false, it terminates the current loop
pass
and goes back to the beginning of the loop to start the next loop , if there
is one. OUTSIDE the loop a -ve logical expr terminates the current event.
CONTINUE: Terminates the current loop pass, return the processing to the begg
ining of the loop and starts the next loop pass.
REJECT: it terminates the current event, even from loops and subroutines.
5. How to get a table name from a field..? NOTE: if only field name is given in
a flat file.
A. we can find table for a specific field from table DD03L which will contain al
l table names for the corresponding field.
6. What are interface/conversion programs in sap ?
A. Conversion: Legacy system to flat file.
Interface: Flat file to SAP system
7. In selection-screens we have 3 fields, plant-mat_no-mat_desc. If i input plan
t, how do i get Mat_no and Mat desc dynamically >
A. AT SELECTION-SCREEN ON VALUE REQUEST FOR MATERIAL.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' to get mat and mat desc.
8. What controls the screen flow?
A. The SET SCREEN and LEAVE SCREEN statements controls screen flow.
9. The Function code currently active is ascertained by what Variable?
A. The function code currently active in a Program can be ascertained from the S
YUCOMM
Variable.
10. What are the field and chain Statements?
A. The FIELD and CHAIN flow logic statements let you Program Your own
checks.FIELD and CHAIN tell the system Which fields you are checking and Whe
ther
the System should Perform Checks in the flow logic or call an ABAP/4 Module.

11. What is an on input filed statements?


A. ON INPUT
The ABAP/4 module is called only if a field contains the Value other than th
e initial
Value.This initial Value is determined by the filed s Dta Type: blanks for cha
racter
Fields,Zeroes for numerics.
If the user changes the Fields Value back t o its initial value,ON INPUT doe
s not
trigger a call.
12. What is an on request Field statement?
A. ON REQUEST
The ABAP/4 Module is called only if the user has entered the value in the fi
eld value
since the last screen display .The Value counts as changed Even if the User
simply
types in the value that was already there .In general ,the ON REQUEST condit
ion is
triggered through any Form of MANUAL INPUT .
13. What is an on *input field statement?
A. ON *INPUT
The ABAP/4 module is called if the user has entered the * in the first
character of the field, and the field has the attribute *entry in the screen
Painter.You can use this option in Exceptional cases where you want to check
only
fields with certain Kinds of Input.
14. What are conditional chain statement?
A. ON CHAININPUT similar to ON INPUT.
The ABAP/4 module is called if any one of the fields in the chain contains a
value
other than its initial value(blank or nulls).
ON CHAINREQUEST
This condition functions just like ON REQUEST, but the ABAP/4 module is call
ed if
any one of the fields in the chain changes value.
15. What is at exitcommand:?
A. The flowlogic Keyword at EXITCOMMAND is a special addition to the MODULE
statement in the Flow Logic .
AT EXITCOMMAND lets you call a module before the system executes the automati
c
fields checks.
16. Which Function type has to be used for using at exitcommand ?
A. To Use AT EXIT COMMAND ,We must assign a function Type E to the relevant
function in the MENU Painter OR Screen Painter .
17. What are the different message types available in the ABAP/4 ?
A. There are 5 types of message types available.
E: ERROR
WWARNING
I INFORMATION
AABNORMAL TERMINATION.
SSUCCESS
18. The commands through Which an ABAP/4 Module can branch to or call the
next screen are
1.,2,3,4.
A. Set screen<scr no>,
Call screen<scr no> ,
Leave screen,
Leave to screen <scr no>.
19. What is difference between SET SCREEN and CALL SCREEN ?

With SET SCREEN the current screen simply specifies the next screen in the ch
ain ,
control branches to this next screen as sonn as th e current screen has been
processed .
Return from next screen to current screen is not automatic .It does not inter
rupt
processing of the current screen.If we want to branch to the next screen with
out
finishing the current one ,use LEAVE SCREEN.
With CALL SCREEN , the current (calling) chain is suspended , and a next scre
en
(screen chain) is called .The called can then return to the suspended chain w
ith the
statement LEAVE SCREEN TO SCREEN 0 .
Sometime we might want to let an user call a pop up screen from the main
application screen to let him enter secondary information.After they have com
pleted
their enteries, the users should be able to close the popup and return direct
ly to the
place where they left off in the main screen.
Here comes CALL SCREEN into picture .This statement lets us insert such a
sequence into the current one.
20. What is call mode ?
A. In the ABAP/4 WORLD each stackable sequence of screens is a call mode , This is
IMP because of the way u return from the given sequence .To terminate a call
mode
and return to a suspended chain set the next screen to 0 and leave to it:
LEAVE TO SCREEN 0 or (SET SCREEN 0 and LEAVE SCREEN) .
When u return to the suspended chain execution resumes with the statement
directly following the original CALL SCREEN statement.
The original sequence of screens in a transaction (that is , without having s
tacked
any additional call modes),you returned from the transaction altogether.
21.The max number of calling modes stacked at one time is?
A. NINE
22.What is LUW or Data base Transaction ?
A. A LUW (logical unit of work) is the span of time during which any database
updates must be performed in an all or nothing manner .
Either they are all performed (committed),or they are all thrown away (rolled
back).In the ABAP/4 world , LUWs and
Transactions can have several meanings:
LUW (or database LUW or database transaction )
This is the set of updates terminated by a database commit. A LUW lasts, at most
,
from one screen change to the next (because the SAP system triggers database
commits automatically at every screen change).
23. What is SAP LUW or Update Transaction?
A. Update transaction (or SAP LUW )
This is a set of updates terminated by an ABAP/4 commit. A SAP LUW may last
much longer than a database LUW, since most update processing extends over
multiple transaction screens.
The programmer terminates an update transaction by issuing a COMMIT WORK
statement.
24.What happens if only one of the commands SET SCREEN and LEAVE SCREEN
is used without using the other?
A. If we use SET SCREEN without LEAVE SCREEN, the program finishes processing fo
r
the current screen before branching to <scr no>.
If we use LEAVE SCREEN without a SET SCREEN before it, the current screen
process will be terminated and branch directly to the screen specified as the

default
nextscreen in the screen attributes.
25.What is the significance of the screen number 0 ?
A. In calling mode , the special screen number 0 (LEAVE TO SCREEN 0) causes the
system to jump back to the previous call level.
That is, if you have called a screen sequence with CALL SCREEN leaving to scr
een 0
terminates the sequence and returns to the calling screen. If you have not ca
lled a
screen sequence, LEAVE TO SCREEN 0 terminates the transaction.
26. What does the SUPPRESS DIALOG do?
A. Suppressing of entire screens is possible with this command. This command al
lows
us to perform screen processing in the background . Suppresing screens is useful
when we are branching to listmode from a transaction dialog step.
27. What is the significance of the memory table SCREEN ?
A. At runtime, attributes for each screen field are stored in the memory table
called
SCREEN . We need not declare this table in our program.
The system maintains the table for us internally and updates it with every sc
reen
change.
28. Why grouping of fields is required? What is the max no of modification group
s
for each field?
A. If the same attribute need to be changed for several fields at the same time
these
fields can be grouped together.
We can specify up to four modification groups for each field.
29. What are the attributes of a field that can be activated or deactivated duri
ng run
time?
A. Input, Output, Mandatory, Active, Highlighted, Invisible.
30. What is a screen group? How it is useful?
A. Screen group is a field in the Screen Attributes of a screen. Here we can de
fine a
string of up to four characters which is available at the screen runtime in
the SYDNGR
field. Rather than maintaining field selection separately for each screen of
a
program, we can combine logically associated screens together in a screen gr
oup.
31. What is a Subscreen? How can we use a Subscreen?
A. A subscreen is an independent screen that is displayed in a n area of anothe
r
( main ) screen. To use a subscreen we must call it in the flow logic (both PBO a
nd
PAI) of the main screen.
The CALL SUBSCREEN stratement tells the system to execute the PBO and PAI
events for the subscreen as part of the PBO or PAI events of the main screen.
The
flow logic of your main program should look as follows:
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN <area> INCLUDING <program>
<screen> .
PROCESS AFTER INPUT.
CALL SUBSCREEN <area>.
Area is the name of the subscreen area you defined in your main screen. This
name
can have up to ten characters. Program is the name of the program to which th
e

subscreen belongs and screen is the subscreen s number.


31.What are the restrictions on Subscreens?
A. Subscreens have several restrictions.
They cannot:
Set their own GUI status
Have a named OK code
Call another screen
Contain an AT EXITCOMMAND module
Support positioning of the cursor.
32. What are the dynapro keywords?
A. FIELD, MODULE, SELECT, VALUES and CHAIN are the dynapro keywords.
33. Why do we need to code a LOOP statement in both the PBO and PAI events for
each table in the screen?
A. We need to code a LOOP statement in both PBO and PAI events for each table in
the
screen. This is because the LOOP statement causes the screen fields to be copi
ed
back and forth between the ABAP/4 program and the screen field. For this reaso
n,
at least an empty LOOP .ENDLOOP must be there.
34. The field SYSTEPL refers to the index of the screen table row that is current
ly
being processed.
The system variable SYstepl only has a meaning within the confines of
LOOP .ENDLOOP processing. Outside the loop, it has no valid value.
35. What are the two ways of producing a list within a transaction?
A. By submitting a separate report.
By using leave to listprocessing.
36. When will the current screen processing terminates?
A. A current screen processing terminates when control reaches either a Leavescr
een or
the end of PAI.
38. How is the command SuppressDialog useful?
A. Suppressing entire screens is possible using this command.
This command allows us to perform screen processing in the background .
The system carries out all PBO and PAI logic, but does not display the scree
n to the
user. Suppressing screens is useful when we are branching to listmode from a
transaction dialog step.
39. What happens if we use Leave to listprocessing without using SuppressDialog?
A. If we don t use SuppressDialog to next screen will be displayed but as empty, w
hen
the user presses ENTER, the standard list output is displayed.
40. How the transaction that are programmed by the user can be protected?
A. By implementing an authority check.
41. What are the modes in which any update tasks work?
What is the difference between Synchronous and Asynchronous updates?
A. Synchronous and Asynchronous.
A program asks the system to perform a certain task, and then either waits o
r
doesn t wait for the task to finish. In synchronous processing, the program wa
its:
control returns to the program only when the task has been completed.
In asynchronous processing, the program does not wait: the system returns co
ntrol
after merely logging the request for execution.
42. SAP system configuration incluedes Dialog tasks and Update tasks.

A. Dialogtask updates are Synchronous updates.


Update task updates are Asynchronous updates.
43. What is the difference between Commitwork and RollbackWork tasks?
A. CommitWork statement performs many functions relevant to synchronized
execution of tasks. Rollbackwork statement cancels: all reuests relevant to
synchronized execution of tasks.
44. What are the different database integrities?
Semantic Integrity.
Relational Integrity.
Primary Key Integrity.
Value Set Integrity.
Foreign Key integrity and
Operational integrity.
45. What does a lock object involve?
The tables.
The lock argument.
46. What are the different kinds of lock modes?
A. Shared lock
Exclusive lock.
Extended exclusive list.
47. How can a lock object be called in the transaction?
By calling Enqueue<lock object> and Dequeue<lock object> in the transaction.
48. What are the events by which we can program help texts and display
possible value lists ?
A. PROCESS ON HELPREQUEST (POH).
PROCESS ON VALUEREQUEST (POV).
49. In what ways we can get the context sensitive F1 help on a field?
Data element documentation.
Data element additional text in screen painter.
Using the process on help request event.
50. What is roll area?
A roll area contains the program s runtime context.
In addition to the runtime stack and other structures, all local variables and a
ny data
known to the program are stored here.
51. How does the system handle roll areas for external program components?
Transactions run in their own roll areas.
Reports run in their own roll areas.
Dialog modules run in their own roll areas
Function modules run in the roll area of their callers.
52. Does the external program run in the same SAP LUW as the caller, or in a
separate one?
Transactions run with a separate SAP LUW.
Reports run with a separate SAP LUW.
Dialog modules run in the same SAP LUW as the caller
Function modules run in the same SAP LUW as the caller.
The only exceptions to the above rules are function modules called with IN UPDAT
E
TASK (V2 function only) or IN BACKGROUND TASK (ALE applications). These always
run in their own (separate) update transactions.
53. What is the difference between Leave Transaction and Call Transaction?
In contrast to LEAVE TO TRANSACTION, the CALL TRANSACTION statement causes
the system to start a new SAP LUW.
This second SAP LUW runs parallel to the SAP LUW for the calling transaction.
54. How can we pass selection and parameter data to a report?
There are three options for passing selection and parameter data to the report.
Using SUBMIT WITH
Using a report variant.
Using a range table.
- SET Parameter

55. How to send a report to the printer instead of displaying it on the screen?
We can send a report to the printer instead of diplaying it on the screen.
To do this, use the keywords TO SAPSPOOL:
SUBMIT RSFLFIND TO SAPSPOOL DESTINATION LT50 .
56. How can we send data to external programs?
Using SPA/GPA parameters(SAP memory).
Using EXPORT/IMPORT data (ABAP/4 memory)
57. What are SPA/GPA parameters (SAP memory)
SPA/GPA parameters are field values saved globally in memory.
There are two ways to use SPA/GPA parmeters:
By setting field attributes in the Screen Painter.
By using the SET PARAMETER or GET PARAMETER statements.
58.How can we create callable modules of program code within one ABAP/4 program?
By defining Macros.
By creating include programs in the library.
59. Is it possible to pass data to and from include programs explicitly?
No. If it is required to pass data to and from modules it is required to use
subroutines or function modules.
60. Transport layer and correction system ?
A. Transport layer: - describes the transport route for distributing the develop
er class objects among various systems in the group.
All development classes are distributed via same route belong to same transpo
rt layer.
Correction system: - prevents parallel, uncoordinated changes to the same obj
ect, even if many copies of the objects exists, connected by SAP system.
It saves all changes to repository and customizing objects in original system
on a version database. It is activated each time the user edits Repository obje
ct.
Request category: CUST client-specific customizing.
SYST SAP Repository and customizing for all clients.
Request types:
Transport request List of objects to be transported.
Repair request
List of changed objects, which are not original.
Local change request
List of local objects.
Correction request List of all changed original objects.
Object list List of all transport objects.
Customizing request
List of all changed client specific-customizing objects.
61. With the use of secondary index we can make a program run faster but we are
advised not to use secondary index why is that so??
A. B'coz secondary index is just like a copy of data base
table reduced to specific fields.So,insertion and updation
in database become slow after creation of secondary index
where as read from table become fast.
This is b'coz additional indexes can also place a load on
the system since they must be adjusted each time the table
contents change. Each additional index therefore slows down
the insertion of records in the table
62. How do we get time in the program? Which time we get either development serv
er or system time?
A - By using system field sy-uziet. For local timlo Zonlo
63. If there is a quantity field, currency field in the external format (from le
gacy system), what is its equivalent SAP format?
A - It depends means if we want to convert it into $ to Rs we can use a functio
n module which will convert the $ to Rs and Rs will be saved.

64. How do we keep break points dynamically say a program has 1000 line of cod
e and has 50 function modules
then how do we keep breakpoints to those 50 function modules?
A - First set the program to debug mode after we r in debug mode got to Breakpo
int option in menu bar
from there go to breakpoint at - there use statement and use the statement
i.e call function or any subroutine
65. When we create a customer the information is updated in structure RF02D and
the some tables like KNA1 are updated.
How can we find the tables for master data transactions?
A: Go to ABAP Workbench -> Overview -> application hierarchy - SAP -> follow t
he customizing based tree for your application.
Double click on a lowest hierarchy level to get for the correct marked deve
lopment class.
Here you can find all the tables, views, logical databases etc. used for a
system operation.
66. You are running a report. It is taking long time for execution. What steps
will you do to reduce the execution time.
67. After running a BDC program in background, next day morning when you see th
e results, few records are not updated(error records). What will you do then?
68. You are given functional specs for a BDC program and you need to decide whe
ther to write a method call transaction or a session. How u will decide?
69. LOCK object process.
A. 1. Object Name start with EZ OR EY .
Go to SE11
2. Give the lock object name EZDUSH(lock object name start
with EZ) and click 'Create' Button.
3. Enter the short description, Table name<XXXX>, lock mode and key fields which
is used to
lock the entry.
4. Save and activate, it will generate 2 FM.
Ex:
DEQUEUE_EZDUSH Release lock on object EZDUSH
ENQUEUE_EZDUSH Request lock for object EZDUSH
In your program,
1. First loop the table.
2. call the FM 'ENQUEUE_EZDUSH' to lock.
3. Update the dB.
4. Release the lock using DEQUEUE_EZDUSH.
end loop.
70. Which command is used to flushes the database buffer?
Use the by pass buffer command on the select statement which will fetch the data
directly from
the database ignoring the buffered data on the application layer.
71.What is long text?
A long text is nothing but a text is assinged with the
standard text which is assioated with the text elements.
This is defined by the transaction code is SO10.
Syntax: selection-screen begins of block bl1 with frame title
text-001. (If u double click on the text will go open the
one pop-up window for entering the text.
72.What is Consolidation route and delivery routes?
The route between development to quality is called

consolidation route.
The route between quality to production is called delivery route.
It is used to transport data dev-->qua-->prod.
73. Could you explain the transport steps procedure?
Go with t-code 'stms' then 'tranport overview'
then create system either virtual or external for the quality system and product
ion system, if
development is showing there then create only qua & prod but if development is n
ot there, then
go with client '000' and login with sap*, then 'stms' and creat from here all th
e three, and do
according to the above procedure and after
making all three go through 'transport routs' then
configuration, & then three system in a group, now give the name of three group,
and save it
and activate it throughout the system. Now transport management system is config
ured.
74. Which statement cant use sap table buffer support ?
A. Bypass buffer, order by, select distinct, join and subqueries,
aggregate functions( e.g sum, max, min...), where is [not] null.
75. Statement used to delete data objects in ABAP/4 memory.
A. FREE MEMORY [ID <key>]
76. How will you create a file on application server
A. Open dataset <dsn> for output.
77. Which function module would you use to check the user's authorization to acc
ess
files before opening a file?
A. AUTHORITY_CHECK_DATASET
78.Name the function module used to convert logical file names to physical file
names in ABAP/4 programs.
A. FILE_GET_NAME.
79.How do you set up background jobs in SAP? What are the steps? What are events
driven batch jobs?
A. Create a job using function module JOB-OPEN
Collect the job specifications.
Add a job step to the job with the function module JOB-SUBMIT.
Close the job and pass it to Background processing system for execution with
the
function module JOB-CLOSE
EVENT DRIVEN BATCH JOBS :Types = System events
triggered when activation of new operation mode takes
place
User events - Triggered from ABAP/4 or external program.
Triggering an event notifies the background processing that named condition h
as
been reached. The Background system reacts by starting any jobs that were wai
ting
for the event.
Transaction codes related to background jobs creation and processing are :SM36(Job creation)
SM37(Job selection and execution).
80. 17. Select up to 1 row and select single difference ?

A: Select single fetches first matching record.


If more than one matching records are there then only the first matching rec
ord
will be considered other records will not be taken into account.
Where as select up to 1 rows will fetch all the matching records from the da
tabase.
(Again it will assign only One Record to the internal table/Work area)
81. 36) What is the difference between Primary key and Unique Key?
A: Primary Key
It can accepts 0 value and cannot be NULL.
Unique Key It can be NULL.
82. Control break events in ABAP:1. AT-FIRST: This is used when we want to execute the statements before records
are processed.
2. AT-LAST: This event is used when we want to execute the statements after all
records are processed.
3. AT-NEW: This event is used when we want to execute the statement before group
of records are processed.
4. AT-END: This event is used when we want to execute the statements after proce
ssing of group of records.
83.

You might also like