SAP ABAP Interview Questions & Answers Part 5

«« Previous
Next »»

61. Difference between .include and .append?


Ans: Include structure allows to add one or more structure into structure or table.Also placed positioning anywhere. Upto 6 include structure can be used in a table.
Append structure can be placed only at the end of a structure or table which also stops further insertion of fields.Only one append structure can be used.

62. How to debug sapscripts?


Ans: Two ways to debug sapscript .
First way is goto SE 71 and from menu bar select Utilities->activate debugger .then goto SE38 execute the print program ,it automatically goes to debugging mode
The other way is , run the program RSTXDBUG in se 38 . execute it . a message will show that debugger is activated .now open the print program in se 38, execute and you will notice that the print programm is automatically diverted to debugging mode.

63. What is occurs in internal table?


Ans: Occurs addition to the Declaration will give initial size to that table.occur statement allocates 8kb of memory to the internal table.

64. Type of parameters to pass to RFC pass by value or pass by referance ?


Ans: Always Pass by Value.
RFC is Remote Function call so it can not access the values with Pass by reference.

65. Buffering concept usage in SAP Tables?


Ans: There are three type of buffer
1 single record 
2 generic buffer
3 full buffer
Buffering is use for improve performance. it improves performance 10 to 100 times more

66. Which BDC you prefer for data migration?


Ans: If we want to transfer large amount of data and when we need to use more than one transaction code we prefer session method. For small or less amount of data and for single transaction use call transaction.

67. Preformance techniques in ABAP reports


Ans: 
1. The sequence of fields must be same as per database table
2. During writing select query write all fields in sequence as per database table.
3. Never write select statements inside loop. endloop.
4. Use st05 SQL trace, se30 run time analysis, code inspector, SLIN (Extended Program Check),etc.
5. Use select single * statement instead of select *
6. Always use primary key
7. Use binary search but before using binary search sort that table.

68. How to debug sapscripts in SAP?


Ans: Two ways to debug SAPSCRIPT.
  1. Goto SE 71 and from menu bar select Utilities->activate debugger .then go to SE38 execute the print program ,it automatically goes to debugging mode
  2. Run the program RSTXDBUG in SE38 . execute it . a message will show that debugger is activated .now open the print program in se 38 and execute, you will notice that the print program is automatically diverted to debugging mode.

69. What is occurs in internal table?


Ans: Occurs addition to the Declaration will give initial size to that table. Occur statement allocates 8kb of memory to the internal table.

70. How the values will be passed to RFC Function module PassbyValue or Passbyreference?


Ans: Always Pass by Value.
RFC is Remote Function call so it can not access the values with Pass by reference.

71. Select up to 1 row and select single difference ?


Ans: Select single fetches first matching record. If more than one matching records are there then only the first matching record will be considered other records will not be taken into account. Whereas select up to 1 rows will fetch all the matching records from the database. (Again it will assign only One Record to the internal table/Work area)

72. How to Debug RFC Function module?


Ans: SE38 -> Utilities -> Settings -> ABAP Editor -> Debugging Activate the external debugging and choose the New Debugger option in ABAP debugger. Go to the particular place in the code and put break point, pop will appear then choose the HTTP break point. If you are triggering the RFC from SAP portal make sure that both the user ID should be same If the users are different then provide the XI/Portal User ID in the users field.

73. Why sapscripts are client dependent and smart forms are client independent.?


Ans: Smart forms create its own function module so it does not required to transport the request through SCC1.As all the Development Object are stored in client independent tables. Whereas SAP Script does not generate any function module while executing so we need to transport the request number through SCC1.Sap script is stroed in side the client depended table as a TEXT. So sapscripts are client dependent and smartforms are client independent.

74. Control break events in ABAP?


Ans: 
1. AT-FIRST: This is used when we want to execute the statements before records are processed.
2. AT-LAST: This event is used when we want to execute the statements after all records are processed.
3. AT-NEW: This event is used when we want to execute the statement before group of records are processed.
4. AT-END: This event is used when we want to execute the statements after processing of group of records.

75. WHAT IS THE DIFFERENCE BETWEEN CHECK TABLE AND VALUE TABLE?


Ans: CHECK TABLE:
A foreign key links two tables T1 and T2 by assigning fields of table T1 to the primary key fields of table T2.
Table T2 is then known as the check table of the foreign key.

VALUE TABLE:
Sometimes when you define a domain, you already know that all fields that use the domain will need to be checked against a particular table. You can store this information in the domain definition by specifying a value table.

If you try to define a foreign key for a field that points to this domain, the value table of the domain is proposed as the check table for the foreign key.

«« Previous
Next »»

No comments:

Post a Comment