ABAP - Smart Forms (Emax Technologies) 88 Pages

August 25, 2017 | Author: Ravi Jalani | Category: Page Layout, Information Retrieval, Control Flow, Technology, Computing
Share Embed Donate


Short Description

ABAP - Smart Forms (Emax Technologies) 88 Pages...

Description

compiled By:

Ganapati Adi

SmartForms@eMAX We Never Compromise in Quality, Would You?

What is SmartForms ? SAP Smart Forms is new print solution introduced in SAP Basis Release 4.6C as the tool for creating and maintaining f o m s to Print the Business Documents such as Experience Letters,Offer Eetters,Purchase Brders,Sales Orders.

In One word , SmartForms is the Smartest way to work with Forms. Note : All the SAP Script (Old Solution for Printing Forms) functionalities are still Possible in SMARTFORMS .

? , "4

Note : Event SAP Scripts can be converted into Smart Forms Also. Note : In Smartforms most of the functionalities can be ac Clickings(Doub1e Click , Right Click ...).

n;!#

Features Of SAP Smart Forms

&

$

&i"i"rrv$w:I

;&

is,?? sss fs ::.

."

OR

~ ~ ~ & k. y?.,~:;:$$$j&, .-.. ........ " '-.'b-.,

::

L

(*.;!!:v3r*%f::s ,,, >,, :;>&:~;~~,

". ......

.%

' .::;..; : , s .a ; ,:?-& ........... i.:

.;,,<

.\: ..:>.".+.

.i..;i.

PC;.

*......... .......... ............. .......... ..................... ...... f ....................... ..v *;. ..........

kg

I:$,

.* ! % :S; F-. 1

~: i,~;z&$+ ?.

jgy

t-F"iih-,?i ,.?::'d %

.-rw.

r,.

,'"

'

a ' " :

*&b37y

B*,

Differences Between SAP script and ~ m a r t ~ i r m s . : ~ I\\

\Y~&, : ,, ,

1 I

1 7

1

I

....

""> ;&*,,,d$.,. *~&.%~

Y,,

~" ,

Table

Page 17 of 85

Compiled By : Ganapati Adimulam

eMax Technologies,Ameerpet,J3yderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

SmartForms@eMAX :

a

We Never Compromise in Quality, Would You?

0Pages and W~ndows 0 %PAGE1 New Page D

G'.

"

a LOGO Print Company Logo CADDRESS Print CompanyP QJ MAIN Main Window .------ .--- - ------> %TABLEI !New Table 1 D Header D Main Area

.---!

L

Notice that a Table and Header(Cal1ed Only Once), Main Area(Cal1ed For Each RecordJLine) and Footer(at the End of the PageITable

Each Area can has it's own Line Structure and Generally Header (For Column Headings) and Main Area(Contents ) contains t Similar Line tvpe(Structure) and Footer has a ~ i f f e r e nStructure.

t

Compiled By : Ganapati Adimulam eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

Page 18 of 85

SmartForms@eMAX We Never Compromise in Quality, Would You?

Define the Line Types : HEAD-N-BODY with 5 Columns IHERD-N-BODY 1 c*j 1 a p,OO iCMi3,OO )CMl3,OO 1CM13,0O ICM13,00 I C M ~ This Line type Can be used for both Header and MAIN Area. Line FOOTER

1 Make Sure that the Table I1 Table Width

15,OO

I CM

I Width Equals to the Sum of all the Columns of the Line Type. \HEAD-N-BODY

(

;$j

I

a

\3,80 /CM]3,88 [EM13 ,BO ]CM)3,OO ]~M13,00 IcM]]

Similarly FOOTER

.@

Click 0

Page 19 of 85

Compiled By : Ganapati Adimulam eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

I

SmartForms@eMAX We Never Compromise in Quality, Would You?

Provide the Internal Table to be looped and it's Work Area -

LOOPLoop/." Operand

11

IT-E

KP O

lNTO

WA-E KP0

1

to

Row

To Print Header DataQColumnHeadings) Right Click On the Header ->Create->Table Line W h l A l h l RAgin \ A l i n d n $ n t 1' 1 I k U Y Y

-- --.

,----

D iHpariert D 'M! create "

"

Right Click On CELLl->Create->TEXT

Page 20 of 85

Compiled By : Ganapati Adimulam

eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell N;: 99484 44808,98490 34399, www.emaxtech.com

SmartForms@eMAX We Never Compromise in Quality, Would You?

.-**--ve-

Headings.

Enter the Line Type HEAD-N-BODY(A1ready used for both Header i.e for Column Headings). Notice that CELLS (CELL6 to CELL10) are opened according to the line Structure.

Page 21 of 85

