Wednesday, May 14, 2008

IBM abap interview Questions phase - c

Memory

1.

SAP memory (Global Memory): - is available to a user during the entire duration of a terminal session. Its contents are retained across transaction boundaries as well as external and internal sessions.

2.

External session: - when user logs on to R/3 system, the system creates a new terminal session called external session. E.g. System à Create Session.

3.

Internal session: - created by calling a transaction (with CALL TRANSACTION), a dialog module (with CALL DIALOG) or a report (with SUBMIT or RETURN).

4.

For external session: - internal sessions are allowed.

5.

Roll area: - Data areas of used programs are created in roll areas for each internal session.

6.

Posting data between internal sessions: - EXPORT TO MEMORY and IMPORT FROM MEMORY.

7.

Main program group: - Created when exporting an internal session.

8.

Additional program group: - If a function module belonging to a function group not so far loaded, additional program group is created.

9.

Main program: - First program of program group.

10.

Subroutine call: - When external subroutine is called, system loads the relevant program and adds it to the program group of calling program.

11.

Work areas: - Both table & common workareas with the same name are created once for each program group and then shared by all programs in the group.

12.

List system: - Consists of basic list and all details list belonging to basic list assigned to exactly one screen level.

13.

User interface: - Only program has its own user interface. Internal sessions interface is initially empty. Special user interface has to be activated using SET PF-STATUS statement.

14.

ABAP/4 memory: - Retained only during the lifetime of an external session.

15.

Data cluster: - Group of several data objects.

16.

Data objects: - Units of data, which a program processes at runtime.

1.

What is ABAP?

Ans :- Advanced Business Application Programming is a 4th generation programming language created by SAP for the interactive development of application programs.

2.

What is ABAP/4 Development workbench?

Ans :- An SAP CASE tool to develop standard application software or your own application software that can process both tables and your own tables.

3.

Describe interactive reporting?

Ans :-

¨ Interactive reporting is a totally screen-orientated evaluation technique.

¨ From a highly aggregated form the user can select detailed information for the required items using the menu and function keys. Such information could, for example, be:

- subitems of totals items.

- company shares.

- comparison values for user-defined comparison periods.

- standardizing and consolidation entries .

4.

What are the functions in the editor command line?

Press F1 or F4

Examples include:

I(nsert)-Insert new lines at end of text

FIND string -Multiple text search

N(ext)string-On/Off text search

R(eplace)string 1 string 2 -Replace String 1 by String 2

IC abc –Insert Structure

PP-Call Pretty Printer

Etc…

5.

What are chain statements?

Ans :- A way to join together successive statements starting the same way

Example: WRITE:/ 'xyz', X, COUNTER.

6.

Correct the syntax: data: wf_name(25) type C,

wf_age(3) type C,

Move myname to wf_name

Answer: data: wf_name (25) type C.

wf_ age (3) type n.

move 'myname' to wf_name.

7.

What is program attributes type?

Ans :- Executable program, INCLUDE program, Module pool, Function group, Subroutine pool, Interface pool, Class pool.

8.

What is the program application field used for?

Ans :- This field is used to select the module in SAP to which the program belongs.

9.

What is the syntax of the WRITE statement?

Ans :- WRITE

Format = 3D/p(l)

/- line feed

p-column position

l-output length

value=3D output value field or literal

options-format options

Example: Write: /5(3)'CAPPY'.

output starting at position 5 3D CAP

10.

Where are text elements maintained?

Ans :- ABAP/4 >>Development>>Text Elements>>(headers, columns titles etc.)

SE38 >> Text Elements >> (headers, column, titles etc.)

11.

What functions do the ULINE and SKIP commands serve?

Ans :- ULINE- ULINE statement creates a line feed first and then draws horizontal line.

SKIP-generates a blank line.

12.

What are the data types within SAP?

Ans :- P-Packed number

I-Integer

F-Floating point number

N-Numeric text

C-Text

D-Date

T-Time

X-Hexadecimal.

13.

What purpose does LIKE serving?

Ans :- To define variables that are similar to those you previously defined or those that exist in the

Data Dictionary.

14.

What is the syntax of the COMPUTE statement?

Ans :- COMPUTE X=3D A + B (COMPUTE is optional.)

15.

How is the PARAMETERS statement defined? What does it do?

Ans :- PARAMETERS : PAR1 TYPE P,

PAR2 DEFAULT 'X'.

Allows a selection screen to appear for user-input when report is executed.

16.

How do the field-symbol and assign statements work with each other?

Ans :- Field-symbol statement inherits technical attributes of data objects.

- Assign statement assigns attributes of ITAB to FS.

17.

Name 3 ways to activate the debugger.

Ans :- Via menu navigation.

Set breakpoints in the program.

Type '/h' in the command field when executing the program.

18.

Describe the functions of the debugger screen.

Ans :-

- Single step(F5) - Use this option to step through the program statement by statement. This allows you to branch into subroutines and function modules, and to execute these routines step by step as well. Once a subroutine or function module has been processed, control returns to the statement following the CALL FUNCTION or PERFORM statement.

- Execute(F6)- Use this option to process a program line by line. All of the statements on the current line are processed in a single step. If you are positioned on a line that calls a subroutine and you choose Execute, the Debugger processes the whole subroutine and then moves on to the line following the subroutine call. This allows you to jump through the statements within the subroutine.

- Return(F7) - The Debugger returns from a routine to the point at which control returns to the main program. Use this option to return from a subroutine, function module, or called program to the calling program.

- Continue(F8)- Use this option to process the program up to the next dynamic or static breakpoint or up to the cursor position. If there are no more breakpoints in the program and no cursor has been set, the system exits debugging mode and executes the rest of the program normally.

- Table - Display the contents of internal tables.

19.

What is the basic format of the SELECT statement?

Select * from where

EX:SELECT * from TABNA

WHERE COUNTRY=3D 'USA'

No comments:

Tutorials on SAP-ABAP

Adobe Interactive Forms Tutorials

Business Server Pages (BSP)

Userexits/BADIs

Web Dynpro for ABAP (Step by step procedure for web dynpro,Tutorials on Web Dynpro,)

ALV Tutorials

goodsites