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


16. How Do You Find The Name Of The Function Module For A Smartform? When Is This Function Module Created?

The function module for Smartform is created when the Smartform is activated. You can find the name of the Function Module for a Smartform by going to Environment --> Function Module Name.


17. You Have Created A Smartform In Development Server. Then You Transported The Smartform To Production Server. Will The Name Of The Function Module Be Same In Both The Servers?

The Smart Form 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.


Once you transport the Smartform from Development to Production server, a new function module name for the Smartform in generated in the Production server. For a particular Smartform , generated function module names are different in different systems.


18. State The Difference Between Form Interface & Global Definitions In Global Settings Of Smartforms?

Form Interface is where we can declare what must be passed in and out of the smartform (in from the print program to the smartform and out from the smartform to the print program).

Global Definition is where we declare data to be used within the smartform on a global scope i.e. anything we declare here can be used in any other node in the form.


19. In A Certain Smartform, For Two Differently Configured Printers, There Seem To Be A Difference In The Output Of Characters Per Inch (The Distance Between Characters Which Gives A Layout Problem - Text In Two Lines Instead Of One.

It happens when the two printers having different Printer Controls. We can go to SPAD Transaction Menu (Spool Administrator Menu) where we can see the difference in the Printer Control and if we make the Printer control setting for both the printers as same then there would be no difference in the output of characters per inch. Also we will have to check what is the device type used for both the output devices if the issue persist.


20. How Can You Convert Smartforms Output To PDF?

Following steps needs to be carried out to convert Smart Forms output to PDF:


  • Print the Smart Form to the spool.
  • Note the spool number.
  • Download the PDF file version of the spool by running Program RSTXPDFT4 and entering the noted spool number.


Here is one more and probably the easiest way to see PDF output for a Smartform.
Type PDF! In the command prompt and hit enter button.


To see the Smartform Print Preview output as list output,
Type SLIS in the command prompt and hit enter.


More Questions & Answers On Smartforms:

21. How Will You Print On Both Sided Of A Smartform?
22. How Can One Insert Symbols In Smartforms? 
23. How Can I Make The Smartforms To Choose A Printer Name By Default? 
24. How Can I Make The Smartforms To Display A Print Preview By Default Without Displaying The Popup For Print Parameters?
25. How Can I Display The Total Number Of Pages In 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?

... Return to SAP ABAP Questions & Answers Index

No comments:

Post a Comment