Compiled By : Ganapati Adimulam eMax Technologies,Ameerpet,Hyderabad

Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

SmartForms@eMAX We Never Compromise in Quality, Would You?

-

To Print Data in the CELLS Wight Click on CEkL6->Create->TEXT ~7

%ROW2 New Li

ult Paragraph) and program er Cells(CELL7,8,9,10) with the respective t

Possible Operations in Calculations

:

Compiled By : Ganapati Adimulam eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 45976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

Page 22 of 85

SmartForms@eMAX We Never Compromise in Quality, Would You?

0Pages and Windows L)-

V

Q-J

CADDRESS Print Company MAIN Main Window

/

#gf, yl

Operation is to determine the kind of calculation you want to exe~~$$$!$#$h@~abl&~;~~ Forms assigns the result of the operation to the field you ~ ~ e c i f i e b u i i d e ~ w ~%."$, ~??= @N&~ a~m~e . ,,. , You can then use the target field name to display the result. F;i. @ ; @ i . .. . $., . , . \"A , *. ?kf! Possible Automatic Operations ,,,., . ~. \. . ~ f.ssps

.

\

, ~ , ,

P

c;/

,,b

\

~

.

\

\, s~

4.

'~.

p ;j

al field, the target field, which you need to display the result of is, a column of the table), for which to execute the operation, and specify the calculation. 3. Depending on whether you execute a cdlculation on all items of the table or on items of a sort level, display your result either in the footer or at the beginning or end of a sort level.

Page 23 of 85

Compiled By : Ganapati Adimulam

eMax TechnoIogies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

w

We Never Compromise in Quality, Would You?

Calculating Subtotals You want to display subtotals after a sort level break of a sort criterion. So that Make Sure that the Internal Table is Sorted based on the required Fields.

Sort Criteria in Table: Before you start reading an internal table, you can tell SAP Smart Forms to sort it. With the sorting, you can divide the table into different sort levels: -

1 st Sort Criterion 2 n d Sort Criterion 3rd Sort Criterion

Beginning of Sort Level (Event on Sort Begin)

(of 1st Sort Criterion)

End of Sort Level (Event on Sort End)

cords and to display subtitles or subtotals at the

In the sort Crit

g of your internaLtable, use the Data tab of the table or loop node. box you can enter the fields by which to sort the table.

The sequence in which you enter the field names into the table control determines the sort sequence. To change it at a later time, use the black arrows above the control. Use the radio buttons to choose whether to sort the field in ascending or in descending order. Note : To display data(Sub Totals) before or after a sort level, mark Event on Sort Begin andlor Event on Sort End. In the navigation tree, an event node appears for which you can create inferior nodes. In these inferior nodes you specify the data you want to display at this event (for example, subtotals).

Page 24 of 85

Compiled By : Ganapati Adimulam eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

SrnartForms@eMAX We Never Compromise in Quality, Would You?

P WA-SALES %TABLEI NewTable 1

D

M a ~ nArea

Note: SAP Smart Forms cannot recognize whether example, before passing it at the for events, you must still enter the sorting Sorted.

Go to the Calculations tab o

e following fields:

............

. . . . . . . . . . . .

. . . .

....

....

.....

. . . . . .

Reset

I Sort Criterion

'/



'The subtotals are formatted according to the relevant and displayed after each sort level.

Page 25 of 85

Compiled By : Ganapati Adimulam eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

I

SrnartForms@eMAX We Never Compromise in Quality, Would You?

Calculating Grand Totals On the Calculations tab fill the following fields:

1

1 value

column

I

i --

I

.

Total

Operation Field Name



I

I

Target Field Name ."'f

After Loop

Event

/

G;l~l

7

Initialization

(active)

i

fJ

-9 4 L .'=r-,*-&* "**, k-v9th

e*

v-.

1. To display the grand total, include a table li this table line. 2. You can specify whether to display She tota grand total at the end of the tab9fTo do this Break of the footer.

tz .;,"ihp $,

&

:

"A * \-

Numbering Table Items Conse~ut~vely: output in which the individual items of y

s and the table heading by one cell that displays II in the main area insert a text node. Use the text node to display

*:

Value

\

I

-

--

-

Number i I

Target Field Name

I

7 -

Event

--

NUMBER

I ~

~

~

-

l

Before Loop -- .

Initialization

-

3. If desired, you can display NUMBER at the end of the table in the footer area. Note : The items of the table are numbered consecutively.

Page 26 of 85

I .I

Compiled By : Ganapati Adimulam

eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

I

1

_

SmartForms@eMAX We Never Compromise in Quality, Would You?

B 1 Templates

in DeQail(StaticTable) ".

