SAP---ABAP

Monday, May 12, 2008

ABAP/4 Interview Qns and Answers

211) What are the fields of Sales Order?

Ans Transaction Code of Sales Order: VA01

Table of Sales Order: VBAK

Order Type - AUART

Sales Org – VKORG

Dist Channel – VTWEG

Division – SPART

Sales Office - VKBUR

Sales Group - VKGRP


212) What are different types of screen keywords?

Ans There are four types of screen keywords: Module, Loop, Chain and Field.


213) Write special commands of List.

Ans There are four specials commands of lists: Write, Uline, Skip and New-Page


214) Write the following in different manner.

IF ( A GE B ) AND ( A LE C)

Ans IF A BETWEEN B AND C


215) What are the different types of ABAP statements?

Ans There are six types of ABAP statements:

1) Declarative - Types, Data, Tables

2) Modularization - Event Keywords and Defining Keywords

3) Control - If…Else, While, Case

4) Call - Perform, Call, Set User Command, Submit, Leave to

5) Operational - Write, Add, Move

6) Database - Open SQL & Native SQL


216) How data is stored in cluster table?


Ans Each field of cluster table behaves as tables, which contains the number of entries.


217) What are client dependant objects in ABAP / SAP?

Ans SAP Script layout, text element, and some DDIC objects.


218) On which event we can validate the input fields in module programs?

Ans In PAI (Write field statement on field you want to validate, if you want to validate group of fields put in chain and End chain statement.)


219) In selection screen, I have three fields, plant material number and material group. If I input plant how do I get the material number and material group based on plant dynamically?

Ans AT SELECTION-SCREEN ON VALUE-REQUEST FOR MATERIAL.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

to get material and material group for the plant.


220) How do you get output from IDOC?

Ans Data in IDOC is stored in segments; the output from IDOC is obtained by reading the data stored in its respective segments.


221) When top of the page event is triggered?

Ans After executing first write statement in start-of-selection event.


222) Can we create field without data element and how?

Ans In SE11, one option is available above the fields strip i.e. Data element / direct type.


223) Fields of VBAK Table.

Ans VBAK – Sales Document : Header Data

Details about Sales Organization, Distribution Channel, Division, Sales Group, Sales Office, Business Area, Outline Agreements, etc


224) Which transaction code can I used to analyze the performance of ABAP program.

Ans Transaction Code AL21.


225) How can I copy a standard table to make my own Z_TABLE?

Ans Go to transaction SE11. Then there is one option to copy table. Press that button. Enter the name of the standard table and in the Target table enter Z_table name and press enter.


226) What is runtime analysis? Have you used this?

Ans It checks program execution time in microseconds. When you go to SE30. If you give desired program name in performance file. It will take you to below screen. You can get how much fast is your program.


227) What is meant by performance analysis?

Ans


228) How to transfer the objects? Have you transferred any objects?

Ans


229) How did you test the developed objects?

Ans There are two types of testing

- Negative testing

- Positive testing

In negative testing, we will give negative data in input and we check any errors occurs.

In positive testing, we will give positive data in input for checking errors.


230) How did you handle errors in Call Transaction?

Ans We can create an internal table like 'bsgmcgcoll'. All the messages will go to internal table. We can get errors in this internal table.

Below messages are go to internal table. When you run the call transaction.

1) TCODE

2) Message Type

3) Message Id

4) Message Number

5) MSGV1

6) MSGV2

7) MSGV3

8) MSGV4

CALL TRANSACTION TCODE USING BDCDATA MODE A/N/E.

UPDATE MODE A/S MESSAGE INTO BDCDATA.

THEN PUT LOOP…ENDLOOP OF BDCMSGCOLL

CALL FUNCTION ‘FORMAT_WRITE’

EXPORT = SYSTEM FIELD

IMPORT = MSG TEXT ERROR

No comments: