Vous êtes sur la page 1sur 6

What is an internal table and work area in SAP ABAP ?

Internal tables and work areas are temporary memory areas which are used to store data at run-time. Internal tables and work areas are instances of database tables. How much memory will be allocated for internal table and work area ? 8KB memory will be allocated for both internal tables and work areas and it will be increased dynamically. What is types statement in SAP ABAP programing ? Types is a statement which is used to define user-defined structure in SAP ABAP programming . TYPES : BEGIN OF TY_TABLE, MATNR TYPE MARA-MATNR, MTART TYPE MARA-MTART, MEINS TYPE MARA-MEINS, END OF TY_TABLE. How do you read data from database table in SAP ABAP ? The only way to read data from database table in SAP ABAP is using select (open SQL) statements. What is difference between append and insert statements in SAP ABAP ? Append is statement which is used to add a record at bottom of a internal table from work area . Insert is a statement which is used to insert a record at a specified position of an internal table from work area. What is webdynpro for ABAP ? Webdynpro for ABAP is SAP web interface model which is used to develop web applications in SAP. what is the event that will be triggered first in an ABAP report? Initialization event is triggered first if user executes an ABAP report. But if the program is of type 1, M, F, or S; then LOAD-OF-PROGRAM is triggered first and then INITIALIZATION event. What are the differences between simple and interactive ABAP reports?

A simple ABAP report allows the user to interact with the whole business-result data. In case of interactive reports user can interact with specific result data at a time. Types of ABAP reports in SAP? ABAP report types are of 7 types. ABAP report types are available in reports attributes screen. Executable program. Function group (containing function modules) Include Interface pool Class pool Module pool Subroutine pool How many lists can be displayed through an interactive report? Maximum 21 lists can be displayed (1 basic list 20 secondary lists). what are the events in interactive reporting? AT LINE-SELECTION Moment at which the user selects a line by double clicking on it or by positioning the cursor on it and pressing F2. AT USER-COMMAND Moment at which the user presses a function key. TOP-OF-PAGE DURING Moment during list processing of a secondary list LINE-SELECTION Secondary list at which a new page starts. What is the length of function code at user-command? Each menu function, push button, or function key has an associated function code of length FOUR (for example, FREE), which is available in the system field SYUCOMM after the user action. What is an ABAP data dictionary? 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. What are domains and data element? 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. What is foreign key relationship? A relationship which can be defined between tables and must be explicitly defined at field level. Foreign keys are used to ensure the consistency of data. Data entered should be checked against existing data to ensure that there are now contradiction. While defining foreign key relationship cardinality has to be specified. Cardinality mentions how many dependent records or how referenced records are possible. Describe data classes in SAP ? Master data: It is the data which is seldomly changed. Transaction data: It is the data which is often changed. Organization data: It is a customizing data which is entered in the system when the system is configured and is then rarely changed. System data:It is the data which R/3 system needs for itself. What are indexes in SAP tables? Indexes are described as a copy of a database table reduced to specific fields. This data exists in sorted form. This sorting form ease fast access to the field of the tables. In order that other fields are also read, a pointer to the associated record of the actual table are included in the index. Yhe indexes are activated along with the table and are created automatically with it in the database. Difference between transparent tables and pooled tables? Transparent tables: Transparent tables in the dictionary has a one-to-one relation with the table in database. Its structure corresponds to single database field. Table in the database has the same name as in the dictionary. Transparent table holds application data. Pooled tables. Pooled tables in the dictionary has a many-to-one relation with the table in database. Table in the database has the different name as in the dictionary. Pooled table are stored in table pool at the database level. What is an ABAP/4 Query in SAP? 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.

What is BDC programming ? 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 What are internal tables? 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 re-organising the contents of database tables according to users need. What are the components of SAP scripts? 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. Can we write the code both call transaction and session method in single program? Yes it is possible to write call transaction and session in one program Which BDC technique you prefer? if we want to transfer large amount of data and when we need to use more than one transaction code we prefer session method. For small or less amount of data and for single transaction use call transaction. (This is more genric answer but you can add more on to this if you have worked on BDC) When you prefer LSMW in SAP? When we need to update medium amount of data we use LSMW. LSMW is also used when the person like functional consultant has less programming language. Difference between .include and .append? Include structure allows to add one or more structure into structure or table.Also placed positioning anywhere. Upto 6 include structure can be used in a table. Append structure can be placed only at the end of a structure or table which also stops further insertion of fields.Only one append structure can be used.

What is occurs in internal table? Occurs addition to the Declaration will give initial size to that table.occur statement allocates 8kb of memory to the internal table. Type of parameters to pass to RFC pass by value or pass by referance ? Always Pass by Value. RFC is Remote Function call so it cant access the values with Pass by reference. Buffering concept usage in SAP Tables? There are three type of buffer 1 single record 2 generic buffer 3 full buffer Buffering is use for improve performance. it improves performance 10 to 100 times more Preformance techniques in ABAP reports 1. The sequence of fields must be same as per database table 2. During writing select query write all fields in sequence as per database table. 3. Never write select statements inside loop.endloop. 4. Use st05 SQL trace, se30 run time analysis, code inspector, SLIN (Extended Program Check),etc. 5. Use select single * statement instead of select * 6. Always use primary key 7. Use binary search but before using binary search sort that table. What is occurs in internal table? Occurs addition to the Declaration will give initial size to that table. Occur statement allocates 8kb of memory to the internal table. How the values will be passed to RFC Function module PassbyValue or Passbyreference? Always Pass by Value. RFC is Remote Function call so it cant access the values with Pass by reference.

Select up to 1 row and select single difference ? Select single fetches first matching record. If more than one matching records are there then only the first matching record will be considered other records will not be taken into account. Whereas select up to 1 rows will fetch all the matching records from the database. (Again it will assign only One Record to the internal table/Work area) 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 processing of group of records.