Basic Nodes

  • View
    11

  • Download
    2

Embed Size (px)

DESCRIPTION

Basic Nodes

Text of Basic Nodes

Smartform, Chapter 4Create text elements
Maintain text modules
Basic Nodes | 10.04
IBM Global Services
© 2005 IBM Corporation
Basic Nodes: Graphics
TIFF, BMP, JPEG file may be used
Maintain Graphics using transaction SE78
Basic Nodes | 10.04
The Graphic node is used to print Graphic elements (logos, icons, etc). The parameters required to print the Graphic element are the same as for the Background Picture.
The Graphic that needs to be printed should have been uploaded using transaction SE78 and must exist on the SAP system as a GRAPHIC object. Logos and Graphic elements in Smart Forms cannot be printed using Standard texts as was possible in SAP Scripts.
IBM Global Services
© 2005 IBM Corporation
Basic Nodes | 10.04
The Graphic node can be created as a sub-node of a Window or directly under a Page. The Output options tab of the Graphic gets modified based on whether the window is created under a Page or a Window.
The Graphic created under a Page has options to specify the position (top-left corner) of the Graphic.
The Graphic created in a Window has options to specify the Reference point based on which it should be positioned and the alignment with respect to the reference point.
IBM Global Services
© 2005 IBM Corporation
Basic Nodes: Address
Address node
This has to be given along with address number for personal address
This determines the format of address
Parameter that has the address number
Basic Nodes | 10.04
The Address node is a new concept in Smart Forms (did not exist in SAP Scripts) that allows to print the address of an organization, person, etc. by just specifying the address number or the Person number. The address/person number is used to retrieve the complete address from the address master.
Formatting options to print the address are also available in the Additional address specifications section.
The Address node like the Graphic node can be created under a Window or directly under a Page. The Output options gets modified to include or exclude position and dimension options based on whether the address node is created under a page or a window.
Basically in smartform while Address node is being used internally SAP call a function module ‘ADDRESS_INTO_PRINTFORM’. For any additional information regarding address node refer to the documentation of the function module.
IBM Global Services
© 2005 IBM Corporation
Basic Nodes: Text
To print out any text (and table contents/ data), but not address
Three types:
Include Text (Standard text as in SAP Script)
Text Modules
Parameters/global fields (defined in the form interface), system fields are printed using Text node
System fields are in a structure SFSY
Fields available inside the form can be seen by setting Field List- On from Utilities menu.
IBM Global Services
© 2005 IBM Corporation
Text Nodes: Text Element
You can append the text directly to the output of the predecessor node or start it in a new paragraph or a new line.
Basic Nodes | 10.04
The Text Element is used within the Smart Form to print text literals and fields. Include Text and Text Module on the other hand are not maintained in the Smart Form but can be called from it.
The options available while creating a Text element are:
New paragraph – Text is displayed on a new paragraph with the paragraph format specified. This will automatically trigger a line break.
New line – Text is displayed on the next line (from the last printed line).
Append directly – Text is printed from wherever the last printing was ended (on the same line and from the next position).
Various text editing options are available on the text-editor tool bar. The text can also be viewed in a full screen editor using the Txt Editor button. The existence of fields entered can be checked using the Check button.
IBM Global Services
© 2005 IBM Corporation
Basic Nodes | 10.04
The text type Include Text of the text node is used to refer to a SAPscript text that already exists in the system. To identify the text, you need the Text Name, the Text Object, the Text ID, and the Language. This allows you to easily use a text in several forms. In addition, you do not need to load the whole form description to maintain these texts.
This text type corresponds to the SAPscript statement INCLUDE. However, SAP Smart Forms does not allow any control statements in include texts. They are simply ignored when the form is processed.
To manage application-specific form texts, applications define their own text objects with subordinate text IDs in transaction SE75. Use text object TEXT with text ID ST to enter general standard texts. To maintain them, use the standard text editor (transaction SO10).
IBM Global Services
© 2005 IBM Corporation
Text Nodes: Text Module
To copy the contents of text module, instead of referring to it. After copying, the property of text changes to 'text element'
If this is opted for, then all the paragraph formats and char formats will come from the text module's style, else, default style of Form applies
Basic Nodes | 10.04
The Text Module in Smart Forms is similar to Standard Texts in SAP Scripts (also carried over in Smart Forms as Include Texts).
The main advantages of using a Text module are:
Central storage and maintenance of texts – commonly used texts like Terms and Conditions, Address line on footer, etc. do not have to be typed and maintained on every Smart Form being made. Also, changes made to the text at one place can be cascaded to all Forms where it is used if the Copy option is not used.
Language specific maintenance – Text modules can be maintained in different languages. Thus, by referring to the same Text module name, Smart Forms in different languages pick up the text of the corresponding language.
Client independence – This is an advantage over Include texts that are client dependent.
Can be assigned to CTS – An advantage over Standard Texts that are not assigned to a Transport System by default.
Can be translated to other languages through the transaction SE63.
IBM Global Services
© 2005 IBM Corporation
Transaction: SMARTFORMS
This is a normal PC editor where you can enter the text (fields, which are populated dynamically during run-time can also be used).
Basic Nodes | 10.04
Text modules can be maintained using smartforms transaction. The text module is maintained exactly like the Text element. Text literals as well as fields can be written in the text module. Fields of the Text module take values from the Smart Form from which it is called.
Since a Text Module is a separate entity, it has its own Management (Attributes) screen.
IBM Global Services
© 2005 IBM Corporation
Using various Text Nodes, address, and graphics in Smart Forms.
Basic Nodes | 10.04
IBM Global Services
© 2005 IBM Corporation
Using various Text Nodes, address, and graphics in Smart Forms.
Basic Nodes | 10.04
IBM Global Services
© 2005 IBM Corporation
Maintain Graphics using transaction SE78
The Address node is a new concept in Smart Forms (did not exist in SAP Scripts) that allows to print the address of an organization, person, etc. by just specifying the address number or the Person number. The address/person number is used to retrieve the complete address from the address master.
Text nodes are used to print out any text (and table contents/ data), but not address
Text nodes are three types:
Text element (enter text in PC Editor)
Include Text (Standard text as in SAP Script)
Text Modules
Questions
What are the various types of text modules used in Smart Forms ?
Which transaction is used to maintain graphics ?
Which transaction is used to maintain text modules?
Basic Nodes | 10.04