Faqs in Smartforms
Transcript of Faqs in Smartforms
-
8/10/2019 Faqs in Smartforms
1/17
Forcing a page break within table loop
Create a loop around the table. Put a Command node before the table in the loop
that forces a
NEWPAGE on whatever condition ou want. !hen onl loop through a subset of the
internal table "based
on the conditions in the Command node# of the elements in the !able node.
Font stle and Font si$e
Goto !ransaction %&A'!%!()E%.
!here ou can create Paragraph formats etc *ust like in sapscript.
!hen in our window under +,!P,! +P!-+N% ou include this %&A'!%!()E and use
the Paragraph and
character formats.
)ine in %martform
Either ou can use a window that takes up the width of our page and onl has a
height of mm.
!hen ou put a frame around it "in window output options#.
!hus ou have drawn a bo/ but it looks like a line.
-
8/10/2019 Faqs in Smartforms
2/17
+r ou can *ust draw 0110 accross the page and pla with the fonts so that it *oins
each
,N2E'1%C+'E.
2i3erence between 4forminterface4 and 4global de5nitions4 in global settings of
smart forms
!he 2i3erence is as follows.
!o put it ver simpl6
Form -nterface is where ou 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 defs. is where ou declare data to be used within the smartform on a global
scope.
ie6 anthing ou declare here can be used in an other node in the form.
%martforms function module name
+nce ou have activated the smartform7 go to the environment 89 function modulename. !here ou can
get the name of funtion module name.
-
8/10/2019 Faqs in Smartforms
3/17
!he ke thing is the program that calls it. for instance7 the invoice %&A'!F+'&
):1:-)1-N;+-CE is
ran b the program '):1-N;+-CE.
!his program uses another F& to determine the name of the F& to use itself. !he
ke thing is that
when it calls this F& "using a variable to store the actual name#7 that the
parameters match the
paramters in our smartform.
Another thing to note is that the F& name will change wherever the %F is
transported to.
%o ou need to use the F& to determine the name of the %F.
-
8/10/2019 Faqs in Smartforms
4/17
importing
fm1name ? internalname
e/ceptions
no1form ?
no1function1module ? @
others ? .
if s8subrc =9 B.
message 4e@D4.
endif.
move internalname to sf1label.
endif.
-t checks to see if the sf1label starts with a 4>47 which is how the internal names start.
if it
does7 the name has alread been converted. -f not7 it calls the F& and converts the
name.
(ou would then CA)) F,NC!-+N sf1label.
%martforms FA Part !wo
%martforms output di3erence
Problem with %martforms6 in a certain form for two di3erentl con5gured printers7
there seem to be
a di3erence in the output of characters per inch "the distance between characters
which gives a
-
8/10/2019 Faqs in Smartforms
5/17
laout problem 8 te/t in two lines instead of one.
-t happens when the two printers having di3erent Printer Controls4 if ou go to %PA2&enu "%pool
Administrator &enu# ou can see the di3erence in the Printer Control and if ou
make the Printer
control setting for both the printers as same. then it will be ok. and also u have to
check what is
the device tpe used for both the output devices.
%martForms +utput to P2F
!here is a wa to download smartform in P2F format.
Please do the following6
. Print the smartform to the spool.
@. Note the spool number.
. 2ownload a P2F 5le "Acrobat 'eader# version of the spool b running Program
'%!P2F! and
entering the
noted spool number.
%martForm 2oublesided printing uestion
-
8/10/2019 Faqs in Smartforms
6/17
(our customer wants our P+ %martForm to be able to print 0!erms and Conditinos0
on the back side of
each page. !he don4t want to purchase pre8printed forms with the compan4s logo
on the front and
terms H conditions on the back. Now this presents an interesting problem.
-
8/10/2019 Faqs in Smartforms
7/17
!ransport %mart Forms
-
8/10/2019 Faqs in Smartforms
8/17
%martforms6 protect lines in main window.
-
8/10/2019 Faqs in Smartforms
9/17
subnodes of the 5le.
8 Choose the +utput +ptions tab page of the 5le node and set the Page Protection
option. All table
lines that are in the 5le with the Page Protection option set are output on one page.
-n .J7 Alternativel in a paragraph format use the Page protection attribute to
determine whether
or not to displa a paragraph completel on one page. &ark it if ou want to avoid
that a paragraph
is split up b a page break. -f on the current page "onl in the main window# there is
not enough
space left for the paragraph7 the entire paragraph appears on the ne/t page.
What are the di3erences between %AP %cripts and %martformsI
%AP %cripts are client dependent whereas %martforms are client independent.
%AP %cripts reuire a driver program to displa the output whereas in smartforms
the form routines
can be written so that it is standalone.
An integrated Form :uilder helps to design %martforms more easil than %AP %cripts
-
8/10/2019 Faqs in Smartforms
10/17
An !able Painter and %martstles to assist in building up the smartforms
+n activation a function module is generated for %martforms
-t is possible to create a %martform without a main window
%martforms generates &) output which can be viewed through the web
&ultiple page formats is possible in smartforms
-
8/10/2019 Faqs in Smartforms
11/17
2A!A6 fm1name !(PE rsKl1fnam.
CA)) F,NC!-+N 4%%F1F,NC!-+N1&+2,)E1NA&E4
EP+'!-NG
formname ? 4L%&A'!F+'&4
-&P+'!-NG
fm1name ? fm1name
ECEP!-+N%
no1form ?
no1function1module ? @
+!
-
8/10/2019 Faqs in Smartforms
12/17
W-!< s8msgv s8msgv@ s8msgv s8msgv.
EN2-F.
-
8/10/2019 Faqs in Smartforms
13/17
control1parameters8no1close ? 44.
+,!P,!1+P!-+N%8!22E%! ? 4P'-N!E' NA&E4.
+,!P,!1+P!-+N%8!2N+P'-N! ? 44.
CA)) F,NC!-+N 4%%F1+PEN4
EP+'!-NG
output1options ? output1options
control1parameters ? control
user1settings ? 4 4
ECEP!-+N%
formatting1error ?
internal1error ? @
send1error ?
user1canceled ?
+!
-
8/10/2019 Faqs in Smartforms
14/17
H%F%(8+:PAGEH !otal number of pages in the currentl formatted print reuest
H%F%(8C+P(C+,N!H +riginal87st cop8@
H%F%(82A!EH 2ate
H%F%(8!-&EH !ime
H%F%(8,%E'NA&EH ,sername
-4m using the variable %F%(8F+'&PAGE%7 - get a star 0O0 instead of the total number
of pages.
!here ma not be enough space in the window to displa the variable7 either
increase the window
dimensions or condense the spaces using H%F%(8F+'&PAGE%"C#H
What are the various te/t formatting options in %martformsI
Hsmbol"L#H +mit )eading Leros
Hsmbol"%#H +mit )eading %ign
Hsmbol"=#H 2ispla )eading %ign to the )eft
Hsmbol"9#H 2ispla )eading %ign to the 'ight
Hsmbol"C#H Compress %paces
Hsmbol".N#H 2ispla upto N decimal places
Hsmbol"!#H +mit thousands separator
Hsmbol"'#H 'ight *usti5ed
Hsmbol"-#H %uppress output of the initial value
-
8/10/2019 Faqs in Smartforms
15/17
Where can - provide the input parameters to the smartformI
!he input parameters for the smartform can be de5ned in Global %ettings89Form
-nterface.
!he Associated !pe must be de5ned in the A:AP 2ictionar.
Where can - de5ne m own global tpes for the smartformI
!he global tpes"within the smartform# can be de5ned in Global %ettings89Global
2e5nitions89!pes
!he tpes de5ned here will be global through the entire smartform.
Also the form routines can be de5ned Global %ettings89Global 2e5nitions89Form
'outines
- have de5ned m own Program )ines7 where - have used a global variable G1!E!. -
get an error
G1!E! is not de5nedI
Whenever using the global variables in the Program )ines7 enter the variable name
in -nput
Parameters if ou are going to use"read# the variable. -f ou are going to both
read>write the
variable value enter the same in +utput Parameters.
- have created a table node for displa. Where can - check the condition which mustsatisf to
displa the tableI
-
8/10/2019 Faqs in Smartforms
16/17
!he conditions can be de5ned in the Conditions tab. -n smartforms all the nodes
have a condition
tab where ou can specif the condition to be satis5ed to access the node.
-
8/10/2019 Faqs in Smartforms
17/17
(ou can print a check bo/ in di3erent was.. b inserting smbols and making
window as
check bo/..
once go through the thread u will get to k now di3ernt was
putting checkbo/es in smartformI
'e6 uick uestion on %martforms
%olution @6
!o use Check bo/ in smartform do the following6
Change the editor to 4PC Editor4 and take the menu.
in te/t editor of !E! E)E&EN!%..
-nsert 89 Characters 89 %AP %mbols
in print preview u can4t see these changes..