Date post: | 01-Jun-2018 |
Category: |
Documents |
Upload: | arkadev-chakrabarti |
View: | 236 times |
Download: | 1 times |
of 18
8/9/2019 15 Smart Forms
1/18
SmartForms
8/9/2019 15 Smart Forms
2/18
Sap-scripts Vs Smartforms......
•Fetch data.•Create structures
for Header data.•Create itab for Item data.•Open Form.•Loop at itab. Write Form.
Endloop.•Close Form.
ispla! data .
Driver Program Sapscript Layout
"ain #indo# HeaderWindo#s
8/9/2019 15 Smart Forms
3/18
8/9/2019 15 Smart Forms
4/18
Wh! Smartforms' (d)anta%es...
• (n eas! to use $raphical *ser Interface.• Eas! creation and maintenance of Forms resultin% in less pro%rammin%
effort.
• ata retrie)al and Form Lo%ic are separate.• Web publishin% is possible usin% a %enerated +"L output of the Form.• $raphics can be included as part of the Form or as ,ac %round %raphics.
• Eas! mi%ration of Sap-scripts to Smartforms.
8/9/2019 15 Smart Forms
5/18
What else is ne#'...
• Eas! insertion of compan! lo%os etc.• Flo# lo%ic is represented b! a tree structure in the form of
nodes./hus chan%e in printin% order is eas! usin% node dra% &drop.
• S!nta0 chec for indi)idual nodes.• (ddress node can be used to insert an address into the Form.• (bap codin% is possible usin% the 1ro%ram Lines node.• Formattin% options can be separatel! defined & maintained
usin% Smartst!les.• Indi)idual cells2#indo#s can be easil! framed.
8/9/2019 15 Smart Forms
6/18
Step-b!-Step....Creation of Smartform La!out
.• Stud! of re3uirements.• *ploadin% of ,itmap ima%e if an!.• e)elopment of ri)er pro%ram• e)elopment of La!out.
• (ttachment of ri)er & Smartform torele)ant transaction if re3uired.• /estin%4
8/9/2019 15 Smart Forms
7/18
,ac %round $raphics.Step56 Create ,mp ima%e.
• If la!out is a)ailable in the form of pre-printed stationar! scan and storeas t!pe ,mp.
• If la!out is in form of e0cel con)ert into ,mp. Or dra# re3uiredoutlines in paint directl!.
Step76 *pload into S(1.• $o to transaction SE89 %i)e an ob:ect name. Clic import. $i)e path
name. 1ress Enter4Step;6 Include in Smartfrom.
• $o to 1a%e. Select tab- ,ac %round picture. $et list of ima%es usin%Search help. ouble clic to select .
8/9/2019 15 Smart Forms
8/18
(pplication 2 ri)er 1ro%ram
• First half consists of data retrie)al. It can beincluded inside a Form called from a F*?C/IO?>"O *LE>?("E= to %etname of %enerated F" to pass data to Smartform.
>>>>>>= ie callin% the Function module obtained.
8/9/2019 15 Smart Forms
9/18
Lets %o into...
8/9/2019 15 Smart Forms
10/18
Components of Smartforms...
• Form ,uilder • Form 1ainter • 1C Editor • /able 1ainter
• St!le ,uilder • Field List
8/9/2019 15 Smart Forms
11/18
Form Lo%ic•
In the Form ,uilder a Smartform is described b! a set ofnodes formin% a tree structure.• Initiall! ; nodes alread! e0ist66 Form attributes interface &
%lobal definitions.
• 1a%es and #indo#s are created usin% the node
8/9/2019 15 Smart Forms
12/18
Form 1ainter
• Form 1ainter is used to desi%n the la!out of the pa%es of asmartform.
• One can define the #indo# or %raphic positions and choosesi@es.
• It offers a desi%n area #ith ruler %rids toolbar @oom factorsetc.
• It also pro)ides the facilit! of placin% a scanned %raphic intothe bac %round of the desi%n area.
• One can displa! or suppress the Form painter usin% a button.
8/9/2019 15 Smart Forms
13/18
1C Editor • It is similar to Text Editor in
Sap-scripts.• It ofers the oll unctions-
Enter delete select cop! cut paste te0ts.
(ssi%n para%raph formats & character formats.Include chan%e & delete fields.
• It allows the options o
entering texts in-/e0t ElementInclude /e0t
/e0t "odules
8/9/2019 15 Smart Forms
14/18
/able 1ainter • It is used to desi%n tables in a #indo#
%enerall! the main #indo#.• It helps dra# columns ro#s in the re3uired
format.• (llo#s selection of different patterns.• It allo#s !ou to desi%n separate Header &
Footer formats.• It allo#s !ou to create templates for those
la!outs #here data placement is fi0ed &
no#n before runtime.
8/9/2019 15 Smart Forms
15/18
St!le ,uilder
• In the St!le ,uilder !ou can collecti)el! defineSmartst!les. In a St!le !ou define the para%raph andcharacter formats !ou re3uire for !our Smartform.
• In the header data !ou maintain the default )alues ofa Smart St!le.
• Aou can choose amon% three attributes for thecharacter format 6-
Superscriptin% 2 subscriptin% the character strin%,arcodeFont (ttributes.
8/9/2019 15 Smart Forms
16/18
Field List
•
8/9/2019 15 Smart Forms
17/18
/ips & traps 4• "a e sure that all the fields that ha)e been mentioned in
the Form Interface are bein% passed in the (pplication pro%ram.
• "a e sure that the no of columns defined in the /able linet!pe is e3ual to those appearin% in the Loop.
• (ll Bt! & Currenc! fields ha)e to be mo)ed to t!pe
8/9/2019 15 Smart Forms
18/18
Thank You