1. What is the typical structure of an ABAP/4 program?
Ans: - HEADER, BODY, FOOTER.
2. What should be the approach for writing a BDC program?
Ans: -
step 1: converting the legacy system data to a flat file to internal table called "conversion".
Step 2: transferring the flat file into sap system called "sap data transfer".
Step 3: depending upon the bdc type i) call transaction (write the program explicitly)
ii) create sessions (sessions are created and processed. if success data will transfer).
3. What is a batch input session?
Ans: -
BATCH INPUT SESSION is an intermediate step between internal table and database table.
Data along with the action is stored in session i.e. data for screen fields, to which screen it is passed, program name behind it, and how next screen is processed.
4. What is the alternative to batch input session?
Ans: -
Call transaction.
5. A situation: An ABAP program creates a batch input session.
We need to submit the program and the batch session in back ground. How to do it?
Ans: -
go to SM36 and create background job by giving
job name, job class and job steps (JOB SCHEDULING)
6. What are the problems in processing batch input sessions?
How is batch input process different from processing online?
Ans: -
PROBLEMS: -
i) If the user forgets to opt for keep session then the session will be automatically removed from the session queue (log remains). However if session is processed we may delete it manually.
ii) If session processing fails data will not be transferred to SAP database table.
7. What are the different types of data dictionary objects?
Ans: -
tables, structures, views, domains, data elements, lock objects, Matchcode objects.
8. How many types of tables exist and what are they in data dictionary?
Ans: -
4 types of tables
i) transparent tables - Exists with the same structure both in dictionary as well as in database exactly with the same data and fields. Both Opensql and Nativesql can be used.
ii) Pool tables & iii) Cluster tables -
These are logical tables that are arranged as records of transparent tables. One cannot use native sql on these tables
(only opensql).They are not manageable directly using database system tools.
iv)Internal tables.
9. What is the step by step process to create a table in data dictionary?
Ans:-
step 1: creating domains(data type, field length, range).
step 2: creating data elements(properties and type for a table field).
step 3: creating tables(SE11).
10. Can a transparent table exist in data dictionary but not in the data base physically?
Ans: - no.
Transparent table does exist with the same structure both in the dictionary as well as in the database, exactly with the same data and fields.
11. What are the domains and data elements?
Ans: -
Domains: formal definition of the data types. They set attributes such as data type, length, and range.
Data element: a field in r/3 system is a data element.
12. Can you create a table with fields not referring to data elements?
Ans:- YES. eg:- ITAB LIKE SPFLI.here we are refereeing to a data object(SPFLI) not data element.
13. What is the advantage of structures? How do you use them in the ABAP programs?
Ans:-
Adv - GLOBAL EXISTANCE(these could be used by any other program without creating it again).
14. What does an extract statement do in the ABAP program?
Ans:-
Once you have declared the possible record types as field groups and defined their structure, you can fill the extract dataset using the following statements:
EXTRACT .
When the first EXTRACT statement occurs in a program, the system creates the extract dataset and adds the first extract record to it. In each subsequent EXTRACT statement, the new extract record is added to the dataset
EXTRACT HEADER.
When you extract the data, the record is filled with the current values of the corresponding fields.
As soon as the system has processed the first EXTRACT statement for a field group , the structure of the corresponding extract record in the extract dataset is fixed. You can no longer insert new fields into the field groups and HEADER. If you try to modify one of the field groups afterwards and use it in another EXTRACT statement, a runtime error occurs.
By processing EXTRACT statements several times using different field groups, you fill the extract dataset with records of different length and structure. Since you can modify field groups dynamically up to their first usage in an EXTRACT statement, extract datasets provide the advantage that you need not determine the structure at the beginning of the program.
15. What is a collect statement? How is it different from append?
Ans:-
If an entry with the same key already exists, the COLLECT statement does not append a new line, but adds the contents of the numeric fields in the work area to the contents of the numeric fields in the existing entry.
16. What is open sql vs. native sql?
Ans:-
Open SQL , native SQL are the interfaces to create the database applications.
Open SQL is consistent across different types of existing Databases.
Native SQL is the database language specific to database. Its API is specific to the database.
Open SQL API is consistent across all vendors
17. What are the events in ABAP/4 language?
Ans:-
Initialization, At selection-screen,Start-of-selection,end-of-selection,top-of-page,end-of-page, At line-selection, At user-command, At PF,Get,At New, At LAST,AT END, AT FIRST.
18. What is an interactive report?
What is the obvious diff of such report compared with classical type reports?
Ans:-
An Interactive report is a dynamic drill down report that produces the list on user’s choice.
diff:-
a) THE LIST PRODUCED BY CLASSICAL REPORT DOESN'T allow user to interact with the system
the list produced by interactive report allows the user to interact with the system.
b) ONCE A CLASSICAL REPORT EXECUTED USER LOOSES CONTROL.IR USER HAS CONTROL.
c) IN CLASSICAL REPORT DRILLING IS NOT POSSIBLE.IN INTERACTIVE DRILLING IS POSSIBLE.
19. What is a drill down report?
Ans:-
It’s an Interactive report where in the user can get more relevant data by selecting explicitly.
20. How do you write a function module in SAP? describe.
Ans:-
creating function module:-
called program - se37-creating funcgrp,funcmodule by assigning attributes,importing,exporting,tables,and exceptions.
calling program - SE38-in pgm click pattern and write function name- provide export,import,tables,exception values.
Labels: FAQ's on ABAP/4