ABAP Interview Questions

简介:

What is a 'Z' report? 
Y or Z report refer to customized abap programs written for modules such as mm, sd, pp or fi/co etc.

Can we create an ABAP program without using Y or Z? 
No, this is because all non Yor Z programs are standard SAP programs.

1. How data is stored in cluster table?  
Each field of cluster table behaves as tables which contains the no. of entries. 

2. What are client dependant objects in abap/sap?  
SAP Script layout, text element, and some DDIC objects. 

3. On which even we can validate the input fields in module progams?  
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.) 

4. In selection screen I have three fields, plant mat no and material group. If I input plant how do I get the mat no and material group based on plant dynamically?  
AT SELECTION-SCREEN ON VALUE-REQUEST FOR MATERIAL.  
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' to get material and material group for the plant. 

5. How do you get output from IDOC?  
Data in IDOc is stored in segments, the output from Idoc is obtained by reading the data stored in its respective segments. 

6. When top of the page event is triggered?  
After excuteing first write statement in start-of-selection event. 

7. Can we create field without data element and how?  
In SE11 one option is available above the fields strip. Data element/ direct type. 

8. How do we debug sapscript?  
Go to SE71 give lay set name , go to utilities select debugger mode on.

9. Which transaction code can I used to analyze the performance of ABAP program.  
TCode AL21.

10. How can I copy a standard table to make my own z_table. 
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.

Following are some of the answers which I gave upto my knowledge.

1. What is the use of 'outerjoin'  
Ans. With the use of outer join you can join the tables even there is no entry in all the tables used in the view. 
        In case of inner join there should be an entry in al the tables use in the view.

2. When to  use logical database? 
Ans. Advantage of Logical databases: 
        less coding s required to retrieve data compared to normal internel tables. 
        Tables used LDB are in hierarchial structure.

3. What is the use of 'table index'? 
Ans .Index is used for faster access of data base tables.

4. What is the use of 'FOR ALL ENTRIES'? 
Ans. To avoid nested select statements we use SELECT FOR ALL ENTRIES statement. 
        If there r more than 10000 records SELECT FOR ALL ENTRIES is used. 
        Performance wise SELECT FOR ALL ENTRIES is better to use.

5. Can you set up background processing using CALL TRANSACTION? 
       Yes,Using No Screen Mode.

6. What are table buffers? 
    Table buffers reside locally on each application server in the system. The data of buffered tables can thus be accessed  
    directly  from the buffer of the application server. This avoids the time-consuming process of accessing the database.

    Buffering is useful if table needs to be accessed more no. of times in a program.

With Compliments from: Pavan

1. How do I set a flag for a field in any table? 
Create a char field of length 1. for example field STAS-LKENZ is Deletion Indicator. It means that if the value in the field is 'X' then that record has been deleted.

2. Can I execute user exits? If yes, how? 
Yes you can. after finding the user exit, you need to use, goto CMOD add ur user-exit to your project. Then activate the FM which you require. Now go into that function module there will be a Include program wit name ZX* . Double click on it, it will ask to create an object, answer it Yes and then write your code in it. 

3. How do I find the output type of a table or a program? 
Table TNAPR / NAST                *-- Raj

专注于企业信息化,最近对股票数据分析较为感兴趣,可免费分享股票个股主力资金实时变化趋势分析工具,股票交流QQ群:457394862

本文转自沧海-重庆博客园博客,原文链接:http://www.cnblogs.com/omygod/archive/2007/12/16/996988.html,如需转载请自行联系原作者
目录
相关文章
|
7月前
|
程序员
开发语言漫谈-ABAP
ABAP是SAP公司专门用于SAP软件环境的专门语言
|
SQL 设计模式 前端开发
【置顶】SAP ABAP开发实战——从入门到精通系列目录
本文章为SAP ABAP开发实战——从入门到精通系列的目录以及关于该教程的后续写作计划表
1661 0
【置顶】SAP ABAP开发实战——从入门到精通系列目录
|
BI
SAP ABAP在线预览文档对象的开发实现
应用场景:有些定制化开发(报表/功能增强等)完成之后,客户需要将其操作手册或者相关文档放在某个报表的初始画面,供实际操作者在线查阅,当然这个功能也同样类似于模板的下载,这里就以在线预览(直接打开)为例进行说明。
230 0
|
前端开发 JavaScript 数据库
如何使用 Restful ABAP Programming 编程模型开发一个支持增删改查的 Fiori 应用(二)
Restful ABAP Programming 编程模式是 ABAP 这门编程语言在不断向前进化的过程中,诞生的一门新的编程模型,简称为RAP模型。
162 0
如何使用 Restful ABAP Programming 编程模型开发一个支持增删改查的 Fiori 应用(二)
|
程序员 BI
也谈SAP业务顾问如何避免被ABAP开发顾问怒打
也谈SAP业务顾问如何避免被ABAP开发顾问怒打
也谈SAP业务顾问如何避免被ABAP开发顾问怒打
abap开发function module时使用tables传递参数报错过时的解决方法
如下图,我写了一个Function Module我要在tables中添加一个参数TABLES参数已过时不管怎么点击保存按钮,一直报错,怎么办呢?不管是不是过时,狂点回车,就保存了
1747 0
|
小程序
ABAP开发基础知识:11)子程序的建立与调用
ABAP子程序(Subrouting)是包含在程序中的一段具有一定功能的代码,能够将某个功能作为一个小程序包含在主程序中,以方便程序分析及阅读。特别是一此程序中多次用到的功能,可以简化代码,增加程序的可读性且便于维护。
1495 0