Crack The Campus - Technical Interviews for Tech Companies

Welcome Guest

Search:

SAP ABAP Interview Article 1



How do u display a data in a Detail List?

Ans      By using two statements:

1)      Top-of-page during line-selection

2)      At line-selection

 

What are the types of windows in SAP Script?

Ans      There are five Standard Layouts in SAP Script:    

1)      Page

2)      Window

3)      Page Window

4)      Paragraph Format

5)      Character Format

 

What are the function modules used in a SAP Script driver program?

Ans      There are three functions used in SAP Script:

1)      OPEN_FORM

2)      WRITE_FORM

3)      CLOSE_FORM

 

 

What are Extracts?

Ans      Extracts are dynamic sequential datasets in which different lines can have different structures. We can access the individual records in an extract dataset using a LOOP.

 

How would u go about improving the performance of a Program, which selects data from MSEG & MKPF?

 

 

How does System work in case of an Interactive Report?

 

What is LUW?

Ans      Logical Unit of Work

 

 

 

 

Different types of LUWs. What r they?

Ans      Two types of LUW are:

1)      DB LUW - A database LUW is the mechanism used by the database to ensure that its data is always consistent. A database LUW is an inseparable sequence of database operations that ends with a database commit. The database LUW is either fully executed by the database system or not at all. Once a database LUW has been successfully executed, the database will be in a consistent state. If an error occurs within a database LUW, all of the database changes since the beginning of the database LUW are reversed. This leaves the database in the state it had before the transaction started.

2)      SAP LUW - A logical unit consisting of dialog steps, whose changes are written to the database in a single database LUW is called an SAP LUW. Unlike a database LUW, an SAP LUW can span several dialog steps, and be executed using a series of different work processes.

 

What is First event triggered in program?

 

What are various Joins? What is right outer join?

 

How do u find out whether a file exits on the presentation server?

Ans      eps_get_directory_listing for directory

 

 

Systems fields used for Interactive Lists AND Lists

Ans      Interactive System Fields:  SY-LSIND, SY-CPAGE, SY-LILLI, SY-LISEL, SY-LISTI,

            SY-LSTAT, SY-STACO, SY-STARO

 

            Lists: SY-COLNO, SY-LINCT, SY-LINNO, SY-LINSZ, SY-PAGNO,

SY-TVAR0…..SY-TVAR9, SY-WTITL

 

Logo in SAP Script?

Ans      RSTXLDMC   OR

 

Steps for making and inserting Logo in SAP Script:

            First Procedure:

1)      Draw the picture

2)      Save it

3)      /nSE78

4)      Write name & Choose Color

5)      Click on Import

6)      Browse picture

7)      Enter

 

Second Procedure

1)      /nSE71

2)      Insert

3)      Graphics

4)      Click on stored on document server

5)      Execute

6)      Choose name of BMAP

           

What are the difference between call screen and leave screen?  

Ans      Call Screen: Calling a single screen is a special case of embedding a screen sequence. If you want to prevent the called screen from covering the current screen completely, you can use the CALL SCREEN statement with the STARTING AT and ENDING AT

 

            CALL SCREEN 1000.

 

CALL SCREEN 1000 STARTING AT 10 10 ENDING AT 20 20.

 

            LEAVE SCREEN statement ends the current screen and calls the subsequent screen.

            LEAVE SCREEN.

LEAVE TO SCREEN 2000.

 

If internal table used in for all entries in empty then what happens

Ans      No, records will be displayed.

 

If I forgot some command in SAP Script e.g.: suppress zero display - How to do find it?

Ans      Suppressing of entire screens is possible with this command.  This command allows us to perform screen processing “in the background”. Suppressing screens is useful when we are branching to list-mode from a transaction dialog step.

 

How to write a BDC - how do u go about it?

Ans      Steps for writing BDC

1)      /nSE38

2)      Declare Tables, Data (for ITAB) and Data (for BDCITAB)

3)      Call function ‘Upload’.

4)      Write code for the First Screen, Radio Button, Filename, Change Button, Second Screen, Utilities (Create Entries), Third Screen and Save.

5)      Call transaction ‘SE11’ using BDCITAB mode ‘A’.

6)      Save, Check Errors, Activate and Execute.

 

 

 

 

What is Performance tuning?

 

Define Documentation.

 

Brief about Testing of programs.

 

How do u move on to the next screen in interactive reporting?

Ans      Write code of the following:          

1)      Top-of-Page during line-selection

2)      At line-selection

 

Create any functions? How to go about it?

Ans      Steps for creating the Functions:

 

            First Procedure:

1)      /nSE37

2)      Goto

3)      Function Group (FG)

4)      Create Group

5)      Name of FG (ZREKHA_FG)

6)      Short Text

7)      Save

8)      Local Object

 

Second Procedure

1)      Environment

2)      Inactive Object

3)      Function Group (ZREKHA_FG)

4)      Activate

5)      Back

 

Third Procedure

1)      Name of Function Module (ZREKHA_FM)

2)      Create

3)      Write FG Name (ZREKHA_FG)

4)      Short Text

5)      Save

 

Fourth Step:

Call function ‘ZREKHA_FM’.

  

 

Function modules used in F4 help.

Ans      There are two types of function modules used in F4 help:

1)       F4IF_FIELD_VALUE_REQUEST

2)      F4IF_INT_TABLE_VALUE_REQUEST

 

Work most on which module: Name a few tables.

Ans      Sales & Distribution Module

 

1)      Sales Document: Item Data                                   VBAP

2)      Sales Document: Partner                                       VBPA

3)      Sales Document: Header Data                              VBAK

4)      Sales Document Flow                                           VBFA

5)      Sales Document: Delivery Item Data           -           LIPS

6)      Customer Master                                                  KNA1

7)      Material Data                                                       MARA

8)      Conditions (Transaction Data)                     -           KONV

 

System Table used

Ans                 

1)      Sales Document: Item Data                                   VBAP

2)      Sales Document: Partner                                       VBPA

3)      Sales Document: Header Data                              VBAK

4)      Sales Document Flow                                           VBFA

5)      Sales Document: Delivery Item Data           -           LIPS

6)      Customer Master                                                  KNA1

7)      Material Data                                                       MARA

8)      Conditions (Transaction Data)                     -           KONV

 

 

From a table how do u find whether a material is used in another material BOM?

 

What is read line?

Ans      READ LINE and READ CURRENT LINE – These statements are used to read data from the lines of existing list levels. These statements are closely connected to the HIDE technique.

 

How u used logical database? How is data transferred to program? Corresponding statement in LDB.

 

How do u suppress fields on selection screen generated by LDB?

 

Can there be more than 1 main window in SAP Script?

Ans      No, there cannot be more than 1 main window in SAP Script because in WRITE_FORM, it asks for the parameter Window that will create the problem.   

 

WRITE_FORM –

Exporting

Element

Window

 

Global and local data in function modules.

 

What are the differences between SAP memory and ABAP memory?

Ans      ABAP Memory is a memory area in the internal session (roll area) of an ABAP program. Data within this area is retained within a sequence of program calls, allowing you to pass data between programs that call one another. It is also possible to pass data between sessions using SAP Memory.

SAP Memory is a memory area to which all sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session (as with ABAP memory) or to pass data from one session to another.

 

What are differences between At selection-screen and At selection-screen output?

Ans      AT SELECTION-SCREEN event is triggered in the PAI of the selection screen once the ABAP runtime environment has passed all of the input data from the selection screen to the ABAP program.

AT SELECTION-SCREEN OUTPUT - This event block allows you to modify the selection screen directly before it is displayed.

 

What are the events?

 

 

 

 

 

What is get cursor field?           

Ans      GET CURSOR statement transfers the name of the screen element on which the cursor is positioned during a user action into the variable <f>.

GET CURSOR FIELD <f> [OFFSET <off>] [LINE <lin>] [VALUE <val>] LENGTH <len>].

 

What is the inside concept in select-options?    

Ans      Select-options specify are displayed on the selection screen for the user to enter values.

Different Properties of Select-options:

1)      Visible Length

2)      Matchcode Object

3)      Memory ID

4)      Lowercase

5)      Obligatory

6)      No Display

7)      Modify ID

 

What is the difference between occurs 1 and occurs 2?

Ans     

 

What is the difference between Free and Refresh?

Ans      Free - You can use FREE to initialize an internal table and release its memory space without first using the REFRESH or CLEAR statement. Like REFRESH, FREE works on the table body, not on the table work area. After a FREE statement, you can address the internal table again. It still occupies the amount of memory required for its header (currently 256 bytes). When you refill the table, the system has to allocate new memory space to the lines.

           

Refresh - This always applies to the body of the table. As with the CLEAR statement, the memory used by the table before you initialized it remains allocated. To release the memory space, use the statement

 

What are elements?

 

Can we have more than one selection-screen and how?

Ans      Yes, we can have more than one selection screen.

 

            Selection-screen begin of block honey with frame title text-101.

            Select-options : deptno for zrekha_deptt-deptno.

            Selection-screen end of block honey.

 

            Selection-screen begin of block honey1 with frame title text-102.

            Select-options : dname for zrekha_deptt-dname.

            Selection-screen end of block honey1.

 

How to declare select-option as a parameter?

Ans      SELECT-OPTIONS: specify are displayed on the selection screen for the user to enter values.

 

            Parameters: dname like dept-dname.

 

            Select-options: dname for dept-dname.

 

How can u write programmatically value help to a field without using search help and match codes?

Ans      By using two types of function modules to be called in SAP Script:

 

1)      HELP_OBJECT_SHOW_FOR_FIELD

2)      HELP_OBJECT_SHOW

 

What are the differences between SE01, SE09 and SE10?

Ans      SE01    -           Correction & Transport Organizer

            SE09    -           Workbench Organizer

            SE10    -           Customizing Organizer

 

How to set destination?

Ans

 

What are the function module types?

Ans

 

What are tables?

Ans      Tables : ZREKHA_EMP.

 

It creates a structure – the table work area in a program for the database tables, views or structure ZREKHA_EMP. The table work area has the same name as the object for which we created it. ZREKHA_EMP must be declared in the ABAP dictionary. The name and sequence of fields in the table work area ZREKHA_EMP corresponds exactly to the sequence of fields in the database table, view definition in the ABAP dictionary.

 

What are client-dependant tables and independent tables?

 

How to distinguish client-dependant tables from independent tables?

 

What is the use of Table maintenance allowed?

Ans      Mark the Table maintenance allowed flag if users with the corresponding authorization may change the data in the table using the Data Browser (Transaction SE16). If the data in the table should only be maintained with programs or with the table view maintenance transaction (Transaction SM30), you should not set the flag.

 



Rating: 3.50

Comments

No comments posted.

Add Comment

You do not have permission to comment. If you log in, you may be able to comment.