Showing posts with label abap faqs. Show all posts
Showing posts with label abap faqs. Show all posts

SAP ABAP Smart forms Interview faqs

1)How can I insert symbols in Smartforms?
Select the Text node.
Change Editor (Click the button above Check near the Editor)
Go to menu Include->Characters->SAP Symbols
Choose the SAP symbol that you want to insert.
2)I have a smartform which works fine in DEV. After trasnsporting it to PROD, there is no Function module generated for this smartform. As a result my program dumps in PROD?
The Smartform that is created in the Development may not have the same name in the Production server. So it is always advised to use the Function Module SSF_FUNCTION_MODULE_NAME to get the Function Module name by passing the Smartform name.
DATA: fm_name TYPE rs38l_fnam.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZSMARTFORM'
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION fm_name
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
3)How can I make the Smartforms to choose a printer name by default?
In the CALL FUNCTION of the Smartform Function Module, set the output options parameter to set the printer name.
The output options is of the type SSFCOMPOP which contains the field TDDEST. Set the TDDEST field to your default printer name.
4)How can I make the Smartforms to display a print preview by default without displaying the popup for print parameters?
In the SSF_OPEN function module,
Set the OUTPUT OPTIONS paramter TDDEST to your printer name.
Set the CONTROL PARAMETERS and control parameters as shown below,
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
control-no_dialog = 'X'.
control-device = 'PRINTER'.
control_parameters-no_dialog = 'X'.
control_parameters-no_open = 'X'.
control_parameters-no_close = 'X'.
OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'.
OUTPUT_OPTIONS-TDNOPRINT = 'X'.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
output_options = output_options
control_parameters = control
user_settings = ' '
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
5)How can I display the total number of pages in Smartforms?
Use SFSY-FORMPAGES to display the total number of pages in the Smartforms
&SFSY-PAGE&
Current page number
&SFSY-FORMPAGE&
Total number of pages in the currently formatted layout set
&SFSY-JOBPAGE&
Total number of pages in the currently formatted print request
&SFSY-COPYCOUNT&
Original-1,1st copy-2
&SFSY-DATE&
Date
&SFSY-TIME&
Time
&SFSY-USERNAME&
Username
6)I'm using the variable SFSY-FORMPAGES, I get a star "*" instead of the total number of pages.?
There may not be enough space in the window to display the variable, either increase the window dimensions or condense the spaces using &SFSY-FORMPAGES(C)
7)What are the various text formatting options in Smartforms?
&symbol(Z)&
Omit Leading Zeros
&symbol(S)&
Omit Leading Sign
&symbol(<)&
Display Leading Sign to the Left
&symbol(>)&
Display Leading Sign to the Right
&symbol(C)&
Compress Spaces
&symbol(.N)&
Display upto N decimal places
&symbol(T)&
Omit thousands separator
&symbol(R)&
Right justified
&symbol(I)&
Suppress output of the initial value
8)How can I provide a background shading to the table?
In the Table Painter, you can specify the color and shading for the table lines.
Where can I provide the input parameters to the smartform?
The input parameters for the smartform can be defined in Global Settings->Form Interface.
The Associated Type must be defined in the ABAP Dictionary.
Where can I define my own global types for the smartform?
The global types(within the smartform) can be defined in Global Settings->Global Definitions->Types
The types defined here will be global through the entire smartform.
Also the form routines can be defined Global Settings->Global Definitions->Form Routines
I have defined my own Program Lines, where I have used a global variable G_TEXT. I get an error G_TEXT is not defined?
Whenever using the global variables in the Program Lines, enter the variable name in Input Parameters if you are going to use(read) the variable. If you are going to both read/write the variable value enter the same in Output Parameters.
I have created a table node for display. Where can I check the condition which must satisfy to display the table?
The conditions can be defined in the Conditions tab. In smartforms all the nodes have a condition tab where you can specify the condition to be satisfied to access the node.
How can I define Page Protect in Smartforms?
To define Page Protect for a node go to the Output options and check the Page Protection checkbox.
What is the difference between Template and Table in Smartforms?
The Template contains a fixed number of rows and columns, where the output is fixed.
The Table can have variable number of rows
Where can I define the paragraph and character format for the smartforms?
The paragraph and character format for the smartforms can be defined in the transaction SMARTSTYLES
How to add watermark to smartform output?
Go to the properties of 'PAGE', tab 'Background Picture'. Add the grapic image name here.

