SAP Smart Forms Navigation - SAP Smart Forms

How navigation works in SAP smart forms?

This chapter will give you detail description about Navigation, User Interface, Node Types and the Form Parameters of SAP Smart Forms.

SAP Smart Forms – User Interface

To design a form in SAP Smart Forms, first create and maintain a layout of the form and define the form logic. No knowledge on programming and scripting language is required for creating.

SAP Smart Form Graphical User Interface consists of below fields

  • Form Painter – used for creating a form layout, you use Form Painter.
  • PC Editor − used for entering texts and fields into the output area.
  • Navigation Tree − On the left side, there is a navigation tree that defines the hierarchy of a smart form. This will define the form logic for processing.
  • Table Painter − used for creating templates and tables.
  • Form Check – used for checking the form consistency.

In a SAP smart form, you can use Transaction: SMARTFORMS. On the first page, there is an option to select the Form, Style or Text Module based on the object you want to Create, Change or Display.

text_module.jpg

Enter the name and select the type to be created and click on the Create button and this will open SAP Form Builder.

In SAP From builder, there is Tree navigation on the left side. To select a node in tree, double click on the node. You can also drag and drop or copy subtrees by right clicking on it and using the Copy/Paste operation.

subtrees.jpg

When you right click on any node, you can see the Context menu. As per the node type, options under the Context menu will vary.

contextmenu.jpg

You have below options under the Context menu

  • Creating or deleting based on the selected node type.
  • Depending on the selected node type, only valid node types appear.
  • Clipboard functions – Cut or Copy to clipboard, Paste to clipboard.
  • Expand and Collapse.

SAP Smart Forms – Node Types

In this section, we will explain in detail about different types of node options listed below.

Output Areas

  • Page
  • Window

Elementary Nodes

  • Text
  • Graphic
  • Address

Table Output

  • Template
  • Table

Attributes of Nodes Type

In a SAP smart form, each form consists of common attributes

General Attribute − General attributes in a smart form defines the name of the selected node and description. It can also contain few generic properties of nodes like in case of the text node – text type, etc.

node_types.jpg

Output Options − In this tab, various output options will be defined for each node selected in the Navigation pane. Common tab includes

  • Position
  • Style box
  • Shading, etc.

output_options.jpg

Nodes with text output will also have an attribute Style. This attribute can be used to overwrite for the current subtree, if you don’t like the style set in the form before.

Conditions − In the condition tab, condition can be passed which displays the node when certain conditions are met.

Error List – If there are any inconsistencies while performing a check on the smart form, system will display a list of errors and warnings at the bottom of the maintenance screen window.

To find the error or warning, select the node in the tree structure to fix the error.

error_list.jpg

SAP Smart Forms – Form Parameters

Parameters can also be passed in the smart form and the data can be merged into the form. Data that can be merged can be from the database or a part of the standard data from a SAP system.

Below data can be merged in a smart form

  • Data from database tables can be merged and can be passed to the form interface.
  • Data provided by the standard SAP system can be merged in a smart form. Example: date.
  • Any calculations that are performed in the form

Data you merge will be displayed at run time. Place holders can be used to determine where to place the objects in the form to define where the data will be displayed.

A function module will be generated when a smart form is activated. Different standard parameters can be passed in a smart form. When you create a form, these parameters will appear in the form and they cannot be changed. These are import and export parameters used for different operations like – Specifying the output device type, etc.

Below are the common parameters in a Smart Form

DOCUMENT_OUTPUT_INFO

Type: Export

Description − Used for providing information about the number of printed form pages.

JOB_OUTPUT_INFO

Type: Export

Description – Used for determining which action creates what output in a smart from.

JOB_OUTPUT_OPTIONS

Type: Export

Description − This is a subset of the field OUTPUT_OPTIONS and it determines if settings have been changed or not.

USER_SETTINGS

Type: Import

Description − When the value of this parameter is ‘X’, smart form will take a default value of Spool Control defined under System → User Profile → Own Data.

Default value – Output Device → Print Immediately and Delete after Output.

system.jpg

parameters.jpg

When the value is not set, Smart Forms will evaluate below parameters of the structure for the output options – SSFCOMOP.

  • Printer settings (TDDEST, TDPRINTER , RQPOSNAME)
  • TDIMMED (Print immediately)
  • TDDELETE (Delete after output)

You can see different Import and Export parameters under the Field List tab of a smart form.

import.jpg

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

SAP Smart Forms Topics