The layout of a template is static, which means that you determine it before the Smart Form is executed. To do this, you can define line types in the Table Painter, whose sequences and appearances are the same as in the output.

Line Types for Templates

:

The layout of a template is static, which means that you determine it before the Smart Form is executed. To do this, you can define line types in the Table Painter, whose sequences and appearances are the same as in the output. Describing a template with line types could look like this:

The output of thi are used:

hich only three different line types

Line type L1 for the first two line of the template. The Table Painter shows the interval in the bracket after the name of the line type. Line type L2 for the third line of the template. This line type has a different fixed line height.

Page 27 of 85

Compiled By : Ganapati Adimulam

eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

SmartForms@eMAX - -

We Never Compromise in Quality, Would You?

Line type L3, which is no line type of its own, but only a reference to L1. The Table Painter shows the name of the reference line type below the name of the line type. Line type L4 for the fifth line. Note: By specifying an interval you can use one line type for several subsequent lines of the template. By specifying a reference you can reuse any existing line type at any position of the template. You can make changes only to the 'master' line type. Note: Unlike with line types for tables, for templates you specify a fixed line height for the line type. Any output that does not fit into a cell is truncated.

Printing Templates: Use node type Template to display a table whose layout and size A"program. So (number of lines and columns) is determined before the runtime of the appli$tion ."$@ that a template is also called a static table. mi& & c-'

4

,,- ,

@

Creation Of a template, needs to define a table layout to determine&tkg.Gf&g&#&&goregh line. The cells are used to display the contents of the inferior nodes ~ P t h i r e m ~ l a ~ i ~ ~ ~ ~ ~ ~ ~ ~ y a l l o w s you to position text and a graphic side by side . I , !i

Note : You can create a te

1. Use the context m

Page 28 of 85

Compiled By : Ganapati Adimulam

eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

SmartFom~s@eMAX We Never Compromise in Quality, Would You?

Q

f?,l

FOLDER1 LI

P QJ MAIN Maln Window

Every time we print the Data ,the Target Line and Column No should be

Displaying Graphics in Templatesk ,

Page 29 of 85

.

Compiled By : Ganapati Adimulam eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

SmartForms@eMAX We Never Com~romisein Oualitv. Would You?

Combining Templates and Windows You use line types to define the layout of templates. However, to create a template like the one below, you cannot use the template concept of Smart Forms:

The cells of the colored part cover several lines. However, SAP to specify for a cell of a line type that you want this cell to cover To print such a layout in a form, you must divide the create one template per window. To p r i n ~ f %templat three windows in SAP Smart Forms (sg$&Prently c f@@&&<

to print templates of any complexity in a form.

This

Page 30 of 85

Compiled By : Ganapati Adimulam

eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

SrnartForms@eMAX We Never Compromise in Quality, Would You?

Smart Style in Detail : Smart Style is the collection of re-usable Paragraph and Character Formats.

Page 3 1 of 85

Compiled By : Ganapati Adimulam

eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

We Never Com~romisein Oualitv. Would You? Note : A Smart Style must be assigned to each Smart Form. Can be done globally for the entire Smart Form in the form attributes. In addition, you can assign a Smart Style locally to a node, for example, a text node. This assignment then applies for the entire subtree and overrules the global settings. A Smart Style contains : e

Header data containing the default values(Paragraph) of a Smart Style Paragraph formats including indents and spacing, font attributes, tabs, and outline and numbering Character formats including effects (superscript, subscript), barcode and font attributes Colors and underlines for a paragraph or character format

Preview Paragraph Formats

: A paragraph format contains in

font settings, text color, tabs, numbering and outline. have a unique name. To Create : 1. In change mode of the Smart Creafe. 2. In the Paragraph Format field 3. Select the desired attributes on 4. Choose Acfivafe.

special output attributes to sections

Attributes Of Charact

mart Style, choose the Characfer Formats node and then 2. In the Characfer Formaf field, enter a two-character character key. 3. Select the desired attributes on the individual tab pages. 4. Choose Acfivate.

Compiled By : Ganapati Adimulam eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Cell No: 99484 44808,98490 34399, www.emaxtech.com

Page 32 of 85

SrnartForms@eMAX We Never Compromise in Quality, Would You?

Miscellaneous Events

: You specify an event to determine when to print a particular node.

You can specify events for the following node types : 0

c

For each node type that offers the Conditions tab For headers and footers of table and folder nodes For control breaks before or after which you want to make a certain output fexample, subtotals).

Note: Events control the output of the specified node and of all existing infgfior nodes. if you d:gg/& ) ~~ecifl~d,~i,si&nored. Q ~ T ~ . ~ ~

#/

thsj', sign to the left(
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF