Beruflich Dokumente
Kultur Dokumente
executed ?
A: Try transaction STAT
Q: 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 the customizing
based tree for your application. Double click on a lowest hierarchy level to get for the correct
marked development class. Here you can find all the tables, views, logical databases etc. used for a
system operation.
LANGU
The table has three columns:
TABNAM
MANDT
SDATA
We have no Exporting parameters.
How shall we set the parameters?
A: Install the PS utilities, which are part of SAPGUI install CD. You may run report RIACCESS from
SE38. Go to SALE -> Communication -> Define RFC Destination. Setup two RFC destinations
PS_ACCESS_1 and PS_ACCESS_2 and will have to get them to point to wdpsastr.exe and
wdpsatab.exe respectively. Then execute RIACCESS and choose PS_ACCESS_1 to generate access
tables. Please note that Access only supports tables with up 255 fields.
Q: We want an RFC do the following transactions - MB1A, MB1C,>MB01 (goods receipt/issue).
A: Call the RFC INBOUND_IDOC_PROCESS with IDOC_CONTROL and IDOC_DATA. The structure in
the field sdata in the IDOC_DATA are e1mbxyh and e1mbxyi.
Transports
Q: In a Dev instance, we want to transport a modification to a layout set from one client to
another. What is the best way?
A: use transaction SE71. Choose Utilities->Copy from Client. Layout sets need not be transported
between clients , via transport reQuests DEVKxxxxxx.
Q: We need to keep track of the transports that need to flow through to other systems (ie, DEV,
TST, TRN, PRD etc). Is there a way do this?
A: SAPCRAFT enables you to control the CTS from DEV system. This keeps track of all transports at
all stages and enables you to allocate Import, export and Authorization functions to specific user.
Tables
Q: We specify the logical database. And we want a field that is not present in any of the tables
defaulted in logical database. How can we want to add this additional field from a different table?
A: . Presume you have a
logical database
table 1
table 2
table 3
Define the reQuired field as additional field say fld of table 1, table 2 or table 3
and then in the code section define.
Perform get_f1d(zxxxxxxx) using f1d.
Form zxxxxxxx could be like;
Form get_f1d using f.
Select * from where 'conditions'
f = table4 - f1d.
Q:We need to download an internal table to the Presentation Server(local workstation). Whenever
we run the program, the same file has to be saved as a separate file in seQuential order. Ex:
0001.txt, 0002.txt etc. Where can we store the last file number?
A: SAP has a table TVARV for storing the variants.
A record may be created in TVARV for all the programs that reQuire this kind of incremental records.
For Ex: the record could be 100Zmm10001 MM seQuence rec where first part consists of client code
and the program being run. Client code is reQuired because TVARV does not has a field for client
code. The second part is the description indicating the purpose what the record is created. This
entire string may be posted in the Name field (char - 30).
The Type field ( char- 1) may be populated with P or S (Parameter or Selection)
Low field (char- 45) may be populated with '0001' when run first time and increment it by one in
your program for downloading of the internal table.
Batch input / Direct input
Q:
We are calling transaction VL01 in batch input to create deliveries using a program for delivery
due list. How ever we areunable to create deliveries for transport stock orders. Why?
A: Batch-inputs can not be used to fill the &Quot;delivery due list&Quot; screen because it is not a
dynpro. This is a standard SAP report. A SAP report (check with &Quot;System -> Status&Quot;)
may be called using SUBMIT sentence with the appropriate options . It is preferred to call a report
than create a Batch-input program.
Q: What are some sample Direct input data transfer programs?
A: In MM for Material Master data - RMDATIND
FI - for Accounting Documents - RFBIBL00
PP - for Independent reQuirements - RM06IN00
CA - for Classification data - RCCLBI03
Q. What is an ABAP data dictionary?
ans- ABAP 4 data dictionary describes the logical structures of the objects used in application
development and shows how they are mapped to the underlying relational database in tables/views.
Q. What are domains and data element?
ans . Domains:Domain is the central object for describing the technical characteristics of an
attribute of an business objects. It describes the value range of the field. Data Element: It is used to
describe the semantic definition of the table fields like description the field. Data element describes
how a field can be displayed to end-user.
ans. ABAP/4 Query is a powerful tool to generate simple reports without any coding. ABAP/4 Query
can generate the following 3 simple reports: Basic List: It is the simple reports. Statistics: Reports
with statistical functions like Average, Percentages. Ranked Lists: For analytical reports. - For
creating a ABAP/4 Query, programmer has to create user group and a functional group. Functional
group can be created using with or without logical database table. Finally, assign user group to
functional group. Finally, create a Query on the functional group generated.
Q. What is BDC programming?
ans. Transferring of large/external/legacy data into SAP system using Batch Input programming.
Batch input is a automatic procedure referred to as BDC(Batch Data Communications).The central
component of the transfer is a Queue file which receives the data vie a batch input programs and
groups associated data into sessions.
Q. What are the functional modules used in seQuence in BDC?
ans. These are the 3 functional modules which are used in a seQuence to perform a data transfer
successfully using BDC programming: BDC_OPEN_GROUP - Parameters like Name of the client,
sessions and user name are specified in this functional modules. BDC_INSERT - It is used to insert
the data for one transaction into a session. BDC_CLOSE_GROUP - This is used to close the batch
input session.
Q. What are internal tables?
ans. Internal tables are a standard data type object which exists only during the runtime of the
program. They are used to perform table calculations on subsets of database tables and for reorganising the contents of database tables according to users need.
Q. What is ITS? What are the merits of ITS?
ans. ITS is a Internet Transaction Server. ITS forms an interface between HTTP server and R/3
system, which converts screen provided data by the R/3 system into HTML documents and viceversa. Merits of ITS: A complete web transaction can be developed and tested in R/3 system. All
transaction components, including those used by the ITS outside the R/3 system at runtime, can be
stored in the R/3 system. The advantage of automatic language processing in the R/3 system can
be utilized to language-dependent HTML documents at runtime.
Q.
What is DynPro?
ans. DynPro is a Dynamic Programming which is a combination of screen and the associated flow
logic Screen is also called as DynPro.
Q. What are screen painter and menu painter?
ans. Screen painter: Screen painter is a tool to design and maintain screen and its elements. It
allows user to create GUI screens for the transactions. Attributes, layout, filed attributes and flow
logic are the elements of Screen painter. Menu painter: Menu painter is a tool to design the interface
components. Status, menu bars, menu lists, F-key settings, functions and titles are the components
of Menu painters. Screen painter and menu painter both are the graphical interface of an ABAP/4
applications.
Q. What are the components of SAP scripts?
ans. SAP scripts is a word processing tool of SAP which has the following components: Standard
text. It is like a standard normal documents. Layout sets. - Layout set consists of the following
components: Windows and pages, Paragraph formats, Character formats. Creating forms in the R/3
system. Every layout set consists of Header, paragraph, and character string. ABAP/4 program.
ans. Client dependent or independent transfer reQuirements include client specific or cross client
objects in the change reQuests. Workbench objects like SAPscripts are client specific, some entries
in customizing are client independent. If you display the object list for one change reQuest, and
then for each object the object attributes, you will find the flag client specific. If one object in the
task list has this flag on, then that transport will be client dependent.
Dialog (D): each dispatcher needs at least 2 dialog work processes (not shown above)
Spool (S): at least 1 per R/3 System (more than 1 per dispatcher allowed)
Update (V): at least 1 per R/3 System (more than 1 per dispatcher allowed)
Background (B): at least 2 per R/3 System (more than 1 per dispatcher allowed)
EnQueue (E): exactly 1 per R/3 System (only 1 E work process is reQuired and allowed)
startsap db:
startsap all:
Default entry; starts both the database and the R/3 instance
Before the R/3 System is stopped, the R/3 System administrator should check the:
Check if any background jobs from any application server are active or have been triggered
externally. Use transactionSM37
Check if the background work process BTC is running in any application server.
Check if any update records are open when the system is stopped, the records are rolled
back and set to status init. At startup, the records are processed again.
The administrator must decide whether to interrupt the jobs or wait until they are finished.
Give system users advance warning of the system shutdown. To create a system message,
you can use transaction SM02.
Before shutting down the system, use transaction SM04 to check whether users are still
logged on, and ask them to log off.
The R/3 System administrator and administrators of external systems should also inform
one another about data transfers between their respective systems.
ABAP/4 provides some interactive events on lists such as AT LINE-SELECTION (double click) or AT
USER-COMMAND (pressing a button). You can use these events to move through layers of
information about individual items in a list.
by calling function modules (see Function Modules for Lock ReQuests). These function modules are
automatically generated from the definition of lock objects in the ABAP Dictionary.
Q. What are the different internal tables ? Explain them?
ans. Standard Internal Tables - Standard tables have a linear index. You can access them using
either the index or the key. If you use the key, the response time is in linear relationship to the
number of table entries. The key of a standard table is always non-uniQue, and you may not include
any specification for the uniQueness in the table definition.
This table type is particularly appropriate if you want to address individual table entries using the
index. This is the Quickest way to access table entries. To fill a standard table, append lines using
the (APPEND) statement. You should read, modify and delete lines by referring to the index (INDEX
option with the relevant ABAP command). The response time for accessing a standard table is in
linear relation to the number of table entries. If you need to use key access, standard tables are
appropriate if you can fill and process the table in separate steps. For example, you can fill a
standard table by appending records and then sort it. If you then use key access with the binary
search option (BINARY), the response time is in logarithmic relation to the number of table entries.
Sorted Internal Tables - Sorted tables are always saved correctly sorted by key. They also have a
linear key, and, like standard tables, you can access them using either the table index or the key.
When you use the key, the response time is in logarithmic relationship to the number of table
entries, since the system uses a binary search. The key of a sorted table can be either uniQue, or
non-uniQue, and you must specify either UNIQUE or NON-UNIQUE in the table definition. Standard
tables and sorted tables both belong to the generic group index tables.
This table type is particularly suitable if you want the table to be sorted while you are still adding
entries to it. You fill the table using the (INSERT) statement, according to the sort seQuence defined
in the table key. Table entries that do not fit are recognised before they are inserted. The response
time for access using the key is in logarithmic relation to the number of table entries, since the
system automatically uses a binary search. Sorted tables are appropriate for partially seQuential
processing in a LOOP, as long as the WHERE condition contains the beginning of the table key.
Hashed Internal Tables - Hashes tables have no internal linear index. You can only access hashed
tables by specifying the key. The response time is constant, regardless of the number of table
entries, since the search uses a hash algorithm. The key of a hashed table must be uniQue, and you
must specify UNIQUE in the table definition.
This table type is particularly suitable if you want mainly to use key access for table entries. You
cannot access hashed tables using the index. When you use key access, the response time remains
constant, regardless of the number of table entries. As with database tables, the key of a hashed
table is always uniQue. Hashed tables are therefore a useful way of constructing and
using internal tables that are similar to database tables.
Q. What is runtime analysis?
ans. This runtime analysis tools allows the ABAP/4 programmer to trace the tables used by the SAP
dialog/reports programs. In the Analyze button, you can see four more buttons like:Hit List - Displays the execution time of each statement in the program.
Tables - Displays the tables accessed during run time.
Group hit list - Displays the execution time of all the statements and grouping them based on the
type of command. e.g. performs, SQL and internal tables used.
Hirarchy - Displays the execution time of each statement in the actual order in which were
executed. Uses indentation to indicate the level of nesting of statements within subroutines.
Any tables use by the transaction or program can be easily trace with the runtime analysis tools.
Go to transaction SE30
Type in the transaction code you want to analyze.