Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SMARTFORMS

Former Member
0 Likes
724

Hi,

Can anyone TELL ME IN DETAIL ABOUT SMARTFORMS?

IT WUD BE NICE IF I COULD GET IN STEPS.

1 ACCEPTED SOLUTION
Read only

former_member188594
Active Participant
0 Likes
671

Hi Poonam,

refer the following links for getting a feel of smartforms. Alternatively, you could find a lot of resources on smartforms in SDN itself. Just give a search and see.

[http://help.sap.com/saphelp_nw04/helpdata/en/b1/243fdabeee11d4b633006094192fe3/frameset.htm]

[http://saplab.blogspot.com/2007/09/what-is-sap-smart-forms-sap-smart-forms.html]

Apart from these links you can search in [saptechnical.com]

SMARTFORMS are :-

SAP’s new print form solution, SAP Smart Forms, is the successor of SAPscript. All new

development of forms at SAP will be done using the Smart Form print solution. However,

SAPScript will still be supported for those forms already created in SAPScript, and for customers

who have created their own forms in SAPScript.

SAP Smart Forms is a tool for the maintenance of forms on which application data from the SAP

system can be output. Depending on the application, the number of forms to be printed can be

very high, and they might have to be printed in a short period of time, in a mass printing.

Examples of mass printing are monthly invoices sent by telecom companies or salary statements.

The output of application data is placed into a dynamically expandable table where the size and

layout of the output table is determined by the number of records being retrieved.

you use tcode "SMARTFORMS" for creating or displaying or modifying smartforms.

It is not possible to give entire content in a single reply. if you need more, just forward your mail id so that we can provide you some more help on smartforms.

Regards,

Sekhar

5 REPLIES 5
Read only

Former Member
0 Likes
671

Hi,

SMARTFORMS:

-


ADVANTAGES OF SMARTFORMS:

-


1. Smartforms does not require paragraph formats as a mandatory one.

2. Smartforms does not duplicate the data.

3. Smartforms are Client-independent and language-independent.

4. We can apply styles for the texts using Smartforms.

5. Print programs does not contain any function modules to call the form.

SMARTFORMS is the Tcode to create smartforms in ABAP.

Smartforms has three components:

-


Global Settings:

-


1. Form Attributes - Holds the description about the smartform.

2. Form Interface - Holds the import and export parameters for the smartforms.

3. Global Definitions - Used to declare variables for the smartform that can be accessed by any component within the smartform.

Pages and Windows:

-


This area is used to create new pages, windows (header, footer, constant window, main window, variable window, graphic window).

Navigations to create Smartforms:

-


SMARTFORMS -> Specify form name starting with Z or Y -> Click on Create -> Opens an interface -> Enter short description -> Double click on Form Interface -> Specify following parameter in IMPORT tab button:

STR TYPE C

-> Expand Pages and Windows -> By default, a Main Window is present -> Right click on Main Window -> Create -> Text -> Opens Form Editor -> To go to line editor, Click on 'Txt Editor' pushbutton on the upper left corner of the form editor -> Specify the variable (&STR&) in the first line of line editor -> Come back -> Save -> Activate -> Execute -> Opens Form Builder with autogenerated function module for the smartform ('/1BCDWB/SF00000042') -> Copy the function module generated.

To invoke the smartform from SE38 editor, Call the Function module and paste the FM copied from smart form function builder screen as follows:

DATA NAME(10) VALUE 'INDIA'.

CALL FUNCTION '/1BCDWB/SF00000042'

EXPORTING

STR = NAME.

-> Save -> Activate -> Execute in the same way as Sapscript.

Navigations to pass internal table as an argument to Smartforms:

-


Create a smartform -> In the Form interface -> Click on Tables tab button -> Specify the following internal table:

ITAB LIKE MARA.

-> Double click on Global Definitions -> Specify the global variable as follows:

-

ITAB1 LIKE MARA.

-> Expand Pages and Windows -> Right click on Main Window -> Create -> Table -> Click on Data tab button -> In the LOOP section, for the operand fields, specify the following:

ITAB INTO ITAB1.

-> Right click on Main Area -> Create -> Table Line -> In the Line Type input field, a line type called %LTYPE1 is automatically generated -> Select it.

To create internal table fields, right click on Text cell -> Create -> Text -> Select General Attributes tab button -> Opens Form Editor -> Goto Line editor by clicking on 'Txt Editor' pushbutton -> Specify the following in the first line:

&ITAB1-MATNR&,,&ITAB1-MTART&,,&ITAB1-MBRSH&,,&ITAB1-MEINS&

-> Come back -> Save -> Activate -> Execute -> Copy the autogenerated FM.

In SE38 program, specify the following:

DATA ITAB1 LIKE MARA OCCURS 0 WITH HEADER LINE.

SELECT * FROM MARA INTO TABLE ITAB1.

CALL FUNCTION '/1BCDWB/SF00000043'

TABLES

ITAB = ITAB1.

Save -> Activate -> Execute in the same way as above.

Regards,

Priya.

Read only

0 Likes
671

What do u mean by this line Print programs does not contain any function modules to call the form.

Read only

Former Member
0 Likes
671

Hi,

What is SAP Smart Forms?

SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.

SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can

configure forms with data from an SAP System for the relevant business processes.

To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module.

You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output.

You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed.

SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired.

SAP Smart Forms also support postage optimizing.

Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C

What Transaction to start SAP Smart Forms?

Execute transaction SMARTFORMS to start SAP Smart Forms.

Key Benefits of SAP Smart Forms:

SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time.

You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics.

To make changes, use Drag & Drop, Copy & Paste, and select different attributes.

These actions do not include writing of coding lines or using a Script language.

Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one.

For Web publishing, the system provides a generated XML output of the processed form.

Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.

Regards,

CS

Read only

former_member188594
Active Participant
0 Likes
672

Hi Poonam,

refer the following links for getting a feel of smartforms. Alternatively, you could find a lot of resources on smartforms in SDN itself. Just give a search and see.

[http://help.sap.com/saphelp_nw04/helpdata/en/b1/243fdabeee11d4b633006094192fe3/frameset.htm]

[http://saplab.blogspot.com/2007/09/what-is-sap-smart-forms-sap-smart-forms.html]

Apart from these links you can search in [saptechnical.com]

SMARTFORMS are :-

SAP’s new print form solution, SAP Smart Forms, is the successor of SAPscript. All new

development of forms at SAP will be done using the Smart Form print solution. However,

SAPScript will still be supported for those forms already created in SAPScript, and for customers

who have created their own forms in SAPScript.

SAP Smart Forms is a tool for the maintenance of forms on which application data from the SAP

system can be output. Depending on the application, the number of forms to be printed can be

very high, and they might have to be printed in a short period of time, in a mass printing.

Examples of mass printing are monthly invoices sent by telecom companies or salary statements.

The output of application data is placed into a dynamically expandable table where the size and

layout of the output table is determined by the number of records being retrieved.

you use tcode "SMARTFORMS" for creating or displaying or modifying smartforms.

It is not possible to give entire content in a single reply. if you need more, just forward your mail id so that we can provide you some more help on smartforms.

Regards,

Sekhar

Read only

Former Member