SMARTFORMS-Interview Questions With Answers-SAP ABAP-5.


21. How Will You Print On Both Sided Of A Smartform?

At the Page level in Smartforms, you can find something called as Print Mode. Set the Print mode to duplex to print on both sides of the Smartform.



22. How Can One Insert Symbols In Smartforms?

Select the Text Node --> Change Editor --> Go to Menu Option 'Insert' --> Characters --> SAP Symbols.

Choose the SAP symbol that you want to insert.


23. How Can I Make The Smartforms To Choose A Printer Name By Default?

In the CALL FUNCTION of the Smartform Function Module (CALL FUNCTION fm_name ), set the output options parameter to set the printer name. The output option is of the type SSFCOMPOP which contains the field TDDEST. Set the TDDEST field to your default printer name.

For Example:

OUTPUT_OPTIONS-TDDEST = 'Printer Name'.


24. How Can I Make The Smartforms To Display A Print Preview By Default Without Displaying The Popup For Print Parameters?

In the CALL FUNCTION of the Smartform Function Module (CALL FUNCTION fm_name ), set the Output Options and Control Parameters as mentioned below:

control_options-preview = 'X'. " Print Preview
control_options -no_open = 'X'.
control_options -no_close = 'X'.
control_options -no_dialog = 'X'.
control_options -device = 'PRINTER'.

output_options-TDDEST = 'PRINTER NAME'. "Spool: Output Device
output_options-TDNOPRINT = 'X'. "No printing from print preview


CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
   formname = c_formname
IMPORTING
   fm_name = lf_fm_name
EXCEPTIONS
   no_form = 1
   no_function_module = 2
OTHERS = 3.

IF sy-subrc <> 0.

CALL FUNCTION LF_FM_NAME
EXPORTING
   CONTROL_PARAMETERS = control_options
   OUTPUT_OPTIONS = output_options
EXCEPTIONS
   FORMATTING_ERROR = 1
   INTERNAL_ERROR = 2
   SEND_ERROR = 3
   USER_CANCELED = 4
   OTHERS = 5.


25. 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


More Questions & Answers On Smartforms:

26. Sometimes While Using The Variable SFSY-FORMPAGES Or SFSY-PAGE, You Get A Star '*' Instead Of The Total Number Of Pages Or Current Page Number. How To Resolve Such Issues?
27. What Are The Various Text Formatting Options In Smartforms? 
28. How To Add A Standard Address In A Smart Form?
29. What Is The Concept Of Page Protection In Smart Forms? How Do You Achieve Page Protection In Smart Forms?
30. Can You Move A Smartform From One SAP System To Another Without Using Transports?


31. Why Pages & Windows Node Are Required Or Mandatory While Creating A Smart Form?
32. How Can You Find The Generated Function Module Name For A Smart Form?
33. How Do You Debug A Smart Form?
34. What Are The Different Auxiliary Nodes Available In Smart Form?
35. What are the Text Types available in Smart Form?

... Return to SAP ABAP Questions & Answers Index