Accenture SAP ABAP Interview Questions

Accenture SAP ABAP Interview Questions
1. What are events of Internal Table ?
2. What is screen Internal table ?
3. How to call a driver program in scripts ?
4. How field properties are set with * for password ?
5. What would be the output by writing something in end-of-selection event without writing anything in start-of-selection event ?
6. What are events in Classical Reports ?
7. Define where data: ……. Is global and where it is local ?
8. How the dialog programming for screen displays ?
9. What are Validations of Screen ?
10. Brief about EDI setup ?
11. What are Text Elements ?
12. What is Logical Unit of Work ?
13. What is difference between Index and Primary Key ?
14. What are SET / GET parameters ?
15. What are Import / Export Statements ?
16. Configuration of ALE & what are transaction codes involved in it ?
17. Can we use End-of-selection before Start-of-selection ?
18. How do we call one report from within another report ?
19. What is transaction code for CMOD ?
20. What is field-exit ?
21. How do we find the prog’s for which we will have to do Enhancements ?
22. Explain about the window and page-window ?
23. What is LSMW ?
24. How many methods are involved in LSMW ?
25. What are the steps involved in LSMW ?
26. What is RSBDCSUB ?
27. What is database buffering ?
28. Difference between update and modify commands ?
29. Where do we execute the session in session methods ?
30. What are the functions used in session method ?
31. What do we do in the BDC_Write_group function ?
32. How do we find a specific function module ?
33. How do we send a report to a printer ?
34. In Call Transactions where do we store Error messages ?
35. How do you fix errors in LSMW ?
36. What are the events that occur in Module Pool programming ?
37. How does the transfer of Idoc’s takes place ?
38. How do you enter data in the session method ?
39. How do we retrieve only 5 rows from the database ?
40. What are the steps to create Ztable ?
41. Why do we have a domain and dataelement ?
42. What is difference between Submit and Return ?
43. What are types of Error Messages ?
44. What are external events in report programming ?
45. What is difference between a View and a Structure ?
46. What are componenets of Script ?
47. What are componenets of Layout set?
48. What are lock objects ?
49. What are data dictionary objects ?
50. What are the events that occur in Module Pool programs ?
51. What are events in Interactive Reports ?
52. Explain about Hide Technique ?
53. What is a function-group ?
54. What are field-symbols ?
55. What are different types of symbols used in SAP SCRIPTS ?
56. Where do we find the print program for the existing SAP SCRIPTS ?
57. What is the difference between Clear, Free and Refresh ?
58. What is the default heading for basic list and the secondary list ?
59. When exactly end-of-page will fire ?
60. Steps for module pool prg?
61. What are all database objects?
62. What are lock objects ? how do you lock a field in database table?
63. What are search helps?
64. What are types of BDC?
65. Syntax for call transaction?
66. How do handle messages in call transactions?
67. What are different methods in LSMW?
68. What are IDOCS?
69. What are Function Modules ? How do you handle errors ?
70. What are events in Module Pool?
71. Components of Layout Set?
72. Sap scripts for MM ? what is driver prg for medruck?
73. What is a structure ? why do you use them?
74. Types of tables ? what is transperant tables /
75. Diiference between session & call transaction ?

Sap abap faqs

Sap abap faqs
  Continued from previous page
  1. What is the meaning of ABAPTM editor integrated with ABAPTM data dictionary?
  2. What are the events in ABAPTM language?
  3. What is an interactive report? What is the obvious difference of such report compared with classical type reports?
  4. What is a drill down report?
  5. How do you write a function module in SAP®? Describe.
  6. What are the exceptions in function module?
  7. What is a function group?
  8. How are the date and time field values stored in SAP®?
  9. What are the fields in a BDC_Tab Table?
  10. Name a few data dictionary objects?
  11. What happens when a table is activated in DD?
  12. What is a check table and what is a value table?
  13. What are match codes? Describe?
  14. What transactions do you use for data analysis?
  15. What is table maintenance generator?
  16. What are ranges? What are number ranges?
  17. What are select options and what is the diff from parameters?
  18. How do you validate the selection criteria of a report? And how do you display initial values in a selection screen?
  19. What are selection texts?
  20. What is CTS and what do you know about it?