106. What is the difference between report and script?
Ans: Script is a static form which is used to print company forms like Sales Order, Purchase order etc.
Report is an executable program which can be static or interactive.
107. How do you get functional specs when you are assigned some object?
Ans: Generally Functional Specifications will be sending through emails(In support process, they may come in a specific tool like: remide, radix).
108. What are conversion routines in SAP ABAP?
Ans: These are objects which are used to convert data from display format to SAP internal format and from SAP internal format to display format.
109. What is Modularization and its benefits?
Ans: If the program contains the same or similar blocks of statements or it is required to process the same function several times, we can avoid redundancy by using modularization techniques. By modularizing the ABAP/4 programs we make them easy to read and improve their structure. Modularized programs are also easier to maintain and to update.
110. What is the difference between the function module and a normal ABAP/4 subroutine?
Ans: In contrast to normal subroutines function modules have uniquely defined interface.
Sub routines do not return values.
Sub routines do not return exceptions.
Sub routines cannot be tested independently.
Declaring data as common parts is not possible for function modules. Function modules are stored in a central library.
111. What is a function Group in SAP?
Ans: Function Group is a collection of function modules that shares global data with each other.
When an ABAP/4 program contains a CALL FUNCTION statement, the system loads the entire function group in with the program code at run time. Every function module belongs to a function group.
112. What are logical databases? What are the advantages/disadvantages of logical databases?
Ans: A Logical Database is a hierarchical structure of tables. Use the GET statement to process Logical Databases.
- LDB consists of logically related tables grouped together and used for reading and processing data.
- Advantages = 1. No need of programming for retrieval , meaning for data selection.
2. Easy to use standard user interface, have check completeness of user input.
Disadvantages = 1. Fast in case of lesser no. of tables But if the table is in the lowest level of hierarchy, all upper level tables should be read so performance is slower.
113. How to transport text elements in SAP ABAP?
Ans: If is is first time, they will automatically transport along with the program, if you change them next time, it will ask for TR, you can move that TR
114. What is the last entry in all BDC tables?
Ans: In all BDC tables the last entry is to save the data by using the field name BDC_OKCODE and a field value of of ?/11?.
115. What are the types of parameters in the function modules?
Ans:
1. EXPORTING: for passing data to the called function.
2. IMPORTING: for receiving data returned from the function module.
3. TABLES: for passing internal tables only, by reference (that is, by address).
4. CHANGING: for passing parameters to and from the function.
116. What is the difference between Leave Transaction and Call Transaction?
Ans: In contrast to LEAVE TO TRANSACTION, the CALL TRANSACTION statement causes the system to start a new SAP LUW. This second SAP LUW runs parallel to the SAP LUW for the calling transaction.
117. Which event is executed first at-selection-screen or at-selection-screen-output in sap abap?
Ans: Before screen screen display : AT SELECTION-SCREEN OUTPUT will trigger first.
After screen is displayed : AT SELECTION-SCREEN will trigger first.
118. What is the difference between Structure and work area?
Ans: Structure and Work area have same functionality but structure is defined in data dictionary and can be used in both program level and data dictionary, work area can only be used in program.
119. what is structure of IDOC?
Ans: IDOC has three type of records: 1.Control Record -- contains control info ex: receiver port etc 2. Data record -- Contains IDOC data 3.Status -- holds IDOC status.
120. How can debug runtime IDOC?
Ans: A ABAP programmer, who is working with ALE-IDOC`s must know about WE19 T-code, WE19 T-code is used to test inbound IDOCS (test ground).By using WE19, we can able to change existing IDOC data and test (new IDOC will be generated), we can create new IDOC using message type, we can debug IDOC.
Follow the below steps to process/debug IDOC using WE19
In below example we are using MATMAS message type to create a material.
Step1: Go to WE19, if you have IDOC no select 'Existing Idoc' radio button and provide IDOC number, execute.
If you don`t have IDOC number, select 'Basic Type' radio button and provide 'Basic type' as MATMAS04, execute.
Step2: Now you can see the segments related to MATMAS, double click on required segments, add data.
Similarly add data to all segements for mandatory fields.
Step3: Click on inbound function module button (on toolbar), a popup will come, provide inbound function module name as 'IDOC_INPUT_MATMAS01' for MATMAS message type.If you wants to debug IDOC, select 'Call in debugging mode' check box and enter
Here 'IDOC_INPUT_MATMAS01' is a inbound function module which is linked to MATMAS message type check in WE42.
Step4: A new IDOC will be created.
Step5: Go to T-code WE09, provide IDOC no, execute, you will find the status.
No comments:
Post a Comment