Professional Documents
Culture Documents
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
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 ?