Smart Forms Interview Questions and Answers

download Smart Forms Interview Questions and Answers

of 17

Transcript of Smart Forms Interview Questions and Answers

  • 8/10/2019 Smart Forms Interview Questions and Answers

    1/17

    1. What Are Smart Forms In SAP System?

    SAP Smartform is a graphical user interface tool to create and maintain forms. SAP Smart Forms

    supports printer, fax, e-mail or internet (XML) as its output medium.

    SAP Smartform is a tool for the maintenance of forms on hich application data from the SAP

    s!stem can "e output. #epending on the application, the num"er of forms to "e printed can "e

    $er! high, and the! might ha$e to "e printed in a short period of time, in a massprinting.%xamples of massprintingare monthl!in$oices sent "! telecom companies or salar! statements.

    Transaction Code to create and maintain forms is SMARTFORMS.

    2. What Are The Differences et!een SAP Scri"ts # Smartforms?

    Differences $et!een SAP Scri"ts and Smart Forms are% Smart Forms are client independent and SAP Scripts are client dependent.

    Multiplepageformats are possi"le in Smart Forms hich is not the case in SAP Scripts.

    &t is possi"le to ha$e a Smart Form ithout a main indo here as !ou create a SAP

    Script ithout a main indo.

    Smart Forms generates a function module hen acti$ated, hich is not the case ith SAP

    Scripts.

    SAP Scripts re'uire a dri$er program to displa!the output hereas in Smart Forms the

    form routines can "e ritten so that it is standalone.

    An integrated Form uilderhelps to design Smart Forms more easil! than SAP Scripts.

    A a"le Painter and Smart St!les to assist in "uilding up theSmart Forms hich is not

    a$aila"le in SAP Scripts.

    Smart Forms generates XML output hich can "e $ieed through the e".

    &. 'o! Many Main Windo!s Can We 'a(e In A Smartform?

    *nli+e SAP Scripts, in Smart Forms !ou can ha$e onl! one mainindo. And that too its idthshould "e same in all the pages hereas height can "e $aried. nl!one mainindo per

    smartforms is alloed "ut !ou can ha$e su"-indos.

    Main Windo! ) Smartforms * On+y 1

    Main Windo! * SAP Scri"ts ) ,,

  • 8/10/2019 Smart Forms Interview Questions and Answers

    2/17

  • 8/10/2019 Smart Forms Interview Questions and Answers

    3/17

    7. 0"+ain The Sinificance Of Co"ies Windo!?

    asicall!, Co"ies Windo! is a s"ecia+ ty"e of secondary !indo! for ma5in "aes as co"y

    or oriina+.his indo t!pe is used to output data either on original, or on copies, or "oth.

    &n simple ords, Co"ies !indo! is to $e 4sed !hen there is a re84irement to "rint co"ies ofthe "aes.

    1opies indo is used to define an output area for the print output, hose content !ou ant to

    appear either onl! on the cop! or onl! on the original. his allos !ou to flag copies as copies

    hen the form is printed.

    ,. 0"+ain The Sinificance Of Fina+ Windo!?

    Fina+ !indo! is to $e 4sed !here there is a re84irement to sho!9dis"+ay detai+s that has to

    $e "rocessed on+y at the end of the form "rocessin.

    he indos in apageare processed from top to "ottom. So the execution first s+ips all the

    Final indos and completes the processing of other indos. nce all the non-final indosare processed, the Final indos are processed from top to "ottom.

    For exampleif there is a re84irement to dis"+ay the tota+ (a+4e of a++ the items on the first

    "ae $4t the tota+ (a+4e is 5no!n on+y at the end of the form "rocessin3 e can use theFinal indo for displa!ing the total $alue. he sum of line items is calculated in the MA&2

    indo.

    1:. What Is The Difference et!een Ta$+es # Tem"+ate ;ode?

    Tem"+ate contains a fied n4m$er of ro!s and co+4mns3 !here the o4t"4t is fied !here as

    a ta$+e can ha(e (aria$+e n4m$er of ro!s. Tem"+ates are a+so "referred !here there is a

    need of "ro"er a+inment. emplates are used to print ta"les hose la!out and ros are fixed

    and +non "efore the application program runtime. %xample ax Forms

    Tem"+ate is a static entity i.e. its dimensions cannot $e chaned at r4n time !hereas Ta$+e

    is a dynamic entity i.e. its dimensions can $e chaned at r4n time.3ence, "ased on the data,it can last from one page to multiple pages. For line itemsdispla!,normall! ta"le is used "ecause

    one does not ha$e prior information a"out the num"er of line items and no of pages.

    a"le node has 4 components- 3%A#%5, &%M and F%5

    The 'eader com"onent !i++ $e eec4ted once.

    The Item com"onent can $e 4sed to "rocess9dis"+ay ta$+e contents.

  • 8/10/2019 Smart Forms Interview Questions and Answers

    4/17

    At the end footer !i++ $e eec4ted.

    emplates can "e used to define the folloing

    ;o. of ro!s and ce++

    'eiht of each ro!

    Width Of indi(id4a+ ce++s

    Se"arators or frames to $e dis"+ayed or not

    A+inment of the ta$+e in the !indo!

    Ta$+es are 4sed to "rint dynamic data !hich is not 5no!n $efore the a""+ication "roram

    r4ntime. 0am"+e% Materia+ +ist Of P4rchase orders.

    Ta$+es node to $e 4sed on+y in main !indo! and no such fixed height can "e set for ta"le

    ros.

    11. 'o! To Insert Or es3 'o!?

    Create a +oo" aro4nd the ta$+e. P4t a Command node $efore the ta$+e in the +oo" that

    forces a ;0WPA=0 on !hate(er condition yo4 !ant.hen onl! loop through a su"set of the

    internal ta"le ("ased on the conditions in the 1ommand node) of the elements in the a"le node.

    1&. 'o! Do >o4 Create # Maintain Font Sty+e # Font Si@e 0S.3ere e can create and maintain Paragraph formats

    and character formats as per the re'uirement.

    8e can use our on custom SMA5S9L%S in our Smart Form. 8e can mention the Smart

    St!le under the folloing path.

  • 8/10/2019 Smart Forms Interview Questions and Answers

    5/17

    =+o$a+ Settins )) Form Attri$4tes ))O4t"4t O"tions ta$ )) Sty+e.

    1-. Why SAP Scri"ts Are C+ient De"endent # Smartforms Are C+ient Inde"endent?

    Smart Forms create its o!n f4nction mod4+e so it doesnBt need to trans"ort the re84est

    thro4h SCC1. As a++ the De(e+o"ment O$ect are stored in c+ient inde"endent ta$+es.

    8hereas SAP Script doesn:t generate an! function module hile executing so e need to

    transport the re'uest num"er through S11;. Sa" Scri"t is stored inside the c+ient de"endent

    ta$+e as a T0T.So SAP Scripts are client dependent and Smart Forms are client independent.

    1. A SAP R9& System 'as 2 C+ients 1:: # 11:. >o4 Create An SAP Scri"t EScri"t # A

    Smartform ESmartform In C+ient 1::. Wi++ oth EScri"t # ESmartform e A(ai+a$+e

    In C+ient 11: As We++?

    1lient ;;< ill ha$e =ust the Smartform >?Smartform and not the SAP Script >?Script. SAP)

    Scri"t is c+ient de"endent !hereas SMARTFORM is c+ient inde"endent.ne ill ha$e to

    manuall! import the SAP Script to ;;< through S11; transaction in SAP.

    http://4.bp.blogspot.com/-hTVpEn0BlDs/U5B02ChZsaI/AAAAAAAAERk/P_DO_9-HUBc/s1600/How+Do+You+Create+&+Maintain+Font+Style+&+Font+Size+Used+In+Smartforms+In+SAP.png
  • 8/10/2019 Smart Forms Interview Questions and Answers

    6/17

    1/. 'o! Do >o4 Find The ;ame Of The F4nction Mod4+e For A Smartform? When Is This

    F4nction Mod4+e Created?

    The f4nction mod4+e for Smartform is created !hen the Smartform is acti(ated.9ou can

    find the name of the Function Module for a Smartform "! going to %n$ironment --@ FunctionModule 2ame.

    16. >o4 'a(e Created A Smartform In De(e+o"ment Ser(er. Then >o4 Trans"orted The

    Smartform To Prod4ction Ser(er. Wi++ The ;ame Of The F4nction Mod4+e e Same In

    oth The Ser(ers?

    he Smart Form that is created in the #e$elopment ma! not ha$e the same name in the

    Production ser$er. So it is ala!s ad$ised to use the Function Module

    GSSFF

  • 8/10/2019 Smart Forms Interview Questions and Answers

    7/17

  • 8/10/2019 Smart Forms Interview Questions and Answers

    8/17

    o see the Smartform Print Pre$ie output as list output,

    Ty"e SIS in the command "rom"t and hit enter.

    21. 'o! Wi++ >o4 Print On oth Sided Of A Smartform?

    At the Pagele$el in Smartforms, yo4 can find somethin ca++ed as Print Mode.Set the Printmode to duplex to print on "oth sides of the Smartform.

    22. 'o! Can One Insert Sym$o+s In Smartforms?

    Select the ext 2ode --@ 1hange %ditor --@ 6o to Menu ption C&nsertC --@ 1haracters --@ SAP

    S!m"ols.

    1hoose the SAP s!m"ol that !ou ant to insert.

    http://4.bp.blogspot.com/-SCi9SqzGRcU/U5CqgJQ_DZI/AAAAAAAAESM/R-NrudjxMkg/s1600/How+Will+You+Print+On+Both+Sided+Of+A+Smartform.pnghttp://3.bp.blogspot.com/-S_PXscxxooo/U5CE46iBbdI/AAAAAAAAESA/G2RB62RQJ94/s1600/How+Can+You+Convert+Smartforms+Output+To+PDF+-+1.pnghttp://2.bp.blogspot.com/-4W0IBVUbR3U/U5CE3OY7aRI/AAAAAAAAER0/Qkg6LzuuZGU/s1600/How+Can+You+Convert+Smartforms+Output+To+PDF.png
  • 8/10/2019 Smart Forms Interview Questions and Answers

    9/17

    2&. 'o! Can I Ma5e The Smartforms To Choose A Printer ;ame y Defa4+t?

    &n the 1ALL F*21&2 of the Smartform Function Module (1ALL F*21&2 fm?name ),set the o4t"4t o"tions "arameter to set the "rinter name. he output option is of the t!pe

    SSF1MPP hich contains the field ##%S. Set the TDD0ST fie+d to yo4r defa4+t

    "rinter name.

    For %xample

    *P*?P&2S-##%S B CPrinter 2ameC.

    2-. 'o! Can I Ma5e The Smartforms To Dis"+ayA Print Pre(ie! y Defa4+t Witho4t

    Dis"+ayin The Po"4" For Print Parameters?

    &n the CA F

  • 8/10/2019 Smart Forms Interview Questions and Answers

    10/17

    &2%52AL?%555 B D

    S%2#?%555 B 4

    *S%5?1A21%L%# B 3%5S B G.

    2. 'o! Can I Dis"+ayThe Tota+ ;4m$er Of Paes In Smartforms?

    *se SFS9-F5MPA6%S to displa!the total num"er of pages in the Smartforms

    #SFS>)PA=0# 1urrentpagenum"er

    #SFS>)FORMPA=0# otal num"er of pages in the currentl! formatted la!out set

    #SFS>)LOPA=0# otal num"er of pages in the currentl! formatted print re'uest

    #SFS>)COP>CO)DAT0# #ate

    #SFS>)TIM0# ime

    #SFS>))PA=03 >o4 =et A

    Star GNG Instead Of The Tota+ ;4m$er Of Paes Or C4rrent Pae ;4m$er. 'o! To Reso+(e

    S4ch Iss4es?

    here ma! not "e enough space in the indo to displa!the $aria"le, either increase theindo dimensions or condense the spaces using 0SFS9-F5MPA6%S(1)0 or using 0SFS9-

    F5MPA6%S(>1)0 or using 0SFS9-F5MPA6%S(>1)0.

    3ere

    G-G reser$es a four character ide output. (&t can "e set to an! $alue.)

    GEGeliminates the leading Ieroes.

    GCG1ompress Spaces.

    26. What Are The ario4s Tet Formattin O"tions In Smartforms?

    Jarious text formatting options a$aila"le in Smart Forms are

    #sym$o+HEJ# %mit Leading >eroes

    #sym$o+HSJ# %mit Leading Sign

    #sym$o+HJ# %#ispla!Leading Sign to the Left

  • 8/10/2019 Smart Forms Interview Questions and Answers

    11/17

    #sym$o+HJ# %#ispla!Leading Sign to the 5ight

    #sym$o+HCJ# %1ompress Spaces

    #sym$o+H.;J# %#ispla!up to 2 decimal places

    #sym$o+HTJ# % mit thousands separator

    #sym$o+HRJ# %5ight =ustified

    #sym$o+HIJ# % Suppress output of the initial $alue

    27. 'o! To Add A Standard Address In A Smart Form?

    Address can "e printed 'uic+l! and smoothl! using the address node a$aila"le in smartforms.

    his node is "ased on 1entral Address Management (1AM). Addresses can "e of 4 t!pes

    Com"any 9Orani@ation address ty"e.

    Wor5"+ace address ty"e.

    Persona+ address ty"e.

    In case if yo4 the address n4m$er or the "erson n4m$er is a+ready 5no!n3then e =ust e

    need to maintain the $alues in the options gi$en in the address node.

    In case if yo4 are fetchin the address n4m$er or the "erson n4m$er dynamica++y or d4rin

    r4n time, !ou can achie$e it "! passing the $aria"le as shon "elo

    http://3.bp.blogspot.com/-KOnoqYb41FI/U5YOvsh58XI/AAAAAAAAESk/piOU43PG6-0/s1600/How+To+Add+A+Standard+Address+In+A+Smart+Form.png
  • 8/10/2019 Smart Forms Interview Questions and Answers

    12/17

    2,. What Is The Conce"t Of Pae Protection In Smart Forms? 'o! Do >o4 Achie(e Pae

    Protection In Smart Forms?

    Pae Protection is 4sed to a(oid dis"+ayin the $ro5en contents of the "aeand allo it to

    displa!in the nepagefrom the "eginning after the pre$iouspage.

    Pae Protection attri$4te is to $e 4sed to determine !hether or not to dis"+ay a "arara"h

    com"+ete+y on one "ae.Mar+ it if !ou ant to a$oid that a paragraph is split up "! apage

    "rea+. &f on the currentpage(onl! in the main indo) there is not enough space left for theparagraph, the entire paragraph appears on the nextpage.

    8hile one can use the P5%1 ..... %2#P5%1 command for SAP-Scripts, for Smart

    Forms the Pae)Protection chec5$o can $e 4sed to ens4re "ae "rotection.

    http://1.bp.blogspot.com/-LeeuP3CQIa8/U5YP1eNiSrI/AAAAAAAAES4/1DQPbLtJgYQ/s1600/What+Is+The+Concept+Of+Page+Protection+In+Smart+Forms.pnghttp://3.bp.blogspot.com/-gqqpOzYaqMw/U5YO3EAAyZI/AAAAAAAAESs/9-xseyOygsE/s1600/How+To+Add+A+Standard+Address+In+A+Smart+Form+-+1.png
  • 8/10/2019 Smart Forms Interview Questions and Answers

    13/17

    ;ote% >o4 ha(e Pae)"rotection "ro"erty on+y for Tet 0+ements in the Main Windo!.

    &:. Can >o4 Mo(e A Smartform From One SAP System To Another Witho4t o4 De$4 A Smart Form?

    ! Putting a "rea+ point on the generated function module of the Smartform, one can de"ug it.

    For more information, 5efer the lin+ mentioned "elo.

    htt"%99!i5i.scn.sa".com9!i5i9dis"+ay9AAP90asySte"ToDe$4aSmartform

    &-. What Are The Different A4i+iary ;odes A(ai+a$+e In Smart Form?

    Auxiliar! nodes help to control and format the print "ut do not print an! contents "! themsel$es.Folloing are the different auxiliar! nodes a$aila"le in Smart Form

    Ta$+e%utput of a ta"le containing application/d!namic data.

    Tem"+ate% output of a ta"le containing static data.

    http://wiki.scn.sap.com/wiki/display/ABAP/Easy+Step+To+Debug+a+Smartformhttp://2.bp.blogspot.com/-1u8FwpU4Nfs/U5YQbqyyUaI/AAAAAAAAETA/6BZMNH5L-q0/s1600/Can+You+Move+A+Smartform+From+One+SAP+System+To+Another+Without+Using+Transports.pnghttp://wiki.scn.sap.com/wiki/display/ABAP/Easy+Step+To+Debug+a+Smartform
  • 8/10/2019 Smart Forms Interview Questions and Answers

    14/17

    Proram ines%%xecutes AAP 1ode.

    Fo+der% 1om"ines successor nodes to logical groups.

    oo"%Processes successor nodes repeatedl!.

    A+ternati(e%ranches depending on conditions.

    Command% %xecutes Special 1ommands.

    &. What are the Tet Ty"es a(ai+a$+e in Smart Form?

    here are different t!pes of ext a$aila"le in Smart Forms. he! are

    Tet 0+ement

    Tet Mod4+e

    Inc+4de Tet

    Dynamic Tet

    &/. What Are Tet Mod4+es In Smart Forms? What Are The Ad(antaes Of

  • 8/10/2019 Smart Forms Interview Questions and Answers

    15/17

    Can $e assined to CTS% An ad$antage o$er Standard exts that are not assigned to a

    ransport S!stem "! default.

    Can $e trans+ated to other +an4aes thro4h the transaction S0/&.

    &6. What Is The

  • 8/10/2019 Smart Forms Interview Questions and Answers

    16/17

    For more information, refer the lin+ mentioned "elo

    htt"%99!!!.se/&.info9trans+atin)sa")smart)forms9

    -:. 'o! Do >o4 Assin Trans"ort Re84est To Trans+ations For Smart Forms?

    nce !ou are done ith !our translation and !ou ant to push the translation to !our

    target s!stem, !ou need a transport re'uest. R4n the transaction code ST or

    "roram RS0R0CORDTORD0Rfor creation of transport re'uest.

    For more information, refer the lin+ mentioned "elo

    htt"%99!!!.sdn.sa".com9ir9scn9o9"orta+9"rtroot9docs9+i$rary944id9::1:d:6e)ecd)

    2e1:)62ad)f2&&$d/a2c-d?84ic5+in5Qinde#o(erride+ayo4tQtr4e

    -1. What Is The

  • 8/10/2019 Smart Forms Interview Questions and Answers

    17/17

    SAP Smartform Folder control has the Page Protection attri"ute hich can "e used "!

    SAP Smart Form de$elopers as a sitch for +eeping items in the same page.

    -2. 'o! Do >o4 0S transaction, create a ne character format and assign the

    "arcode name that !ou ha$e created in it. hen !ou can use the character format in !our

    Smartform here$er !ou ant the "arcode to "e displa!ed.